<%@ Page Language="VB" AutoEventWireup="false" Inherits="work_plan_web_deploy.admin_send_mail" EnableEventValidation="false" Codebehind="send_mail.aspx.vb" %>
<%@ Import namespace="work_plan_web_deploy"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
	<HEAD id="HEAD1" runat="server">
		<title>邮件发送</title>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
		<LINK href="site_css.css" type="text/css" rel="stylesheet">
<script type="text/javascript">  
function ResetButton() {
    var btn = document.getElementById("Button1");  
if (btn.disabled == true) {  
btn.disabled = false;  
}
}  
 function disableBtn(btn) {  
 btn.value = '系统正在执行操作...';  
btn.disabled = 'disabled';
__doPostBack("Button1", "OnClick"); 
//doPostBack can now fire serverside event even if button is disabled  
 }                                                           
</script> 
	</HEAD>
	<body>
		<form id="Form1" runat="server">
			<div id="title">
				<table cellSpacing="0" cellPadding="5" width="100%" border="0">
					<tr>
						<td align="center" height="20">扩展功能应用 — 邮件发送</td>
					</tr>
				</table>
			</div>
			<div id="place">
				<table cellSpacing="0" cellPadding="5" width="100%" border="0">
					<tr>
						<td height="30">您当前的位置：扩展功能应用 &gt;&gt; 邮件发送</td>
					</tr>
				</table>
			</div>
			<div id="contentdiv">
				<table class="maintable" cellSpacing="0" cellPadding="0" width="100%" border="0">
					<TBODY>
						<tr>
							<td  height="30" align="center" vAlign="middle">
								相关选项：</td>
							<td  height="30" align="left" vAlign="middle">
								<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True">
                                    <asp:ListItem Selected="True" Value="0">请选择邮件组</asp:ListItem>
                                    <asp:ListItem Value="1">部门员工（含下属部门）</asp:ListItem>
                                    <asp:ListItem Value="2">部门员工（不含下属部门）</asp:ListItem>
                                </asp:DropDownList>
                                &nbsp;&nbsp;</td>
						</tr>
						<tr>
							<td  height="30" align="center" vAlign="middle">
								标题：</td>
							<td  height="30" align="left" vAlign="middle">
								<asp:TextBox ID="bt" runat="server" Width="508px" style="width:508px;"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                            ControlToValidate="bt" ErrorMessage="标题不能为空"></asp:RequiredFieldValidator>                                    
                                    </td>
						</tr>
						<tr>
							<td height="30" align="center" vAlign="middle">
								邮件内容：<br />
                                HTML<asp:Label ID="htmlzt" runat="server"></asp:Label>
                            </td>
							<td  height="30" align="left" vAlign="middle">
                                <asp:TextBox ID="nr" runat="server" Height="144px" TextMode="MultiLine" 
                                    Width="508px" MaxLength="300" style="width:508px;height:144px;"></asp:TextBox></td>
						</tr>
						<tr>
							<td align="center" valign="middle">&nbsp; 邮件地址：<br />
                                （每号一行）</td>
						  <td align="left"><table border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td align="left" valign="top">
                                        <asp:TextBox ID="list1" 
                                            runat="server" Height="267px" TextMode="MultiLine" 
                                    Width="166px" style="width:166px;height:267px;"></asp:TextBox>
                                        <br />
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                            ControlToValidate="list1" ErrorMessage="列表不能为空"></asp:RequiredFieldValidator>                                    
                                    </td>
                                    <td  align="left" valign="middle">执行情况：<br />
                                        (<asp:Label ID="lj" runat="server"></asp:Label>
                                        )</td>
                                    <td  align="left" valign="top">
                                    <asp:TextBox ID="list2" runat="server" Height="267px" TextMode="MultiLine" 
                                    Width="277px" style="width:277px;height:267px;"></asp:TextBox></td>
                                  </tr>
                                </table>                          </td>
						</tr>
						<tr>
							<td height="30" align="center" valign="middle">执行操作：</td>
							<td height="30" align="left"><asp:Button ID="Button1" runat="server" Text="发送邮件" OnClientClick="disableBtn(this);" />
                                　　　</td>
						</tr>
			  </TBODY></table>
			</div>
		</form>
	</body>
</HTML>

