<%@ page language="C#" autoeventwireup="true" inherits="ims.web.mail, ims.web" enableviewstatemac="false" enableEventValidation="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" id="mail">
<head runat="server">
    <title>发送邮件</title><meta http-equiv="X-UA-Compatible" content="IE=edge" />
</head>
	<body>
		<form id="Form1" method="post" runat="server">
        <asp:ScriptManager ID="sm" runat="server">
            <Scripts><asp:ScriptReference Name="MicrosoftAjax.js" ScriptMode="Auto" Path="~/js/MsAjax.js"/><asp:ScriptReference Name="MicrosoftAjaxWebForms.js" ScriptMode="Auto" Path="~/js/MsAjax.js"/></Scripts>
        </asp:ScriptManager>
        <asp:UpdatePanel ID="up" ChildrenAsTriggers="false" runat="server" UpdateMode="conditional" RenderMode="Block" OnPreRender="MakeEditor">
        <ContentTemplate>
            <div runat="server" id="divMsg" class="hide"></div>
            <div runat="server" id="sendBox">
				<table cellspacing="0">
                    <tr><td class="htd">邮箱：</td><td align="right"><asp:TextBox runat="server" ID="addrs" TextMode="MultiLine" ToolTip="输入收件人邮箱地址，多个地址之间用逗号或分号或换行分隔" Rows="1" Width="80%"></asp:TextBox><asp:UpdatePanel ID="upUsers" runat="server" UpdateMode="conditional" RenderMode="Inline">
                        <ContentTemplate><asp:DropDownList runat="server" ID="ddlUsers" OnSelectedIndexChanged="UpdateUsers"></asp:DropDownList><asp:Button runat="server" ID="btnTrigger" OnClick="UpdateUsers" CssClass="hide" /></ContentTemplate>
                        </asp:UpdatePanel></td></tr>
                    <tr><td>主题：</td><td align="right"><asp:TextBox runat="server" ID="tbSubject" ToolTip="输入邮件主题" Rows="1" Width="98%"></asp:TextBox></td></tr>
                </table>
                <asp:TextBox runat="server" ID="ckContent" TextMode="MultiLine"></asp:TextBox>
			</div>
			<div id="btnArea" runat="server" class="center">
                <br />
				<asp:Button runat="server" ID="btnSend" Text="发送" OnClick="SendMail" OnClientClick="return sending();" CssClass="btn big" />
                <input type="button" onclick="return showHelp('editor');" value="帮助" class="btn" />
			</div>
            <div runat="server" id="resultArea" visible="false">
                <div runat="server" id="resultMsg"></div>
                <input type="button" class="btn big" runat="server" id="btnContinue" value="继 续" onserverclick="SendMail" />
                <input type="button" class="btn big" id="btnClose" value="关 闭" onclick="back();" />
            </div>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btnSend" EventName="Click" />
            <asp:AsyncPostBackTrigger ControlID="btnContinue" EventName="serverclick" />
        </Triggers>
        </asp:UpdatePanel>
        <script src="js/comm.js"></script><script src="js/mail.js"></script>
		</form>
	</body>
</html>