<%@Page Language="C#" Inherits="IWMS.Admin.SendMail" MasterPageFile="admin.master"%>
<%@Register TagPrefix="WbControls" Namespace="IWMS.Controls" Assembly="IWMS_Controls" %>
<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">发送邮件</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:PlaceHolder id="phForm" runat="server">
		<table width="95%">
		<tr><td width="60">
			发件人：
		</td><td>
			<asp:TextBox id="tbMailFrom" MaxLength="30" Columns="20" runat="server"/> 
			<asp:RequiredFieldValidator
				ControlToValidate="tbMailFrom"
				ErrorMessage="发件人信箱必须填写"
				Display="None"
				runat="server"/>
			<asp:RegularExpressionValidator
				ControlToValidate="tbMailFrom"
				ValidationExpression="(\w[0-9a-zA-Z_\-\.]*@(\w[0-9a-zA-Z-]*\.)+\w{2,})"
				ErrorMessage="发件人信箱格式错误"
				Display="None"
				runat="server"
				/>
		</td></tr>
		<tr><td width="60">
			收件人：
		</td><td>
			<asp:TextBox id="tbMailTo" MaxLength="30" Columns="20" runat="server"/> 
			<asp:RequiredFieldValidator
				ControlToValidate="tbMailTo"
				ErrorMessage="收件人信箱必须填写"
				Display="None"
				runat="server"/>
			<asp:RegularExpressionValidator
				ControlToValidate="tbMailTo"
				ValidationExpression="(\w[0-9a-zA-Z_\-\.]*@(\w[0-9a-zA-Z-]*\.)+\w{2,})"
				ErrorMessage="收件人信箱格式错误"
				Display="None"
				runat="server"
				/>
		</td></tr>
		<tr><td>
			抄　送：
		</td><td>
			<asp:TextBox id="tbMailCc" MaxLength="50" Columns="40" runat="server"/> 
		</td></tr>
		<tr><td>
			标　题：
		</td><td>
			<asp:TextBox id="tbMailSubject" MaxLength="50" Columns=80 runat="server"/> 
			<asp:RequiredFieldValidator
				ControlToValidate="tbMailSubject"
				ErrorMessage="标题必须填写"
				Display="None"
				runat="server"/>
		</td></tr>
		<tr><td valign="top">
			内　容：
		</td><td>
			<asp:TextBox CssClass="mceEditor"
				id="MailBody"
				TextMode="Multiline"
				runat="server"/>
			<asp:RequiredFieldValidator
				ControlToValidate="MailBody"
				ErrorMessage="内容必须填写"
				Display="None"
				runat="server"/>
		</td></tr>
		<tr><td colspan="2">
			<asp:Button id="Submit" text=" 发 送 " onclick="Submit_OnClick" runat="server"/>
		</td></tr>
		</table>
		</asp:PlaceHolder>
	</div>
	</div>
	<div class="bl"></div>
	<div class="br"></div>
	<div class="bm"></div>
	</div>
	</form>

</asp:Content>