<%@ 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"%>
<html>
	<head id="head1"  runat="server">
    <title><%=pagename %></title>
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="stylesheet" type="text/css" href="lib/bootstrap/css/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="stylesheets/theme.css">
    <link rel="stylesheet" href="lib/font-awesome/css/font-awesome.css">
    <link href="site_css2.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="js/DatePicker/WdatePicker.js" language="javascript"></script>
    <script type="text/javascript" src="js/myjs.js" language="javascript"></script>
    <script src="lib/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="lib/bootstrap/js/bootstrap.js" type="text/javascript"></script>
    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <!-- Le fav and touch icons -->
	    <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  
	        }


	        function zstj(obj1, obj2) {
	            obj2.innerHTML = obj1.value.length + " / 210";
	            if (obj1.value.length > 70) {
	                obj2.innerHTML = "<font color='#FF0000'>" + obj2.innerHTML + "</font>"
	            }
	        }
  
    
                                                        
</script>  
</head>
  <body class=""> 
     <!--<![endif]-->
    <form id="Form1" runat="server">
    <div class="content">
        
        <div class="header">

            <h1 class="page-title"><%=pagename %></h1>
        </div>
        
                <ul class="breadcrumb">
            <li><a href="info.aspx">系统首页</a> <span class="divider">/</span></li>
            <li class="active"><%=pagename %></li>
        </ul>

        <div class="container-fluid">
            <div class="row-fluid">
                    
<div class="btn-toolbar">
    <asp:button id="Button1" runat="server" Text="执行发送" AccessKey="s" 
        OnClientClick="disableBtn(this);" class="btn"></asp:button>
</div>
<div class="btn-group"></div>
<div class="well">


<table class="table" width="100%">
					<tr>
						<td class="td1">相关选项：</td>
						<td class="td2">
                            <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>
                        </td>
					</tr>
					<tr>
						<td class="td1">邮件标题：</td>
						<td class="td2">
                            <asp:TextBox ID="bt" runat="server" Width="524px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                ControlToValidate="bt" ErrorMessage="标题不能为空"></asp:RequiredFieldValidator>
                        </td>
					</tr>
					<tr>
						<td class="td1">邮件内容：<br />
                            HTML<asp:Label ID="htmlzt" runat="server"></asp:Label>
                        </td>
						<td class="td2">
                            <asp:TextBox ID="nr" runat="server" Height="144px" MaxLength="210" 
                                onkeyup="zstj(this,zs)" TextMode="MultiLine" 
                                Width="524px"></asp:TextBox>
                            </td>
					</tr>
					<tr>
						<td class="td1">接收邮箱（每行一号）：</td>
						<td class="td2">
                         <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" style="vertical-align: 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>
					</table>



</div>
                  
            </div>
        </div>
    </div>

    </form>
</body>
</html>
