<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="sys_Failure.aspx.cs" Inherits="MTCUN.Mobile.SMS.sys_Failure"
    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" />
</head>
<body>
    <form id="form1" runat="server">
        <uc3:col_Header ID="col_Header1" runat="server" />
        <div id="web_page_contents">

            <div class="biao_zhun_suo_jin">

                <div class="main">

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

                                <table class="table_simple_kuan" cellspacing="0" border="0">
                                    <tr>
                                        <td style="width: 65px">内容：</td>
                                        <td style="width: auto"><%# Eval("Content") %></td>
                                    </tr>
                                    <tr>
                                        <td style="width: auto">时间：</td>
                                        <td style="width: auto"><%#Eval("DateAndTime") %></td>
                                    </tr>
                                    <tr>
                                        <td style="width: auto">接收者：</td>
                                        <td style="width: auto"><%# Eval("ClientName") %></td>
                                    </tr>
                                    <tr>
                                        <td style="width: auto">发送者：</td>
                                        <td style="width: auto"><%# Eval("TrueName") %></td>
                                    </tr>
                                    <tr>
                                        <td style="width: auto" colspan="2">
                                            <div class="striking">错误码:<%# Eval("ErrorNum") %></div>
                                        </td>
                                    </tr>
                                </table>

                                <table style="width: 100%;" cellpadding="0" cellspacing="2">
                                    <tr>
                                        <td>
                                            <div class="lab_button" id="divRe" runat="server">
                                                <asp:LinkButton ID="lbnRe" runat="server" Text="重发" CommandName="Re" CommandArgument='<%#Eval("smsID") %>'></asp:LinkButton>
                                            </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">
                    <asp:Button ID="btnRetry" runat="server" OnClick="btnRetry_Click" OnClientClick="return confirm('注意：只能激活48小时内的短信，有些已过时的短信可能被激活发送，\n您确定要重试失败短信吗？');"
                        Text="全部重试" /></label>

                <div class="divremark">
                    <b>注意事项：</b><br />
                    1、失败短信错误码查询请<a href="http://www.mtcnsoft.com/sms.aspx" target="_blank">[点击]</a>。<br />
                    <span style="color: #FF0000">2、进行“全部重试”操作时注意，只能激活48小时内的短信，有些已过时的短信可能被激活发送。</span><br />
                </div>
            </div>
        </div>
    </form>
</body>
</html>
