<%@ page language="C#" masterpagefile="MyShopMasterPage.master" autoeventwireup="true" inherits="Member_Shop_Saler_Message, WebApp_deploy" title="卖家留言" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div style="float:left;width:100%;">
<div class="pageTitle">查看卖家留言</div>
</div>
<div style="float:left;width:96%; padding:10px;">
   <div style="float:left; height:20px; padding-top:5px;">查看留言：</div>
   <div style="float:left; height: 23px;">
    <asp:RadioButtonList  ID="CheckSalerMessage" runat="server" OnSelectedIndexChanged="CheckSalerMessage_SelChang" RepeatDirection="Horizontal" AutoPostBack="true">
       <asp:ListItem Text="商品留言" Value="0"  Selected="True"/>
       <asp:ListItem Text="店铺留言" Value="1" />
       <asp:ListItem Text="求购留言" Value="2" />
    </asp:RadioButtonList>
    </div>
   <div style="float:left; padding-left:10px;">
   <asp:DropDownList ID="DropDownList1" runat="server" Visible="False" OnSelectedIndexChanged="DropDownList1_SelChang">
      <asp:ListItem Text="所有回复" Value="-1" />
      <asp:ListItem Text="等待回复" Value="1" />
      <asp:ListItem Text="已回复" Value="2" />
    </asp:DropDownList>
   </div>
</div>
<div style="text-align:center">

<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="tableHead" AllowPaging="True" OnRowDataBound="GridView1_RowDataBound">
        <Columns>
        <asp:TemplateField HeaderText="商品/店铺名称">
               <ItemTemplate>
                   <asp:HyperLink  Target="_blank" ID="ProductName" runat="server" Text='<%# Eval("ProductName") %>' NavigateUrl='<%# "../Auction/"+Eval("url")+Eval("M_ProductID") %>' /><br />
                   <asp:HyperLink Target="_blank" ID="ShopName" runat="server" Text='<%# Eval("ShopName") %>' NavigateUrl='<%# "../Shop1/myShop.aspx?ShopID="+Eval("M_ShopID") %>' />
               </ItemTemplate>
             </asp:TemplateField>  
             <asp:TemplateField HeaderText="卖家名称">                
                <ItemTemplate>
                    <asp:HyperLink Target="_blank" ID="SalerName" runat="server" Text='<%# Eval("M_SenderName") %>' NavigateUrl='<%# "../Shop1/Shop_ShopIntro.aspx?UserID="+Eval("M_UserID") %>'/><br />
                    <asp:HyperLink ID="QQLink" runat="server" NavigateUrl='<%# "http://wpa.qq.com/msgrd?V=1&Uin="+Eval("OICQ")+"&amp;Site="+Eval("M_SenderName")+"&amp;Menu=yes" %>' Target="_blank">
                       <asp:Image  ID="QQImage" ImageUrl='<%# Eval("OICQ")%>' runat="server" />
                    </asp:HyperLink>
                     <asp:HyperLink ID="TaobaoLink" runat="server" NavigateUrl='<%# Eval("Taobaowangwang") %>' Target="_blank">
                       <asp:Image ID="TaobaoImage" ImageUrl='<%# Eval("Taobaowangwang") %>' runat="server"  AlternateText="点击此可以直接和对方交流"/>
                    </asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
            
            <asp:BoundField DataField="M_DateTime" HeaderText="留言日期" />
            
            <asp:TemplateField HeaderText="留言状态">                
                <ItemTemplate>
                    <asp:HyperLink ID="status" runat="server" Text='<%# Eval("M_Status") %>'/>
                </ItemTemplate>
            </asp:TemplateField>
            
            <asp:TemplateField HeaderText="选择">                
                <ItemTemplate>
                    <asp:CheckBox ID="MessageSelect" runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
            
        </Columns>       
        <EmptyDataTemplate>
        <table class="tableHeader" style="width:98%"><tr><th>商品/店铺名称</th><th>卖家名称</th><th>留言日期</th><th>留言状态</th><th>选择</th>
                    <tr><td colspan="5">没有符合查询条件的记录！</td></tr>
                    </table></EmptyDataTemplate>
    </asp:GridView>
 
</div>
</asp:Content>

