<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="YC_SiteList.aspx.cs" Inherits="YCHR.Web.admin.Sys.Job_YC_SiteList" %>


<!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/jquery.validate.min.js"></script>
    <script type="text/javascript" src="../js/messages_cn.js"></script>
    <script type="text/javascript" src="../js/jquery.form.js"></script>
    <script type="text/javascript" src="../js/cursorfocus.js"></script> 
      <script type="text/javascript">
          //全选，反选
          function checkall(obj, cc) {
              $(cc).find(":checkbox").attr("checked", $(obj).attr("checked") == true);
          }

          $(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"></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_Site_Add.aspx?addtype=1">添加地区分站</a> |<a href="YC_Site_Add.aspx?addtype=2">添加行业分站</a> | <a href="YC_Sitelist.aspx?sitetype=1">地区分站列表</a>| <a href="YC_Sitelist.aspx?sitetype=2">行业分站列表</a> |[<a
                    href="javascript:location.reload()">刷新页面</a>]</b>
            </td>
        </tr>
    </table>
    <div class="spClear">
    </div>
   <table width="100%" cellspacing="0" cellpadding="0" border="0" class="msgtable">
        <tbody><tr>
            <th width="5%" align="center">
                <input type="checkbox" onclick="checkall(this,'.msgtable');" name="chkBoxAll" id="chkBoxAll">
            </th>
            <th width="30%" align="center">
                站点名称</th>
            <th width="10%" align="center">
                站点类型</th>
         
            <th width="10%" align="center">
                站点英文名</th>
            <th width="10%" align="center">
                创建日期
            </th>
            
            <th width="10%" align="center">
                操作
            </th>
        </tr>
          <asp:Repeater ID="repsiteList" runat="server" OnItemCommand="repsiteList_ItemCommand">
            <ItemTemplate>
                <tr>
                    <td align="center">
                        <span class="checkall">      <asp:HiddenField ID="txtid" Value='<%#Eval("id") %>' runat="server" />
                        <asp:CheckBox ID="cb_id" CssClass="checkall" runat="server" /> 
                    </td>
                    <td align="center">
                        <%#Eval("sitename") %>
                      </td>
                    <td align="center">
                        <font color="green"><%#Eval("sitetype").ToString()=="1"?"地区分站":"行业分站" %></font></td>
                  
                    <td align="center">
                     <%#Eval("sitedomain") %>
                    </td>
                      <td align="center">
                      <%#Eval("addtime") %>
                    </td>
                      
                    <td align="center">

                        <span><a href="YC_SiteList.aspx?editid=<%#Eval("id") %>">修改</a></span></td>
                </tr>
            
                 </ItemTemplate>
        </asp:Repeater>
            
    </tbody></table>   <asp:Literal ID="litpagestr" runat="server"></asp:Literal>
    <br />
    <br />
    <asp:Button ID="btndele" CssClass="submit" OnClientClick="return confirm( '确定要删除这些记录吗？ ');" runat="server" Text="删除" 
        onclick="btndele_Click" />
    <div style="margin-top: 10px; text-align: center;">
       
    </div>
    </form>
</body>
</html>

