Файл: adultscript-2.0.3-pro/files/admin/templates/default/video_mass_update.tpl.php
Строк: 350
<?php defined('_VALID') or die('Restricted Access!'); ?>
<?php echo $this->fetch('errors'); ?>
<?php echo $this->fetch('messages'); ?>
<?php echo $this->fetch('warnings'); ?>
<link href="<?php echo TPL_REL; ?>/css/jquery-ui-1.8.16.custom.css" rel="stylesheet" type="text/css" />
<script src="<?php echo TPL_REL; ?>/js/jquery-ui-1.8.16.custom.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("select[id='category_method']").change(function() {
if ($(this).val() == 'change') {
$("#categories-container").show();
} else {
$("#categories-container").hide();
}
});
$("input[id^='category-']").change(function() {
var cat_id = $(this).attr('id').match(/category-(.*)/)[1];
if ($(this).is(':checked')) {
$("#subcategory-" + cat_id).slideDown();
} else {
$("#subcategory-" + cat_id).slideUp();
$(".parent-" + cat_id).removeAttr("checked");
}
});
$("input[class*='parent-']:checked").each(function(index) {
var parent_id = $(this).attr('class').match(/checkbox parent-(.*)/)[1];
$("#subcategory-" + parent_id).show();
});
$("input[name='add_date']").datepicker({ dateFormat: 'yy-mm-dd' });
$("input[name='view_date']").datepicker({ dateFormat: 'yy-mm-dd' });
$("input[name='shedule_date']").datepicker({ dateFormat: 'yy-mm-dd' });
$("#expand-ids").click(function(e) {
e.preventDefault();
$("#expand-container").toggle();
});
});
</script>
<div id="container" class="clearfix">
<div id="page">
<?php echo $this->fetch('video_menu'); ?>
<div class="content clearfix">
<?php echo $this->fetch('video_manage_menu'); ?>
<form id="mass-update-form" method="post" action="<?php echo CURRENT_URL; ?>">
<fieldset>
<legend>Updating <?php echo count($this->ids); ?> videos (<a href="#expand" id="expand-ids"><img src="<?php echo TPL_REL; ?>/images/arrow_inout.png" alt="" /></a>)!</legend>
<fieldset id="expand-container" style="display: none;">
<?php foreach ($this->ids as $video_id): ?>
<a href="<?php echo ADMIN_URL; ?>/index.php?q=video/view&id=<?php echo $video_id; ?>" target="_blank"><?php echo $video_id; ?></a>
<input name="videos[]" type="hidden" value="<?php echo $video_id; ?>" />
<?php endforeach; ?>
</fieldset>
<fieldset>
<legend>User Options</legend>
<div class="required">
<label for="username">Username: </label>
<input name="username" type="text" id="username" class="medium" value="" />
</div>
</fieldset>
<fieldset>
<legend>Channel Options</legend>
<div class="required">
<label for="channel_id">Channel:</label>
<select name="channel_id" id="channel_id">
<option value="none">No change</option>
<?php foreach ($this->channels as $channel): ?>
<option value="<?php echo $channel['channel_id']; ?>"<?php if ($this->mass['channel_id'] == $channel['channel_id']): echo ' selected="selected"'; endif; ?>><?php echo e($channel['name']); ?></option>
<?php endforeach; ?>
</select>
</div>
</fieldset>
<fieldset>
<legend>Advertising Options</legend>
<div class="required">
<label for="advertising">Advertising: </label>
<select name="advertising" id="advertising">
<option value="none">No change</option>
<?php foreach ($this->advertising as $adv): ?>
<option value="<?php echo $adv['adv_id'],'"'; if ($this->mass['advertising'] == $adv['adv_id']): echo ' selected="selected"'; endif; echo '>',e($adv['adv_name']); ?></option>
<?php endforeach; ?>
</select>
</div>
</fieldset>
<fieldset>
<legend>Category Options</legend>
<div class="required">
<label for="category_method">Categories: </label>
<select name="category_method" id="category_method">
<option value="none"<?php if ($this->mass['category_method'] == 'none'): echo ' selected="selected"'; endif; ?>>No Change</option>
<option value="change"<?php if ($this->mass['category_method'] == 'change'): echo ' selected="selected"'; endif; ?>>Change Categories</option>
<select>
<div id="categories-container" class="categories" style="display: none; padding-top: 5px;">
<?php echo p('categories_select', $this->categories, $this->mass['categories']); ?>
</div>
</div>
</fieldset>
<fieldset>
<legend>Privacy Settings</legend>
<div class="required">
<label for="type">Type: </label>
<select name="type" id="type">
<option value="none"<?php if ($this->mass['type'] == 'none'): echo ' selected="selected"'; endif; ?>>No Change</option>
<option value="public"<?php if ($this->mass['type'] == 'public'): echo ' selected="selected"'; endif; ?>>Public</option>
<option value="private"<?php if ($this->mass['type'] == 'private'): echo ' selected="selected"'; endif; ?>>Private</option>
</select>
</div>
</fieldset>
<fieldset>
<legend>Community Settings</legend>
<div class="required">
<label for="allow_rating">Allow Rating: </label>
<select name="allow_rating" id="allow_rating">
<option value="none"<?php if ($this->mass['allow_rating'] == 'none'): echo ' selected="selected"'; endif; ?>>No change</option>
<option value="1"<?php if ($this->mass['allow_rating'] == '1'): echo ' selected="selected"'; endif; ?>>Yes</option>
<option value="0"<?php if ($this->mass['allow_rating'] == '0'): echo ' selected="selected"'; endif; ?>>No</option>
</select>
</div>
<div class="required">
<label for="allow_comment">Allow Comment: </label>
<select name="allow_comment" id="allow_comment">
<option value="none"<?php if ($this->mass['allow_comment'] == 'none'): echo ' selected="selected"'; endif; ?>>No change</option>
<option value="1"<?php if ($this->mass['allow_comment'] == '1'): echo ' selected="selected"'; endif; ?>>Yes</option>
<option value="0"<?php if ($this->mass['allow_comment'] == '0'): echo ' selected="selected"'; endif; ?>>No</option>
</select>
</div>
<div class="required">
<label for="allow_download">Allow Download: </label>
<select name="allow_download" id="allow_download">
<option value="none"<?php if ($this->mass['allow_download'] == 'none'): echo ' selected="selected"'; endif; ?>>No change</option>
<option value="1"<?php if ($this->mass['allow_download'] == '1'): echo ' selected="selected"'; endif; ?>>Yes</option>
<option value="0"<?php if ($this->mass['allow_download'] == '0'): echo ' selected="selected"'; endif; ?>>No</option>
</select>
</div>
</fieldset>
<fieldset>
<legend>Properties</legend>
<div class="required">
<label for="total_views">Total Views: </label>
<input name="total_views" type="text" id="total_views" class="medium" value="<?php echo $this->mass['total_views']; ?>" />
</div>
<div class="required">
<label for="total_comments">Total Comments: </label>
<input name="total_comments" type="text" id="total_comments" class="medium" value="<?php echo $this->mass['total_comments']; ?>" />
</div>
<div class="required">
<label for="total_favorites">Total Favorites: </label>
<input name="total_favorites" type="text" id="total_favorites" class="medium" value="<?php echo $this->mass['total_favorites']; ?>" />
</div>
<div class="required">
<label for="total_downloads">Total Downloads: </label>
<input name="total_downloads" type="text" id="total_downloads" class="medium" value="<?php echo $this->mass['total_downloads']; ?>" />
</div>
<div class="required">
<label for="rating">Rating: </label>
<input name="rating" type="text" id="rating" class="medium" value="<?php echo $this->mass['rating']; ?>" />
</div>
<div class="required">
<label for="rated_by">Rated By: </label>
<input name="rated_by" type="text" id="rated_by" class="medium" value="<?php echo $this->mass['rated_by']; ?>" />
</div>
</fieldset>
<fieldset>
<legend>Mobile Options</legend>
<div class="required">
<label for="mobile">Mobile: </label>
<select name="mobile" id="mobile">
<option value="none"<?php if ($this->mass['mobile'] == 'none'): echo ' selected="selected"'; endif; ?>>No Change</option>
<option value="1"<?php if ($this->mass['mobile'] == '1'): echo ' selected="selected"'; endif; ?>>Yes</option>
<option value="0"<?php if ($this->mass['mobile'] == '0'): echo ' selected="selected"'; endif; ?>>No</option>
</select>
</div>
</fieldset>
<fieldset>
<legend>Premium Options</legend>
<div class="required">
<label for="premium">Premium: </label>
<select name="premium" id="premium">
<option value="none"<?php if ($this->mass['premium'] == 'none'): echo ' selected="selected"'; endif; ?>>No Change</option>
<option value="1"<?php if ($this->mass['premium'] == '1'): echo ' selected="selected"'; endif; ?>>Yes</option>
<option value="0"<?php if ($this->mass['premium'] == '0'): echo ' selected="selected"'; endif; ?>>No</option>
</select>
</div>
<div class="required">
<label for="price">Price: </label>
<input name="price" type="text" id="price" class="small" value="<?php echo $this->mass['price']; ?>" />
</div>
</fieldset>
<fieldset>
<legend>Time Settings</legend>
<div class="required">
<label for="add_date">Add Date: </label>
<input name="add_date" type="text" id="add_date" class="medium" value="" />
</div>
<div class="required">
<label for="view_date">View Date: </label>
<input name="view_date" type="text" id="view_date" class="medium" value="" />
</div>
</fieldset>
<fieldset>
<legend>Editorial Options</legend>
<div class="required">
<label for="shedule">Shedule: </label>
<input name="shedule_date" type="text" id="shedule_date" class="medium" value="" />
</div>
<div class="required">
<label for="status">Status: </label>
<select name="status" id="status">
<option value="none"<?php if ($this->mass['status'] == 'none'): echo ' selected="selected"'; endif; ?>>No Change</option>
<?php foreach ($this->statuses as $status => $name): ?>
<option value="<?php echo $status,'"'; if ($this->mass['status'] === $status): echo ' selected="selected"'; endif; echo '>',e($name); ?></option>
<?php endforeach; ?>
</select>
</div>
</fieldset>
</fieldset>
<div class="submit">
<input name="submit-edit" type="submit" id="submit-edit" class="button butDef" value=" Update Videos " />
</div>
</form>
</div>
</div>
</div>