<%@ page language="C#" validaterequest="false" masterpagefile="MyShop.master" enableeventvalidation="false" autoeventwireup="true" inherits="Shop_Manage_shop_friend_link, mallz" title="友情链接" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="pageTitle">友情链接管理</div>
<div class="tips_onclick" ><p>店长您好！和其他 店长交换友情链接，让生意更好哦！您可以总共添加30位店长的店铺。<br />
注：目前系统允许您最多添加 30 个友情链接，您当前已经<a href="#addlink">添加</a><asp:Label ID="LabFriendLinkCount" runat="server" />个。</p></div>
<br />
<asp:GridView ID="GVFriendnLink" runat="server" AutoGenerateColumns="False" OnDataBound="GVFriendnLink_DataBound" CssClass="tableHead" >
    <Columns>
        <asp:TemplateField HeaderText="选择" HeaderStyle-Width="4%">          
        <ItemTemplate>
            <input value='<%# Eval("FriendLinkID") %>' name="ids" id="ids" type="checkbox" />
        </ItemTemplate>
        </asp:TemplateField>
        <asp:HyperLinkField DataNavigateUrlFields="ShopID" DataNavigateUrlFormatString="../Shop/{0}/" DataTextField="ShopName" HeaderText="店铺名称" Target="_blank" ItemStyle-HorizontalAlign="Left" />
        <asp:HyperLinkField DataNavigateUrlFields="ShopID" DataNavigateUrlFormatString="../Shop/{0}/index.aspx?action=Review" DataTextField="ShopOwnerName" HeaderText="店长" Target="_blank" HeaderStyle-Width="20%" />
        <asp:TemplateField HeaderText="操作" HeaderStyle-Width="7%">
            <ItemTemplate>
                <asp:LinkButton runat="server" ID="del" Text="删除" CommandArgument='<%# Eval("FriendLinkID") %>' OnCommand="del_OnCommand" />
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
    <EmptyDataTemplate>
      <table class="tableHead">
        <tr>
           <th>选择</th>
           <th>店铺名称</th>
           <th>店长</th>
           <th>操作</th>
        </tr>
        <tr>
           <td colspan="4">没有链接</td>
        </tr>
       </table> 
    </EmptyDataTemplate>   
    <AlternatingRowStyle BackColor="PaleGoldenrod" />
</asp:GridView>

    <div><asp:Button ID="ButDeleteFrientLink" runat="server" OnClick="ButDeleteFrientLink_Click1" Text=" 删 除 " CausesValidation="False" Height="22px" /></div>

<br />
<br />

<table class="SearchTableStyle" style="width:98%" id="addlink">
   <tr>
      <td align="right" style="width:100px;">会员名：</td>
      <td style="width:230px;"><asp:TextBox ID="TxtU_NickName" runat="server" Width="200"/></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>

