<%@ page language="C#" validaterequest="false" masterpagefile="MyShop.master" enableeventvalidation="false" autoeventwireup="true" inherits="Shop_Manage_shop_friend_link, WebApp_deploy" title="友情链接" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="pageTitle">友情链接管理</div>
<div class="tips_onclick"  style="width:94%; height:40px;">店长您好！和其他 店长交换友情链接，让生意更好哦！您可以总共添加30位店长的店铺。<br />
注：目前系统允许您最多添加 30 个友情链接，您当前已经<a href="#addlink">添加</a><asp:Label ID="LabFriendLinkCount" runat="server" />个。
</div>
<br />
<asp:GridView ID="GVFriendnLink" runat="server" AutoGenerateColumns="False" OnDataBound="GVFriendnLink_DataBound" CssClass="tableHead" OnRowUpdated="GridViewLink_Updated">
<Columns>
<asp:TemplateField HeaderText="选择">          
<ItemTemplate>
<asp:CheckBox ID="CheckFriendLink" runat="server" Text='<%# Eval("UserID") %>' Width="20px" />
</ItemTemplate>
</asp:TemplateField>
        <asp:HyperLinkField DataNavigateUrlFields="ShopID" DataNavigateUrlFormatString="../Shop/{0}/?action=Review"
            DataTextField="username" HeaderText="店长" Target="_blank" />
        <asp:HyperLinkField DataNavigateUrlFields="ShopID" DataNavigateUrlFormatString="../Shop/{0}/"
            DataTextField="ShopName" HeaderText="店铺名" Target="_blank" />
    </Columns>
    <EmptyDataTemplate>
      <table class="tableHead">
        <tr>
           <th>选择</th>
           <th>店长</th>
           <th>店铺名</th>          
        </tr>
        <tr>
           <td colspan="3">没有链接</td>
        </tr>
       </table> 
    </EmptyDataTemplate>   
    <AlternatingRowStyle BackColor="PaleGoldenrod" />
</asp:GridView>
    &nbsp;<asp:CheckBox ID="CheckAllFriendLink" runat="server" AutoPostBack="True" OnCheckedChanged="CheckAllFriendLink_CheckedChanged1"
        Text="全选" />
    <asp:Button ID="ButDeleteFrientLink" runat="server" OnClick="ButDeleteFrientLink_Click1"
        Text="删除" CausesValidation="False" Height="22px" />
<br /><br />
<table class="SearchTableStyle" style="width:98%" id="addlink">
   <tr>
      <td>会员名：</td>
      <td><asp:TextBox ID="TxtU_NickName" runat="server"/></td>
      <td><asp:Button ID="Button1" runat="server" Text="添加" OnClick="ButAddFrientLike_Click" /></td>
   </tr>
   <tr>
      <td colspan="3">(输入对方会员名，可直接添加店铺) 
      <asp:Label ID="Label1" runat="server" /></td>
   </tr> 
</table>
</asp:Content>

