Файл: adultscript-2.0.3-pro/files/admin/templates/default/player_edit.tpl.php
Строк: 546
<?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/colorpicker.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="<?php echo TPL_REL; ?>/js/colorpicker.js"></script>
<script type="text/javascript">
$(document).ready(function() {
jQuery.each($(".color_selector"), function() {
$(this).css('background-color', $(this).val());
});
$(".color_selector").ColorPicker({
onSubmit: function(hsb, hex, rgb, el) {
$(el).val('#' + hex);
$(el).css('background-color', '#' + hex);
$(el).ColorPickerHide();
},
onBeforeShow: function() {
$(this).ColorPickerSetColor(this.value);
}
});
});
</script>
<div id="container" class="clearfix">
<div id="page">
<?php echo $this->fetch('video_menu'); ?>
<div class="content clearfix">
<?php echo $this->fetch('player_menu'); ?>
<?php if ($this->profile): ?>
<form name="player-add-form" id="player-add-form" method="post" action="<?php echo ADMIN_URL; ?>/index.php?q=player/edit&id=<?php echo $this->profile['player_id']; ?>">
<fieldset>
<legend>Profile Information</legend>
<div class="required">
<label for="name">Name</label>
<input name="name" type="text" id="name" class="medium" maxlength="100" value="<?php echo e($this->profile['name']); ?>" />
</div>
<div class="required">
<label for="description">Description</label>
<input name="description" type="text" id="description" class="mega" maxlenght="255" value="<?php echo e($this->profile['description']); ?>" />
</div>
<div class="required">
<label for="status">Status</label>
<select name="status" id="status">
<option value="0"<?php if ($this->profile['status'] == '0'): echo ' selected="selected"'; endif; ?>>Disabled</option>
<option value="1"<?php if ($this->profile['status'] == '1'): echo ' selected="selected"'; endif; ?>>Enabled</option>
</select>
</div>
</fieldset>
<fieldset>
<legend>License & Logo</legend>
<div class="required">
<label for="license">License Key:</label>
<input name="license" type="text" id="license" class="large" value="<?php echo $this->profile['license']; ?>" />
</div>
<div class="required">
<label for="logo">Logo URL:</label>
<input name="logo" type="text" id="logo" class="extra" value="<?php echo e($this->profile['logo']); ?>" />
</div>
<fieldset>Logo Position</fieldset>
<div class="required">
<label for="top">Top:</label>
<input name="top" class="text" id="top" class="tiny" value="<?php echo e($this->profile['top']); ?>" />
</div>
<div class="required">
<label for="left">Left:</label>
<input name="left" class="text" id="left" class="tiny" value="<?php echo e($this->profile['left']); ?>" />
</div>
<div class="required">
<label for="bottom">Bottom:</label>
<input name="bottom" class="text" id="bottom" class="tiny" value="<?php echo e($this->profile['bottom']); ?>" />
</div>
<div class="required">
<label for="right">Right:</label>
<input name="right" class="text" id="right" class="tiny" value="<?php echo e($this->profile['right']); ?>" />
</div>
</fieldset>
</fieldset>
<fieldset>
<legend>Options</legend>
<div class="required">
<label for="autoPlay">Auto Play</label>
<input name="autoPlay" type="radio" id="autoPlay" class="radio" value="true"<?php if ($this->profile['autoPlay'] == 'true'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="autoPlay" type="radio" class="radio" value="false"<?php if ($this->profile['autoPlay'] == 'false'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="autoBuffering">Auto Buffering</label>
<input name="autoBuffering" type="radio" id="autoBuffering" class="radio" value="true"<?php if ($this->profile['autoBuffering'] == 'true'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="autoBuffering" type="radio" class="radio" value="false"<?php if ($this->profile['autoBuffering'] == 'false'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="bufferLength">Buffer Length</label>
<input name="bufferLength" type="text" id="bufferLength" class="tiny" maxlength="3" value="<?php echo e($this->profile['bufferLength']); ?>" />
</div>
<div class="required">
<label for="scaling">Scaling</label>
<select name="scaling" id="scaling">
<option value="scale"<?php if ($this->profile['scaling'] == 'scale'): echo ' selected="selected"'; endif; ?>>Scale</option>
<option value="fit"<?php if ($this->profile['scaling'] == 'fit'): echo ' selected="selected"'; endif; ?>>Fit</option>
<option value="half"<?php if ($this->profile['scaling'] == 'half'): echo ' selected="selected"'; endif; ?>>Half</option>
<option value="orig"<?php if ($this->profile['scaling'] == 'orig'): echo ' selected="selected"'; endif; ?>>Orig</option>
</select>
</div>
</fieldset>
<fieldset>
<legend>Advertising Configuration</legend>
<div class="required">
<label for="adv">Advertising</label>
<input name="adv" type="radio" id="adv" class="radio" value="1" <?php if ($this->profile['adv'] == '1'): echo ' checked="checked"'; endif; ?>/> Yes
<input name="adv" type="radio" class="radio" value="0" <?php if ($this->profile['adv'] == '0'): echo ' checked="checked"'; endif; ?>/> No
</div>
<div class="required">
<label for="adv_text">Text Advertising</label>
<input name="adv_text" type="radio" id="adv_text" class="radio" value="1" <?php if ($this->profile['adv_text'] == '1'): echo ' checked="checked"'; endif; ?>/> Yes
<input name="adv_text" type="radio" class="radio" value="0" <?php if ($this->profile['adv_text'] == '0'): echo ' checked="checked"'; endif; ?>/> No
</div>
<div class="required">
<label for="adv_image">Image Advertising</label>
<input name="adv_image" type="radio" id="adv_image" class="radio" value="1" <?php if ($this->profile['adv_image'] == '1'): echo ' checked="checked"'; endif; ?>/> Yes
<input name="adv_image" type="radio" class="radio" value="0" <?php if ($this->profile['adv_image'] == '0'): echo ' checked="checked"'; endif; ?>/> No
</div>
<div class="required">
<label for="adv_media">Media Advertising</label>
<input name="adv_media" type="radio" id="adv_media" class="radio" value="1" <?php if ($this->profile['adv_media'] == '1'): echo ' checked="checked"'; endif; ?>/> Yes
<input name="adv_media" type="radio" class="radio" value="0" <?php if ($this->profile['adv_media'] == '0'): echo ' checked="checked"'; endif; ?>/> No
</div>
</fieldset>
<fieldset>
<legend>Elements Configuration</legend>
<div class="required">
<label for="play">Play Button</label>
<select name="play" id="play">
<option value="false"<?php if ($this->profile['play'] == 'false'): echo ' selected="selected"'; endif; ?>>Disabled</option>
<option value="true"<?php if ($this->profile['play'] == 'true'): echo ' selected="selected"'; endif; ?>>Enabled</option>
</select>
</div>
<div class="required">
<label for="volume">Volume Button</label>
<select name="volume" id="volume">
<option value="false"<?php if ($this->profile['volume'] == 'false'): echo ' selected="selected"'; endif; ?>>Disabled</option>
<option value="true"<?php if ($this->profile['volume'] == 'true'): echo ' selected="selected"'; endif; ?>>Enabled</option>
</select>
</div>
<div class="required">
<label for="mute">Mute Button</label>
<select name="mute" id="mute">
<option value="false"<?php if ($this->profile['mute'] == 'false'): echo ' selected="selected"'; endif; ?>>Disabled</option>
<option value="true"<?php if ($this->profile['mute'] == 'true'): echo ' selected="selected"'; endif; ?>>Enabled</option>
</select>
</div>
<div class="required">
<label for="time">Time</label>
<select name="time" id="time">
<option value="false"<?php if ($this->profile['time'] == 'false'): echo ' selected="selected"'; endif; ?>>Disabled</option>
<option value="true"<?php if ($this->profile['time'] == 'true'): echo ' selected="selected"'; endif; ?>>Enabled</option>
</select>
</div>
<div class="required">
<label for="stop">Stop Button</label>
<select name="stop" id="stop">
<option value="false"<?php if ($this->profile['stop'] == 'false'): echo ' selected="selected"'; endif; ?>>Disabled</option>
<option value="true"<?php if ($this->profile['stop'] == 'true'): echo ' selected="selected"'; endif; ?>>Enabled</option>
</select>
</div>
<div class="required">
<label for="playlist">Playlist Buttons</label>
<select name="playlist" id="playlist">
<option value="false"<?php if ($this->profile['playlist'] == 'false'): echo ' selected="selected"'; endif; ?>>Disabled</option>
<option value="true"<?php if ($this->profile['playlist'] == 'true'): echo ' selected="selected"'; endif; ?>>Enabled</option>
</select>
</div>
<div class="required">
<label for="playlist">Fullscreen Button</label>
<select name="fullscreen" id="fullscreen">
<option value="false"<?php if ($this->profile['fullscreen'] == 'false'): echo ' selected="selected"'; endif; ?>>Disabled</option>
<option value="true"<?php if ($this->profile['fullscreen'] == 'true'): echo ' selected="selected"'; endif; ?>>Enabled</option>
</select>
</div>
<div class="required">
<label for="tooltips">Button Tooltips</label>
<select name="tooltips" id="tooltips">
<option value="0"<?php if ($this->profile['tooltips'] == '0'): echo ' selected="selected"'; endif; ?>>Disabled</option>
<option value="1"<?php if ($this->profile['tooltips'] == '1'): echo ' selected="selected"'; endif; ?>>Enabled</option>
</select>
</div>
</fieldset>
<fieldset>
<legend>Canvas Configuration</legend>
<div class="required">
<label for="canvas_backgroundColor">Background Color</label>
<input name="canvas_backgroundColor" type="text" id="canvas_backgroundColor" class="small color_selector" maxlength="7" value="<?php echo e($this->profile['canvas_backgroundColor']); ?>" />
</div>
<div class="required">
<label for="canvas_backgroundGradient">Background Gradient</label>
<select name="canvas_backgroundGradient" id="canvas_backgroundGradient">
<option value="none"<?php if ($this->profile['canvas_backgroundGradient'] == 'none'): echo ' selected="selected"'; endif; ?>>None</option>
<option value="low"<?php if ($this->profile['canvas_backgroundGradient'] == 'low'): echo ' selected="selected"'; endif; ?>>Low</option>
<option value="medium"<?php if ($this->profile['canvas_backgroundGradient'] == 'medium'): echo ' selected="selected"'; endif; ?>>Medium</option>
<option value="high"<?php if ($this->profile['canvas_backgroundGradient'] == 'high'): echo ' selected="selected"'; endif; ?>>High</option>
</select>
</div>
</fieldset>
<fieldset>
<legend>Controlbar Skinning</legend>
<div class="required">
<label for="backgroundColor">Background Color</label>
<input name="backgroundColor" type="text" id="backgroundColor" class="small color_selector" maxlength="7" value="<?php echo e($this->profile['backgroundColor']); ?>" />
</div>
<div class="required">
<label for="backgroundGradient">Background Gradient</label>
<select name="backgroundGradient" id="backgroundGradient">
<option value="none"<?php if ($this->profile['backgroundGradient'] == 'none'): echo ' selected="selected"'; endif; ?>>None</option>
<option value="low"<?php if ($this->profile['backgroundGradient'] == 'low'): echo ' selected="selected"'; endif; ?>>Low</option>
<option value="medium"<?php if ($this->profile['backgroundGradient'] == 'medium'): echo ' selected="selected"'; endif; ?>>Medium</option>
<option value="high"<?php if ($this->profile['backgroundGradient'] == 'high'): echo ' selected="selected"'; endif; ?>>High</option>
</select>
</div>
<div class="required">
<label for="buttonColor">Button Color</label>
<input name="buttonColor" type="text" id="buttonColor" class="small color_selector" maxlength="7" value="<?php echo e($this->profile['buttonColor']); ?>" />
</div>
<div class="required">
<label for="buttonOverColor">Button Over Color</label>
<input name="buttonOverColor" type="text" id="buttonOverColor" class="small color_selector" maxlength="7" value="<?php echo e($this->profile['buttonOverColor']); ?>" />
</div>
<div class="required">
<label for="bufferColor">Buffer Color</label>
<input name="bufferColor" type="text" id="bufferColor" class="small color_selector" maxlength="7" value="<?php echo e($this->profile['bufferColor']); ?>" />
</div>
<div class="required">
<label for="bufferGradient">Buffer Gradient</label>
<select name="bufferGradient" id="bufferGradient">
<option value="none"<?php if ($this->profile['bufferGradient'] == 'none'): echo ' selected="selected"'; endif; ?>>None</option>
<option value="low"<?php if ($this->profile['bufferGradient'] == 'low'): echo ' selected="selected"'; endif; ?>>Low</option>
<option value="medium"<?php if ($this->profile['bufferGradient'] == 'medium'): echo ' selected="selected"'; endif; ?>>Medium</option>
<option value="high"<?php if ($this->profile['bufferGradient'] == 'high'): echo ' selected="selected"'; endif; ?>>High</option>
</select>
</div>
<div class="required">
<label for="timeColor">Time Color</label>
<input name="timeColor" type="text" id="timeColor" class="small color_selector" maxlength="7" value="<?php echo e($this->profile['timeColor']); ?>" />
</div>
<div class="required">
<label for="timeBgColor">Time Background Color</label>
<input name="timeBgColor" type="text" id="timeBgColor" class="small color_selector" maxlength="7" value="<?php echo e($this->profile['timeBgColor']); ?>" />
</div>
<div class="required">
<label for="durationColor">Duration Color</label>
<input name="durationColor" type="text" id="durationColor" class="small color_selector" maxlength="7" value="<?php echo e($this->profile['durationColor']); ?>" />
</div>
<div class="required">
<label for="sliderColor">Slider Color</label>
<input name="sliderColor" type="text" id="sliderColor" class="small color_selector" maxlength="7" value="<?php echo e($this->profile['sliderColor']); ?>" />
</div>
<div class="required">
<label for="sliderGradient">Slider Gradient</label>
<select name="sliderGradient" id="sliderGradient">
<option value="none"<?php if ($this->profile['sliderGradient'] == 'none'): echo ' selected="selected"'; endif; ?>>None</option>
<option value="low"<?php if ($this->profile['sliderGradient'] == 'low'): echo ' selected="selected"'; endif; ?>>Low</option>
<option value="medium"<?php if ($this->profile['sliderGradient'] == 'medium'): echo ' selected="selected"'; endif; ?>>Medium</option>
<option value="high"<?php if ($this->profile['sliderGradient'] == 'high'): echo ' selected="selected"'; endif; ?>>High</option>
</select>
</div>
<div class="required">
<label for="progressColor">Progress Color</label>
<input name="progressColor" type="text" id="progressColor" class="small color_selector" maxlength="7" value="<?php echo e($this->profile['progressColor']); ?>" />
</div>
<div class="required">
<label for="progressGradient">Progress Gradient</label>
<select name="progressGradient" id="progressGradient">
<option value="none"<?php if ($this->profile['progressGradient'] == 'none'): echo ' selected="selected"'; endif; ?>>None</option>
<option value="low"<?php if ($this->profile['progressGradient'] == 'low'): echo ' selected="selected"'; endif; ?>>Low</option>
<option value="medium"<?php if ($this->profile['progressGradient'] == 'medium'): echo ' selected="selected"'; endif; ?>>Medium</option>
<option value="high"<?php if ($this->profile['progressGradient'] == 'high'): echo ' selected="selected"'; endif; ?>>High</option>
</select>
</div>
<div class="required">
<label for="volumeSliderColor">Volume Slider Color</label>
<input name="volumeSliderColor" type="text" id="volumeSliderColor" class="small color_selector" maxlength="7" value="<?php echo e($this->profile['volumeSliderColor']); ?>" />
</div>
<div class="required">
<label for="volumeSliderGradient">Volume Slider Gradient</label>
<select name="volumeSliderGradient" id="volumeSliderGradient">
<option value="none"<?php if ($this->profile['volumeSliderGradient'] == 'none'): echo ' selected="selected"'; endif; ?>>None</option>
<option value="low"<?php if ($this->profile['volumeSliderGradient'] == 'low'): echo ' selected="selected"'; endif; ?>>Low</option>
<option value="medium"<?php if ($this->profile['volumeSliderGradient'] == 'medium'): echo ' selected="selected"'; endif; ?>>Medium</option>
<option value="high"<?php if ($this->profile['volumeSliderGradient'] == 'high'): echo ' selected="selected"'; endif; ?>>High</option>
</select>
</div>
<div class="required">
<label for="borderRadius">Border Radius</label>
<select name="borderRadius" id="borderRadius">
<option value="0"<?php if ($this->profile['borderRadius'] == '0'): echo ' selected="selected"'; endif; ?>>0</option>
<option value="5"<?php if ($this->profile['borderRadius'] == '5'): echo ' selected="selected"'; endif; ?>>5</option>
<option value="10"<?php if ($this->profile['borderRadius'] == '10'): echo ' selected="selected"'; endif; ?>>10</option>
<option value="15"<?php if ($this->profile['borderRadius'] == '15'): echo ' selected="selected"'; endif; ?>>15</option>
<option value="25"<?php if ($this->profile['borderRadius'] == '25'): echo ' selected="selected"'; endif; ?>>25</option>
<option value="30"<?php if ($this->profile['borderRadius'] == '30'): echo ' selected="selected"'; endif; ?>>30</option>
</select>
</div>
<div class="required">
<label for="tooltipColor">Tooltip Color</label>
<input name="tooltipColor" type="text" id="tooltipColor" class="small color_selector" maxlength="7" value="<?php echo e($this->profile['tooltipColor']); ?>" />
</div>
<div class="required">
<label for="tooltipTextColor">Tooltip Text Color</label>
<input name="tooltipTextColor" type="text" id="tooltipTextColor" class="small color_selector" maxlength="7" value="<?php echo e($this->profile['tooltipTextColor']); ?>" />
</div>
</fieldset>
<fieldset>
<legend>Controlbar Dimensions</legend>
<div class="required">
<label for="height">Height</label>
<input name="height" type="text" id="height" class="tiny" value="<?php echo e($this->profile['height']); ?>" />
</div>
</fieldset>
<div class="submit">
<input name="submit_edit_player" type="submit" id="submit_edit_player" class="button butDef" value=" Update Player Profile " />
</div>
</form>
<?php else: ?>
<div class="none">Invalid player profile! Are you sure this player profile exists!?</div>
<?php endif; ?>
</div>
</div>
</div>