<%@ Page Inherits="Dvbbs.bbs.UI.Admin.admin_board_check" %>
<%@ 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"%>
<script language="javascript" src="./templates/lang/zh-cn/js/main.js" type="text/javascript"></script>
<script language="javascript" src="./templates/lang/zh-cn/js/blackol.js" type="text/javascript"></script>
<script language="javaScript" src="inc/admin.js" type="text/javascript"></script>
<style>
		.main_left {table-layout:auto; background:url(images/skins/left_bg.gif)}
		.main_left_top{ background:url(images/skins/left_menu_bg.gif); padding-top:2px !important; padding-top:5px;}
		.main_left_title{text-align:left; padding-left:15px; font-size:14px; font-weight:bold; color:#fff;}
		.left_iframe{HEIGHT: 92%; VISIBILITY: inherit;WIDTH: 180px; background:transparent;}
		.main_iframe{HEIGHT: 92%; VISIBILITY: inherit; WIDTH:100%; Z-INDEX: 1}
		table { font-size:12px; font-family : tahoma, 宋体, fantasy; }
		td { font-size:12px; font-family : tahoma, 宋体, fantasy;}
		html{scrollbar-face-color: #3274AF;scrollbar-highlight-color: #337ABB;scrollbar-shadow-color: #7CAFDE;scrollbar-3dlight-color: #7CAFDE;scrollbar-arrow-color: #C4D8ED;scrollbar-track-color: #337ABB;scrollbar-darkshadow-color: #337ABB;scrollbar-base-color: #337ABB;
		}
		.NewCroGrop {
		color: #FF0000;
		font-weight: bold;
		cursor:pointer;}
    </style>
<script type="text/javascript">
		function addUserGroup()
		{	
			var mDateTime = new Date();
			var mTimeStri = mDateTime.toString();
			while(mTimeStri.indexOf(' ') != -1)
			{
				mTimeStri = mTimeStri.replace(' ','');
			}
			mTimeStri = mTimeStri.replace(':','').replace('+','').replace(':','');
			var mTempContent = document.getElementById('temp').innerHTML;
			var mTem		  = document.getElementById('forumrowt');
			var mStri = "<div id='" + mTimeStri + "' name='" + mTimeStri + "'>" + mTempContent + "</div";
			mStri = mStri.replace("deleteUserGroup(1)","deleteUserGroup('"+ mTimeStri +"')");
			mTem.innerHTML	= mTem.innerHTML + mStri;
		}
		function deleteUserGroup(delid)
		{
			var DelId = document.getElementById(delid);
			var parent = DelId.parentNode;
			parent.removeChild(DelId);
		}
		function ChkSelected(Obj,Val)
		{
			if (Obj)
			{
				for (i=0;i<Obj.length;i++)
				{
					if (Obj.options[i].value==Val)
					{
						Obj.options[i].selected=true;
						break;
					}
				}
			}
		}
		function chkradio(Obj,Val)
		{
			if (Obj)
			{
				for (i=0;i<Obj.length;i++)
				{
					if (Obj[i].value==Val)
					{
						Obj[i].checked=true;
						break;
					}
				}
			}
		}
		function isshowanthorset(ischeck)
		{
			for(var i=1;i< 10;i++)
			{
				document.getElementById('isshowanthorset').style.display = ischeck.checked ? 'none' : 'block';
			}
		}
		
</script>
<bbs:AdminHeader title="审核方案设置" runat="server" ID="Adminheader1" NAME="Adminheader1" />
<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0">
	<tr>
		<th>
			审核方案设置</th>
	</tr>
	<tr>
		<td class="category"><a href="admin_board_check.aspx?action=list">审核方案列表</a> | <a href="admin_board_check.aspx?action=new">
				新加审核方案</a> | <a href="<%=cheBoar.Id.ToString() == "-1" ? "#" : "board_setting_list.aspx?aid=" + cheBoar.Id.ToString()%>">
				应用到版面</a>
		</td>
	</tr>
</table>
<br />
<%
if( "list" != action){
%>
<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0">
	<tr>
		<td class="title">
			审核方案设置</td>
	</tr>
	<tr>
		<td>
			<form action="" name="checkform" id="checkform" method="post">
				<fieldset>
					<legend>基本属性设置</legend>
					<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0">
						<tr>
							<td class="left" width="30%">设置名称</td>
							<td class="right">
								<input name="settings_name" type="text" id="settings_name" style="margin:3px;" value="<%=("" == cheBoar.settings_name ? "新建审核设置" : cheBoar.settings_name)%>" size="45" 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 name="visenable" type="checkbox" id="visenable" class="checkbox" value="1" <%=(1 == cheBoar.visenable ? "checked=\"checked\"" : "")%> />打开或关闭当前审核方案
							</td>
						</tr>
						<tr>
							<td class="left">审核范围</td>
							<td class="right">
								<input name="newtopic" type="checkbox" id="newtopic" class="checkbox" value="1" <%=(1 == cheBoar.newtopic ? "checked=\"checked\"" : "")%> />
								</input>新主题&nbsp;&nbsp; <input name="newreply" type="checkbox" id="newreply" value="1" class="checkbox" <%=(1 == cheBoar.newreply ? "checked=\"checked\"" : "")%> />
								</input>新回帖&nbsp;&nbsp; <input name="reedit" type="checkbox" id="reedit" value="1" class="checkbox" <%=(1 == cheBoar.reedit ? "checked=\"checked\"" : "")%> />
								</input>编辑帖
							</td>
						</tr>
						<tr>
							<td class="left">无条件审核</td>
							<td class="right">
                                <input name="checkaney" type="checkbox" id="checkaney" class="checkbox" onclick="isshowanthorset(this)" value="1" <%=(1 == cheBoar.checkaney ? "checked=\"checked\"" : "")%> />
开启此项，用户发的帖都需要审核才能显示。</td>
						</tr>
					</table>
				</fieldset>
				<br />
				<div id="isshowanthorset" name="isshowanthorset" style="display:''">
					<fieldset>
						<legend>基本审核条件</legend>
						<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0">
							<tr>
								<td class="left" width="30%">审核生效时间</td>
								<td class="right">
									<input name="FilterWords(0)" type="checkbox" id="FilterWords(0)" class="checkbox" value="1" <%=("1" == cheBoar.filtertime[0] ? "checked=\"checked\"" : "")%> />0点&nbsp;&nbsp;
									<input name="FilterWords(1)" type="checkbox" id="FilterWords(1)" class="checkbox" value="1" <%=("1" == cheBoar.filtertime[1] ? "checked=\"checked\"" : "")%> />1点&nbsp;&nbsp;
									<input name="FilterWords(2)" type="checkbox" id="FilterWords(2)" class="checkbox" value="1" <%=("1" == cheBoar.filtertime[2] ? "checked=\"checked\"" : "")%> />
									2点&nbsp;&nbsp;<input name="FilterWords(3)" type="checkbox" id="FilterWords(3)" class="checkbox" value="1" <%=("1" == cheBoar.filtertime[3] ? "checked=\"checked\"" : "")%> />
									3点&nbsp;&nbsp;<input name="FilterWords(4)" type="checkbox" id="FilterWords(4)" class="checkbox" value="1" <%=("1" == cheBoar.filtertime[4] ? "checked=\"checked\"" : "")%> />
									4点&nbsp;&nbsp;<input name="FilterWords(5)" type="checkbox" id="FilterWords(5)" class="checkbox" value="1" <%=("1" == cheBoar.filtertime[5] ? "checked=\"checked\"" : "")%> />
									5点<br />
									<input name="FilterWords(6)" type="checkbox" id="FilterWords(6)" class="checkbox" value="1" <%=("1" == cheBoar.filtertime[6] ? "checked=\"checked\"" : "")%> />
									6点&nbsp;&nbsp;<input name="FilterWords(7)" type="checkbox" id="FilterWords(7)" class="checkbox" value="1" <%=("1" == cheBoar.filtertime[7] ? "checked=\"checked\"" : "")%> />
									7点&nbsp;&nbsp;<input name="FilterWords(8)" type="checkbox" id="FilterWords(8)" class="checkbox" value="1" <%=("1" == cheBoar.filtertime[8] ? "checked=\"checked\"" : "")%> />
									8点&nbsp;&nbsp;<input name="FilterWords(9)" type="checkbox" id="FilterWords(9)" class="checkbox" value="1" <%=("1" == cheBoar.filtertime[9] ? "checked=\"checked\"" : "")%> />
									9点&nbsp;&nbsp;<input name="FilterWords(10)" type="checkbox" id="FilterWords(10)" class="checkbox" value="1" <%=("1" == cheBoar.filtertime[10] ? "checked=\"checked\"" : "")%> />
									10点&nbsp;&nbsp;<input name="FilterWords(11)" type="checkbox" id="FilterWords(11)" class="checkbox" value="1" <%=("1" == cheBoar.filtertime[11] ? "checked=\"checked\"" : "")%> />
									11点<br />
									<input name="FilterWords(12)" type="checkbox" id="FilterWords(12)" class="checkbox" value="1" <%=("1" == cheBoar.filtertime[12] ? "checked=\"checked\"" : "")%> />
									12点&nbsp;&nbsp;<input name="FilterWords(13)" type="checkbox" id="FilterWords(13)" class="checkbox" value="1" <%=("1" == cheBoar.filtertime[13] ? "checked=\"checked\"" : "")%> />
									13点&nbsp;&nbsp;<input name="FilterWords(14)" type="checkbox" id="FilterWords(14)" class="checkbox" value="1" <%=("1" == cheBoar.filtertime[14] ? "checked=\"checked\"" : "")%> />
									14点&nbsp;&nbsp;<input name="FilterWords(15)" type="checkbox" id="FilterWords(15)" class="checkbox" value="1" <%=("1"  == cheBoar.filtertime[15] ? "checked=\"checked\"" : "")%> />
									15点&nbsp;&nbsp;<input name="FilterWords(16)" type="checkbox" id="FilterWords(16)" class="checkbox" value="1" <%=("1" == cheBoar.filtertime[16] ? "checked=\"checked\"" : "")%> />
									16点&nbsp;&nbsp;<input name="FilterWords(17)" type="checkbox" id="FilterWords(17)" class="checkbox" value="1" <%=("1" == cheBoar.filtertime[17] ? "checked=\"checked\"" : "")%> />
									17点<br />
									<input name="FilterWords(18)" type="checkbox" id="FilterWords(18)" class="checkbox" value="1" <%=("1" == cheBoar.filtertime[18] ? "checked=\"checked\"" : "")%> />
									18点&nbsp;&nbsp;<input name="FilterWords(19)" type="checkbox" id="FilterWords(19)" class="checkbox" value="1" <%=("1" == cheBoar.filtertime[19] ? "checked=\"checked\"" : "")%> />
									19点&nbsp;&nbsp;<input name="FilterWords(20)" type="checkbox" id="FilterWords(20)" class="checkbox" value="1" <%=("1" == cheBoar.filtertime[20] ? "checked=\"checked\"" : "")%> />
									20点&nbsp;&nbsp;<input name="FilterWords(21)" type="checkbox" id="FilterWords(21)" class="checkbox" value="1" <%=("1" == cheBoar.filtertime[21] ? "checked=\"checked\"" : "")%> />
									21点&nbsp;&nbsp;<input name="FilterWords(22)" type="checkbox" id="FilterWords(22)" class="checkbox" value="1" <%=("1" == cheBoar.filtertime[22] ? "checked=\"checked\"" : "")%> />
									22点&nbsp;&nbsp;<input name="FilterWords(23)" type="checkbox" id="FilterWords(23)" class="checkbox" value="1" <%=("1" == cheBoar.filtertime[23] ? "checked=\"checked\"" : "")%> />
									23点
								</td>
							</tr>
							<tr>
								<td class="left">被删率大于</td>
								<td class="right">
									<input name="delete_morethan" type="text" id="delete_morethan" style="margin:3px;" value="<%=cheBoar.delete_morethan%>" size="4" onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" />
									审核&nbsp;&nbsp;<span>设为0表示关闭此项设置</span></td>
							</tr>
							<tr>
								<td class="left">注册少于</td>
								<td class="right">
									<input name="register_lessthan" type="text" id="register_lessthan" style="margin:3px;" value="<%=cheBoar.register_lessthan%>" size="4" onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" />
									天，审核&nbsp;&nbsp;<span>设为0表示关闭此项设置</span></td>
							</tr>
							<tr>
								<td class="left" rowspan="5" valign="top">内容审核</td>
								<td width="110" class="right"><input type="checkbox" value="1" name="pic_audit" class="checkbox" style="margin:4px 1px ;" <%=(1 == cheBoar.pic_audit ? "checked=\"checked\"" : "")%> />启用含图片审核</td>
							</tr>
							<tr>
								<td class="right"><input name="link_audit" type="checkbox" id="link_audit" class="checkbox" style="margin:4px 1px ;" value="1" <%=(1 == cheBoar.link_audit ? "checked=\"checked\"" : "")%> />启用含链接审核</td>
							</tr>
							<tr>
								<td class="right"><input name="flash_audit" type="checkbox" id="flash_audit" class="checkbox" style="margin:4px 1px ;" value="1" <%=(1 == cheBoar.flash_audit ? "checked=\"checked\"" : "")%> />启用含flash审核</td>
							</tr>
							<tr>
								<td class="right"><input name="media_audit" type="checkbox" id="media_audit" class="checkbox" style="margin:4px 1px ;" value="1" <%=(1 == cheBoar.media_audit ? "checked=\"checked\"" : "")%> />启用含媒体审核</td>
							</tr>
							<tr>
								<td class="right"><input name="realplayer_audit" type="checkbox" id="realplayer_audit" class="checkbox" style="margin:4px 1px ;" value="1" <%=(1 == cheBoar.realplayer_audit ? "checked=\"checked\"" : "")%> />启用含RealPlayer审核</td>
							</tr>
							<tr>
								<td valign="top" class="left">敏感字</td>
								<td class="right">
									<textarea name="sensitive_character_list" cols="50" rows="8" id="sensitive_character_list" onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"><%=Server.HtmlEncode(cheBoar.sensitive_character_liststr.ToString())%></textarea><br />
									<span>敏感字和敏感字之间请敲回车换行</span>
								</td>
							</tr>
						</table>
					</fieldset>
					<br />
					<fieldset>
						<legend>扩展审核条件</legend>
						<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0">
							<tr>
								<td valign="top" class="left" width="30%">豁免用户</td>
								<td class="right">
									<textarea name="exempt_user_list" cols="50" rows="8" id="exempt_user_list" onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"><%=Server.HtmlEncode(cheBoar.exempt_user_liststr.ToString())%></textarea><br />
									<span>不同用户之间请敲回车换行</span>
								</td>
							</tr>
						</table>
					</fieldset>
				</div>
				<br />
				<div align="center">
					<input type="submit" name="Submit" value=" 保 存 " onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" />
					<input type="reset" name="Reset" value=" 重 置 " onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" />
				</div>
			</form>
		</td>
	</tr>
</table>
<script>isshowanthorset(document.getElementById('checkaney'));</script>
<%}else{%>
<form runat="server" ID="Form2">
	<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0">
		<tr>
			<th colspan="4">
				论坛现有审核方案列表</th>
		</tr>
		<tr>
			<td class="nf2" colspan="4">
				<div class="underline">功能说明：</div>
				<span>点方案名称进行编辑，如果要删除版面设置方案，请先确认没有任何版面在使用它。</span>
			</td>
		</tr>
		<tr style="font-weight:bold">
			<td width="6%">删除?</td>
			<td width="10%">编号</td>
			<td width="50%">方案名称</td>
			<td>应用</td>
		</tr>
		<asp:Repeater id="list" runat="server">
			<ItemTemplate>
				<tr onMouseOver="this.bgColor='#ffffff'" onMouseOut="this.bgColor=''">
					<td width="1%"><Dvbbs:Span id="delete" runat="server" /></td>
					<td width="1%"><Dvbbs:Span id="uid" runat="server" /></td>
					<td><Dvbbs:Anchor id="type" runat="server" /></td>
					<td><Dvbbs:Anchor id="use" runat="server" /></td>
				</tr>
			</ItemTemplate>
		</asp:Repeater>
		<tr>
			<td colspan="4" class="bottom"><input type="submit" value="删 除" 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" NAME="Adminfooter1" />
