Просмотр файла templates/subSilver/admin/reputation_body.tpl

Размер файла: 14.2Kb
<script type="text/javascript" language="javascript">
	function confirm_validate()
	{
		if(document.getElementById("confirm").checked)
		{
			return true;
		}
		alert("{L_CHECK_CONFIRM}");
		return false;
	}

	function radio_check(e)
	{
		if (!e) e = window.event;
		var el = e.target ? e.target : e.srcElement;
		el = el.firstChild;
		if (el && el.tagName && el.tagName.toLowerCase() == 'input') {
			el.click();
		}
		e.cancelBubble = true;
	}
</script>
<h1>{L_DEMOCRACY}</h1>
<p>{L_DEMOCRACY_EXP}</p>

<style type="text/css">
	input { text-indent: 0px; margin-bottom: 0px; }
	input[type="text"] { vertical-align: middle; border-width: 1px; text-indent: 2px; margin-bottom: 3px; margin-top: 1px;}
	label { padding-left: 3px; }
	.note { font-size: 10px; color: #808080; margin-left: 2em; }

	.perms td { text-align: center; border-bottom: 1px solid #fff; }
	td.left { text-align: left; }
</style>

<form action="{S_REPUTATION_ACTION}" method="post" name="democracy" onsubmit="javascript:return confirm_validate();">
<table border="0" cellpadding="5" cellspacing="1" class="forumline" align="center" style="width: 650px">
<tr>
	<th class="row2">{L_REPUTATION_OPTIONS}</th>
</tr>
<tr>
	<td class="row1"><input id="reputation" type="checkbox" name="reputation" {S_REPUTATION_CHECKED}/><label for="reputation">{L_ENABLE_REPUTATION}</label>
		<div style="margin-left: 2em;">
		<input type="checkbox" name="positive_only" id="positive_only" {S_POSITIVE_ONLY}/><label for="positive_only">{L_POSITIVE_ONLY}</label><br />
		<div class="note">{L_POSITIVE_ONLY_EXP}</div>
		<input type="checkbox" name="empty_reviews" id="empty_reviews" {S_EMPTY_REVIEWS}/><label for="empty_reviews">{L_EMPTY_REVIEWS}</label><br />
		</div>
	</td>
</tr>
<tr>
	<td class="row1">
		<table class="perms" onclick="javascript:radio_check(event)">
			<tr>
				<td class="left"><strong>{L_ACCESS_RIGHTS}</strong></td>
				<td style="width: 80px">{L_USER}<span style="visibility: hidden">*</span></td>
				<td style="width: 80px">{L_MODERATOR}<span style="visibility: hidden">**</span></td>
				<td style="width: 80px">{L_ADMIN}</td>
			</tr>
			<tr>
				<td class="left">{L_ADD_REP}</td>
				<td><input name="auth_add_rep" type="radio" value="{AUTH_REG}" {S_ADD_REP_CHECKED_0}/><span style="visibility: hidden">*</span></td>
				<td><input name="auth_add_rep" type="radio" value="{AUTH_MOD}" {S_ADD_REP_CHECKED_1}/><span style="visibility: hidden">**</span></td>
				<td><input name="auth_add_rep" type="radio" value="{AUTH_ADMIN}" {S_ADD_REP_CHECKED_2}/></td>
			</tr>
			<tr>
				<td class="left">{L_ADD_REP_NONPOST}</td>
				<td><input name="auth_add_rep_nonpost" type="radio" value="{AUTH_REG}" {S_ADD_REP_NONPOST_CHECKED_0}/><span style="visibility: hidden">*</span></td>
				<td><input name="auth_add_rep_nonpost" type="radio" value="{AUTH_MOD}" {S_ADD_REP_NONPOST_CHECKED_1}/><span style="visibility: hidden">**</span></td>
				<td><input name="auth_add_rep_nonpost" type="radio" value="{AUTH_ADMIN}" {S_ADD_REP_NONPOST_CHECKED_2}/></td>
			</tr>
			<tr>
				<td class="left">{L_EDIT_REP}</td>
				<td><input name="auth_edit_rep" type="radio" value="{AUTH_REG}" {S_EDIT_REP_CHECKED_0}/>*</td>
				<td><input name="auth_edit_rep" type="radio" value="{AUTH_MOD}" {S_EDIT_REP_CHECKED_1}/>**</sup></td>
				<td><input name="auth_edit_rep" type="radio" value="{AUTH_ADMIN}" {S_EDIT_REP_CHECKED_2}/></td>
			</tr>
			<tr>
				<td class="left">{L_DELETE_REP}</td>
				<td><input name="auth_delete_rep" type="radio" value="{AUTH_REG}" {S_DELETE_REP_CHECKED_0}/>*</td>
				<td><input name="auth_delete_rep" type="radio" value="{AUTH_MOD}" {S_DELETE_REP_CHECKED_1}/>**</td>
				<td><input name="auth_delete_rep" type="radio" value="{AUTH_ADMIN}" {S_DELETE_REP_CHECKED_2}/></td>
			</tr>
			<tr>
				<td class="left">{L_NO_LIMITS}</td>
				<td>&nbsp;</td>
				<td><input name="auth_no_limits" type="radio" value="{AUTH_MOD}" {S_NO_LIMITS_CHECKED_1}/><span style="visibility: hidden">**</span></td>
				<td><input name="auth_no_limits" type="radio" value="{AUTH_ADMIN}" {S_NO_LIMITS_CHECKED_2}/></td>
			</tr>
			<tr>
				<td class="left">{L_NOT_APPLICABLE}</td>
				<td>&nbsp;</td>
				<td><input name="mod_norep" type="checkbox" {S_MOD_NOREP_CHECKED}/><span style="visibility: hidden">**</span></td>
				<td><input name="admin_norep" type="checkbox" {S_ADMIN_NOREP_CHECKED}/></td>
			</tr>
		</table>
		{L_REPUTATION_PERMS_NOTE}
		<br />
		<br />
		<input type="checkbox" id="anonymous_view_rep" name="anonymous_view_rep" {S_ANONYMOUS_VIEW_REP_CHECKED}/><label for="anonymous_view_rep">{L_ANONYMOUS_VIEW_REP}</label>
</tr>
<tr>
	<td class="row1">
		<strong>{L_PREREQUIREMENTS}</strong><br />
		<input type="checkbox" name="enable_days_req" id="enable_days_req" {S_ENABLE_DAYS_REQ}/><label for="enable_days_req">{L_DAYS_REQ_0}</label><input type="text" name="days_req" size="5" maxlength="4" value="{S_DAYS_REQ}" /><label for="enable_days_req">{L_DAYS_REQ_1}</label><br />
		<input type="checkbox" name="enable_posts_req" id="enable_posts_req" {S_ENABLE_POSTS_REQ}/><label for="enable_posts_req">{L_POSTS_REQ_0}</label><input type="text" name="posts_req" size="5" maxlength="4" value="{S_POSTS_REQ}" /><label for="enable_posts_req">{L_POSTS_REQ_1}</label><br />
		<input type="checkbox" name="enable_warnings_req" id="enable_warnings_req" {S_ENABLE_WARNINGS_REQ}/><label for="enable_warnings_req">{L_WARNINGS_REQ_0}</label><input type="text" name="warnings_req" size="5" maxlength="4" value="{S_WARNINGS_REQ}" /><label for="enable_warnings_req">{L_WARNINGS_REQ_1}</label><br />
		<input type="checkbox" name="enable_reputation_req" id="enable_reputation_req" {S_ENABLE_REPUTATION_REQ}/><label for="enable_reputation_req">{L_REPUTATION_REQ_0}</label><input type="text" name="reputation_req" size="5" maxlength="5" value="{S_REPUTATION_REQ}" /><label for="enable_reputation_req">{L_REPUTATION_REQ_1}</label><br />
	</td>
</tr>
<tr>
	<td class="row1">
		<strong>{L_LIMITS}</strong><br />
		<input type="checkbox" name="enable_time_limit" id="enable_time_limit" {S_ENABLE_TIME_LIMIT}/><label for="enable_time_limit">{L_TIME_LIMIT_0}</label><input type="text" name="time_limit" size="7" maxlength="8" value="{S_TIME_LIMIT}" /><label for="enable_time_limit">{L_TIME_LIMIT_1}</label><br />
		<input type="checkbox" name="enable_rotation_limit" id="enable_rotation_limit" {S_ENABLE_ROTATION_LIMIT}/><label for="enable_rotation_limit">{L_ROTATION_LIMIT_0}</label><input type="text" name="rotation_limit" size="5" maxlength="4" value="{S_ROTATION_LIMIT}" /><label for="enable_rotation_limit">{L_ROTATION_LIMIT_1}</label>
		<div class="note">{L_ROTATION_LIMIT_EXP}</div>
	</td>
</tr>
<tr>
	<td class="row1">
		<strong>{L_INDEX_PAGE}</strong><br />
		<input type="checkbox" id="enable_most_respected" name="enable_most_respected" {S_ENABLE_MOST_RESPECTED}/><label for="enable_most_respected">{L_MOST_RESPECTED_0}</label><input type="text" name="most_respected" size="5" maxlength="4" value="{S_MOST_RESPECTED}" /><label for="enable_most_respected">{L_MOST_RESPECTED_1}</label><br />
		<input type="checkbox" id="enable_least_respected" name="enable_least_respected" {S_ENABLE_LEAST_RESPECTED}/><label for="enable_least_respected">{L_LEAST_RESPECTED_0}</label><input type="text" name="least_respected" size="5" maxlength="4" value="{S_LEAST_RESPECTED}" /><label for="enable_least_respected">{L_LEAST_RESPECTED_1}</label>
	</td>
</tr>
<tr>
	<td class="row1">
		<strong>{L_REPUTATION_DISPLAY}</strong><br />
		<input type="radio" id="reputation_display_0" name="reputation_display" value="{REPUTATION_SUM}" {S_REPUTATION_DISPLAY_0}/><label for="reputation_display_0">{L_DISPLAY_SUM}</label><br />
		<input type="radio" id="reputation_display_1" name="reputation_display" value="{REPUTATION_PLUSMINUS}" {S_REPUTATION_DISPLAY_1}/><label for="reputation_display_1">{L_DISPLAY_PLUSMINUS}</label>
	</td>
</tr>
<tr>
	<th>{L_WARNINGS_OPTIONS}</td>
</tr>
<tr>
	<td class="row1"><input type="checkbox" id="warnings" name="warnings" {S_WARNINGS_CHECKED}/><label for="warnings">{L_ENABLE_WARNINGS}</label></td>
</tr>
	<td class="row1">
		<table class="perms" onclick="javascript:radio_check(event)">
			<tr>
				<td class="left"><strong>{L_ACCESS_RIGHTS}</strong></td>
				<td style="width: 80px">{L_MODERATOR}<span style="visibility: hidden">*</span></td>
				<td style="width: 80px">{L_ADMIN}</td>
			</tr>
			<tr>
				<td class="left">{L_WARN}</td>
				<td><input name="auth_warn" type="radio" value="{AUTH_MOD}" {S_WARN_CHECKED_1}/><span style="visibility: hidden">*</span></td>
				<td><input name="auth_warn" type="radio" value="{AUTH_ADMIN}" {S_WARN_CHECKED_2}/></td>
			</tr>
			<tr>
				<td class="left">{L_WARN_NONPOST}</td>
				<td><input name="auth_warn_nonpost" type="radio" value="{AUTH_MOD}" {S_WARN_NONPOST_CHECKED_1}/><span style="visibility: hidden">*</span></td>
				<td><input name="auth_warn_nonpost" type="radio" value="{AUTH_ADMIN}" {S_WARN_NONPOST_CHECKED_2}/></td>
			</tr>
			<tr>
				<td class="left">{L_BAN}</td>
				<td><input name="auth_ban" type="radio" value="{AUTH_MOD}" {S_BAN_CHECKED_1}/><span style="visibility: hidden">*</span></td>
				<td><input name="auth_ban" type="radio" value="{AUTH_ADMIN}" {S_BAN_CHECKED_2}/></td>
			</tr>
			<tr>
				<td class="left">{L_BAN_NONPOST}</td>
				<td><input name="auth_ban_nonpost" type="radio" value="{AUTH_MOD}" {S_BAN_NONPOST_CHECKED_1}/><span style="visibility: hidden">*</span></td>
				<td><input name="auth_ban_nonpost" type="radio" value="{AUTH_ADMIN}" {S_BAN_NONPOST_CHECKED_2}/></td>
			</tr>
			<tr>
				<td class="left">{L_EDIT_WARNS}</td>
				<td><input name="auth_edit_warn" type="radio" value="{AUTH_MOD}" {S_EDIT_WARN_CHECKED_1}/>*</td>
				<td><input name="auth_edit_warn" type="radio" value="{AUTH_ADMIN}" {S_EDIT_WARN_CHECKED_2}/></td>
			</tr>
			<tr>
				<td class="left">{L_DELETE_WARNS}</td>
				<td><input name="auth_delete_warn" type="radio" value="{AUTH_MOD}" {S_DELETE_WARN_CHECKED_1}/>*</td>
				<td><input name="auth_delete_warn" type="radio" value="{AUTH_ADMIN}" {S_DELETE_WARN_CHECKED_2}/></td>
			</tr>
		</table>
		{L_WARNINGS_PERMS_NOTE}
		<br />
		<br />
		<input type="checkbox" id="anonymous_view_warns" name="anonymous_view_warns" {S_ANONYMOUS_VIEW_WARNS_CHECKED}/><label for="anonymous_view_warns">{L_ANONYMOUS_VIEW_WARNS}</label>
</tr>
<tr>
	<td class="row1">
		<strong>{L_WARNING_EXPIRY}</strong><br />
		<input type="radio" name="expire_mode" id="expire_mode_0" value="0" {S_EXPIRE_MODE_0}/><label for="expire_mode_0">{L_INFINITE}</label><br />
		<div class="note">{L_INFINITE_EXP}</div>
		<input type="radio" name="expire_mode" id="expire_mode_1" value="1" {S_EXPIRE_MODE_1}/><label for="expire_mode_1">{L_FIXED_0}</label><input type="text" name="expire_fixed" size="5" maxlength="4" value="{S_EXPIRE_FIXED}" />{L_FIXED_1}<br />
		<input type="radio" name="expire_mode" id="expire_mode_2" value="2" {S_EXPIRE_MODE_2}/><label for="expire_mode_2">{L_MODIFIABLE_0}</label><input type="text" name="expire_min" size="5" maxlength="4" value="{S_EXPIRE_MIN}" />{L_MODIFIABLE_1}<input type="text" name="expire_max" size="5" maxlength="4" value="{S_EXPIRE_MAX}" />{L_MODIFIABLE_2}
		<div class="note">{L_MODIFIABLE_EXP}</div>
	</td>
</tr>
<tr>
	<td class="row1">
		<strong>{L_BAN_EXPIRY}</strong><br />
		<input type="radio" name="ban_expire_mode" id="ban_expire_mode_0" value="0" {S_BAN_EXPIRE_MODE_0}/><label for="ban_expire_mode_0">{L_INFINITE}</label><br />
		<div class="note">{L_INFINITE_BAN_EXP}</div>
		<input type="radio" name="ban_expire_mode" id="ban_expire_mode_1" value="1"{S_BAN_EXPIRE_MODE_1}/><label for="ban_expire_mode_1">{L_FIXED_0}</label><input type="text" name="ban_expire_fixed" size="5" maxlength="4" value="{S_BAN_EXPIRE_FIXED}" />{L_FIXED_1}<br />
		<input type="radio" name="ban_expire_mode" id="ban_expire_mode_2" value="2"{S_BAN_EXPIRE_MODE_2}/><label for="ban_expire_mode_2">{L_MODIFIABLE_0}</label><input type="text" name="ban_expire_min" size="5" maxlength="4" value="{S_BAN_EXPIRE_MIN}" />{L_MODIFIABLE_1}<input type="text" name="ban_expire_max" size="5" maxlength="4" value="{S_BAN_EXPIRE_MAX}" />{L_MODIFIABLE_2}
		<div class="note">{L_MODIFIABLE_EXP}</div>
	</td>
</tr>
<tr>
	<td class="row1">
		<strong>{L_EXPIRED_WARNINGS}</strong><br />
		<input type="radio" id="enable_delete_expired_0" name="enable_delete_expired" value="0" {S_DELETE_EXPIRED_CHECKED_0}/><label for="enable_delete_expired_0">{L_STORE}</label><br />
		<input type="radio" id="enable_delete_expired_1" name="enable_delete_expired" value="1" {S_DELETE_EXPIRED_CHECKED_1}/><label for="enable_delete_expired_1">{L_DELETE_DAYS_0}</label><input type="text" name="delete_expired" size="5" maxlength="4" value="{S_DELETE_EXPIRED_DAYS}" />{L_DELETE_DAYS_1}<br />
		{L_CHECK_RATE_0}<input type="text" name="check_rate" size="5" maxlength="4" value="{S_CHECK_RATE}" />{L_CHECK_RATE_1}
		<div class="note">{L_CHECK_RATE_EXP}</div>
	</td>
</tr>
<tr>
	<td class="row1">
		<input type="checkbox" id="enable_ban_warnings" name="enable_ban_warnings" {S_BAN_WARNINGS_CHECKED}/><label for="enable_ban_warnings">{L_BAN_WARNINGS_0}</label><input type="text" name="ban_warnings" size="5" maxlength="4" value="{S_BAN_WARNINGS}" />{L_BAN_WARNINGS_1}
		<div class="note">{L_BAN_WARNINGS_EXP}</div>
	</td>
</tr>
<tr>
	<th>{L_REPORTS_OPTIONS}</td>
</tr>
<tr>
	<td class="row1"><input id="reports" name="reports" type="checkbox" {S_REPORTS_CHECKED}/><label for="reports">{L_ENABLE_REPORTS}</label></td>
</tr>
<tr>
	<td class="row1">
		{L_REPORTS_COLOR} <input type="text" name="reports_color" size="8" maxlength="20" value="{S_REPORTS_COLOR}" />
		<div class="note">{L_REPORTS_COLOR_EXP}</div>
	</td>
</tr>
<tr>
	<td class="catBottom" colspan="2" align="center"><input type="checkbox" id="confirm" name="confirm" value="1" /><label for="confirm">{L_CONFIRM}</label> &nbsp; <input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" /> &nbsp; <input type="reset" value="{L_RESET}" class="liteoption" /></td>
</tr>
</table>
{S_HIDDEN_FIELDS}</form>

<br />

<form action="{S_REPUTATION_ACTION}" method="post">
<table border="0" cellpadding="5" cellspacing="1" class="forumline" align="center" style="max-width: 700px">
<tr>
	<th class="row2">{L_MAINTENANCE}</th>
</tr>
<tr>
	<td class="row1">
		<input type="checkbox" name="resync" id="resync" /><label for="resync">{L_RESYNC}</label><br />
		<div class="note">{L_RESYNC_EXP}</div>
	</td>
</tr>
<tr>
	<td class="catBottom" colspan="2" align="center"><input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" /></td>
</tr>
</table>

<br />