<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SendToStudent.aspx.cs"
    Inherits="SWTraining.SMS.SendToStudent" Title="其它管理-短信管理-短信发送给学员" %>

<!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">
    <title></title>
    <link id="linkStyle" runat="server" href="../Themes/Blue/css.css" rel="stylesheet"
        type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div class="divpanel">
        <table class="table" cellspacing="0">
            <tr>
                <th colspan="2">
                    发送短信到学员
                </th>
            </tr>
            <tr>
                <td>
                    学员列表：
                </td>
                <td>
                    <div style="width: 260px">
                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="smallgridview"
                            OnRowDeleting="GridView1_RowDeleting" EnableViewState="False">
                            <Columns>
                                <asp:CommandField DeleteText="删除" HeaderText="操作" ButtonType="Link" ShowDeleteButton="true" />
                                <asp:BoundField DataField="StudentID" HeaderText="学号" />
                                <asp:BoundField DataField="StudentName" HeaderText="姓名" />
                                <asp:BoundField DataField="MobileTel" HeaderText="手机" />
                            </Columns>
                        </asp:GridView>
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    短信内容：
                </td>
                <td>
                    <div id="msg" style="color: #676767">
                    </div>
                    <asp:TextBox ID="tbxContent" runat="server" Height="111px" TextMode="MultiLine" Width="162px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="width: 69px">
                    类别：
                </td>
                <td style="width: 510px">
                    <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>
                    <span style="color: #ff0000">*</span>
                    <asp:CompareValidator ID="_ddlUserLevel" runat="server" ControlToValidate="ddlUserLevel"
                        ErrorMessage="请选择类别！" Operator="NotEqual" ValueToCompare="0"></asp:CompareValidator>
                </td>
            </tr>
            <tr>
                <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">
                        <asp:ListItem Value="0">App/短信</asp:ListItem>
                        <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" Width="201px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    <label class="lab_buttom">
                        <asp:Button ID="btnPost" runat="server" Text="发送" OnClick="btnPost_Click" />
                    </label>
                    <label class="lab_buttom">
                        <input causesvalidation="false" type="button" runat="server" onclick="back()" value="返回" />
                    </label>
                </td>
            </tr>
        </table>
    </div>
    <div class="divpanel">
        <b>注意事项：</b><br />
        1、短信内容中支持如下变量：<b>{学号}{姓名}{手机}{日期时间}{日期}{时间}</b>。<br />
    </div>
    </form>
</body>
</html>
