Файл: adultscript-2.0.3-pro/files/admin/templates/default/nuevo_prerollnew.tpl.php
Строк: 139
<?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('nuevo_menu'); ?>
<div class="content clearfix">
<?php echo $this->fetch('nuevo_ads_menu'); ?>
<div class="tabContent clearfix">
<br />
<form name="nuevo-form" id="nuevo-form" method="post" action="<?php echo ADMIN_URL; ?>/index.php?q=nuevo/prerollnew">
<center><div class="tab1" style="display:table;text-align:left;">
<fieldset class="clearfix">
<legend style="color:#990000;">Create new preroll ad</legend>
<br />
<div class="required">
<label for="channel">Video channel</label>
<select name="channel">
<option value="0" selected="selected">All channels</option>
<?php foreach ($this->categories as $chn): ?>
<option value="<?php echo $chn['cat_id']; ?>"<?php if($this->ad['channel']==$chn['cat_id']) echo ' selected="selected"'; ?>><?php echo $chn['name']; ?></option>
<?php endforeach; ?>
</select>
</div>
<div class="required">
<label for="owner">Ad owner name</label>
<input name="owner" type="text" value="<?php echo e($this->ad['owner']); ?>" class="large" /> (optional)
</div>
<div class="required">
<label for="email">Ad owner email</label>
<input name="email" type="text" value="<?php echo e($this->ad['email']); ?>" class="large" /> (optional)
</div>
<div class="required">
<label for="url">Ad source URL</label>
<input name="url" type="text" value="<?php echo e($this->ad['url']); ?>" class="large" /> (mp4,flv video)
</div>
<div class="required">
<label for="link">Click URL</label>
<input name="link" type="text" value="<?php echo e($this->ad['link']); ?>" class="large" />
</div>
<div class="required">
<label for="target">Link target</label>
<select name="target">
<option value="_self" selected="selected">_self</option>
<option value="_blank"<?php if($this->ad['target']=='_blank') echo 'selected="selected"'; ?>>_blank</option>
</select>
</div>
<div class="required">
<label for="skip">Skip Ad</label>
<input name="skip" type="text" value="<?php echo e($this->ad['skip']); ?>" maxlength="4" class="tiny" /><br />
<label for="skip"> </label>
Number of seconds to skip preroll ad. Set 0 not to use ski feature.
</div>
<div class="required">
<label for="skip">Date expire</label>
<select name="month">
<option value="1"<?php if($this->ad['month']=='1') echo 'selected="selected"'; ?>>January</option>
<option value="2"<?php if($this->ad['month']=='2') echo 'selected="selected"'; ?>>February</option>
<option value="3"<?php if($this->ad['month']=='3') echo 'selected="selected"'; ?>>March</option>
<option value="4"<?php if($this->ad['month']=='4') echo 'selected="selected"'; ?>>April</option>
<option value="5"<?php if($this->ad['month']=='5') echo 'selected="selected"'; ?>>May</option>
<option value="6"<?php if($this->ad['month']=='6') echo 'selected="selected"'; ?>>June</option>
<option value="7"<?php if($this->ad['month']=='7') echo 'selected="selected"'; ?>>July</option>
<option value="8"<?php if($this->ad['month']=='8') echo 'selected="selected"'; ?>>August</option>
<option value="9"<?php if($this->ad['month']=='9') echo 'selected="selected"'; ?>>September</option>
<option value="10"<?php if($this->ad['month']=='10') echo 'selected="selected"'; ?>>October</option>
<option value="11"<?php if($this->ad['month']=='11') echo 'selected="selected"'; ?>>November</option>
<option value="12"<?php if($this->ad['month']=='12') echo 'selected="selected"'; ?>>December</option>
</select>
<select name="day">
<?php foreach ($this->days as $day):?>
<option value="<?php echo $day; ?>"<?php if($this->ad['day']==$day) echo 'selected="selected"'; ?>><?php echo $day; ?></option>
<?php endforeach; ?>
</select>
<select name="year">
<?php foreach ($this->years as $year):?>
<option value="<?php echo $year; ?>"<?php if($this->ad['year']==$year) echo 'selected="selected"'; ?>><?php echo $year; ?></option>
<?php endforeach; ?>
</select>
</div>
<div class="required">
<label for="active">Active</label>
<select name="active">
<option value="0" selected="selected">No</option>
<option value="1"<?php if($this->ad['active']=='1') echo 'selected="selected"'; ?>>Yes</option>
</select>
</div>
<br />
<div class="submit">
<input name="create_ad" type="submit" class="button butDef" value=" Create Preroll Ad " />
</div>
<br />
</div></center>
</form>
</div>
</div>
</div>
</div>