<%@ Page Language="c#" CodeBehind="SendToUser.aspx.cs" AutoEventWireup="True" Inherits="MTCUN.Mobile.SMS.SendToUser"
    ValidateRequest="false" Title="发送给员工-消息" %>

<%@ Import Namespace="MTCUN" %>
<%@ Register Src="../User_Col/col_Header.ascx" TagName="col_Header" TagPrefix="uc3" %>
<!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">
<head runat="server">
    <link id="mobileCss" runat="server" href="../themes/mobile.css" rel="stylesheet"
        type="text/css" />
    <script type="text/javascript">
        var h = 36;
        function AddHeight(num) {
            var div = document.getElementById("tbxTargetNos");
            if (num < 0 && h < 36) {

            } else {
                h += num;
            }

            if (h > 0) {
                div.style.height = h + "px";
            }

            document.getElementById("codeboxheight").value = h;
        }
    </script>
</head>
<body>
    <form id="FormPost" method="post" runat="server">
        <uc3:col_Header ID="col_Header1" runat="server" />
        <div id="web_page_contents">

            <div class="biao_zhun_suo_jin">
                <div class="kuai_show">
                    <table class=" table_simple_kuan" border="0" cellspacing="0">
                        <tr>
                            <th colspan="2">发送消息到员工
                            </th>
                        </tr>
                        <tr>
                            <td style="width: 85px">发送给：
                            </td>
                            <td>
                                <div class="striking">
                                    <asp:CheckBoxList ID="cblUsers" runat="server" DataTextField="TrueName" DataValueField="UserID" CssClass="font16" RepeatColumns="2" RepeatDirection="Horizontal">
                                    </asp:CheckBoxList>



                                    <table class="table_simple_kuan">
                                        <tr>
                                            <td>
                                                <label class="lab_button dianming btn_width">
                                                    <asp:CheckBox ID="cbxAll" runat="server" Text="全选" AutoPostBack="True" OnCheckedChanged="cbxAll_CheckedChanged" />
                                                </label>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </td>
                        </tr>
                        <tr style="display:none">
                            <td>抄送：
                            </td>
                            <td>
                                <table class="table_simple_kuan" cellpadding="1" cellspacing="1">
                                    <tr>
                                        <td>
                                            <label class="lab_button">
                                                <input id="btnAddHeight" type="button" value="+" title="加高编辑器" onclick="AddHeight(100);" /></label>
                                        </td>
                                        <td>
                                            <label class="lab_button">
                                                <input id="btnClearHeight" type="button" value="-" title="减高编辑器" onclick="AddHeight(-100);" /></label>
                                        </td>
                                    </tr>
                                </table>


                                <br />
                                <table class="table_simple_kuan" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td>
                                            <asp:TextBox ID="tbxTargetNos" runat="server" Height="36px" TextMode="MultiLine"></asp:TextBox>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>消息内容：
                            </td>
                            <td>
                                <div id="msg" style="color: #676767">
                                </div>
                                <asp:TextBox runat="server" MaxLength="70" ID="tbxContent" Height="110px"
                                    TextMode="MultiLine"></asp:TextBox>
                                <span style="color: #ff0000">*</span>
                            </td>
                        </tr>
                        <tr class="required" id="trUserLevel" runat="server">
                            <td>类别：
                            </td>
                            <td>
                                <table class="table_simple" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td>

                                            <asp:DropDownList ID="ddlUserLevel" runat="server">
                                                <asp:ListItem Value="0">请选择</asp:ListItem>
                                                <asp:ListItem Value="1">通知</asp:ListItem>
                                                <asp:ListItem Value="2">广告</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                        <td>

                                            <asp:CompareValidator ID="_ddlUserLevel" runat="server" ControlToValidate="ddlUserLevel"
                                                ErrorMessage="请选择类别！" Operator="NotEqual" ValueToCompare="0"></asp:CompareValidator>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr style="display:none">
                            <td>选择模板：
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlSmsTemplate" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlSmsTemplate_SelectedIndexChanged">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>发送通道：
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlGangway" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlGangway_SelectedIndexChanged">
                                    <asp:ListItem Value="1">短信+App</asp:ListItem>
                                    <asp:ListItem Value="2">短信</asp:ListItem>
                                    <asp:ListItem Value="3">App</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>发送时间：
                            </td>
                            <td>
                                <asp:TextBox ID="tbxDateAndTime" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </div>

                <label class="lab_button_kuan">
                    <asp:Button ID="btnGoto" runat="server" Text="发送" OnClick="btnGoto_Click"></asp:Button>
                </label>
                <label class="lab_button_kuan" id="__mt_labBack" runat="server">
                    <input causesvalidation="false" type="button" runat="server" onclick="back(this)" value="返回" />
                </label>

                <div class=" divremark">
                    <b>注意事项：</b><br />
                    1、短信内容中支持如下变量：<b>{工号}{姓名}{手机}{日期时间}{日期}{时间}</b>。<br />
                </div>
            </div>
        </div>
        <input id="codeboxheight" name="codeboxheight" type="hidden" value="300" />
    </form>

</body>
</html>
