<%@ Page Language="C#" MasterPageFile="~/Admin/MainPage.Master" AutoEventWireup="true"
    Codebehind="MemberMessageBodyList.aspx.cs" Inherits="PPFOR.Admin.UserInfo.MemberMessageBodyList" Title="消息文件列表" %>
<%@ Register Src="~/Admin/Ascx/PageBar.ascx" TagName="PageBar" TagPrefix="page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PPFOR_mainContent" runat="server">
<script src="../JS/gridview.js" type="text/javascript"></script>  
<script language="javascript" type="text/javascript">
</script>
<form id="form1" action="MemberMessageBodyList.aspx" method="post" runat="server">   
    <asp:GridView ID="PPFOR_showMemberMessageBodyList" CssClass="forgridview" runat="server" OnRowDataBound="PPFOR_gridViewRowDataBound" AllowPaging="false" AutoGenerateColumns="False"  DataKeyNames="MsgBodyID"  Width="100%" CellPadding="0" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="0px" EmptyDataText="没有任何消息文件">
           <Columns>  
           <asp:TemplateField ShowHeader="False" HeaderText="" HeaderStyle-HorizontalAlign="Center">
                 <ItemStyle Wrap="False" HorizontalAlign="Center" />
                 <HeaderTemplate>
                     <asp:CheckBox ID="PPFOR_selectMemberMessage" runat="server"></asp:CheckBox>
                 </HeaderTemplate>
                 <ItemTemplate>
                     <asp:CheckBox ID="PPFOR_selectMemberMessage" runat="server"></asp:CheckBox>
                 </ItemTemplate>
             </asp:TemplateField>
             <asp:BoundField HeaderText="ID" DataField="MsgBodyID" HeaderStyle-Font-Bold="false"/>
             <asp:BoundField HeaderText="消息标题" DataField="MsgTitle" HeaderStyle-Font-Bold="false"/> 
             <asp:TemplateField HeaderText="消息摘要" HeaderStyle-Font-Bold="false" ItemStyle-CssClass="right">
                <ItemTemplate>
                <%#PPFOR_getMessageMemberContent(Eval("MsgContent"))%>
                </ItemTemplate>
             </asp:TemplateField>  
             <asp:BoundField HeaderText="发送数量" DataField="MsgNumber" HeaderStyle-Font-Bold="false"/> 
             <asp:BoundField HeaderText="发送时间" DataField="MsgBodySendTime" HeaderStyle-Font-Bold="false"/> 
             <asp:BoundField HeaderText="引用数量" DataField="MsgUseNumber" HeaderStyle-Font-Bold="false"/>                   
            </Columns>
             <FooterStyle BackColor="#990000" ForeColor="White" /> 
             <RowStyle Wrap="False" HorizontalAlign="Center" Font-Bold="false" BackColor="#ffffff"/> 
             <HeaderStyle HorizontalAlign="Center" BackColor="#F5F5F5" Font-Bold="false" ForeColor="#000000" />
             <AlternatingRowStyle BackColor="#F5F5F5" />
        </asp:GridView>    
        <br />
        <page:PageBar ID="PPFOR_pageBar" runat="server" />
        <br />  
        <table width="100%" border="0" cellspacing="0" cellpadding="0" style="display:none;">
        <tr>
          <td>
              <asp:Button ID="PPFOR_deleteMemberMessageBody" CssClass="inputbutton" runat="server" Text="删除" OnClick="PPFOR_deleteMemberMessageBodyClick" />
              <input name="reset" type="reset" id="reset1" class="inputbutton" onmouseover="this.className='inputbutton_hover'" onmouseout="this.className='inputbutton'" value="重置" onclick="SelectAllRows('<%=form1.ClientID%>',false)"/>
                <script type="text/javascript">
                    if("<%=PPFOR_displayRecordOption %>"!='none'){
                        addButtonArray("<%= PPFOR_deleteMemberMessageBody.ClientID %>","reset1");
                    }
                </script>  
        </td>
        </tr>
      </table>
</form>  
</asp:Content>
