Файл: adultscript-2.0.3-pro/files/admin/templates/default/ftp.tpl.php
Строк: 213
<?php defined('_VALID') or die('Restricted Access!'); ?>
<script type="text/javascript">
</script>
<?php echo $this->fetch('errors'); ?>
<?php echo $this->fetch('messages'); ?>
<?php echo $this->fetch('warnings'); ?>
</script>
<div id="container" class="clearfix">
<div id="page">
<?php echo $this->fetch('video_menu'); ?>
<div class="content clearfix">
<?php echo $this->fetch('video_add_menu'); ?>
<form name="ftp-import-form" id="ftp-import-form" method="post" enctype="multipart/form-data" action="<?php echo ADMIN_URL; ?>/index.php?q=ftp">
<input name="unique" type="hidden" id="unique" value="<?php echo $this->unique; ?>" />
<input name="submitted" type="hidden" value="1" />
<fieldset>
<legend>Video Information</legend>
<div class="required">
<label for="username">Username</label>
<input name="username" type="text" id="username" class="medium" value="<?php echo e($this->option['username']); ?>" />
</div>
<div class="required">
<label for="category">Categories:</label>
<div style="width: 720px; float: right;">
<?php foreach ($this->categories as $cat): ?>
<div style="width: 120px; float: left;"><input name="categories[]" type="checkbox" value="<?php echo $cat['cat_id']; ?>"<?php if (in_array($cat['cat_id'], $this->option['category'])): echo ' checked="checked"'; endif; ?>> <?php echo e($cat['name']); ?></div>
<?php endforeach; ?>
</div>
</div>
<div class="clear"></div>
<div class="optional">
<label for="type">Type</label>
<input name="type" type="radio" id="type_public" class="radio" value="public"<?php if ($this->option['type'] == 'public'): echo ' checked="checked"'; endif; ?> /> Public
<input name="type" type="radio" id="type_private" class="radio" value="private"<?php if ($this->option['type'] == 'private'): echo ' checked="checked"'; endif; ?> /> Private
<input name="type" type="radio" id="type_premium" class="radio" value="premium"<?php if ($this->option['type'] == 'premium'): echo ' checked="checked"'; endif; ?> /> Premium
</div>
<div class="optional">
<label for="status">Status</label>
<input name="status" type="radio" id="status_active" class="radio" value="1"<?php if ($this->option['status'] == '1'): echo ' checked="checked"'; endif; ?> /> Active
<input name="status" type="radio" id="status_suspended" class="radio" value="0"<?php if ($this->option['status'] == '0'): echo ' checked="checked"'; endif; ?> /> Suspended
</div>
</fieldset>
<fieldset>
<legend>Sponsor Properties</legend>
<div class="optional">
<label for="sponsor">Sponsor<label>
<select name="sponsor" id="sponsor">
<option value="">Select Sponsor</option>
<?php foreach ($this->sponsors as $sponsor): ?>
<option value="<?php echo $sponsor['sponsor_id']; ?>"<?php if ($this->options['sponsor'] == $sponsor['sponsor_id']): echo ' selected="selected"'; endif; ?>><?php echo e($sponsor['sponsor_name']); ?></option>
<?php endforeach; ?>
</select>
</div>
</fieldset>
<fieldset>
<legend>Import Properties</legend>
<div class="required">
<label for="method">Import Method</label>
<select name="method" id="method">
<option value="flv"<?php if ($this->option['method'] == 'flv'): echo ' selected="selected"'; endif; ?>>FLV Source</option>
<option value="embed"<?php if ($this->option['method'] == 'embed'): echo ' selected="selected"'; endif; ?>>Embed Code</option>
<option value="hotlink"<?php if ($this->option['method'] == 'hotlink'): echo ' selected="selected"'; endif; ?>>Hotlink Video</option>
</select>
</div>
<div class="required">
<label for="thumb_method">Thumb Method</label>
<select name="thumb_method" id="thumb_method">
<option value="generate"<?php if ($this->option['thumb_method'] == 'generate'): echo ' selected="selected"'; endif; ?>>Extract from FLV</option>
<option value="download"<?php if ($this->option['thumb_method'] == 'download'): echo ' selected="selected"'; endif; ?>>Download Thumb</option>
</select>
</div>
<div class="required">
<label for="duplicates">Block Duplicates</label>
<input name="duplicates" type="radio" id="duplicates_yes" class="radio" value="1"<?php if ($this->option['duplicates'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="duplicates" type="radio" id="duplicates_no" class="radio" value="0"<?php if ($this->option['duplicates'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
</fieldset>
<fieldset>
<legend>CSV Properties</legend>
<div style="width: 100%; text-align: center; padding: 5px 0;">
<select name="order_1" id="order_1">
<option value="">---</option>
<?php foreach ($this->orders as $k => $v): ?>
<option value="<?php echo $k; ?>"<?php if ($v == '1'): echo ' selected="selected"'; endif; ?>><?php echo $k; ?></option>
<?php endforeach; ?>
</select>
<select name="order_2" id="order_2">
<option value="">---</option>
<?php foreach ($this->orders as $k => $v): ?>
<option value="<?php echo $k; ?>"<?php if ($v == '2'): echo ' selected="selected"'; endif; ?>><?php echo $k; ?></option>
<?php endforeach; ?>
</select>
<select name="order_3" id="order_3">
<option value="">---</option>
<?php foreach ($this->orders as $k => $v): ?>
<option value="<?php echo $k; ?>"<?php if ($v == '3'): echo ' selected="selected"'; endif; ?>><?php echo $k; ?></option>
<?php endforeach; ?>
</select>
<select name="order_4" id="order_4">
<option value="">---</option>
<?php foreach ($this->orders as $k => $v): ?>
<option value="<?php echo $k; ?>"<?php if ($v == '4'): echo ' selected="selected"'; endif; ?>><?php echo $k; ?></option>
<?php endforeach; ?>
</select>
<select name="order_5" id="order_5">
<option value="">---</option>
<?php foreach ($this->orders as $k => $v): ?>
<option value="<?php echo $k; ?>"<?php if ($v == '5'): echo ' selected="selected"'; endif; ?>><?php echo $k; ?></option>
<?php endforeach; ?>
</select>
<select name="order_6" id="order_6">
<option value="">---</option>
<?php foreach ($this->orders as $k => $v): ?>
<option value="<?php echo $k; ?>"<?php if ($v == '6'): echo ' selected="selected"'; endif; ?>><?php echo $k; ?></option>
<?php endforeach; ?>
</select>
</div>
<br />
<div class="required">
<label for="csv">CSV File</label>
<input name="csv" type="file" id="csv" />
</div>
<div class="required">
<label for="delimiter">Separator</label>
<select name="delimiter" id="delimiter">
<option value="|"<?php if ($this->option['delimiter'] == '|'): echo ' selected="selected"'; endif; ?>>Pipe (|)</option>
<option value=","<?php if ($this->option['delimiter'] == ','): echo ' selected="selected"'; endif; ?>>Comma (|)</option>
<option value="tab"<?php if ($this->option['delimiter'] == 'tab'): echo ' selected="selected"'; endif; ?>>Tab</option>
<option value=";"<?php if ($this->option['delimiter'] == ';'): echo ' selected="selected"'; endif; ?>>Semicolon (;)</option>
</select>
</div>
</fieldset>
<div id="progress_container" style="display: none;">
<fieldset>
<legend>Embed Progress</legend>
<div id="progress" style="width: 98%;"><div class="bar" style="width: 0;"> </div></div>
<div class="progress_msg">Processing...please wait!</div>
</fieldset>
</div>
<div class="submit">
<input name="submit_import" type="button" id="submit_import" class="button butDef" value=" Import Videos " />
</div>
</form>
</div>
</div>
</div>