Файл: adultscript-2.0.3-pro/files/mobile/templates/default/video_edit.tpl.php
Строк: 108
<?php defined('_VALID') or die('Restricted Access!'); ?>
<div data-role="content">
<br >
<ul data-role="listview">
<li data-role="list-divider"><?php echo __('edit-video-title'); ?></li>
</ul>
<br />
<form method="post" action="<?php echo MOBILE_REL; ?>/edit/<?php echo $this->video['video_id']; ?>/">
<label for="title"><?php echo __('title'); ?>: </label>
<input name="title" type="text" id="title" value="<?php echo e($this->video['title']); ?>">
<label for="description"><?php echo __('description'); ?>: </label>
<textarea name="description" id="description"><?php echo e($this->video['description']); ?></textarea>
<?php $categories = (is_string($this->video['category'])) ? explode(',', $this->video['category']) : (array) $this->video['category']; ?>
<fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
<legend>Categories:</legend>
<?php foreach ($this->categories as $index => $category): $checked = (in_array($category['cat_id'], $categories)) ? ' checked="checked"': ''; ?>
<input type="checkbox" name="category[]" id="category-<?php echo $category['cat_id'],'" value="',$category['cat_id'],'"',$checked; ?>>
<label for="category-<?php echo $category['cat_id'],'">',e($category['name']); ?></label>
<?php endforeach; ?>
</fieldset>
<label for="tags"><?php echo __('tags'); ?>: </label>
<textarea name="tags" id="tags"><?php echo e($this->video['tags']); ?></textarea>
<fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
<legend><?php echo __('type'); ?>:</legend>
<input type="radio" name="type" id="type-public" value="public"<?php if ($this->video['type'] == 'public'): echo ' checked="checked"'; endif; ?>>
<label for="type-public">Public</label>
<input type="radio" name="type" id="type-private" value="private"<?php if ($this->video['type'] == 'private'): echo ' checked="checked"'; endif; ?>>
<label for="type-private">Private</label>
</fieldset>
<label for="allow_embed"><?php echo __('allow-embed'); ?>:</label>
<select name="allow_embed" id="allow_embed" data-role="slider">
<option value="1"<?php if ($this->video['allow_embed'] == '1'): echo ' selected="selected"'; endif; ?>>Yes</option>
<option value="0"<?php if ($this->video['allow_embed'] == '0'): echo ' selected="selected"'; endif; ?>>No</option>
</select>
<label for="allow_rating"><?php echo __('allow-rating'); ?>:</label>
<select name="allow_rating" id="allow_rating" data-role="slider">
<option value="1"<?php if ($this->video['allow_rating'] == '1'): echo ' selected="selected"'; endif; ?>>Yes</option>
<option value="0"<?php if ($this->video['allow_rating'] == '0'): echo ' selected="selected"'; endif; ?>>No</option>
</select>
<label for="allow_comment"><?php echo __('allow-comment'); ?>:</label>
<select name="allow_comment" id="allow_comment" data-role="slider">
<option value="1"<?php if ($this->video['allow_comment'] == '1'): echo ' selected="selected"'; endif; ?>>Yes</option>
<option value="0"<?php if ($this->video['allow_comment'] == '0'): echo ' selected="selected"'; endif; ?>>No</option>
</select>
<label for="allow_download"><?php echo __('allow-download'); ?>:</label>
<select name="allow_download" id="allow_download" data-role="slider">
<option value="1"<?php if ($this->video['allow_download'] == '1'): echo ' selected="selected"'; endif; ?>>Yes</option>
<option value="0"<?php if ($this->video['allow_download'] == '0'): echo ' selected="selected"'; endif; ?>>No</option>
</select>
<fieldset data-role="controlgroup" data-type="horizontal">
<legend><?php echo __('thumb'); ?>:</legend>
<?php for ($i=1; $i<=$this->video['thumbs']; ++$i): ?>
<input type="radio" name="thumb" id="thumb-<?php echo $i; ?>" value="<?php echo $i; ?>"<?php if ($this->video['thumb'] == $i): echo ' checked="checked"'; endif; ?>>
<label for="thumb-<?php echo $i; ?>"><img src="<?php echo THUMB_URL,'/',path($this->video['video_id']),'/',$i,'.jpg'; ?>" width="82" alt="" id="thumb-<?php echo $i; ?>"></label>
<?php endfor; ?>
</fieldset>
<?php if (isset($this->models)): ?>
<fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
<legend><?php echo __('pornstars'); ?>:</legend>
<?php foreach ($this->models as $model): ?>
<input type="checkbox" name="pornstars[]" id="pornstar-<?php echo $model['model_id']; ?>" checked="checked">
<label for="pornstar-<?php echo $model['model_id'],'">',e($model['name']); ?></label>
<?php endforeach; ?>
</fieldset>
<?php endif; ?>
<button type="submit" data-theme="b" name="submit_edit_video"><?php echo __('edit-video'); ?></button>
</form>
</div>