<%@ Page Language="C#" AutoEventWireup="true" Inherits="EoyooCMS.ManageCode.Show_Links" %>

<!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>
    <title>友情链接</title>
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <script type="text/javascript" src="Script/Jquery.js"></script>
    <script type="text/javascript" src="Script/Common.js"></script>
    <script type="text/javascript" src="Script/Show_Links.js"></script>
    <link href="Style/Iframe.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="wrapper-div">    
	<!-- 友情链接管理 -->
        <!-- 标 -->
            <div class="title-tab">
            <div class="title"><span class="title-ico titico4 F B">友情链接</span></div>
            <ul class="menu">
                <li><a class="<%=sift=="all"?"active":"" %>" href="<%=getFormUrl %>?sift=all"><span>全部</span></a></li>
                <li><a class="<%=sift=="pic"?"active":"" %>" href="<%=getFormUrl %>?sift=pic"><span>图片链接</span></a></li>
                <li><a class="<%=sift=="text"?"active":"" %>" href="<%=getFormUrl %>?sift=text"><span>文字链接</span></a></li>
            </ul>
            </div>
        <!-- end 标 -->
        
        <div class="clear-8"></div>
            <a href="Show_Links_Control.aspx?com=add" class="bule-btn W f_left text_centent">添加链接</a>
            <p class="PageBox">
                <%=getPagesInfo%>
            </p>
        <div class="clear-8"></div>
        
        <!-- 通用table -->
        <table class="table-1">
        	<thead>
            	<tr>
                	<th width="52%" class="text_left">名称 <span class="X NoB">[链接总数:<%=_pageCount %>]</span></th>
                    <th width="10%">链接状态</th>
                    <th width="10%">点击次数</th>
                    <th width="12%">添加时间</th>
                    <%if (sift != "all") %>
                    <%{ %>
                    <th width="8%">排序</th>
                    <%} %>
                    <th width="8%">操作</th>
                </tr>
            </thead>
            <tbody id="siteLinks_Tbody">
            <%if (_LinkDat.Rows.Count > 0) %>
            <%{ %>
                <% for (int i = 0; i < _LinkDat.Rows.Count; i++) %>
                <%{ %>
            	    <tr>
                	    <td class="text_left">
                        <%if (_LinkDat.Rows[i]["logourl"].ToString() != "") %>
                        <%{ %>
                    	    <img alt="<%=_LinkDat.Rows[i]["name"].ToString()%>" class="link-images" src="../Upload/Link/<%=_LinkDat.Rows[i]["logourl"].ToString()%>" />
                        <%} %>
                            <a class="B H" target="_blank" href="<%=_LinkDat.Rows[i]["url"].ToString()%>"><%=_LinkDat.Rows[i]["name"].ToString()%></a> <span class="X Size9"><%=_LinkDat.Rows[i]["url"].ToString()%></span>
                            <br />
                            <span class="V"><%=_LinkDat.Rows[i]["intro"].ToString()%></span>
                        </td>
                        <td><span class='R'><a rel="isurl" class="F" href="<%=_LinkDat.Rows[i]["url"].ToString()%>">[检测]</a></span></td>
                        <td><span class="X Size9"><%=_LinkDat.Rows[i]["click"].ToString()%></span></td>
                        <td>
                    	    <span class="G">(<%=_LinkDat.Rows[i]["time1"].ToString()%>)</span><br />
                            <span class="V Size9"><%=_LinkDat.Rows[i]["time2"].ToString()%></span>
                        </td>
                        <%if (sift != "all") %>
                        <%{ %>
                        <td>
                            <a href="upward" type="<%=sift%>" name="<%=_LinkDat.Rows[i]["id"].ToString()%>"  rel="shift" rev="<%=_LinkDat.Rows[i]["orderid"].ToString()%>" class="F">[上移]</a>
                            <br />
                            <a href="downward" type="<%=sift%>" name="<%=_LinkDat.Rows[i]["id"].ToString()%>" rel="shift" rev="<%=_LinkDat.Rows[i]["orderid"].ToString()%>" class="F">[下移]</a>
                        </td>
                        <%} %>
                        <td>
                    	    <a href="Show_Links_Control.aspx?com=alter&linkid=<%=_LinkDat.Rows[i]["id"].ToString()%>" title="编辑<%=_LinkDat.Rows[i]["name"].ToString()%>" name="<%=_LinkDat.Rows[i]["name"].ToString()%>" class="Q underline">[编辑]</a>
                            <br />
                            <a href="<%=_LinkDat.Rows[i]["logourl"].ToString()%>" id="del-<%=_LinkDat.Rows[i]["id"].ToString()%>" class="R underline" rel="del">[删除]</a>
                        </td>
                    </tr>
                    <%} %>
                <%} %>
                <%else %>
                <%{ %>
                <tr>
                    <td  colspan="5" class="text_left"><span class="V">暂无数据</span> <a class="Q B underline" href="Show_Links_Control.aspx?com=add">[马上添加]</a></td>
                </tr>
                <%} %>
            </tbody>
        </table>

        <div class="clear-8"></div>
            <a href="Show_Links_Control.aspx?com=add" class="bule-btn W f_left text_centent">添加链接</a>
            <p class="PageBox">
                <%=getPagesInfo%>
            </p>
        <div class="clear-8"></div>

        <!-- end 通用table -->
    <!-- end 友情链接管理 -->
</div>
</body>
</html>
