<%@ Page Inherits="Dvbbs.bbs.UI.Admin.admin_setting_Invite" %>
<%@ 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" NAME="Adminheader1" />
<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0">
	<th>
		邀请注册设置</th>
	<tr>
		<td class="nf2">
			<div class="underline">功能说明：</div>
			<span>[邀请注册设置]只有在[用户与注册]选项中 开启邀请注册功能才会有效。</span>
		</td>
	</tr>
	<tr>
		<td><A href="admin_setting_Invite.aspx?Act=AddSetting">添加邀请注册信息</A> &nbsp;&nbsp;|&nbsp;&nbsp;<A href="admin_setting_Invite.aspx?Act=Newslist">邀请注册信息列表</A>
		</td>
	</tr>
</table>
<br />
<div id="SettingList" style="display:<%=displayList%>">
	<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0">
		<th colspan="4">
			邀请注册信息列表
		</th>
		<tr align="center">
			<td width="3%">删除?</td>
			<td width="16%">用户组</td>
			<td width="16%">邀请码数量</td>
			<td width="16%">操作</td>
		</tr>
		<form action="?Act=DelInfo" method="post" name="TheForm1">
			<asp:Repeater id="list" runat="server">
				<ItemTemplate>
					<tr onMouseOver="this.bgColor='#ffffff'" onMouseOut="this.bgColor=''" align="center">
						<td width="1%">
							<Dvbbs:Span id="delete" runat="server" /></td>
						<td width="16%">
							<Dvbbs:Span id="usergroup" runat="server" /></td>
						<td width="16%">
							<Dvbbs:Span id="codenum" runat="server" /></td>
						<td width="16%">
							<Dvbbs:Span id="Edit" runat="server" /></td>
					</tr>
				</ItemTemplate>
			</asp:Repeater>
			<!--			<tr>
				<td colspan="10"><Dvbbs:Pager id="pager" runat="server"/></td>
			</tr>-->
			<tr>
				<input type="hidden" name="viewcode" value="">
				<td align="center" colspan="7"><input type="submit" value="删 除" onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)"
						onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" /></td>
			</tr>
		</form>
	</table>
</div>
<div id="addSetting" style="display:<%=displayAddSetting%>">
	<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0">
		<form METHOD="post" id="mainform" action="?Act=<%=action%>&id=<%=Get("id")%>" name="mainform">
			<th colspan="2">
				添加邀请注册信息</th>
			<tr>
				<td class="left" width="30%">用户组
				</td>
				<td width="70%" class="right">
					<select id="usergroup" name="usergroup">
					</select>
				</td>
			</tr>
			<tr>
				<td class="left">该组用户可申请邀请码数
				</td>
				<td class="right"><INPUT type="text" id="codenum" name="codenum" size="40" onkeyup="this.value=this.value.replace(/[^\d,]+/g,'')" maxlength="9" value="<%=codenum%>" 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"><INPUT type="text" id="InDate" name="InDate" size="40" onkeyup="this.value=this.value.replace(/[^\d,]+/g,'')" maxlength="9" value="<%=InDate%>" 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"><INPUT type="text" id="submoney" name="submoney" size="40" onkeyup="this.value=this.value.replace(/[^\d,]+/g,'')" maxlength="9" value="<%=submoney%>" 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"><INPUT type="text" id="subEP" name="subEP" size="40" onkeyup="this.value=this.value.replace(/[^\d,]+/g,'')" maxlength="9" value="<%=subEP%>" 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"><INPUT type="text" id="InvitorAddMoney" size="40" name="InvitorAddMoney" onkeyup="this.value=this.value.replace(/[^\d,]+/g,'')" maxlength="9" value="<%=InvitorAddMoney%>" 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"><INPUT type="text" id="InvitorAddEP" size="40" name="InvitorAddEP" value="<%=InvitorAddEP%>" 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"><INPUT type="text" id="InvitedAddMoney" size="40" name="InvitedAddMoney" onkeyup="this.value=this.value.replace(/[^\d,]+/g,'')" maxlength="9" value="<%=InvitedAddMoney%>" 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">
					<INPUT type="text" id="InvitedAddEP" name="InvitedAddEP" size="40" onkeyup="this.value=this.value.replace(/[^\d,]+/g,'')" maxlength="9" value="<%=InvitedAddEP%>" onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" />
				</td>
			</tr>
			<tr>
				<td class="bottom" colspan="2" align="center">
					<INPUT TYPE="submit" class="button" value="添 加" runat="server" onFocus="IEvent('focus',this);"
						onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)">&nbsp;&nbsp;
					<INPUT TYPE="reset" class="button" value="重填" runat="server" onFocus="IEvent('focus',this);"
						onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" />
				</td>
			</tr>
	</table>
	</form>
	<script language="javascript" type="text/javascript">
function selVal(Val)
{
	document.getElementById('usergroup').selectedIndex=parseInt(Val);;
		
}

function fillGroup()
{
	var strgroup = "<%=strusergroups%>";
	var groups = strgroup.split('$');	
	var objgroup = document.getElementById('usergroup');

	for(var i=0;i<groups.length;i++)
	{
		var IdandNames = groups[i].split('|');
		objgroup.options.add(new Option(IdandNames[1],IdandNames[0]));
	}	
}
fillGroup();
selVal(<%=groupid%>);
	</script>
</div>
<bbs:AdminFooter runat="server" ID="Adminfooter1" NAME="Adminfooter1" />