<%@ Page Inherits="Dvbbs.bbs.UI.Admin.admin_extend_experience_alter" %>
<%@ Register tagPrefix="Dvbbs" namespace="Dvbbs.Controls" assembly="Dvbbs.Web"%>
<%@ Register tagPrefix="bbs" tagName="AdminHeader" src="controls/admin_header.ascx"%>
<%@ Register tagPrefix="bbs" tagName="AdminFooter" src="controls/admin_footer.ascx"%>
<bbs:AdminHeader title="修改扩展积分设置" runat="server" ID="Adminheader1" />
<script language="javascript">
function chkPost()
{
	var f = document.forms[0];
	if (f.enabled.checked && f.name.value.replace(/(^\s*)|(\s*$)/g, "") == "")
	{
		alert("您开启了该积分，所以必须填写名称");
		f.name.focus();
		return false;
	}
	
	return true;
}
</script>
<form id="addnew" runat="server">
	<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0">
		<tr>
			<th colspan="2">修改扩展积分设置</th>
		</tr>
		<tr>
			<td width="30%" class="left">积分标识</td>
			<td class="right">
				<Dvbbs:Span id="field" style="font-weight:bold" runat="server" onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" /></td>
		</tr>
		<tr>
			<td class="left">积分名称</td>
			<td class="right">
				<asp:TextBox id="name" maxlength="12" style="width:160px" runat="server" onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" />
				<br />
				<span>积分名称必须填写，否则不能正确标识。</span>
			</td>
		</tr>
		<tr>
			<td class="left">积分单位</td>
			<td class="right">
				<asp:TextBox id="unit" maxlength="12" style="width:80px" runat="server" onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" />
			     <br />
				<span>积分单位必须填写，否则不能正确标识。</span>	
			</td>
		</tr>
		<%--
		<tr>
			<td class="left">兑换比率</td>
			<td class="right">
				<asp:TextBox id="rateofexchange" maxlength="10" style="width:80px" runat="server" onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" />
				<br />
				<span>兑换比率必须填写，且必须为数字(正整数)。</span>
		   </td>
		</tr>
		--%>
		<tr>
			<td class="left">注册初始值</td>
			<td class="right">
				<asp:TextBox id="initialization" maxlength="100" style="width:80px" runat="server" onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" />
				<br />
				<span>注册初始值必须填写。</span>
			</td>
		</tr>
		<tr>
			<td class="left">是否启用</td>
			<td class="right"><input type="checkbox" id="enabled" class="smallbox" runat="server" NAME="enabled" />
			<br />
				<span>只有启用后才能在前台读取</span>
			</td>
		</tr>
		<tr>
			<td class="left">是否可见</td>
			<td class="right"><input type="checkbox" id="visibled" class="smallbox" runat="server" NAME="visibled" />
			<br />
				<span>只有启用后才能在前台读取后显示出来</span>
			</td>
		</tr>
		<tr>
			<td colspan="2" class="bottom" align="center"><input type="submit" id="save" class="button" value="修 改" onclick="return chkPost()" onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" />
				&nbsp;&nbsp; <input type="reset" value="取 消" class="button" onclick="javascript:history.back()" onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" /></td>
		</tr>
	</table>
</form>
<bbs:AdminFooter runat="server" ID="Adminfooter1" />
