Файл: adultscript-2.0.3-pro/files/admin/templates/default/user_config.tpl.php
Строк: 621
<?php defined('_VALID') or die('Restricted Access!'); ?>
<?php echo $this->fetch('errors'); ?>
<?php echo $this->fetch('messages'); ?>
<?php echo $this->fetch('warnings'); ?>
<script type="text/javascript">
$(document).ready(function() {
$("select[name='guest_limit']").change(function() {
$("div[id^='container_guest_']").hide();
$("#container_guest_" + $(this).val()).show();
});
});
</script>
<div id="container" class="clearfix">
<div id="page">
<?php echo $this->fetch('user_menu'); ?>
<div class="content clearfix">
<div class="clearfix tabbar barProds">
<ul class="tabs">
<li class="tab5"><a href="#" onclick="showOnly('tab5','barProds')"><img src="<?php echo TPL_REL; ?>/images/icons/plus-small.png" alt="Advanced!" />Advanced</a></li>
<li class="tab4"><a href="#" onclick="showOnly('tab4','barProds')"><img src="<?php echo TPL_REL; ?>/images/icons/plus-small.png" alt="Points!" />Points</a></li>
<li class="tab3"><a href="#" onclick="showOnly('tab3','barProds')"><img src="<?php echo TPL_REL; ?>/images/icons/plus-small.png" alt="Restrictions!" />Restrictions</a></li>
<li class="tab2"><a href="#" onclick="showOnly('tab2','barProds')"><img src="<?php echo TPL_REL; ?>/images/icons/plus-small.png" alt="Avatar!" />Avatar</a></li>
<li class="tab1"><a href="#" onclick="showOnly('tab1','barProds')" class="selected"><img src="<?php echo TPL_REL; ?>/images/icons/plus-small.png" alt="Registration!" />Registration</a></li>
</ul>
<div class="tabContent clearfix">
<form id="user-config-form" method="post" action="<?php echo ADMIN_URL; ?>/index.php?q=user/config">
<div class="tab1">
<fieldset>
<legend>Registration Settings</legend>
<div class="required">
<label for="signup_enabled">Allow Registration</label>
<input name="signup_enabled" type="radio" id="signup_enabled" class="radio" value="1"<?php if ($this->ucfg['signup_enabled'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="signup_enabled" type="radio" class="radio" value="0"<?php if ($this->ucfg['signup_enabled'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="user_approve">Approve Users</label>
<input name="user_approve" type="radio" id="user_approve" class="radio" value="1"<?php if ($this->ucfg['user_approve'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="user_approve" type="radio" class="radio" value="0"<?php if ($this->ucfg['user_approve'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="user_confirm">Email Verification</label>
<input name="user_confirm" type="radio" id="user_confirm" class="radio" value="1"<?php if ($this->ucfg['user_confirm'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="user_confirm" type="radio" class="radio" value="0"<?php if ($this->ucfg['user_confirm'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
</fieldset>
<fieldset>
<legend>Registration Page</legend>
<div class="required">
<label for="signup_name">Show Name</label>
<input name="signup_name" type="radio" id="signup_name" class="radio" value="1"<?php if ($this->ucfg['signup_name'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="signup_name" type="radio" class="radio" value="0"<?php if ($this->ucfg['signup_name'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="signup_gender">Show Gender</label>
<input name="signup_gender" type="radio" id="signup_gender" class="radio" value="1"<?php if ($this->ucfg['signup_gender'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="signup_gender" type="radio" class="radio" value="0"<?php if ($this->ucfg['signup_gender'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="signup_birth_date">Show Birth Date</label>
<input name="signup_birth_date" type="radio" id="signup_birth_date" class="radio" value="1"<?php if ($this->ucfg['signup_birth_date'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="signup_birth_date" type="radio" class="radio" value="0"<?php if ($this->ucfg['signup_birth_date'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="signup_country">Show Country</label>
<input name="signup_country" type="radio" id="signup_country" class="radio" value="1"<?php if ($this->ucfg['signup_country'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="signup_country" type="radio" class="radio" value="0"<?php if ($this->ucfg['signup_country'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="signup_city">Show City</label>
<input name="signup_city" type="radio" id="signup_city" class="radio" value="1"<?php if ($this->ucfg['signup_city'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="signup_city" type="radio" class="radio" value="0"<?php if ($this->ucfg['signup_city'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="signup_zip">Show ZIP</label>
<input name="signup_zip" type="radio" id="signup_zip" class="radio" value="1"<?php if ($this->ucfg['signup_zip'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="signup_zip" type="radio" class="radio" value="0"<?php if ($this->ucfg['signup_zip'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="signup_age">Required Age</label>
<input name="signup_age" type="text" id="signup_age" class="tiny" value="<?php echo $this->ucfg['signup_age']; ?>" />
</div>
</fieldset>
<fieldset>
<legend>Captcha Settings</legend>
<div class="required">
<label for="signup_captcha">Require Captcha</label>
<input name="signup_captcha" type="radio" id="signup_captcha" class="radio" value="1"<?php if ($this->ucfg['signup_captcha'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="signup_captcha" type="radio" class="radio" value="0"<?php if ($this->ucfg['signup_captcha'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
</fieldset>
</div>
<div class="tab2" style="display: none">
<fieldset>
<legend>Avatar Settings</legend>
<div class="required">
<label for="avatar_allowed_ext">Allowed Extensions</label>
<input name="avatar_allowed_ext" type="text" id="avatar_allowed_ext" class="large" value="<?php echo e(implode(',', $this->ucfg['avatar_allowed_ext'])); ?>" />
</div>
<div class="required">
<label for="avatar_max_size">Maximum Size</label>
<input name="avatar_max_size" type="text" id="avatar_max_size" class="tiny" value="<?php echo $this->ucfg['avatar_max_size']; ?>" /> MB
</div>
<div class="required">
<label for="avatar_width">Width</label>
<input name="avatar_width" type="text" id="avatar_width" class="tiny" value="<?php echo $this->ucfg['avatar_width']; ?>" />
</div>
<div class="required">
<label for="avatar_height">Height</label>
<input name="avatar_height" type="text" id="avatar_height" class="tiny" value="<?php echo $this->ucfg['avatar_height']; ?>" />
</div>
<div class="required">
<label for="avatar_method">Method</label>
<select name="avatar_method" id="avatar_method">
<option value="canvas"<?php if ($this->ucfg['avatar_method'] == 'canvas'): echo ' selected="selected"'; endif; ?>>Canvas</option>
<option value="crop"<?php if ($this->ucfg['avatar_method'] == 'crop'): echo ' selected="selected"'; endif; ?>>Crop</option>
</select>
</div>
</fieldset>
</div>
<div class="tab3" style="display: none;">
<fieldset>
<legend>Restrictions Options</legend>
<fieldset>
<legend>Guest Settings</legend>
<div class="required">
<label for="guest_limit">Enable Guest Limit</label>
<select name="guest_limit" id="guest_limit">
<option value="0"<?php if ($this->ucfg['guest_limit'] == '0'): echo ' selected="selected"'; endif; ?>>Disabled</option>
<option value="bandwidth"<?php if ($this->ucfg['guest_limit'] == 'bandwidth'): echo ' selected="selected"'; endif; ?>>Bandwidth</option>
<option value="duration"<?php if ($this->ucfg['guest_limit'] == 'duration'): echo ' selected="selected"'; endif; ?>>Duration</option>
<option value="views"<?php if ($this->ucfg['guest_limit'] == 'views'): echo ' selected="selected"'; endif; ?>>Views</option>
</select>
</div>
<div id="container_guest_bandwidth" class="required"<?php if ($this->ucfg['guest_limit'] != 'bandwidth'): echo ' style="display: none;"'; endif; ?>>
<label for="guest_bandwidth">Guest Bandwidth</label>
<input name="guest_bandwidth" type="text" id="guest_bandwidth" class="tiny" value="<?php echo $this->ucfg['guest_bandwidth']; ?>" /> MB
</div>
<div id="container_guest_duration" class="required"<?php if ($this->ucfg['guest_limit'] != 'duration'): echo ' style="display: none;"'; endif; ?>>
<label for="guest_duration">Guest Duration</label>
<input name="guest_duration" type="text" id="guest_duration" class="tiny" value="<?php echo $this->ucfg['guest_duration']; ?>" /> Seconds
</div>
<div id="container_guest_views" class="required"<?php if ($this->ucfg['guest_limit'] != 'views'): echo ' style="display: none;"'; endif; ?>>
<label for="guest_views">Guest Views</label>
<input name="guest_views" type="text" id="guest_views" class="tiny" value="<?php echo $this->ucfg['guest_views']; ?>" /> Views
</div>
<div class="required">
<label for="guest_limit">Guest Clean</label>
<select name="guest_clean" id="guest_clean">
<option value="0"<?php if ($this->ucfg['guest_clean'] == '0'): echo ' selected="selected"'; endif; ?>>Disabled</option>
<option value="1"<?php if ($this->ucfg['guest_clean'] == '1'): echo ' selected="selected"'; endif; ?>>Every Day</option>
<option value="7"<?php if ($this->ucfg['guest_clean'] == '7'): echo ' selected="selected"'; endif; ?>>Every Week</option>
<option value="30"<?php if ($this->ucfg['guest_clean'] == '30'): echo ' selected="selected"'; endif; ?>>Every Month</option>
</select>
<span class="help-info">Timeframe to clean the guest entries!</span>
</div>
</fieldset>
<?php if (VModule::valid('premium')): ?>
<fieldset>
<legend>Registered Settings</legend>
<div class="required">
<label for="registered_method">Registered Method: </label>
<select name="registered_method" id="registered_method">
<option value="0"<?php if ($this->user['registered_method'] == '0'): echo ' selected="selected"'; endif; ?>>Disabled</option>
<option value="1"<?php if ($this->user['registered_method'] == '1'): echo ' selected="selected"'; endif; ?>>Per Day</option>
<option value="2"<?php if ($this->user['registered_method'] == '2'): echo ' selected="selected"'; endif; ?>>Overall</option>
</select>
</div>
<div class="required">
<label for="registered_limit">Registered Limit: </label>
<input name="registered_limit" type="text" id="registered_limit" class="small" value="<?php echo $this->ucfg['registered_limit']; ?>" /> seconds
</div>
</fieldset>
<?php endif; ?>
</fieldset>
</div>
<div class="tab4" style="display: none;">
<fieldset>
<legend>Points Settings</legend>
<div class="required">
<label for="user_points">Points Enabled</label>
<input name="user_points" type="radio" id="user_points" class="radio" value="1"<?php if ($this->ucfg['user_points'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="user_points" type="radio" class="radio" value="0"<?php if ($this->ucfg['user_points'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div id="points_container"<?php if ($this->ucfg['user_points'] == '0'): echo ' style="display: none;"'; endif; ?>>
<div class="required">
<label for="point_signup">Signup</label>
<input name="point_signup" type="text" id="point_signup" class="tiny" value="<?php echo $this->ucfg['points']['signup']; ?>" />
</div>
<div class="required">
<label for="point_login">Login</label>
<input name="point_login" type="text" id="point_login" class="tiny" value="<?php echo $this->ucfg['points']['login']; ?>" />
</div>
<div class="required">
<label for="point_avatar">Avatar</label>
<input name="point_avatar" type="text" id="point_avatar" class="tiny" value="<?php echo $this->ucfg['points']['avatar']; ?>" />
</div>
<div class="required">
<label for="point_friend_add">Friend Add</label>
<input name="point_friend_add" type="text" id="point_friend_add" class="tiny" value="<?php echo $this->ucfg['points']['friend_add']; ?>" />
</div>
<div class="required">
<label for="point_friend_del">Friend Remove</label>
<input name="point_friend_del" type="text" id="point_friend_del" class="tiny" value="<?php echo $this->ucfg['points']['friend_del']; ?>" />
</div>
<div class="required">
<label for="point_rate">User Rating</label>
<input name="point_rate" type="text" id="point_rate" class="tiny" value="<?php echo $this->ucfg['points']['rate']; ?>" />
</div>
<div class="required">
<label for="point_upload_video">Upload Video</label>
<input name="point_upload_video" type="text" id="point_upload_video" class="tiny" value="<?php echo $this->ucfg['points']['upload_video']; ?>" />
</div>
<div class="required">
<label for="point_rate_video">Rate Video</label>
<input name="point_rate_video" type="text" id="point_rate_video" class="tiny" value="<?php echo $this->ucfg['points']['rate_video']; ?>" />
</div>
<div class="required">
<label for="point_share_video">Share Video</label>
<input name="point_share_video" type="text" id="point_share_video" class="tiny" value="<?php echo $this->ucfg['points']['share_video']; ?>" />
</div>
<div class="required">
<label for="point_favorite_video">Favorite Video</label>
<input name="point_favorite_video" type="text" id="point_favorite_video" class="tiny" value="<?php echo $this->ucfg['points']['favorite_video']; ?>" />
</div>
<div class="required">
<label for="point_delete_video">Delete Video</label>
<input name="point_delete_video" type="text" id="point_delete_video" class="tiny" value="<?php echo $this->ucfg['points']['delete_video']; ?>" />
</div>
</div>
</fieldset>
</div>
<div class="tab5" style="display: none;">
<fieldset>
<legend>Account Settings</legend>
<div class="required">
<label for="account_pwd_check">Require Password</label>
<input name="account_pwd_check" type="radio" id="account_pwd_check" class="radio" value="1"<?php if ($this->ucfg['account_pwd_check'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="account_pwd_check" type="radio" class="radio" value="0"<?php if ($this->ucfg['account_pwd_check'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="account_username_change">Username Change</label>
<input name="account_username_change" type="radio" id="account_username_change" class="radio" value="1"<?php if ($this->ucfg['account_username_change'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="account_username_change" type="radio" class="radio" value="0"<?php if ($this->ucfg['account_username_change'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
</fieldset>
<fieldset>
<legend>User Advertising</legend>
<div class="required">
<label for="advertising">Allow Advertising</label>
<input name="advertising" type="radio" id="advertising" class="radio" value="1"<?php if ($this->ucfg['advertising'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="advertising" type="radio" class="radio" value="0"<?php if ($this->ucfg['advertising'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
</fieldset>
<fieldset>
<legend>Expire Settings</legend>
<div class="required">
<label for="online_expire">Online Expire</label>
<input name="online_expire" type="text" id="online_expire" class="tiny" value="<?php echo $this->ucfg['online_expire']; ?>" /> minutes
</div>
<div class="required">
<label for="verify_expire">Email Verification Expire</label>
<input name="verify_expire" type="text" id="verify_expire" class="tiny" value="<?php echo $this->ucfg['verify_expire']; ?>" /> days
</div>
</fieldset>
<fieldset>
<legend>Miscelanous</legend>
<div class="required">
<label for="username_min_length">Username Min Length</label>
<input name="username_min_length" type="text" id="username_min_length" class="tiny" value="<?php echo $this->ucfg['username_min_length']; ?>" />
</div>
<div class="required">
<label for="username_max_length">Username Max Length</label>
<input name="username_max_length" type="text" id="username_max_length" class="tiny" value="<?php echo $this->ucfg['username_max_length']; ?>" />
</div>
<div class="required">
<label for="pwd_min_length">Password Min Length</label>
<input name="pwd_min_length" type="text" id="pwd_min_length" class="tiny" value="<?php echo $this->ucfg['pwd_min_length']; ?>" />
</div>
<div class="required">
<label for="pwd_max_length">Password Max Length</label>
<input name="pwd_max_length" type="text" id="pwd_max_length" class="tiny" value="<?php echo $this->ucfg['pwd_max_length']; ?>" />
</div>
</fieldset>
</div>
<div class="submit">
<input name="submit_config" type="submit" id="submit_config" class="button butDef" value=" Save " />
<input name="submit_default" type="submit" id="submit_default" class="button butDef" value=" Default " />
</div>
</form>
</div>
</div>
</div>
</div>
</div>