<%@ Page AutoEventWireup="False" Inherits="Dvbbs.bbs.UI.Admin.admin_board_add" %>
<%@ Register tagPrefix="bbs" tagName="AdminFooter" src="controls/admin_footer.ascx"%>
<%@ Register tagPrefix="bbs" tagName="AdminHeader" src="controls/admin_header.ascx"%>
<%@ Register tagPrefix="Dvbbs" namespace="Dvbbs.Controls" assembly="Dvbbs.Web"%>
<bbs:adminheader id="AdminHeader1" title="增加新版面" runat="server"></bbs:adminheader>
<form runat="server" onsubmit="return chkPost()">
	<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0" ID="Table1">
		<tr>
			<td class="title" colspan="2">添加版面 (带<font class="nf1">*</font>为必填)</td>
		</tr>
		<tr>
			<td class="left" width="30%">新版面的名称</td>
			<td class="right" width="70%"><asp:textbox id="boardtype" runat="server" Width="400" maxlength="255" onFocus="IEvent('focus',this);"
					onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"></asp:textbox><font class="nf1">*</font></td>
		</tr> <!--
	<tr>
		<td>所属分类</td>
		<td><DropDownList id="category" onmousewheel="return false" runat="server" Width="180" />
			<font class="nf1">*</font></td>
	</tr>-->
		<tr>
			<td class="left">所属版面</td>
			<td class="right"><!--<select id="parentboard" name="parentboard" style="WIDTH:180px" onmousewheel="return false">
				<option value="-1" selected>请先选择上面的分类 ...</option>
			</select>--><asp:dropdownlist id="parentboard" onmousewheel="return false" runat="server" Width="200" class="selectlist"
					onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"></asp:dropdownlist></td>
		</tr>
		<tr>
			<td class="left">广告设置方案</td>
			<td class="right"><asp:DropDownList id="adsList" onmousewheel="return false" runat="server" Width="200" class="selectlist"
					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:DropDownList id="BoardSettingIdList" onmousewheel="return false" runat="server" Width="200" class="selectlist"
					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:DropDownList id="boardckeck" Width="200" class="selectlist" onmousewheel="return false" 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="aliasname" runat="server" Width="400" class="selectlist" onFocus="IEvent('focus',this);"
					onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"></asp:textbox>
				<br /><span>目录模式伪静态时用到</span>
			</TD>
		</TR>
		<tr>
			<td class="left">版面说明
			</td>
			<td class="right"><asp:textbox id="readme" runat="server" Width="400px" rows="5" textmode="multiline" class="selectlist"
					onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"></asp:textbox>
				<br /><span>250字以内</span>
			</td>
		</tr>
		<tr>
			<td class="left">版主
				
			</td>
			<td class="right"><asp:textbox id="boardmaster" runat="server" Width="400" maxlength="100" onFocus="IEvent('focus',this);"
					onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"></asp:textbox>
				<br /><span>多个版主用“,”分隔，同时需修改其会员身份<span>
			</td>
		</tr>
		<tr>
			<td class="left">首页显示论坛图片
			</td>
			<td class="right"><asp:textbox id="indeximg" runat="server" Width="400" maxlength="100" class="selectlist" onFocus="IEvent('focus',this);"
					onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"></asp:textbox>
				<br /><span>出现在首页论坛版面介绍右边，请直接填写图片URL<span>
			</td>
		</tr>
		<!--
	<tr>
		<td>浏览需要身份</td>
		<td><asp:dropdownlist id="browserequire" runat="server" Width="180"></asp:dropdownlist><br />若选择超级版主以上，则该版面不会在首页上显示。</td>
	</tr>
	<tr>
		<td>发主题需要身份</td>
		<td><asp:dropdownlist id="topicrequire" runat="server" Width="180"></asp:dropdownlist></td>
	</tr>
	<tr>
		<td>发帖子需要身份</td>
		<td><asp:dropdownlist id="replyrequire" runat="server" Width="180"></asp:dropdownlist></td>
	</tr>
	-->
		<tr>
			<td class="left">版面规则</td>
			<td class="right"><asp:textbox id="rules" runat="server" Width="400px" rows="5" textmode="multiline" class="selectlist"
					onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"></asp:textbox></td>
		</tr>
		<tr>
			<td class="left">其它属性</td>
			<td class="right"><input type="checkbox" id="IsHidden" runat="server" class="smallbox" name="IsHidden" style="vertical-align:middle;" /><label for="IsHidden">是否为隐藏版面</label></td>
		</tr>
		<tr>
			<td colspan="2" align="center" class="bottom"><input class="button" id="save" type="submit" value="添加版面" onFocus="IEvent('focus',this);"
					onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"></td>
		</tr>
		<tr>
			<td colspan="2" align="left" class="bghighlight">→ <A href="admin_board_list.aspx">论坛结构总览</A>
				(该总览界面结构与论坛首页相同，不显示尚无版面的分类)</td>
		</tr>
	</table>
</form>
<script language="javascript">
function chkPost()
{
	var f = document.forms[0];
	if (f.boardtype.value.replace(/(^\s*)|(\s*$)/g, "") == "")
	{
		alert("没有填写版面名称");
		f.boardtype.focus();
		return false;
	}
	if (f.category && f.category.selectedIndex == 0)
	{
		alert("没有选择所属分类");
		return false;
	}
	if (f.subject && f.subject.value.length > 250)
	{
		alert("说明内容长度不能大于250字节，请截去一部分再试");
		f.subject.focus();
		return false;
	}
	return true;
}
function chkParentBoardSelection(obj)
{
	if (obj.options[obj.selectedIndex].value.indexOf("-1") != -1)
	{
		alert("父版面不能选择分区，选择无效");
		obj.selectedIndex = 0;
		return;
	}
}
</script>
<bbs:AdminFooter runat="server" id="AdminFooter1" />
