<%@ Page Language="C#" MasterPageFile="~/User/UserCenter/UserView.Master"  AutoEventWireup="true"  Codebehind="UserMessageDraftBox.aspx.cs" Inherits="PPFOR.User.UserCenter.UserMessageDraftBox" Title="草稿箱" %>
<%@ Register Src="PageBar.ascx" TagName="PageBar" TagPrefix="page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PPFOR_userViewContent" runat="server"> 
<script src="/Admin/JS/gridview.js" type="text/javascript"></script> 
<div class="tableco">
    <h1><%=languageMessage.GetMessage("userDraftBox", "草稿箱")%></h1>   
    <form runat="server" id="form1">
        <asp:GridView ID="PPFOR_showMemberMessageList" CssClass="listtable" runat="server" OnRowDataBound="PPFOR_gridViewRowDataBound" AllowPaging="false" AutoGenerateColumns="False"  DataKeyNames="MsgID"  Width="100%" CellPadding="0" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="0px" >
           <Columns>  
           <asp:TemplateField HeaderStyle-CssClass="wd" HeaderStyle-HorizontalAlign="Center" ItemStyle-CssClass="color1" ShowHeader="False" HeaderText="">                
                 <HeaderTemplate>
                     <asp:CheckBox ID="PPFOR_selectMessage" runat="server"></asp:CheckBox>
                 </HeaderTemplate>
                 <ItemTemplate>
                     <asp:CheckBox ID="PPFOR_selectMessage" runat="server"></asp:CheckBox>
                 </ItemTemplate>
             </asp:TemplateField>
             <asp:BoundField HeaderStyle-CssClass="title" DataField="MsgID" HeaderStyle-Font-Bold="false"/> 
             <asp:TemplateField HeaderStyle-CssClass="title" HeaderStyle-Font-Bold="false">
                <ItemTemplate>
                <a href='SendMessage.aspx?mid=<%# Eval("MsgID") %>' title="<%=languageMessage.GetMessage("userMsgToSend", "发送消息")%>"><%#PPFOR_getMessageMemberTitle(Eval("MsgBodyID"))%></a>
                </ItemTemplate>
             </asp:TemplateField>        
             <asp:TemplateField HeaderStyle-CssClass="title" HeaderStyle-Font-Bold="false">
                <ItemTemplate>
                <%#PPFOR_getMessageMemberName(Eval("MsgReceiveMemberID"), Eval("MsgReceiveIsAdmin"))%>
                </ItemTemplate>
             </asp:TemplateField>    
             <asp:BoundField HeaderStyle-CssClass="title" DataField="MsgSendTime" HeaderStyle-Font-Bold="false"/>  
            </Columns>            
             <FooterStyle BackColor="#990000" ForeColor="White" /> 
             <RowStyle Font-Bold="false" BackColor="#ffffff"/> 
             <HeaderStyle BackColor="#F5F5F5" Font-Bold="false" ForeColor="#000000" />
             <AlternatingRowStyle BackColor="#F5F5F5" />
        </asp:GridView> 
        <table width="100%" cellpadding="5px" cellspacing="3px" border="0"  style="display:<%=PPFOR_displayRecordOption %>"> 
            <tr id="rows1">
                <td align="left">
                  <asp:Button ID="PPFOR_deleteMessage" CssClass="blueinput" runat="server" OnClick="PPFOR_deleteMessageClick"/>      
                  <input type="reset" class="blueinput" value="<%=languageMessage.GetMessage("userResetButton", "重置") %>" onclick="SelectAllRows('<%=form1.ClientID%>',false);"/>      
                </td>
            </tr>
          </table>       
         <page:PageBar ID="PPFOR_pageBar" runat="server" />      
    </form>
</div>
</asp:Content>
