<%@ page language="C#" masterpagefile="~/member/MemberMasterPage.master" autoeventwireup="true" inherits="V5Shop.NewMember.User_Message_Manage, V5Shop.Member" title="Untitled Page" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<%@ Register Src="UserControl/PageList.ascx" TagName="PageList" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

 <style>
    .selectedArea{font-weight: bold; background: url(images/list/tab-1.gif) no-repeat;
                    float: left; width: 76px; color: #111; line-height: 27px; margin-right: 3px;
                    height: 27px; text-align: center}
    .normalArea{background: url(images/list/tab-2.gif); float: left; margin: 3px 3px 0px 0px;
                    width: 76px; line-height: 24px; height: 24px; text-align: center}
 </style>


<div style="float:left; width:760px">
    <div><img src="images/list/top-1.gif" /></div>
	<div style="border-right:1px #C5DCE7 solid; width:739px; padding:10px; height: 652px">
	  <div style="background:url(images/list/tab-bg.gif) repeat-x bottom; height:27px; padding-left:20px">
	    <div class="normalArea" id="divMsgAll" runat="server"><a href="User_Message_Manage.aspx" style="text-decoration:none">全部短信</a></div>
		<div class="normalArea" id="divMsg0" runat="server"><a href="User_Message_Manage.aspx?Status=0" style="text-decoration:none">未读短信</a></div>
		<div class="normalArea" id="divMsg1" runat="server"><a href="User_Message_Manage.aspx?Status=1" style="text-decoration:none">已读短信</a></div>
		<div class="normalArea" id="divMsg2" runat="server"><a href="User_Message_Manage.aspx?Status=2" style="text-decoration:none">已发短信</a></div>
	  </div>
	  <div style="background:url(images/list/bg_2.gif) repeat-x; height:30px; line-height:30px">
	    <div style="float:left; width:150px; text-align:center">发件人</div>
		<div style="float:left; width:329px; text-align:center">短信标题</div>
		<div style="float:left; width:100px; text-align:center">发送时间</div>
		<div style="float:left; width:160px; text-align:center">操作</div>
	  </div>
	    <div style="border-top: #dedee0 1px solid; margin-top: 2px; background: #f3f3f3;
                line-height: 28px; border-bottom: #dedee0 1px solid; height: 28px">
                <input name="checkbox" type="checkbox" class="checkbox" id="CheckAllBox" onclick="CheckAll()" /> 
                全选<%--<input type="button" class="input_bg2" value="加入购物车" />--%>
                <asp:Button ID="BtnDelete2" runat="server" Text="删除" CssClass="input_bg" OnClick="BtnDelete_Click" />
            <asp:Button ID="btnSend" runat="server" Text="发送短信" CssClass="input_bg2" OnClick="btnSend_Click"  /></div>
	  
	  <div class="list2_div1">
	    <table width="100%" border="0" cellspacing="0" cellpadding="0">


   <asp:Repeater ID="rpUserMessage" runat="server" >
		            <ItemTemplate>
			            <tr  class='<%# Eval("CssClass") %>'>
                        <td width="20">
                          
                                 <asp:CheckBox ID="chkChoose" runat="server" />
                          <asp:HiddenField ID="CheckBoxID" runat="server" Value='<%# Eval("ID") %>' /> 
                           
                        </td>
                      <td width="130" align="center"><a href="User_Message_View.aspx?id=<%# Eval("ID") %>">&nbsp;<%# Eval("SendName")%></a></td>
                    <td width="329"><a href="User_Message_View.aspx?id=<%# Eval("ID") %>">&nbsp;<%# Eval("Title")%></a></td>
                    <td width="100" align="center"><a href="User_Message_View.aspx?id=<%# Eval("ID") %>"><%# Convert.ToDateTime(Eval("Date")).ToShortDateString()%> </a></td>
                    <td align="center"><a href="User_Message_View.aspx?id=<%# Eval("ID") %>">查看详情</a>  <a href="User_Message_Operate.aspx?id=<%# Eval("ID") %>" class='<%=status.Equals("2")?"span_no_display":"span_display"%>'>回复</a></td>
                    </tr>
		            </ItemTemplate>
	            </asp:Repeater>
</table>
	  </div>
	  
	 <div style="border-top: #dedee0 1px solid; margin-top: 2px; background: #f3f3f3;line-height: 28px; border-bottom: #dedee0 1px solid; height: 28px;">
                <div style="float: left">
                    <input name="checkbox1" type="checkbox" class="checkbox" id="CheckAllBox2" onclick="CheckAll2()" /> 
                    &nbsp;全选
                   <%--<input type="button" class="input_bg2" value="加入购物车" />--%>	
                    <asp:Button ID="BtnDelete" runat="server" Text="删除" CssClass="input_bg" OnClick="BtnDelete_Click" />
                </div>
                <uc1:pagelist id="PageList1" runat="server" ></uc1:pagelist>
             
            </div>
	</div>
	<div><img src="images/list/bottom-1.gif" /></div>
  </div>
  
  
   <asp:Label ID="lblParam" runat="server" Text="参数错误" Visible="false" ></asp:Label>
    <asp:Label ID="lblDelete" runat="server" Text="您确定要删除吗?" Visible="false" ></asp:Label>
</asp:Content>

