Файл: adultscript-2.0.3-pro/files/admin/templates/default/transfer.tpl.php
Строк: 105
<?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('video_menu'); ?>
<div class="content clearfix">
<?php echo $this->fetch('video_server_menu'); ?>
<?php if ($this->servers): ?>
<form id="video-transfer-form" method="post" action="<?php echo ADMIN_URL; ?>/index.php?q=transfer">
<fieldset>
<legend>Server Selection</legend>
<div class="required">
<label for="server_from">Server From:</label>
<select name="server_from" id="server_from">
<option value="0">Main Server</option>
<?php foreach ($this->servers as $server): ?>
<option value="<?php echo $server['server_id'],'"'; if ($server['server_id'] == $this->transfer['server_from']): echo ' selected="selected"'; endif; echo '>',e($server['server_name']); ?></option>
<?php endforeach; ?>
</select>
</div>
<div class="required">
<label for="server_to">Server To:</label>
<select name="server_to" id="server_to">
<option value="0">Main Server</option>
<?php foreach ($this->servers as $server): ?>
<option value="<?php echo $server['server_id'],'"'; if ($server['server_id'] == $this->transfer['server_to']): echo ' selected="selected"'; endif; echo '>',e($server['server_name']); ?></option>
<?php endforeach; ?>
</select>
</div>
</fieldset>
<fieldset>
<legend>Amount</legend>
<div class="required">
<label for="amount_type">Amount Type:</label>
<select name="amount_type" id="amount_type">
<option value="number"<?php if ($this->transfer['amount_type'] == 'number'): echo ' selected="selected"'; endif; ?>>Number</option>
<option value="percent"<?php if ($this->transfer['amount_type'] == 'percent'): echo ' selected="selected"'; endif; ?>>Percent</option>
</select>
</div>
<div class="required">
<label for="amount">Amount:</label>
<input name="amount" type="text" id="amount" class="small" value="<?php echo $this->transfer['amount']; ?>" />
</div>
</fieldset>
<fieldset>
<legend>Video Options</legend>
<div class="required">
<label for="order">ORDER:</label>
<select name="order" id="order">
<option value="ASC"<?php if ($this->transfer['order'] == 'ASC'): echo ' selected="selected"'; endif; ?>>ASC</option>
<option value="DESC"<?php if ($this->transfer['order'] == 'DESC'): echo ' selected="selected"'; endif; ?>>DESC</option>
</select>
</div>
<div class="required">
<label for="status">Status:</label>
<select name="status" id="status">
<option value="0"<?php if ($this->transfer['status'] == '0'): echo ' selected="selected"'; endif; ?>>Suspended</option>
<option value="1"<?php if ($this->transfer['status'] == '1'): echo ' selected="selected"'; endif; ?>>Active</option>
<option value="2"<?php if ($this->transfer['status'] == '2'): echo ' selected="selected"'; endif; ?>>Waiting Approval</option>
</select>
</div>
</fieldset>
<div class="submit">
<input name="submit-transfer" type="submit" id="submit-transfer" class="button butDef" value=" Create Transfer Queue " />
</div>
</form>
<?php else: ?>
<div class="none">No servers found!</div>
<?php endif; ?>
</div>
</div>
</div>