<%@ Page Language="C#" AutoEventWireup="true" Inherits="System_WebMessage_WebMessageList, QianboCMS" EnableEventValidation="false" %>
<%@ Import Namespace="Qianbo.Common" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="Head.ascx" TagName="top" TagPrefix="uc1" %>
<!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 href="../Css/layout.css" type="text/css" rel="stylesheet" />
    <script language="javascript" src="../../Js/SelectCheckBox.js"></script>
</head>

<body>
    <form id="form1" runat="server">
        <table cellspacing="1" cellpadding="0" class="wzdh" align="center">
            <tr>
                <td style="padding-left: 10px;">
                    <img src="../Images/Skin/Default/you.gif" align="absmiddle" />
                    您现在的位置：<a href="../SystemInfo.aspx">后台管理</a> &gt;&gt;
                    <asp:Label ID="Label1" runat="server" Text=""></asp:Label>
				</td>
            </tr>
        </table>
        <uc1:top ID="Top1" runat="server" />
        <table align="center" class="border" cellspacing="1" cellpadding="0">
            <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
                <HeaderTemplate>
                    <tr class="title">
                        <td align="center" width="30"><strong>全选</strong></td>
                        <td align="center"><strong>短消息主题</strong></td>
                        <td align="center" width="70"><strong>收件人</strong></td>
                        <td align="center" width="70"><strong>发件人</strong></td>
                        <td align="center" width="140"><strong>发送日期</strong></td>
                        <td align="center" width="50"><strong>大小</strong></td>
                        <td align="center" width="30"><strong>已读</strong></td>
                        <td align="center" width="40"><strong>操作</strong></td>
                    </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr class="tdbg" onmouseover="this.className='tdbgmouseover'" onmouseout="this.className='tdbg'">
                        <td>
                            <asp:CheckBox ID="CheckBox1" runat="server"></asp:CheckBox>
                            <asp:TextBox Text='<%# DataBinder.Eval(Container, "DataItem.WMId","{0}")%>' Style="display: none;" ID="CID" runat="server"></asp:TextBox>
						</td>
                        <td align="left"><%# Eval("Title") %></td>
                        <td><%# Eval("ReceiverName")%></td>
                        <td><%# Eval("SendName") %></td>
                        <td><%# Eval("AddDate") %></td>
                        <td><%# Function.GetStrByByte(DataBinder.Eval(Container, "DataItem.Content", "{0}"))%></td>
                        <td><%# GetIsRead(DataBinder.Eval(Container, "DataItem.IsRead", "{0}"))%></td>
                        <td><asp:LinkButton ID="LinkButton1" runat="server" CommandName="Delete" CommandArgument='<%# Eval("WMId") %>' OnClientClick="return confirm('是否确定删除此消息？')">删除</asp:LinkButton></td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
        <table cellpadding="0" cellspacing="1" class="border" align="center">
            <tr>
                <td class="wzlist">
                    <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%" LayoutType="Table" CustomInfoSectionWidth="10%"></webdiyer:AspNetPager>
				</td>
            </tr>
        </table>
        <table cellpadding="0" cellspacing="1" class="border" align="center">
            <tr>
                <td class="wzlist">
                    <input id="checkDel" onclick="CheckDelBox(this)" type="checkbox">
                    <span id="ShowA">选择全部</span>
                    <asp:Button ID="Button1" runat="server" Text="删除勾选记录" CssClass="btn" onmousedown="if(confirm('是否确定删除选中记录？'))document.form1.Button1.click(); else return false;" OnClick="Button1_Click"></asp:Button>
				</td>
            </tr>
        </table>
        <table cellspacing="1" cellpadding="0" class="border" align="center">
            <tr>
                <td class="wzlist">
					短消息搜索：
					<asp:DropDownList ID="SearchId" runat="server">
						<asp:ListItem Value="0">搜索类型</asp:ListItem>
						<asp:ListItem Value="1">短消息主题</asp:ListItem>
						<asp:ListItem Value="2">短消息内容</asp:ListItem>
						<asp:ListItem Value="3">发件人</asp:ListItem>
						<asp:ListItem Value="4">收件人</asp:ListItem>
					</asp:DropDownList>
                    <asp:TextBox ID="KeyWord" runat="server" Text="关键字" onclick="javascript:this.value=''"></asp:TextBox>
                    <asp:Button ID="Button2" runat="server" Text="搜索" CssClass="btn" OnClick="Button2_Click" />
				</td>
            </tr>
        </table>
    </form>
</body>
</html>