<%@ Page Language="C#" Inherits="IWMS.Admin.TemplateAdd" MasterPageFile="admin_pop.master"%>
<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="literalTitle" 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" cellspacing="0" width="95%" align="center" >
		  <tr> 
		   <th width="100">
			模板名： 
		</th><td>
			<asp:TextBox Columns="25" MaxLength="50" id="tName" runat="server"/>
			<asp:RequiredFieldValidator
				ControlToValidate="tName"
				ErrorMessage="模板名必须填写"
				Display="None"
				runat="server"/>
			<asp:RegularExpressionValidator
				runat="server"
				ControlToValidate="tName"
				ValidationExpression="[^']+"
				ErrorMessage="模板名不能有'字符"
				Display="None" />
		</td></tr>
		<tr><th>
			类别：
		</th><td>
			<asp:DropDownList id="tSort" runat="server" >
				<asp:ListItem value="index">首页</asp:ListItem>
				<asp:ListItem value="list">分类页</asp:ListItem>
				<asp:ListItem value="show">内容页</asp:ListItem>
				<asp:ListItem value="topic">专题页</asp:ListItem>
			</asp:DropDownList>
			适用类型
			<asp:DropDownList id="stype"
				runat="server">
				<asp:ListItem value="0">所有</asp:ListItem>
				<asp:ListItem value="1">下载</asp:ListItem>
			</asp:DropDownList>
		</td></tr>
		<tr><th>
			文件地址：<br/><span class="explain">相对地址</span>
		</th><td>
			<asp:TextBox id="tFile" size="40" maxLength="200" runat="server" />
			<asp:RequiredFieldValidator
				ControlToValidate="tFile"
				ErrorMessage="文件地址必须填写"
				Display="None"
				runat="server"/>
		</td></tr>
		<tr><td colspan="2" align="center">	
		   <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>