<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="space_spaceapplysetting.aspx.cs" Inherits="Discuz.ForumPage.Admin.spaceapplysetting" %>
<%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
	<head>
		<title>spaceapplysetting</title>
		<link href="../styles/datagrid.css" type="text/css" rel="stylesheet">
		<link href="../styles/calendar.css" type="text/css" rel="stylesheet">
		<script language="javascript" src="../js/common.js"></script>
		<link href="../styles/dntmanager.css" type="text/css" rel="stylesheet">
		
		<script type="text/javascript">
		
		
		    function ChanageUserGroupStatus(status)
		    {
		        var i = 0;
	            while(true)
	            {
	                var obj = $("UserGroup_" + i);
	                if(obj == null) break;
	                obj.disabled = !status;
	                obj.checked = status;
	                i++;
	            } 
		    }
		    function ShowHiddenOption(status)
		    {
		        $("ShowSpaceOption").style.display = status ? "block" : "none";
		        $("ShowUserGroup").style.display = status ? "block" : "none";
		    }
		    
        </script>
	</head>
	<body>
		<form id="Form1" method="post" runat="server">
		<script language="javascript">showhint(0, '只有选择开通个人空间并选中选项名称前的复选框，该项才会发挥作用');</script>
			<asp:Panel id="searchtable" runat="server" Visible="true">
			<div class="ManagerForm">
		    <fieldset>
		    <legend style="background:url(../images/icons/legendimg.jpg) no-repeat 6px 50%;">申请设置</legend>
				<TABLE class="table1" id="Table1" cellSpacing="0" cellPadding="4" width="100%" border="0">
				    <tr>
				        <td width="20%" class="td1">是否启用个人空间服务:</td>
				        <td align="left" class="td1">
				            <cc1:RadioButtonList id="EnableSpace" runat="server">
								<ASP:LISTITEM Value="1" Selected="True">是</ASP:LISTITEM>
								<ASP:LISTITEM Value="0">否</ASP:LISTITEM>
							</cc1:RadioButtonList>
				        </td>
				    </tr>
				    </table>
				    <div id="ShowSpaceOption" runat="server">
				    <TABLE class="table1" id="Table1" cellSpacing="0" cellPadding="4" width="100%" border="0">
					<TR>
						<TD class="td1" width="20%"><asp:CheckBox id="allowPostcount" runat="server" />论坛发帖数超过:</TD>
						<td class="td1" width="30%"><cc1:TextBox id="Postcount" runat="server" width="60" RequiredFieldType="数据校验"></cc1:TextBox></TD>
						<td class="td2" width="20%"><asp:CheckBox id="allowDigestcount" runat="server" />论坛精华帖数超过:</TD>
						<td class="td2" width="30%"><cc1:TextBox id="Digestcount" runat="server" width="60" RequiredFieldType="数据校验"></cc1:TextBox></TD>
					</TR>
					<TR>
						<TD class="td1"><asp:CheckBox id="allowScore" runat="server" />论坛用户积分超过:</TD>
						<TD class="td1"><cc1:TextBox id="Score" runat="server" width="60" RequiredFieldType="数据校验"></cc1:TextBox></TD>
						<TD class="td2"><asp:CheckBox id="allowUserGroup" runat="server" />属于用户组:</TD>
						<TD class="td2"><cc1:CheckBoxList id="UserGroup" Runat="server"  RepeatColumns="2"/></TD>
					</TR>
					<TR>
						<td class="td1" colspan="2">达到以上条件申请后是否自动开通?</TD>
						<TD class="td1" colspan="2">
							<cc1:RadioButtonList id="ActiveType" runat="server">
								<ASP:LISTITEM Value="1" Selected="True">自动开通</ASP:LISTITEM>
								<ASP:LISTITEM Value="0">手动开通</ASP:LISTITEM>
							</cc1:RadioButtonList>
						</TD>
					</TR>
					</div>
				</TABLE>
			</fieldset>
			<div id="ShowUserGroup" runat="server">
		    <fieldset>
		    <legend style="background:url(../images/icons/legendimg.jpg) no-repeat 6px 50%;">空间附件最大空间配置</legend>
		    <table width="100%" id="groupattachsize" align="center" class="table1" cellspacing="0" cellPadding="4"  bgcolor="#C3C7D1" runat="server">
		    </table>
		    </fieldset>
		    </div>
			<div class="Navbutton"><cc1:Button id="Submit" runat="server" designtimedragdrop="247" Text="提 交" OnClick="Submit_Click"></cc1:Button></div>
			</div>
			</asp:Panel></form>
	<script type="text/javascript">
	if(document.getElementById("<%=allowUserGroup.ClientID%>").checked==false)
	ChanageUserGroupStatus(false);
   </script>
   <%=footer%>
	</body>
</HTML>

