<%@ page language="C#" autoeventwireup="true" inherits="Admin_Link_List, Fm.Web" %>

<%@ Register Src="../controls/FormPaging_Rep.ascx" TagName="FormPaging_Rep" TagPrefix="uc1" %>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <link href="../Admin/skin/css.css" rel="stylesheet" type="text/css" />
      <link href="/images/css/inbox.css"rel="stylesheet" type="text/css" />
    
<script language="javascript" type="text/javascript">
function Select(id)
{
    var tid=document.getElementById("tid"+id);
    if(tid.style.display=="none")
    {
         tid.style.display="inline";
    }
    else
    {
         tid.style.display="none";
    }
}
</script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table style="width: 98%" class="Ibx_gTable_Con">
            <tr>
                <td colspan="7" class="bg" align="center">
                    友情连接</td>
            </tr>
            <tr>
                <td style="width:3%">
                    </td>
                <td style="width:5%">
                    序号</td>
                <td style="width:20%">
                    网站名称</td>
                 <td style="width:20%">
                     连接地址</td>
                 <td style="width:20%">
                     连接类型</td>
                 <td style="width:10%">
                     显示排序</td>
                 <td style="width:20%">
                     操作</td>
            </tr>
            <asp:Repeater ID="Repeater1" runat="server">
            <ItemTemplate>
           
            
            <tr>
                <td style="width: 3%">
                <img src="skin/close.gif" onclick="Select(<%#Container.ItemIndex+1 %>)" title="查看该站点描述" style="cursor:hand" />
                </td>
                <td style="width: 5%">
                <%#Container.ItemIndex+1 %>
                </td>
                <td style="width: 20%">
                <%#Eval("link_name") %>
                </td>
                <td style="width: 20%">
               <a href="<%#Eval("link_url") %>" target=_blank><font color=blue><%#Eval("link_url") %></font></a> 
                </td>
                <td style="width: 20%">
                <%#bool.Parse(Eval("link_type").ToString())?"<img src='"+Eval("link_logo")+"' title='"+Eval("link_url")+"'/>":"文字连接" %>
                </td>
                <td style="width: 10%">
                <%#Eval("link_px") %>
                </td>
                <td style="width: 20%">
                  <a href="Link_Update.aspx?lid=<%#Eval("link_id") %>"class="bt_css">修 改</a>  <asp:LinkButton ID="LinkButton1" CssClass="bt_css" runat="server" OnClientClick="JavaScript:return confirm('确认删除该友情连接吗?')" OnClick="LinkButton1_Click" ToolTip='<%#Eval("link_id") %>'>删 除</asp:LinkButton></td>
            </tr>
            <tr>
                <td colspan="7">
                    <table style="width: 100%;display:none" id="tid<%#Container.ItemIndex+1 %>">
                        <tr>
                            <td>
                            <%#Eval("link_intro") %>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr> 
            </ItemTemplate>
            </asp:Repeater>
             <tr>
                 <td colspan="7" align="center">
                     &nbsp;
                     <uc1:FormPaging_Rep id="FormPaging_Rep1" runat="server">
                     </uc1:FormPaging_Rep></td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
