Вход Регистрация
Файл: adultscript-2.0.3-pro/files/admin/templates/default/photo_upload_ftp.tpl.php
Строк: 110
<?php defined('_VALID') or die('Restricted Access!'); ?>
    <?php echo $this->fetch('errors'); ?>
    <?php echo $this->fetch('messages'); ?>
    <?php echo $this->fetch('warnings'); ?>
    <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-load-form" method="post" action="<?php echo ADMIN_URL?>/index.php?q=photo/upload/ftp">
                <?php if ($this->loaded): ?>
                <input name="method" type="hidden" value="<?php echo e($this->method); ?>" />
                <fieldset>
                    <legend>Import Options</legend>
                      <div class="required">
                        <label for="username">Username:</label>
                        <input name="username" type="text" id="username" class="large" value="<?php echo e($this->import['username']); ?>" />
                    </div>
                    <div class="required">
                        <label for="category">Categories:</label>
                        <div class="categories categs">
                            <?php echo p('categories_select'$this->categories$this->import['category']); ?>
                            <div class="clear-left"></div>
                            <i>Categories checked here will be assigned to all imported albums! Albums can be edited later!</i>
                        </div>
                        <div class="clear"></div>
                    </div>
                    <div class="clear"></div>
                    <div class="required">
                        <label for="type">Type:</label>
                        <input name="type" type="radio" id="type" class="radio" value="public"<?php if ($this->import['type'] == 'public'): echo ' checked="checked"'; endif;?> /> Public
                        <input name="type" type="radio" class="radio" value="private"<?php if ($this->import['type'] == 'private'): echo ' checked="checked"'; endif;?> /> Private
                    </div>
                    <div class="required">
                        <label for="mobile">Mobile:</label>
                        <input name="mobile" type="radio" id="mobile" class="radio" value="1"<?php if ($this->import['mobile'] == '1'): echo ' checked="checked"'; endif;?> /> Yes
                        <input name="mobile" type="radio" class="radio" value="0"<?php if ($this->import['mobile'] == '0'): echo ' checked="checked"'; endif;?> /> No
                    </div>
                    <div class="required">
                          <label for="status">Status:</label>
                        <select name="status" id="status">
                              <?php foreach ($this->statuses as $key => $value): ?>
                            <option value="<?php echo $key?>"<?php if ($this->import['status'] == $key): echo ' selected="selected"'; endif; ?>><?php echo e($value); ?></option>
                            <?php endforeach; ?>
                        </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>Image 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->import['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->import['min_height']; ?>" />
                    </div>
                </fieldset>
                <fieldset>
                      <legend><?php if ($this->method == 'archive'): echo 'Archives'; else: echo 'Folders'; endif; ?> Found</legend>
                      <?php foreach ($this->albums as $key => $album): ?>
                    <fieldset class="album">
                        <legend><input name="<?php echo $key?>[process]" type="checkbox" value="1" checked="checked" /> <?php echo basename($album['path']); ?></legend>
                          <input name="<?php echo $key?>[path]" type="hidden" value="<?php echo $album['path']; ?>" />
                          <div id="album-<?php echo $key?>">
                            <div class="required">
                                  <label for="title">Title:</label>
                                <input name="<?php echo $key?>[title]" type="text" class="large" value="<?php echo e($album['title']); ?>" />
                            </div>
                            <div class="required">
                                <label for="description">Description:</label>
                                  <textarea name="<?php echo $key?>[description]" cols="60" rows="2"><?php echo e($album['description']); ?></textarea>
                            </div>
                            <div class="required">
                                <label for="tags">Tags:</label>
                                  <textarea name="<?php echo $key?>[tags]" cols="60" rows="2"><?php echo e($album['tags']); ?></textarea>
                              </div>                          
                          </div>
                      </fieldset>
                      <?php endforeach; ?>
                </fieldset>
                <div class="submit">
                    <input name="submit-process" type="submit" id="submit-process" class="button butDef" value=" Add Album(s) " />
                </div>                
                <?php else: ?>
                <fieldset>
                      <legend>Load Settings</legend>
                    <div class="required">
                          <label for="dir">Path: </label>
                        <input name="dir" type="text" id="dir" class="large" value="<?php echo e($this->dir); ?>" /> Full path for the photo upload folder!
                    </div>
                    <div class="required">
                          <label for="method">Method: </label>
                          <select name="method" id="method">
                              <?php foreach ($this->methods as $key => $value): ?>
                              <option value="<?php echo $key?>"<?php if ($key == $this->method): echo ' selected="selected"'; endif; ?>><?php echo e($value); ?></option>
                              <?php endforeach; ?>
                          </select>
                    </div>
                </fieldset>
                <div class="submit">
                      <input name="submit-load" type="submit" id="submit-load" class="button butDef" value=" Load Album(s) " />
                </div>
                <?php endif; ?>
                </form>
            </div>
        </div>
    </div>
Онлайн: 1
Реклама