<%@ Page language="c#" Inherits="Discuz.ForumPage.Admin.addfirstforum" Codebehind="forum_addfirstforum.aspx.cs" %>
<%@ Register TagPrefix="cc2" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
<%@ Register TagPrefix="cc3" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
<%@ Register TagPrefix="uc1" TagName="TextareaResize" Src="../UserControls/TextareaResize.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>添加版块</title>
		<link href="../styles/dntmanager.css" type="text/css" rel="stylesheet"> 
		<link href="../styles/tab.css" type="text/css" rel="stylesheet">
		<script language="javascript" src="../js/common.js"></script>		       
        <link href="../styles/modelpopup.css" type="text/css" rel="stylesheet">
        <script type="text/javascript" src="../js/modalpopup.js"></script>
	</HEAD>
	<body >
		<form id="Form1" method="post" runat="server">
				<table width="100%">
	  <tr>
	    <td>
	    </td>
	    <td>	
		<cc3:TabControl id="TabControl1" SelectionMode="Client" runat="server" TabScriptPath="../js/tabstrip.js" width="760" height="100%">
			<cc3:TabPage Caption="基本信息" ID="tabPage51">
					<table width="100%" align="center" class="table1" cellspacing="0" cellPadding="4"  bgcolor="#C3C7D1">					  
						<tr>
							<td  width="20%" class="td1">论坛名称:</td>
							<td class="td1" width="30%" >
								<cc2:TextBox id="name" runat="server" CanBeNull="必填" width="250" size="30"  MaxLength="49"></cc2:TextBox></td>
						    <td  width="20%" class="td2">论坛描述:</td>
							<td  width="30%" class="td2">
							<uc1:TextareaResize id="description" runat="server" controlname="TabControl1:tabPage51:description" Cols="40" Rows="5"></uc1:TextareaResize>
							</td>
						</tr>
					   <tr>
							<td class="td1">是否显示:</td>
							<td class="td1"><cc2:RadioButtonList id="status" runat="server" RepeatColumns="2" >
							<asp:ListItem Value="1" Selected="True">显示</asp:ListItem>
							<asp:ListItem Value="0" >不显示</asp:ListItem>
							</cc2:RadioButtonList>
							</td>
							<td class="td2">版主列表:</td>
							<td class="td2">
									<uc1:TextareaResize id="moderators" runat="server"  HintTitle="提示" HintInfo="仅供显示使用, 不记录实际权限" controlname="TabControl1:tabPage51:moderators" Cols="40" Rows="5"></uc1:TextareaResize>
								<br />以','进行分割,如:lisi,zhangsan</td>
						</tr>
					  
						</tr>
					</table>
				</cc3:TabPage>
