Вход Регистрация
Файл: adultscript-2.0.3-pro/files/admin/templates/default/photo_edit.tpl.php
Строк: 138
<?php defined('_VALID') or die('Restricted Access!'); ?>
    <?php echo $this->fetch('errors'); ?>
    <?php echo $this->fetch('messages'); ?>
    <?php echo $this->fetch('warnings'); ?>
    <script type="text/javascript">
    $(document).ready(function() {
        $("input[name='process_advanced']").click(function() {
            if ($('#edit-advanced').is(':visible')) {
                  $('#edit-advanced').hide();
            } else {
                  $('#edit-advanced').show();
            }
          });
                                                                                                    
    });
    </script>
    <div id="container" class="clearfix">
        <div id="page">
            <?php echo $this->fetch('photo_menu'); ?>
            <div class="content clearfix">
                <?php echo $this->fetch('photo_manage_menu'); ?>
                <?php if ($this->photo): ?>
                <form id="photo-edit-form" method="post" action="<?php echo CURRENT_URL?>">
                    <fieldset>
                        <legend>Photo Information</legend>
                        <div class="optional">
                            <label for="caption">Caption</label>
                            <input name="caption" type="text" id="caption" class="extra" value="<?php echo e($this->photo['caption']); ?>" />
                        </div>
                    </fieldset>
                    <fieldset>
                        <legend>Photo Permissions</legend>
                        <div class="required">
                            <label for="allow_comment">Allow Comment</label>
                            <input name="allow_comment" type="radio" id="allow_comment" class="ratio" value="1"<?php if ($this->photo['allow_comment'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
                            <input name="allow_comment" type="radio" id="allow_comment_off" class="ratio" value="0"<?php if ($this->photo['allow_comment'] == '0'): echo ' checked="checked"'; endif; ?> /> No
                        </div>
                        <div class="required">
                            <label for="allow_rating">Allow Rating</label>
                            <input name="allow_rating" type="radio" id="allow_rating" class="ratio" value="1"<?php if ($this->photo['allow_rating'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes 
                            <input name="allow_rating" type="radio" id="allow_rating_off" class="ratio" value="0"<?php if ($this->photo['allow_rating'] == '0'): echo ' checked="checked"'; endif; ?> /> No
                        </div>
                    </fieldset>
                    <fieldset>
                        <legend>Photo Properties</legend>
                        <div class="required">
                            <label for="flagged">Flagged</label>
                            <select name="flagged" id="flagged">
                                <option value="1"<?php if ($this->photo['flagged'] == '1'): echo ' selected="selected"'; endif; ?>>Active</option>
                                <option value="0"<?php if ($this->photo['flagged'] == '0'): echo ' selected="selected"'; endif; ?>>Suspended</option>
                            </select>
                        </div>
                        <div class="required">
                            <label for="status">Status</label>
                            <select name="status" id="status">
                                <option value="1"<?php if ($this->photo['status'] == '1'): echo ' selected="selected"'; endif; ?>>Active</option>
                                <option value="0"<?php if ($this->photo['status'] == '0'): echo ' selected="selected"'; endif; ?>>Suspended</option>
                            </select>
                        </div>
                    </fieldset>
                    <div id="edit-advanced" style="display: none;">
                        <fieldset>
                            <legend>Advanced Properties</legend>
                            <div class="required">
                                <label for="rating">Rating</label>
                                <input name="rating" type="text" id="rating" class="small" value="<?php echo $this->photo['rating']; ?>" />
                            </div>
                            <div class="required">
                                <label for="rated_by">Rated By</label>
                                <input name="rated_by" type="text" id="rated_by" class="small" value="<?php echo $this->photo['rated_by']; ?>" />
                            </div>
                            <div class="required">
                                <label for="total_views">Total Views</label>
                                <input name="total_views" type="text" id="total_views" class="small" value="<?php echo $this->photo['total_views']; ?>" />
                            </div>
                            <div class="required">
                                <label for="total_comments">Total Comments</label>
                                <input name="total_comments" type="text" id="total_comments" class="small" value="<?php echo $this->photo['total_comments']; ?>" />
                            </div>
                            <div class="required">
                                <label for="total_favorites">Total Favorites</label>
                                <input name="total_favorites" type="text" id="total_favorites" class="small" value="<?php echo $this->photo['total_favorites']; ?>" />
                            </div>
                        </fieldset>
                        <fieldset>
                            <legend>Media Information</legend>
                            <div class="required">
                                <label for="ext">Extension</label>
                                <input name="ext" type="text" id="ext" class="small" value="<?php echo e($this->photo['ext']); ?>" />
                            </div>
                        </fieldset>
                        <fieldset>
                            <legend>Date Information</legend>
                            <div class="required">
                                <label for="add_date">Add Date</label>
                                <input name="add_date" type="tadd_date" id="add_date" class="medium" value="<?php echo e($this->photo['add_date']); ?>" />
                            </div>
                        </fieldset>
                    </div>
                    <div class="submit">
                          <input name="submit-edit" type="submit" id="submit-edit" class="button butDef" value=" Update Photo " />
                        <input name="process_advanced" type="button" id="process_advanced" class="button butDef" value=" Advanced " />
                    </div>
                </form>
                <?php else: ?>
                <div class="none">Invalid photo id! Are you sure this photo exists!?</div>
                <?php endif; ?>
            </div>
        </div>
    </div>
Онлайн: 1
Реклама