<%@ Page language="c#" Codebehind="MyMessage.aspx.cs" AutoEventWireup="true" Inherits="XpShop.WebUI.MyMessage" %>
<%@ Register TagPrefix="uc1" TagName="MemberHelper" Src="Modules/MemberHelper.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="Modules/Header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="memberfooter" Src="Modules/memberfooter.ascx" %>
<%@ Register TagPrefix="uc1" TagName="MemberMenu" Src="Modules/MemberMenu.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
	<HEAD>
		<!--#include file="../../inc/encoding.inc"-->
		<title>站内短消息,<%=config.SiteTitle%></title>
		<!--#include file="../../inc/head.inc"-->
		<link href="<%=webSite %>Template/<%=config.TemplateFolder%>/style/member.css" type="text/css" rel="stylesheet" />
	</HEAD>
	<body>
		<uc1:Header id="Header1" runat="server"></uc1:Header>
		<div class="xp-qgw clear">
		    <!--位置导航开始-->
            <div class="path"><a href="<%=webSite %><%if(config.html==""){%>default.aspx<%}else{%>Index.<%=config.html%><%}%>"><%=GetResourceString("Home")%></a>&nbsp;&gt;&nbsp;<a href="<%=webSite %>Center.<%=config.html %>"><%=GetResourceString("MemberCenter")%></a>&nbsp;&gt;&nbsp;站内短消息</div>
            <!--位置导航结束-->
			<div class="member_left">
				<!--会员中心导航开始-->
				<uc1:MemberMenu id="MemberMenu1" runat="server"></uc1:MemberMenu>
				<!--会员中心导航结束-->
			</div>
			<div class="member_middle_right">
			    <div class="mframe">
			        <div class="tl"></div>
			        <div class="tr"></div>
			        <div class="tm">站内短消息</div>
			        <div class="ml"></div>
			        <div class="mr"></div>
			        <div class="mm">
					    <form runat="server" id="Form1">
					    <h3 style="padding:0px;">系统消息</h3>
					    <hr class="itemhr" />    
					    <asp:datagrid id="dgSysList" CssClass="dgborder" runat="server" AutoGenerateColumns="False"
						        DataKeyField="MessageID" Width="100%" HorizontalAlign="Center" BorderWidth="1"
						        BorderColor="#e6e6e6">
						        <ItemStyle BackColor="White"></ItemStyle>
		                        <HeaderStyle BackColor="#fff7d3" Height="20px"></HeaderStyle>
						        <Columns>
							        <asp:TemplateColumn HeaderText="消息标题">
								        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								        <ItemStyle HorizontalAlign="left" Width="30%"></ItemStyle>
								        <ItemTemplate>
									        <div style="width:250px; white-space:nowrap; overflow:hidden;">
									            <a href='MsgDetail-<%# DataBinder.Eval(Container.DataItem, "MessageID") %>&<%=linkfrom %>.<%=config.html%>' title='<%# DataBinder.Eval(Container.DataItem, "Title") %>'>
										            <%# DataBinder.Eval(Container.DataItem, "Title") %>
									            </a>
									        </div>
								        </ItemTemplate>
							        </asp:TemplateColumn>
							        <asp:TemplateColumn HeaderText="时间">
								        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								        <ItemStyle HorizontalAlign="Center" Width="20%"></ItemStyle>
								        <ItemTemplate>
									        <%#DataBinder.Eval(Container.DataItem,"AddTime")%>
								        </ItemTemplate>
							        </asp:TemplateColumn>
						        </Columns>
					        </asp:datagrid>
    					
					    <br />    
					    <h3 style="padding:0px;"><%=pageTitle %></h3>
					    <hr class="itemhr" />
    					    
					    <asp:datagrid id="dgList" CssClass="dgborder" runat="server" AutoGenerateColumns="False"
						        DataKeyField="MessageID" Width="100%" HorizontalAlign="Center" BorderWidth="1"
						        BorderColor="#e6e6e6" AllowPaging="true" PagerStyle-Mode="NumericPages" PageSize="20">
						        <ItemStyle BackColor="White"></ItemStyle>
		                        <HeaderStyle BackColor="#fff7d3" Height="20px"></HeaderStyle>
						        <Columns>
							        <asp:TemplateColumn HeaderText="消息标题">
								        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								        <ItemStyle HorizontalAlign="left" Width="30%"></ItemStyle>
								        <ItemTemplate>
									        <div style="width:250px; white-space:nowrap; overflow:hidden;">
									            <a href='MsgDetail-<%# DataBinder.Eval(Container.DataItem, "MessageID") %>&<%=linkfrom %>.<%=config.html%>' title='<%# DataBinder.Eval(Container.DataItem, "Title") %>'>
										            <%# DataBinder.Eval(Container.DataItem, "Title") %>
									            </a>
									        </div>
								        </ItemTemplate>
							        </asp:TemplateColumn>
							        <asp:TemplateColumn HeaderText="发信人">
								        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								        <ItemStyle HorizontalAlign="Center" Width="20%"></ItemStyle>
								        <ItemTemplate>
									        <%# DataBinder.Eval(Container.DataItem, "FromMember") %>
								        </ItemTemplate>
							        </asp:TemplateColumn>
							        <asp:TemplateColumn HeaderText="收信人">
								        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								        <ItemStyle HorizontalAlign="Center" Width="20%"></ItemStyle>
								        <ItemTemplate>
									        <%#DataBinder.Eval(Container.DataItem,"ToMember")%>
								        </ItemTemplate>
							        </asp:TemplateColumn>
							        <asp:TemplateColumn HeaderText="时间">
								        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								        <ItemStyle HorizontalAlign="Center" Width="20%"></ItemStyle>
								        <ItemTemplate>
									        <%#DataBinder.Eval(Container.DataItem,"AddTime")%>
								        </ItemTemplate>
							        </asp:TemplateColumn>
							        <asp:TemplateColumn HeaderText="状态">
								        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								        <ItemStyle HorizontalAlign="Center" Width="10%"></ItemStyle>
								        <ItemTemplate>
									        <%# (int)DataBinder.Eval(Container.DataItem,"SendType") != 0 ? (int)DataBinder.Eval(Container.DataItem,"ReceiverStatus") == 0 ? "未读" : "已读" : ""%>
								        </ItemTemplate>
							        </asp:TemplateColumn>
							        <asp:TemplateColumn HeaderText="查看" Visible="false">
								        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								        <ItemStyle HorizontalAlign="Center" Width="10%"></ItemStyle>
								        <ItemTemplate>
									        <a href='MsgDetail-<%#DataBinder.Eval(Container.DataItem,"MessageID")%>&<%=linkfrom %>.<%=config.html%>'>查看</a>
								        </ItemTemplate>
							        </asp:TemplateColumn>
							        <asp:ButtonColumn Text="删除" HeaderText="删除" CommandName="Delete">
								        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								        <ItemStyle HorizontalAlign="Center" Width="10%"></ItemStyle>
							        </asp:ButtonColumn>
						        </Columns>
					        </asp:datagrid>
					    </form>
					</div>
			        <div class="bl"></div>
			        <div class="br"></div>
			        <div class="bm"></div>
			    </div>
			</div>
		</div>
		<uc1:MemberHelper id="Helper1" runat="server"></uc1:MemberHelper>
		<uc1:memberfooter id="Footer1" runat="server"></uc1:memberfooter>
	</body>
</HTML>
