<%@Page Language="C#" Inherits="IWMS.Admin.BulletinAdd" MasterPageFile="admin.master"%>
<asp:Content ContentPlaceHolderId="cphHead" runat="server">
	<!--#include file="inc/tiny_mce.inc" -->
</asp:Content>
<asp:Content ContentPlaceHolderId="cphMain" runat="server">

	<form id="MyForm" runat="server">
	
	<div class="mframe">
	<div class="tl"></div>
	<div class="rt"></div>
	<div class="tm">
		<span class="tt"><asp:Literal id="ltAction" runat="server"/>公告</span>
	</div>
	<div class="wrapper">
	<div class="ml"></div>
	<div class="mr"></div>
	<div class="mm">
		<asp:Label id="myLabel" class="msgBar" EnableViewState="false" runat="server"/>
		<asp:ValidationSummary 
			 DisplayMode="BulletList" 
			 EnableClientScript="true"
			 ShowSummary="false"
			 ShowMessageBox="true"                        
			 HeaderText="请正确填写以下内容"
			 runat="server"/>
		<table cellpadding="3" width="98%" align="center">
		<tr><th width="90">
			公告标题：
		</th><td>
			<asp:TextBox Columns="50" MaxLength="50" id="title" runat="server"/>
			<asp:RequiredFieldValidator
				ControlToValidate="title"
				ErrorMessage="标题必须填写"
				Display="None"
				runat="server"/>
			<asp:RegularExpressionValidator
				runat="server"
				ControlToValidate="title"
				ValidationExpression="[^']+"
				ErrorMessage="标题中不能出现'"
				Display="None" />
		</td></tr>
		<tr><th width="90">
			外部链接：
		</th><td>
			<asp:TextBox Columns="50" MaxLength="255" id="bUrl" runat="server"/>
			(应当为网址)
		</td></tr>
		<tr><th>
			所属分类：<br/>
			(按ctrl多选)
		</th><td>
			<asp:ListBox id="classIds"
				SelectionMode="multiple"
				Rows="5"
				runat="server" />
			<asp:RequiredFieldValidator
				ControlToValidate="classIds"
				ErrorMessage="分类必选"
				Display="None"
				runat="server"/>
		</td></tr>
		<tr><th valign="top">
			公告内容：<br/>
			(限5000字)
		</th><td>
			<asp:TextBox id="content" TextMode="multiline" CssClass="mceEditor" runat="server"/>
		</td></tr>
		<tr><th>
			开始日期：
		</th><td>
			<asp:TextBox Columns=16 MaxLength=16 id="beginDate" Style="ime-mode:disabled" runat="server"/>
			<asp:RequiredFieldValidator
				ControlToValidate="beginDate"
				ErrorMessage="开始日期必填"
				Display="Dynamic"
				runat="server"/>
			<asp:RegularExpressionValidator
				runat="server"
				ControlToValidate="beginDate"
				ValidationExpression="\d{4}-\d{2}-\d{2} \d{2}:\d{2}"
				ErrorMessage="开始日期格式错误'"
				Display="None" />
			&nbsp; &nbsp;
			结束日期：
			<asp:TextBox Columns=16 MaxLength=16 id="endDate" Style="ime-mode:disabled" runat="server"/>
			<asp:RequiredFieldValidator
				ControlToValidate="endDate"
				ErrorMessage="结束日期必填"
				Display="Dynamic"
				runat="server"/>
			<asp:RegularExpressionValidator
				runat="server"
				ControlToValidate="endDate"
				ValidationExpression="\d{4}-\d{2}-\d{2} \d{2}:\d{2}"
				ErrorMessage="结束日期格式错误'"
				Display="None" />
		</td></tr>
		<tr><td align="center" colspan="2">
		   <asp:Button id="Submit" text="添 加" onclick="Submit_OnClick" runat="server"/>
		</td></tr>
		</table>
	</div>
	</div>
	<div class="bl"></div>
	<div class="br"></div>
	<div class="bm"></div>
	</div>
	
	</form>

</asp:Content>