<%@ page language="C#" autoeventwireup="true" inherits="admin_message_MessageList, DianCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Import Namespace="D.BLL" %>
<%@ Import Namespace="D.Common" %>
<!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="CssName" rel="stylesheet" type="text/css" runat="server" />

    <script src="../../js/Common.js" type="text/javascript"></script>

    <script src="../../js/<%=B_Lang.getLang() %>/SelectCheckBox.js" language="javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <table class="dh" cellpadding="0" cellspacing="0" border="0" align="center">
        <tr>
            <td>
                <asp:Image ID="P_Go" runat="server" ImageAlign="AbsMiddle" />
                您现在的位置：<a href="../info.aspx">后台管理</a> >> 站内短信列表
            </td>
        </tr>
    </table>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table align="center" cellpadding="2" cellspacing="1" width="99%" class="border">
                <tr class="title">
                    <td width="25" class="t1">
                        选择
                    </td>
                    <td>
                        消息主题
                    </td>
                    <td>
                        发件人
                    </td>
                    <td>
                        收件人
                    </td>
                    <td>
                        内容大小
                    </td>
                    <td width="140">发送时间</td>
                    <td>
                        操作
                    </td>
                </tr>
                <asp:Repeater ID="RepMessage" runat="server" OnItemCommand="RepMessage_ItemCommand">
                    <ItemTemplate>
                        <tr class="tdMoveTr" onmouseover="this.className='tdMoveTrBg'" onmouseout="this.className='tdMoveTr'">
                            <td class="t1">
                                <asp:TextBox ID="TextBox1" runat="server" Text='<%#Eval("Id") %>' style="display:none"></asp:TextBox>
                                <asp:CheckBox ID="CheckBox1" runat="server" />
                            </td>
                            <td>
                                <%#Eval("title") %>
                            </td>
                            <td>
                                <%#Eval("Sender")%>
                            </td>
                            <td>
                                <%#Eval("Receiver")%>
                            </td>
                            <td><%# Function.GetStrByByte(DataBinder.Eval(Container, "DataItem.Content", "{0}"))%></td>
             <td><%#Eval("AddTime")%></td>
                            <td align="center">
                                <asp:LinkButton ID="lnkDelete" runat="server" Text="删除" CommandName="Delete" CommandArgument='<%#Eval("Id") %>'
                                    OnClientClick="return confirm('您确定要删除该条信息吗?')"></asp:LinkButton>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
            <table cellpadding="0" cellspacing="1" class="dh2" align="center">
                <tr>
                    <td>
                        <webdiyer:AspNetPager ID="Pager" runat="server" AlwaysShow="True" FirstPageText="首页"
                            LastPageText="尾页" NextPageText="下一页" PageSize="20" HorizontalAlign="Right" PrevPageText="上一页"
                            showinputbox="Never" UrlPageIndexName="p" UrlPaging="True" ShowCustomInfoSection="Left"
                            Width="99%">
                        </webdiyer:AspNetPager>
                    </td>
                </tr>
            </table>
            <table cellpadding="0" cellspacing="1" class="dh2" align="center">
                <tr>
                    <td height="30"><input id="checkDel" onclick="CheckDelBox(this)"
                                type="checkbox"><span id="ShowA">选择全部</span>
                        <asp:Button ID="Button2" runat="server" Text="移动到回收站" CssClass="btn" 
                            style="margin-left:10px" onclick="Button2_Click"></asp:Button><asp:Button ID="Button1" runat="server" Text="彻底删除选中记录" CssClass="btn" onmousedown="if(confirm('您确认删除选中记录？'))document.form1.Button1.click(); else return false;"
                            OnClick="Button1_Click" style="margin-left:10px"></asp:Button>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
