<%@ Page Language="C#" MasterPageFile="../Admin.Master" AutoEventWireup="true" CodeBehind="EntList.aspx.cs"
    Inherits="ETongJin.Search.Web.Admin.EntList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
  <script type="text/javascript">
function CheckAll(obj)
{
var allcheck = document.getElementsByName("id");
for(i=0;i<allcheck.length;i++)
{
allcheck[i].checked = obj.checked;
}
}
</script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <table class="tableBorder" border="0" cellpadding="3" cellspacing="1" id="demo_table">
    <tr>
      <th colspan="7"> 入口地址管理 </th>
    </tr>
    <tr>
      <td colspan="7" class="date"><div class="dateinput">筛选：
          <asp:DropDownList ID="ddlStatus" runat="server" AutoPostBack="true" onchange="if(this.value=='-2') return false;" OnSelectedIndexChanged="ddlStatus_SelectedIndexChanged" >
            <asp:ListItem Text="按状态" Value="-2" Selected="True"></asp:ListItem>
            <asp:ListItem Text="待审" Value="0"></asp:ListItem>
            <asp:ListItem Text="已审" Value="1"></asp:ListItem>
          </asp:DropDownList>
          <asp:DropDownList ID="ddlCategory" runat="server" AutoPostBack="true"  OnSelectedIndexChanged="ddlOrder_SelectedIndexChanged" DataTextField ="Ename" DataValueField ="id"> </asp:DropDownList>
          &nbsp;搜索：
          <input style="display:none" />
          <asp:TextBox ID="txtKeyWords" runat="server" Text="入口地址的名称" onfocus="if(this.value=='入口地址的名称')this.value='';" CssClass="ym12_input2"></asp:TextBox>
          <asp:Button ID="Button4" runat="server" Text=" 提 交 " OnClick="Button4_Click" CssClass="btn02" onmouseover="this.className='btn04'" onmouseout="this.className='btn02'" />
        </div></td>
    </tr>
    <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
      <HeaderTemplate>
        <tr style="text-align: center;">
          <td class="td1" width="5%">&nbsp;</td>
          <td class="td1"> 名称 </td>
          <td width="5%" class="td1"> 深度 </td>
          <td width="5%" class="td1"> 权重 </td>
          <td width="10%" class="td1"> 状态 </td>
          <td width="18%" class="td1"> 更新时间 </td>
          <td width="18%" class="td1"> 相关操作 </td>
        </tr>
      </HeaderTemplate>
      <ItemTemplate>
        <tr style="text-align:center;">
          <td><input id="Checkbox1" type="checkbox" name="id" value="<%#Eval("id") %>" /></td>
          <td class="td4"><a href="<%#Eval("url") %>" target="_blank"> <%#Eval("ename")%></a>
            <input id="Hidden1" type="hidden" runat="server" value='<%#Eval("id") %>' />
          </td>
          <td><%#Eval("depth") %> </td>
          <td><%#Eval("weight") %> </td>
          <td><%#Eval("mark").ToString()=="True"?"已审核":"<a style=\"color:red;\" href=\"action.aspx?a=m&i="+Eval("id")+"\">未审核</a>" %> </td>
          <td><%#Eval("updatetime") %> </td>
          <td><asp:HyperLink ID="HyperLink1" NavigateUrl='<%#"Ent.aspx?i="+Eval("id") %>' runat="server">修改</asp:HyperLink>
            <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument="2" CausesValidation="false" OnClientClick="return confirm('您将删除这个入口地址!!?删除后不可恢复');">删除</asp:LinkButton>
            <a href='<%#"UpdateIndex.aspx?i="+Eval("id") %>'>更新索引</a> </td>
        </tr>
      </ItemTemplate>
    </asp:Repeater>
    <tr>
      <td colspan="7" class="td2"><div id="tnt_pagination"> <%= PageStr%></div></td>
    </tr>
    <tr>
      <td width="5%" class="td3"><input id="Checkbox1" type="checkbox" name="chkAll" onclick="CheckAll(this);" /></td>
      <td colspan="6" class="td5"><asp:Button ID="Button1" runat="server" Text="批量删除"  OnClientClick="return confirm('您确定删除选中的记录么?删除后不可恢复');" OnClick="Button1_Click" CssClass="btn02" onmouseover="this.className='btn04'" onmouseout="this.className='btn02'" />
      </td>
    </tr>
  </table>
<script language="JavaScript">
	tigra_tables('demo_table', 3, 2, '#ecfbd4', '#ffffff', '#e5f1f4', '#bce774');
</script>
</asp:Content>
