<%@ 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">
                            <Columns>
                                <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>
                    选择模板：
                </td>
                <td>
                    <asp:DropDownList ID="ddlSmsTemplate" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlSmsTemplate_SelectedIndexChanged">
                    </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>
                    <asp:Button ID="btnPost" runat="server" Text="发送" OnClick="btnPost_Click" />
                    &nbsp;<input causesvalidation="false" type="button" runat="server" onclick="back()"
                        value="返回" />
                </td>
            </tr>
        </table>
    </div>
    <div class="divpanel">
        <b>注意事项：</b><br />
        1、短信内容中支持如下变量：<b>{学号}{姓名}{手机}{日期时间}{日期}{时间}</b>。<br />
        2、注意，使用变量值时不要使短信内容超出70字符，变成多条。<br />
    </div>
    </form>
</body>
</html>
