<%@ Page Inherits="Dvbbs.bbs.UI.Admin.admin_class_add" %>
<%@ 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'/>
<script language='javascript'>

function chkPost()
{
	var f = document.forms[0];
	if (f.classname.value == '')
	{
		alert("没有填写归类名称");
		f.classname.focus();
		return false;
	}
	
	return true;
}
</script>
<form runat='server'>
	<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0">
		<tr>
			<td class='title' colspan='3'>本版面专题列表 <span>(<Dvbbs:Anchor id="returntoboard" text="返回修改版面信息" runat="server" class="af3"/>)</span></td>	
		</tr>
		<tr>
			<td class="title" width="15%">操作</td>
			<td class="title" width="35%">归类名称</td>
			<td class="title" width="50%">描述</td>
		</tr>
		<asp:Repeater enableviewstate='false' id='inclass' runat='server'>
		<ItemTemplate>
		<tr>
			<td><Dvbbs:Anchor id="alter" text="修改" runat="server" /> | <Dvbbs:Anchor id="remove" text="删除" runat="server" /></td>
			<td><Dvbbs:Span id="classname" runat="server" /></td>	
			<td><Dvbbs:Span id="desc" runat="server" /></td>
		</tr>
		</ItemTemplate>
		</asp:Repeater>
	</table>
	<br />
	<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0">
		<tr>
			<td class="title" colspan="2">添加版面专题 <span>(带<font class='bf1'>*</font>为必填)</span></td>
		</tr>
		<tr>
			<td>新专题名称</td>
			<td><asp:TextBox id='classname' maxlength='255' style='width:180px' runat='server' onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"/> <font class='bf1'>*</font></td>
		</tr>
		<tr>
			<td>专题描述</td>
			<td><asp:TextBox id='description' maxlength='255' style='width:360px;height:120px;' rows='5' textmode='multiline' runat='server' onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"/></td>
		</tr>		
		<tr>
			<td colspan="2" class="bottom" align="center">
			<asp:TextBox id='boardid' visible='false' runat='server'/>
			<input type='submit' id='save' class='button' value='添加专题' onclick='return chkPost()' onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"/></td>
		</tr>
	</table>
</form>
<br />
<bbs:AdminFooter runat='server'/>
