Вход Регистрация
Файл: adultscript-2.0.3-pro/files/mobile/templates/default/photo_edit.tpl.php
Строк: 49
<?php defined('_VALID') or die('Restricted Access!'); ?>
    <div data-role="content">
        <br>
        <ul data-role="listview">
            <li data-role="list-divider"><?php echo __('edit-album'); ?></li>
        </ul>
        <br>
        <br>
        <form id="photo-upload-form" method="post" enctype="multipart/form-data"  action="<?php echo MOBILE_URL?>/photo/edit/<?php echo $this->album['album_id']; ?>">
            <label for="title"><?php echo __('title'); ?>: </label>
            <input name="title" type="text" id="title" value="<?php echo e($this->album['title']); ?>">
            <label for="description"><?php echo __('description'); ?>: </label>
            <textarea name="description" id="description"><?php echo e($this->album['description']); ?></textarea>
            <?php $categories = (is_string($this->album['category'])) ? explode(','$this->album['category']) : (array) $this->album['category']; ?>
            <fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
                  <legend>Categories:</legend>
                  <?php foreach ($this->categories as $index => $category): $checked = (in_array($category['cat_id'], $categories)) ? ' checked="checked"'''?>
                  <input type="checkbox" name="category[]" id="category-<?php echo $category['cat_id'],'" value="',$category['cat_id'],'"',$checked?>>
                  <label for="category-<?php echo $category['cat_id'],'">',e($category['name']); ?></label>
                  <?php endforeach; ?>
            </fieldset>
            <label for="tags"><?php echo __('tags'); ?>: </label>
            <textarea name="tags" id="tags"><?php echo e($this->album['tags']); ?></textarea>
            <fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
                  <legend><?php echo __('type'); ?>:</legend>
                  <input type="radio" name="type" id="type-public" value="public"<?php if ($this->album['type'] == 'public'): echo ' checked="checked"'; endif; ?>>
                  <label for="type-public">Public</label>
                  <input type="radio" name="type" id="type-private" value="private"<?php if ($this->album['type'] == 'private'): echo ' checked="checked"'; endif; ?>>
                  <label for="type-private">Private</label>
            </fieldset>
            <fieldset data-role="controlgroup" data-type="horizontal">
                <legend><?php echo __('cover'); ?>:</legend>
                <?php foreach ($this->photos as $photo): ?>
                <input type="radio" name="cover_id" id="cover-<?php echo $photo['photo_id']; ?>" value="<?php echo $photo['photo_id']; ?>"<?php if ($this->album['cover'] == $photo['photo_id']): echo ' checked="checked"'; endif; ?>/>
                <label for="cover-<?php echo $photo['photo_id']; ?>"><img src="<?php echo PHOTO_URL,'/thumbs/',$photo['photo_id']; ?>.jpg" width="82" alt=""></label>
                <?php endforeach; ?>
            </fieldset>
            <button type="submit" data-theme="b" name="submit-edit"><?php echo __('edit-album'); ?></button>
        </form>
    </div>
Онлайн: 0
Реклама