<%@ page language="C#" autoeventwireup="true" inherits="ims.web.mail, ims.web" enableviewstatemac="false" enableEventValidation="false" %>
<!DOCTYPE html>
<html 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" OnAsyncPostBackError="AsyncError" />
        <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>
                    <tr><td class="htd">邮箱：</td><td><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" style="max-width:19%"></asp:DropDownList><asp:Button runat="server" ID="btnTrigger" OnClick="UpdateUsers" CssClass="hide" /></ContentTemplate>
                        </asp:UpdatePanel></td></tr>
                    <tr><td>主题：</td><td><asp:TextBox runat="server" ID="tbSubject" ToolTip="输入邮件主题" Rows="1" Width="99%"></asp:TextBox></td></tr>
                </table>
                <asp:TextBox runat="server" ID="ckContent" TextMode="MultiLine"></asp:TextBox>
			</div>
			<div id="btnArea" runat="server" class="center mtop_n">
				<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>