<%@ page language="C#" masterpagefile="~/Admin/MasterPage/Main.master" autoeventwireup="true" inherits="admin_Link_LinkList, App_Web_ltky1hn3" title="无标题页" %>
<%@ Register Src="~/Admin/Controls/CurrTool_Panel.ascx" TagName="CurrTool" TagPrefix="html" %>
<%@ Register Src="~/Admin/Controls/CurrImage_Panel.ascx" TagName="CurrImage" TagPrefix="html" %>
<%@ Register TagName="FenYe" TagPrefix="Uc1" Src="~/ascx/fenYe.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
  <link rel="stylesheet" type="text/css" href="../../css/fenye.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  <div class="divTools">
    <div class="tool-nav">
      <div class="title"> 导航栏</div>
      <asp:HyperLink ID="hy_add" Text="[添加友情链接]" runat="server"/>  
      <asp:HyperLink ID="hy_list" Text="[友情链接列表]" runat="server"/> 
    </div>
    <div class="clear"> </div>
    <html:CurrTool ID="CurrTool1" Title="友情链接管理" Version="120402" runat="server"/>
    <html:CurrImage ID="CurrImage1" Title="首页友情链接信息" 
            Tips="在这里您可以新增或修改首页友情链接。" runat="server" />
  <div class="clear"> </div>
    <div class="tool-search">
      <div class="title"></div>
      <div class="search-content" >
        <div>
          搜索字：<asp:TextBox ID="Seach_Name" runat="server"></asp:TextBox>
          <asp:Button ID="seach" runat="server" Text="搜 索" onclick="seach_Click" CssClass="button" />
        </div>
      </div>
    </div>
    <div class="hr"> </div>
  </div>
  <div class="divContent">
    <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
      <ContentTemplate>
      <asp:DataGrid ID="DataGrid1" runat="server" AutoGenerateColumns="False" CssClass="content-table"
                    CellPadding="0" GridLines="None" Width="100%" OnSelectedIndexChanged="DataGrid1_SelectedIndexChanged">
                    <SelectedItemStyle CssClass="linkDown" />
                <ItemStyle CssClass="BotDas" />
                    <Columns>
                        <asp:TemplateColumn HeaderText=" " ItemStyle-Width="2px">
                            <ItemTemplate>
                                &nbsp;
                            </ItemTemplate>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderText="选择" ItemStyle-CssClass="BotDas">
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkButton2" runat="server" CommandName="Select" CausesValidation="False" Text="选择"></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                        <asp:BoundColumn DataField="linkTitle" HeaderText="关键字" />
                        <asp:BoundColumn DataField="linkUrl" HeaderText="连接地址" />
                        <asp:TemplateColumn HeaderText="变量" ItemStyle-CssClass="BotDas" ItemStyle-Width="2px"
                            HeaderStyle-Width="2px" Visible="false">
                            <ItemTemplate>
                                <asp:Literal runat="server" Visible="false" ID="Uid" Text='<%#DataBinder.Eval(Container.DataItem,"Uid") %>'></asp:Literal>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderText=" " ItemStyle-Width="2px">
                            <ItemTemplate>
                                &nbsp;
                            </ItemTemplate>
                        </asp:TemplateColumn>
                    </Columns>
                    <HeaderStyle CssClass="tableTitle" />
                </asp:DataGrid>
        <table width="100%" border="0" cellspacing="1" cellpadding="5" class="content-table">
        <tr>
            <td>
                <Uc1:FenYe runat="server" ID="FenYe" /></td>
        </tr>
        <tr>
            <td align="center">
                <asp:Button ID="BtnInsert" Text="新 增" runat="server" CssClass="button" OnClick="BtnInsert_Click" />
                <asp:Button ID="BtnEdit" Text="修 改" runat="server" CssClass="button" OnClick="BtnEdit_Click" />
                <asp:Button ID="BtnDelete" Text="删 除" runat="server" CssClass="button" OnClick="BtnDelete_Click" />
            </td>
        </tr>
    </table>        
      </ContentTemplate>
    </asp:UpdatePanel>
  </div>
</asp:Content>