<%@ Page Language="VB" AutoEventWireup="false" Inherits="work_plan_web_deploy.send_message" EnableEventValidation="false" Codebehind="send_message.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  
    }


    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>
		<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;<asp:DropDownList ID="yxj" runat="server">
                                    <asp:ListItem Selected="True" Value="0">请选择优先级</asp:ListItem>
                                    <asp:ListItem Value="0">普通优先级</asp:ListItem>
                                    <asp:ListItem Value="1">中优先级</asp:ListItem>
                                    <asp:ListItem Value="2">高优先级</asp:ListItem>
                                </asp:DropDownList>
                                </td>
						</tr>
						<tr>
							<td  height="30" align="center" vAlign="middle">
								短信内容：<br />
                            </td>
							<td  height="30" align="left" vAlign="middle">
                                <asp:TextBox ID="nr" runat="server" Height="144px" TextMode="MultiLine" 
                                    Width="508px" MaxLength="210" onkeyup="zstj(this,zs)" style="width:508px;height:144px;"></asp:TextBox>建议70字以内，当前字数：<span id="zs">0</span></td>
						</tr>
						<tr>
							<td align="center" valign="middle">&nbsp; 接收号码：<br />
                                （每号一行）</td>
						  <td align="left" valign="top"><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>