<%@Page Language="C#" Inherits="IWMS.Admin.AdvAdd" 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">
		<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="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"/>
		<table cellpadding="3" width="98%" align="center">
		<tr><th width="100">
			广告名：
		</th><td>
			<asp:TextBox Columns="20" MaxLength="50" id="name" runat="server"/>
			<asp:RequiredFieldValidator
				ControlToValidate="name"
				ErrorMessage="广告名必须填写"
				Display="None"
				runat="server"/>
			<asp:RegularExpressionValidator
				runat="server"
				ControlToValidate="name"
				ValidationExpression="[^' ]+"
				ErrorMessage="广告名不能有'字符"
				Display="None" />
		</td></tr>
		<tr><th>
			所属广告组：
		</th><td>
			<asp:DropDownList id="groupid"
				runat="server"/>
			<asp:RequiredFieldValidator
				ControlToValidate="groupid"
				ErrorMessage="广告组必须选择"
				Display="None"
				runat="server"/>
			<a href="admin_advgroupAdd.aspx">添加广告组</a>
		</td></tr>
		<tr><th>
			权重：
		</th><td>
			<asp:TextBox Columns="5" MaxLength="3" id="weight" Text="0" runat="server"/>
			<asp:RequiredFieldValidator
				ControlToValidate="weight"
				ErrorMessage="权重必须填写"
				Display="None"
				runat="server"/>
			<asp:RegularExpressionValidator
				runat="server"
				ControlToValidate="weight"
				ValidationExpression="\d+"
				ErrorMessage="权重只能为数字"
				Display="None" />
			(表示在同组广告中显示比例，0为不显示)
		</td></tr>
		<tr><th>
			广告代码：
		</th><td>
			<asp:TextBox id="code" TextMode="multiline" CssClass="mceEditor" runat="server"/>
		</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>