Вход Регистрация
Файл: adultscript-2.0.3-pro/files/admin/templates/default/photo_upload_archive.tpl.php
Строк: 115
<?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() {
        $("select[name='method']").change(function() {
              $("div[id^='container-']").hide();
              $("#container-" + $(this).val()).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_upload_menu'); ?>
                <form id="photo-upload-archive-form" method="post" enctype="multipart/form-data" action="<?php echo ADMIN_URL?>/index.php?q=photo/upload/archive">
                <fieldset>
                    <legend>Album Information</legend>
                    <div class="required">
                          <label for="username">Username: </label>
                        <input name="username" type="text" id="username" class="medium" maxlength="16" value="<?php echo e($this->album['username']); ?>" />
                    </div>
                    <div class="required">
                        <label for="title">Title: </label>
                        <input name="title" type="text" id="title" class="mega" maxlength="100" value="<?php echo e($this->album['title']); ?>" />
                    </div>
                    <div class="required">
                        <label for="desc">Description: </label>
                        <textarea name="description" id="desc" class="mega"><?php echo e($this->album['description']); ?></textarea>
                    </div>
                    <div class="required">
                        <label for="tags">Tags: </label>
                        <textarea name="tags" id="tags" class="mega"><?php echo e($this->album['tags']); ?></textarea>
                    </div>
                    <div class="required">
                        <label for="categories">Categories: </label>
                        <div class="categs">
                        <?php echo p('categories_select'$this->categories$this->album['categories']); ?>
                        </div>
                    </div>
                    <div class="clear"></div>
                    <div class="required">
                        <label for="type">Broadcast: </label>
                        <select name="type" id="type">
                            <option value="public"<?php if ($this->album['type'] == 'public'): echo ' selected="selected"'; endif; ?>>Public</option>
                            <option value="private"<?php if ($this->album['type'] == 'private'): echo ' selected="selected"'; endif; ?>>Private</option>
                        </select>
                    </div>
                    <div class="required">
                        <label for="status">Status: </label>
                        <select name="status" id="status">
                              <option value="0"<?php if ($this->album['status'] == '0'): echo ' selected="selected"'; endif; ?>>Suspended</option>
                            <option value="1"<?php if ($this->album['status'] == '1'): echo ' selected="selected"'; endif; ?>>Active</option>
                        </select>
                    </div>
                </fieldset>
                <?php if (VF::cfg_item('module.photo.allow_password') == '1'): ?>
                <fieldset>
                    <legend>Password Protection</legend>
                    <div class="required">
                        <label for="password">Password</label>
                        <input name="password" type="text" id="password" class="medium" value="" />
                        <span class="help-info">Enter a password to password protect this album! Leavy empty for none.</span>
                    </div>
                </fieldset>
                <?php endif; ?>
                <fieldset>
                    <legend>Upload Properties</legend>
                    <div class="required">
                        <label for="min_width">Min Width: </label>
                        <input name="min_width" type="text" id="min_width" class="small" value="<?php echo $this->album['min_width']; ?>" />
                    </div>
                    <div class="required">
                        <label for="min_height">Min Height: </label>
                        <input name="min_height" type="text" id="min_height" class="small" value="<?php echo $this->album['min_height']; ?>" />
                    </div>
                </fieldset>
                <fieldset>
                    <legend>Archive Properties</legend>
                    <div class="required">
                        <label for="method">Method: </label>
                        <select name="method" id="method">
                            <option value="url"<?php if ($this->album['method'] == 'url'): echo ' selected="selected"'; endif; ?>>URL</option>
                            <option value="file"<?php if ($this->album['method'] == 'file'): echo ' selected="selected"'; endif; ?>>File</option>
                        </select>
                    </div>
                    <div id="container-url" class="required"<?php if ($this->album['method'] == 'file'): echo ' style="display: none;"'; endif; ?>>
                        <label for="url">URL: </label>
                        <input name="url" type="text" id="url" class="extra" value="<?php echo $this->album['url']; ?>" />
                    </div>
                    <div id="container-file" class="required"<?php if ($this->album['method'] == 'url'): echo ' style="display: none;"'; endif; ?>>
                        <label for="archive">Archive: </label>
                        <input name="archive" type="file" id="archive" /> Only ZIP is currently supported!
                    </div>
                </fieldset>
                <div class="submit">
                    <input name="submit-archive" type="submit" id="submit-archive" class="button butDef" value=" Upload Archive " />
                </div>
                </form>
            </div>
        </div>
    </div>
Онлайн: 1
Реклама