<%@Page Language="C#" Inherits="IWMS.Admin.PollAdd" MasterPageFile="admin.master"%>
<asp:Content ContentPlaceHolderId="cphMain" runat="server">

	<form id="MyForm" runat="server">
		<asp:ValidationSummary 
			 DisplayMode="BulletList" 
			 EnableClientScript="true"
			 ShowSummary="false"
			 ShowMessageBox="true"                        
			 HeaderText="请正确填写以下内容"
			 runat="server"/>
	
	<div class="mframe">
	<div class="tl"></div>
	<div class="rt"></div>
	<div class="tm">
		<span class="tt"><asp:Literal id="titleAct" 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"/>
		 <table cellpadding="3" width="95%" align="center" >
		  <tr> 
		   <th width="100">
			内容：
		</th><td>
			<asp:TextBox Columns="40" MaxLength="255" 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>	
			投票项：<br/>
			<span class="explain">每行为一项</span>
		</th><td>
			<asp:TextBox Columns="40"
				Rows=5
				TextMode="Multiline"
				id="items"
				runat="server"/>
			<asp:RequiredFieldValidator
				ControlToValidate="items"
				ErrorMessage="投票项必须填写"
				Display="None"
				runat="server"/>
		</td></tr>
		<tr><th>	
			多选：
		</th><td>
			<asp:DropDownList id="multiple"  runat="server">
				<asp:ListItem value="true">是</asp:ListItem>
				<asp:ListItem value="false" Selected>否</asp:ListItem>
			</asp:DropDownList>
			&nbsp;
			最多可选项数 <asp:TextBox id="maxCheck" Text="0" MaxLength="3" size="3" runat="server"/>
			<asp:RequiredFieldValidator
				ControlToValidate="maxCheck"
				ErrorMessage="最多可选项数必须填写"
				Display="None"
				runat="server"/>
			<asp:RegularExpressionValidator
				runat="server"
				ControlToValidate="maxCheck"
				ValidationExpression="\d+"
				ErrorMessage="最多可选项数必须为数字"
				Display="None" /> 
			
		</td></tr>
		<tr><th>	
			显示在首页：
		</th><td>
			<asp:DropDownList id="inIndex"  runat="server">
				<asp:ListItem value="true">是</asp:ListItem>
				<asp:ListItem value="false">否</asp:ListItem>
			</asp:DropDownList>
		</td></tr>
		<tr><td height="30" 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>