<%@ Page Language="c#" CodeBehind="SmsReceive.aspx.cs" AutoEventWireup="True" Inherits="MTCUN.Mobile.SMS.SmsReceive"
    Title="已收短信-消息" %>

<%@ Import Namespace="MTCUN" %>
<%@ Register Src="../../UserCol/Progress.ascx" TagName="Progress" TagPrefix="uc1" %>
<%@ 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" />
</head>
<body>
    <form id="Form1" 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="main">
                    <label class="lab_button">
                        <asp:Button ID="btnDownSMS" runat="server" OnClick="btnDownSMS_Click" Text="手动下载回复短信" />
                    </label>
                    <asp:Label ID="labMsg" runat="server" ForeColor="Red"></asp:Label>

                    <div class="divpanel">
                        <asp:GridView ID="GridView1" runat="server" CssClass="gridview" AutoGenerateColumns="False"
                            DataKeyNames="SMSID" OnRowDataBound="GridView1_RowDataBound" OnRowDeleting="GridView1_RowDeleting">
                            <SelectedRowStyle CssClass="selected" />
                            <Columns>
                                <asp:TemplateField HeaderText="回复者编号">
                                    <ItemTemplate>
                                        <%#Eval("ClientID")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="回复者">
                                    <ItemTemplate>
                                        <%#Eval("ClientName")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="手机号码">
                                    <ItemTemplate>
                                        <%#Eval("Mobile")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="Msg" ReadOnly="True" HeaderText="内容" />
                                <asp:BoundField DataField="RepTime" ReadOnly="True" HeaderText="回复时间" />
                                <asp:TemplateField HeaderText="回复">
                                    <ItemTemplate>
                                        <asp:HyperLink runat="server" ID="hlkReply" Text="回复" NavigateUrl='<%# string.Format("SendToReply.aspx?SMSID={0}&GetUrl={1}",Eval("SMSID"),swq.Web.PathAndQuery()) %>'></asp:HyperLink>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="删除">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lbnDelete" runat="server" Text="删除" CommandName="Delete" OnClientClick="<%# Rs.Messages.确定删除%>"></asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </div>


                    <div class="main">
                        <asp:Repeater ID="repBlock" runat="server" OnItemCommand="repBlock_ItemCommand" OnItemDataBound="repBlock_ItemDataBound">
                            <ItemTemplate>
                                <div class="kuai">
                                    <h1 class="auto_length_title">
                                        <%#Eval("Mobile")%>
                                    </h1>

                                    <table class="table_simple_kuan" cellspacing="0" border="0">
                                        <tr>
                                            <td style="width: 65px">内容：</td>
                                            <td style="width: auto"><%# Eval("Msg") %></td>
                                        </tr>
                                        <tr>
                                            <td style="width: auto">时间：</td>
                                            <td style="width: auto"><%#Eval("RepTime") %></td>
                                        </tr>
                                        <tr>
                                            <td style="width: auto">回复者：</td>
                                            <td style="width: auto"><%# Eval("ClientName") %></td>
                                        </tr>
                                    </table>

                                    <table style="width: 100%;" cellpadding="0" cellspacing="2">
                                        <tr>
                                            <td>
                                                <div class="lab_button" id="divRe" runat="server">
                                                    <asp:HyperLink runat="server" ID="hlkReply" Text="回复" NavigateUrl='<%# string.Format("SendToReply.aspx?SMSID={0}&GetUrl={1}",Eval("SMSID"),swq.Web.PathAndQuery()) %>'></asp:HyperLink>
                                                </div>
                                            </td>
                                            <td>
                                                <div class="lab_button" id="divDelete" runat="server">
                                                    <asp:LinkButton ID="lbnDelete" runat="server" Text="删除" CommandName="Delete" CommandArgument='<%#Eval("smsID")%>'
                                                        OnClientClick="<%# Rs.Messages.确定删除%>"></asp:LinkButton>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </ItemTemplate>
                        </asp:Repeater>
                    </div>



                    <div class=" pager_button">
                        <asp:Literal ID="litPagerButton" runat="server"></asp:Literal>
                    </div>

                    <label class="lab_button_kuan">
                        <asp:Button ID="btnClear" runat="server" OnClick="btnClear_Click" Text="全部清空" OnClientClick="return confirm('您确定要清除所有短信？');" />
                    </label>

                    <label class="lab_button_kuan" id="__mt_labBack" runat="server">
                        <input causesvalidation="false" type="button" runat="server" onclick="back(this)" value="返回" />
                    </label>
                </div>
            </div>
        </div>
        </div>
    </form>
</body>
</html>
