<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="YC_Link_List.aspx.cs" Inherits="YCHR.Web.admin.Sys.YC_Link_List" %>
<!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 id="Head1" runat="server">
<title>友情链接管理</title>
<link rel="stylesheet" type="text/css" href="../images/style.css" />
<script type="text/javascript" src="../js/jquery.js"></script>
 <script type="text/javascript" src="../js/function.js"></script>
<script type="text/javascript">
        $(function () {
            $(".msgtable tr:nth-child(odd)").addClass("tr_bg"); //隔行变色
            $(".msgtable tr").hover(
			    function () {
			        $(this).addClass("tr_hover_col");
			    },
			    function () {
			        $(this).removeClass("tr_hover_col");
			    }
		    );
        });
    </script>
    
</head>
<body style="padding:10px;">
    <form id="form1" runat="server">
    <div class="navigation"><span class="add"><a href="YC_Link.aspx">增加链接</a></span><b>您当前的位置：首页 &gt; 链接管理 &gt; 链接列表</b></div>
    <div class="spClear"></div>
         <table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" >
  <tr>
    <td height=25 class="pl20"><b>管理选项：<a href="YC_Link.aspx">添加友情链接</a> | <a href="YC_Link_List.aspx">友情链接列表</a> | [<a href="javascript:location.reload()">刷新页面</a>]</b></td>
  </tr>
<tr><td height=25 class="pl20"><b>链接搜索：<asp:DropDownList ID="ddlProperty" 
        runat="server" CssClass="select" >
    <asp:ListItem Value="1">站点名称</asp:ListItem>
   
    </asp:DropDownList>
    </b>&nbsp;<asp:TextBox ID="txtKeywords" runat="server" CssClass="keyword"></asp:TextBox>
&nbsp;<asp:Button ID="btnSelect" runat="server" Text="查询"  CssClass="submit" 
        onclick="btnSelect_Click" />
</td></tr>
</table><asp:Literal ID="litpagestr0" runat="server"></asp:Literal>  <div class="spClear"> </div>
    <asp:Repeater ID="rptList" runat="server" onitemcommand="rptList_ItemCommand">
    <HeaderTemplate>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
      <tr>
        <th width="6%">选择</th>
        <th width="6%">编号</th>
        <th >网站名称</th>
          <th width="10%">链接说明</th>
        <th width="16%">是否图片</th>
        <th width="90">优先级别</th>
        <th width="16%">添加时间</th>
        <th width="10%">有效期</th>
        <th width="90">属性</th>
        <th width="8%">操作</th>
      </tr>
      </HeaderTemplate>
      <ItemTemplate>
      <tr>
        <td align="center"><asp:CheckBox ID="cb_id" CssClass="checkall" runat="server" /><asp:HiddenField ID="txtid"
             Value='<%#Eval("id") %>'  runat="server" />
        </td>
        <td align="center"><asp:Label ID="lb_id" runat="server" Text='<%#Eval("id") %>'></asp:Label></td>
        <td align="center"> <a href="YC_Link.aspx?id=<%#Eval("id") %>&action=edit"><%#Eval("sitename") %></a></td>
        <td align="center"><%#Eval("sitedesc") %></td>
        <td align="center"><%#Eval("ispic") %></td>
        <td align="center"><%#Eval("orderid") %></td>
        <td align="center"><%#Eval("addtime") %></td>
        <td align="center">永久有效</td>
        <td align="center">
        <%# Convert.ToInt32(Eval("iscomm")) == 1 ? "<img src='../Images/ico-2.png' title='推荐' />" : "<img src='../Images/ico-2_.png' title='不推荐' />"%>
        </td>
        <td align="center">
          <asp:ImageButton ID="imgedit"  CommandName="imgedit" ImageUrl="../images/white_edit.png"  runat="server" />                        
<asp:ImageButton ID="imgdel"  OnClientClick="return confirm( '确定要删除吗？ ');" CommandName="imgdel" ImageUrl="../images/white_delete.png"  runat="server" /> 
        </td>
      </tr>
      </ItemTemplate>
      <FooterTemplate>
      </table>
      </FooterTemplate>
      </asp:Repeater> <asp:Literal ID="litpagestr" runat="server"></asp:Literal>
    <div class="spClear">
       
    </div>
        <div style="line-height:30px;height:30px;">
            <div id="Pagination" class="right flickr"></div>
            <div class="left">
                <span class="btn_all" onclick="checkAll(this);">全选</span>
                <span class="btn_bg">
                  <asp:LinkButton ID="lbtnDel" runat="server" 
                    OnClientClick="return confirm( '确定要删除这些记录吗？ ');" onclick="lbtnDel_Click">删 除</asp:LinkButton>
                </span>
            </div>
	</div>
    </form>
</body>
</html>