<cc3:TabPage Caption="高级设置" ID="tabPage22">
					<table width="100%" align="center" class="table1" cellspacing="0" cellPadding="4"  bgcolor="#C3C7D1">
					    <tr>
							<td class="td2" width="20%">访问本论<br />坛的密码:</td>
							<td class="td2" width="30%">
								<cc2:textbox id="password" runat="server" HintTitle="提示" HintInfo="留空为不需密码" RequiredFieldType="暂无校验" IsReplaceInvertedComma="false" MaxLength="16" Size="20"></cc2:textbox></td>
							<td class="td1" width="20%">论坛图标:</td>
							<td class="td1" width="30%">
								<cc2:textbox id="icon" runat="server" HintTitle="提示" HintInfo="显示于首页论坛列表等" Width="250px" RequiredFieldType="暂无校验" IsReplaceInvertedComma="false"  MaxLength="253"></cc2:textbox></td>
						</tr>
						<tr>
							<cc2:textbox id="Textbox1" runat="server" Visible="false" HintTitle="提示" HintInfo="留空为不需密码" RequiredFieldType="暂无校验" IsReplaceInvertedComma="false" MaxLength="16" Size="20"></cc2:textbox></td>
							<td class="td1" width="20%">论坛图标:</td>
							<td class="td1" width="80%" colspan="3">
								<cc2:textbox id="Textbox2" runat="server" HintTitle="提示" HintInfo="显示于首页论坛列表等" Width="250px" RequiredFieldType="暂无校验" IsReplaceInvertedComma="false"  MaxLength="253"></cc2:textbox></td>
    					</tr>
						<tr>
							<td class="td2">指向外部链接的地址:</td>
							<td class="td2">
								<cc2:textbox id="redirect" runat="server" Width="250px" RequiredFieldType="暂无校验" IsReplaceInvertedComma="false"  MaxLength="253"></cc2:textbox></td>
							<td class="td1">允许的附件类型:</td>
							<td class="td1">
									<cc2:CheckBoxList id="attachextensions"  runat="server" HintTitle="提示" HintInfo="允许在本论坛上传的附件类型,留空为使用用户组设置, 且版块设置优先于用户组设置" RepeatColumns="4"></cc2:CheckBoxList></td>
						</tr>
						
						<tr>
							<td class="td2">本版规则:</td>
							<td class="td2">
									<cc2:textbox id="rules" runat="server" HintTitle="提示" HintInfo="支持Html" RequiredFieldType="暂无校验" width="250" height="100" TextMode="MultiLine" IsReplaceInvertedComma="false"></cc2:textbox></td>
							<td class="td1">定期自动<br />关闭主题:</td>
							<td class="td1"><table><tr><td>
						<cc2:RadioButtonList id="autocloseoption" runat="server" RepeatColumns="1">
                        <asp:ListItem Value="0" Selected="True">不自动关闭</asp:ListItem>
                        <asp:ListItem Value="1">按发布时间</asp:ListItem>
				 		</cc2:RadioButtonList></td><td valign=bottom>
				 		    <div id="showclose" runat="server">
				 		    	<cc2:TextBox id="autocloseday" runat="server" RequiredFieldType="数据校验" Size="4" MaxLength="3"></cc2:TextBox>天自动关闭	
				 		    </div>
				 		    	</td></tr></table>

			       			</td>
			       		</tr>	
			       		<tr>
							<td class="td2">设置:</td>
							<td class="td2" colspan="3">
								<cc2:CheckBoxList id="setting" runat="server" RepeatColumns="4" >
									<asp:ListItem Value="allowsmilies"  Selected="True">允许使用表情符</asp:ListItem>
									<asp:ListItem Value="allowrss"  Selected="True">允许RSS</asp:ListItem>
									<asp:ListItem Value="allowbbcode"  Selected="True">允许Discuz!NT代码</asp:ListItem>
									<asp:ListItem Value="allowimgcode"  Selected="True">允许[img]代码</asp:ListItem>
									<asp:ListItem Value="recyclebin">打开回收站</asp:ListItem>
									<asp:ListItem Value="modnewposts">发帖需要审核</asp:ListItem>
									<asp:ListItem Value="jammer">帖子中添加干扰码</asp:ListItem>
									<asp:ListItem Value="disablewatermark">禁止附件自动水印</asp:ListItem>
									<asp:ListItem Value="inheritedmod">继承上级论坛或分类的版主设定</asp:ListItem>
									<asp:ListItem Value="allowthumbnail">主题列表中显示缩略图</asp:ListItem>
								</cc2:CheckBoxList></td>
						</tr>
					
					</table>
				</cc3:TabPage>

<cc3:TabPage Caption="权限设定" ID="tabPage33">
<table width="100%" id="powerset" align="center" class="table1" cellspacing="0" cellPadding="4"  bgcolor="#C3C7D1" runat="server">
						<tr>
							<td class="td_alternating_item1" colspan="6">每个组的权限项不选择为使用用户组设置，且版块设置优先于用户组设置.</td>
						</tr>	
						<tr>
							<td class="td_alternating_item2">全选</td>
							<td class="td_alternating_item2"><input type="checkbox" id="c1" onclick="seleCol('viewperm',this.checked)"/><label for="c1">浏览论坛</label></td>
							<td class="td_alternating_item2"><input type="checkbox" id="c2" onclick="seleCol('postperm',this.checked)"/><label for="c2">发新话题</label></td>
							<td class="td_alternating_item2"><input type="checkbox" id="c3" onclick="seleCol('replyperm',this.checked)"/><label for="c3">发表回复</label></td>
							<td class="td_alternating_item2"><input type="checkbox" id="c4" onclick="seleCol('getattachperm',this.checked)"/><label for="c4">下载/查看附件</label></td>
							<td class="td_alternating_item2"><input type="checkbox" id="c5" onclick="seleCol('postattachperm',this.checked)"/><label for="c5">上传附件</label></td>
						</tr>
	</table>
			</cc3:TabPage>
			</cc3:TabControl>
			
			  <div id="topictypes" style="display:none;width:100%;">
			       <table>
						<tr>
							<td class="td2"><b>主题分类:</b></td>
							<td class="td2">
								<cc2:textbox id="topictypes" runat="server" RequiredFieldType="暂无校验" width="370" height="50" TextMode="MultiLine"></cc2:textbox></td>
						</tr>
						<tr>
							<td class="td2"><b>模板风格:</b></td>
							<td class="td2">
								<cc2:DropDownList id="templateid" runat="server"></cc2:DropDownList></td>
						</tr>
					</table>
				   </div>
				   <cc2:Hint id="Hint1" runat="server" HintImageUrl="../images"></cc2:Hint>
			        <cc2:Button id="Submit" runat="server" Text=" 添 加 "></cc2:Button>
				</td>
			</tr>
			</table>
		</form>
		<script>
 //document.forms[0].setting_6.disabled=true;
 //document.forms[0].setting_5.disabled=true;

		</script>
	<%=footer%>
	</body>
</HTML>
