<%@Page Language="C#" Inherits="IWMS.Admin.AdvGroupAdd" 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="15" MaxLength="15" id="gname" runat="server"/>
			<asp:RequiredFieldValidator
				ControlToValidate="gname"
				ErrorMessage="广告组名必须填写"
				Display="None"
				runat="server"/>
			<asp:RegularExpressionValidator
				runat="server"
				ControlToValidate="gname"
				ValidationExpression="[^' ]+"
				ErrorMessage="广告组名不能有'字符"
				Display="None" /> 
		</td></tr>
		<tr><th>	
			广告宽度：
		</th><td>
			<asp:TextBox Columns="5" MaxLength="5" Text="100" id="width" runat="server"/>
			<asp:RequiredFieldValidator
				ControlToValidate="width"
				ErrorMessage="广告宽度必须填写"
				Display="None"
				runat="server"/>
			<asp:RegularExpressionValidator
				runat="server"
				ControlToValidate="width"
				ValidationExpression="\d+"
				ErrorMessage="广告宽度只能为整数"
				Display="None" />
		</td></tr>
		<tr><th>	
			广告高度：
		</th><td>
			<asp:TextBox Columns="5" MaxLength="5" Text="100" id="height" runat="server"/>
			<asp:RequiredFieldValidator
				ControlToValidate="height"
				ErrorMessage="广告高度必须填写"
				Display="None"
				runat="server"/>
			<asp:RegularExpressionValidator
				runat="server"
				ControlToValidate="height"
				ValidationExpression="\d+"
				ErrorMessage="广告高度只能为整数"
				Display="None" />
		</td></tr>
		<tr><th valign="top">	
			广告样式表：
		</th><td>
			<asp:TextBox Columns="60"
				TextMode="MultiLine"
				Rows="4"
				id="css"
				Text="body{margin:0;background:white;}"
				runat="server"/>
		</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>