<%@ Page Language="C#" MasterPageFile="MainPage.Master" AutoEventWireup="true"
    Codebehind="MemberMessageList.aspx.cs" Inherits="PPFOR.Admin.UserInfo.MemberDetail.MemberMessageList" Title="站内消息列表" %>

<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="MemberMessageList.aspx" method="post" runat="server">
    <div class="table-ppfor">
		<i></i><u></u>
		<ul>
			<li class="right">
			消息类型：<asp:DropDownList ID="PPFOR_messageTypeList" runat="server" OnSelectedIndexChanged="PPFOR_messageTypeListChanged" AutoPostBack="true" AppendDataBoundItems="true" >
                    </asp:DropDownList>
			</li>
		</ul>
	</div>     
    <asp:GridView ID="PPFOR_showMemberMessageList" CssClass="forgridview" runat="server" OnRowDataBound="PPFOR_gridViewRowDataBound" AllowPaging="false" AutoGenerateColumns="False"  DataKeyNames="MsgID"  Width="100%" CellPadding="0" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="0px" EmptyDataText="没有任何消息">
           <Columns>  
             <asp:BoundField HeaderText="ID" DataField="MsgID" HeaderStyle-Font-Bold="false"/>     
             <asp:TemplateField HeaderText="消息标题" HeaderStyle-Font-Bold="false">
                <ItemTemplate>
                <%#PPFOR_getMessageMemberTitle(Eval("MsgBodyID"))%>
                </ItemTemplate>
             </asp:TemplateField>        
             <asp:TemplateField HeaderText="发送人" HeaderStyle-Font-Bold="false">
                <ItemTemplate>
                <%#PPFOR_getMessageMemberName(Eval("MsgSendMemberID"), Eval("MsgSendIsAdmin"))%>
                </ItemTemplate>
             </asp:TemplateField>  
             <asp:TemplateField HeaderText="接收人" HeaderStyle-Font-Bold="false">
                <ItemTemplate>
                <%#PPFOR_getMessageMemberName(Eval("MsgReceiveMemberID"), Eval("MsgReceiveIsAdmin"))%>
                </ItemTemplate>
             </asp:TemplateField>    
             <asp:BoundField HeaderText="时间" DataField="MsgSendTime" 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>
</form>  
</asp:Content>
