<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MsgS.aspx.cs" Inherits="TotCms.Web.Admin.Member.MsgS" %>

<%@ Register src="../UI/main_top.ascx" tagname="main_top" tagprefix="uc1" %>

<%@ Register assembly="TotCms.Controls" namespace="TotCms.Controls" tagprefix="cc1" %>

<!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 id="Head1" runat="server">
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <title>站内短消息管理</title>
  <link href="../style/global.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
      <uc1:main_top ID="main_top1" runat="server" />
    
    </div>
    <table cellpadding="0" cellspacing="1" border="0" width="100%">
      <tr>
        <td class="topic">站内短消息管理
        &nbsp;<a href="Msg_Edit.aspx">添加</a>
        </td>
        <td align="right">
            &nbsp;关键字：
            <asp:TextBox ID="tbKey" runat="server"></asp:TextBox>
          <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="搜索" />
        </td>
      </tr>   
    </table>
    <table cellpadding="0" cellspacing="1" border="0" width="100%">
      <asp:Repeater ID="RepeateList" runat="server" OnItemCommand="RepeateList_ItemCommand">
        <HeaderTemplate>
          <tr class="suphead">
              <td>发信人</td>
              <td>接收人</td>
              <td style="text-align:left;padding:0px 0px 0px 5px;">标题</td>
              <td style="text-align:left;padding:0px 0px 0px 5px;">内容</td>
              <td>阅读</td>
              <td>日期</td>
              <td>操作</td>
          </tr>
        </HeaderTemplate>
        <ItemTemplate>
          <tr class="lines">
            <td><a href='Member_Edit.aspx?id=<%# Eval("FromUser") %>'><%# Eval("FromUser") %></a></td>
            <td align="left">&nbsp;<a href='Member_Edit.aspx?id=<%# Eval("ToUser") %>'><%# Eval("ToUser")%></a></td>
            <td style="text-align:left;padding:0px 0px 0px 5px;"><%# Eval("Title")%></td>
            <td style="text-align:left;padding:0px 0px 0px 5px;"><%# Eval("Content")%></td>
            <td><%# GetType(Eval("IsRead"))%></td>
            <td><%# Eval("PubDate")%></td>
            <td>
				      <asp:LinkButton ID="LinkButton2" OnLoad="Delete_Load" runat="server" CommandName="delete" CommandArgument='<%# Eval("id") %>'>删除</asp:LinkButton>
            </td>
          </tr>
         </ItemTemplate>
      </asp:Repeater>
    </table>
    <cc1:Pager ID="Pager1" runat="server" GenerateFirstLastSection="True" 
      GenerateGoToSection="True" GenerateHiddenHyperlinks="False" 
      QueryStringParameterName="CurrentPage" OnCommand="pager_Command" 
      GoToStyle="text" OfClause="/" PageClause="页" PageSize="15" />
    </form>
</body>
</html>
