<%@ page language="C#" masterpagefile="MyShopMasterPage.master" autoeventwireup="true" inherits="Member_Shop_Saler_Message, mallz" 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:RadioButtonList>
    </div>
   <div style="float:left; padding-left:10px;">
   
   </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="选择" HeaderStyle-Width="4%">
                <ItemTemplate>
                    <input id="ids" name="ids" type="checkbox" value="<%#Eval("M_ID") %>" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="留言内容" >
               <ItemTemplate>
                   <asp:HyperLink Target="_blank"  ID="TxtM_Content" runat="server" Text='<%# Eval("M_Content") %>' NavigateUrl='<%# "../ShowProduct.aspx?ProductID="+Eval("M_ProductID") %>' />
               </ItemTemplate>
             </asp:TemplateField>
            <asp:TemplateField HeaderText="商品/店铺名称">
               <ItemTemplate>
                   <asp:HyperLink  Target="_blank" ID="ProductName" runat="server" Text='<%# Eval("ProductName") %>' NavigateUrl='<%# "/ShowProduct.aspx?ProductID=" + Eval("M_ProductID") %>' /><br />
                   <asp:HyperLink Target="_blank" ID="ShopName" runat="server" Text='<%# Eval("ShopName") %>' NavigateUrl='<%# "../Shop/index.aspx?ShopID="+Eval("M_ShopID") %>' />
               </ItemTemplate>
             </asp:TemplateField>  
             <asp:TemplateField HeaderText="留言人帐号" HeaderStyle-Width="15%">
                <ItemTemplate>
                    <asp:HyperLink Target="_blank" ID="SalerName" runat="server" Text='<%# Eval("M_SenderName") %>' NavigateUrl='<%# "../Shop/index.aspx?UID="+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="留言日期"  HeaderStyle-Width="15%"/>
            
        </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>

