<%@ Page Language="C#" MasterPageFile="../Admin.Master" AutoEventWireup="true" CodeBehind="ClassList.aspx.cs"
    Inherits="ETongJin.Search.Web.Admin.ClassList" %>
<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="6"> 类别管理 </th>
    </tr>
    <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
      <HeaderTemplate>
        <tr align="center">
          <td class="td1" width="5%">&nbsp;</td>
          <td class="td1"> 类别名称 </td>
          <td width="10%" class="td1"> 是否显示 </td>
          <td width="10%" class="td1"> 排列序号 </td>
          <td width="18%" class="td1"> 添加时间 </td>
          <td width="10%" class="td1"> 相关操作 </td>
        </tr>
      </HeaderTemplate>
      <ItemTemplate>
        <tr align="center">
          <td><input id="Checkbox1" type="checkbox" name="id" value="<%#Eval("id") %>" />
            <input id="Hidden1" type="hidden" runat="server" value='<%#Eval("id") %>' />
          </td>
          <td class="td4"><%#Eval("ename") %> </td>
          <td><asp:Label ID="lbPosition" runat="server" Text='<%#Eval("mark") %>'></asp:Label>
          </td>
          <td><%#Eval("weight")%> </td>
          <td><%#Eval("addtime") %> </td>
          <td><asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "classEdit.aspx?i="+Eval("id") %>'>修改</asp:HyperLink>
            <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument="2" CausesValidation="false" OnClientClick="return confirm('您将删除这个类别!!?删除后不可恢复');">删除</asp:LinkButton>
          </td>
        </tr>
      </ItemTemplate>
    </asp:Repeater>
    <tr>
      <td colspan="6" class="td2"><div id="tnt_pagination"> <%= PageStr%></div></td>
    </tr>
    <tr>
      <td class="td3"><input id="Checkbox1" type="checkbox" name="chkAll" onclick="CheckAll(this);" /></td>
      <td colspan="5" 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', 2, 2, '#ecfbd4', '#ffffff', '#e5f1f4', '#bce774');
</script>
</asp:Content>
