<%@ page language="C#" autoeventwireup="true" inherits="User_Message_MessageList, QianboCMS" enableEventValidation="false" %>
<%@ Import Namespace="Qianbo.Common" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="../Nav.ascx" TagName="Nav" 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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>短消息管理</title>
<link href="../Images/default.css" rel="stylesheet" type="text/css" />
<link href="../Images/model.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../../Js/SelectCheckBox.js"></script>
<style type="text/css">
a
{
    text-decoration: none;
    color: #333;
}
a:hover
{
    color: #cc0000;
    text-decoration: underline;
}
</style>
</head>

<body>
<form id="form1" runat="server">
  <div class="wrapper">
  <div class="user_main_all">
    <uc1:Nav ID="Nav1" runat="server" />
    <div class="user_main">
      <div class="user_sidebar">
        <div>
          <h3><span>个人信息</span></h3>
          <ul>
            <li><a href="../SetUser.aspx">个人资料维护</a></li>
            <li><a href="../ChangePwd.aspx">修改密码</a></li>
            <li><a href="../ChangeQA.aspx">修改密码保护</a></li>
          </ul>
        </div>
        <div>
          <h3><span>信息管理</span></h3>
          <ul>
            <li><a href="../Notice/NoticeList.aspx">系统公告</a></li>
            <li class="current"><a href="../Message/MessageList.aspx?TypeId=1">短消息管理</a></li>
            <li><a href="../UserFavoriteList.aspx">我的收藏夹</a></li>
          </ul>
        </div>
      </div>
      <!-- 主体内容开始 -->
      <div class="user_summary">
        <div class="user_sitepath">您现在的位置：<span id="YourPosition"><span>
          <asp:HyperLink ID="hylnkIndex" runat="server">首页</asp:HyperLink>
          </span><span> &gt;&gt; </span><span><a href="/User/Main.aspx">会员中心</a></span><span> &gt;&gt; </span><span>
          <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
          </span></span></div>
        <div class="user_sitepath"><a href="MessageList.aspx?TypeId=1">短消息管理</a> | <a href="Message.aspx">发送短消息</a> | <a href="MessageList.aspx?TypeId=3">草稿箱</a> | <a href="MessageList.aspx?TypeId=1">收件箱</a> | <a href="MessageList.aspx?TypeId=2">发件箱</a> | <a href="MessageList.aspx?TypeId=4">回收站</a></div>
        <div class="model_info_list">
          <table border="0" cellpadding="0" cellspacing="1" class="border" width="99%" align="center">
            <tr class="title">
              <td width="5%">全选</td>
              <td>短消息主题</td>
<%if (PrintMode(1))
	{ %>
              <td>发件人</td>
<%} %>
<%if (PrintMode(2))
	{ %>
              <td>收件人</td>
<%} %>
              <td width="15%">发送日期</td>
              <td width="10%">大小</td>
              <td width="5%">已读</td>
              <td width="5%">操作</td>
            </tr>
            <asp:Repeater ID="Repeater2" runat="server">
              <ItemTemplate>
                <tr class="tdbg">
                  <td></td>
                  <td align="left" style="padding-left: 5px;"><a href="MessageRead.aspx?TypeId=<%=Request.QueryString["TypeId"] %>&id=<%# Eval("WMId") %>"><%# Eval("Title") %></a></td>
                  <td visible='<%# PrintMode(1)%>' runat="server"><%# Eval("SendName") %></td>
                  <td visible='<%# PrintMode(2)%>' runat="server"><%# Eval("ReceiverName") %></td>
                  <td><%# Eval("AddDate") %></td>
                  <td><%# Function.GetStrByByte(DataBinder.Eval(Container, "DataItem.Content", "{0}"))%></td>
                  <td></td>
                  <td></td>
                </tr>
              </ItemTemplate>
            </asp:Repeater>
            <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
              <ItemTemplate>
                <tr class="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" style="padding-left: 5px;"><%if (Request.QueryString["TypeId"]=="3") {%>
                    <a href="Message.aspx?Action=Edit&MessageId=<%# Eval("WMId") %>">
                    <%} else{%>
                    <a href="MessageRead.aspx?TypeId=<%=Request.QueryString["TypeId"] %>&id=<%# Eval("WMId") %>">
                    <%} %>
                    <%# Eval("Title") %></a></td>
                  <td visible='<%# PrintMode(1)%>' runat="server"><%# Eval("SendName") %></td>
                  <td visible='<%# PrintMode(2)%>' runat="server"><%# Eval("ReceiverName") %></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>
            <tr class="tdbg">
              <td colspan="7"><webdiyer:AspNetPager ID="Pager" runat="server" AlwaysShow="True" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PageSize="20" PrevPageText="上一页" ShowInputBox="Never" UrlPageIndexName="p" UrlPaging="True" ShowCustomInfoSection="Left" Width="99%"></webdiyer:AspNetPager></td>
            </tr>
            <tr class="tdbg">
              <td colspan="7" align="left" style="padding-left: 5px;"><asp:Button ID="Button1" runat="server" Text="删除勾选记录" CssClass="submit_button_eight" onmousedown="if(confirm('是否确认删除选中记录？'))document.form1.Button1.click(); else return false;" OnClick="Button1_Click"></asp:Button>
                <input id="checkDel" onClick="CheckDelBox(this)" type="checkbox">
                <span id="ShowA">选择全部</span></td>
            </tr>
            <tr class="tdbg">
              <td colspan="7" align="left" style="padding-left: 5px;">短消息搜索：
                <asp:DropDownList ID="TypeId" runat="server">
                  <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:DropDownList ID="SearchId" runat="server">
                  <asp:ListItem Value="0">搜索类型</asp:ListItem>
                  <asp:ListItem Value="1">短消息主题</asp:ListItem>
                  <asp:ListItem Value="2">短消息内容</asp:ListItem>
                </asp:DropDownList>
                <asp:TextBox ID="KeyWord" runat="server" Text="关键字" onclick="javascript:this.value=''" CssClass="inputxt"></asp:TextBox>
                <asp:Button ID="Button2" runat="server" Text="搜索" CssClass="submit_button" OnClick="Button2_Click" /></td>
            </tr>
          </table>
        </div>
        <!-- 主体内容结束 -->
        <div class="clear"></div>
      </div>
    </div>
  </div>
  <div class="foot">
    <div class="wrapper">
      <div class="usercopyright"><a href="http://www.qianbo.com.cn/" target="_blank">技术架构：千博站群系统</a>Copyright © 1999-2012</div>
    </div>
  </div>
</form>
</body>
</html>