<%@ Page Language="C#" Inherits="IWMS.Admin.FileEdit" MasterPageFile="admin.master"%>
<%@Register Tagprefix="WbControls" Namespace="IWMS.Controls" Assembly="IWMS_Controls" %>
<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">编辑文件</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" cellspacing="0" width="95%" align="center" >
		<tr>
		<td>
			<asp:TextBox id="Body"
			Rows="20"
			Style="width:100%"
			TextMode="Multiline"
			runat="server" />
		</td></tr>
		<tr><td colspan="2" align="right">
			<div style="width:45%;float:left;text-align:right;">
			<asp:Button id="Submit" text=" 修 改 " onclick="Submit_OnClick" runat="server"/>
			</div>
			<div style="width:55%;float:right;text-align:right;">
		 	<asp:TextBox id="NewName" runat="server"/>　
			<asp:RequiredFieldValidator
				ControlToValidate="NewName"
				ErrorMessage="必须填写另存文件名"
				Display="None"
				runat="server"/>
			<asp:RegularExpressionValidator
				runat="server"
				ControlToValidate="NewName"
				ValidationExpression="template/\w+\.aspx"
				ErrorMessage="另存文件名只能为template/xxx.aspx"
				Display="None" />
		 	<asp:Button id="SaveAs" text=" 另存为 " onclick="SaveAs_OnClick" runat="server"/>
		 	</div>
		   </td>
		  </tr>
		 </table>
		
	</div>
	</div>
	<div class="bl"></div>
	<div class="br"></div>
	<div class="bm"></div>
	</div>
	
	</form>

</asp:Content>