<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="pic.aspx.cs" Inherits="Kcms.UI.admin.pic" %>
<%@ Register assembly="PageNavigator" namespace="KcNavigator" tagprefix="Kc" %>
<!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>
    <link href="skins/work-style.css" rel="stylesheet" type="text/css" />
    <script src="/inc/artDialog/artDialog.min.js" type="text/javascript"></script>
<script type="text/javascript">
    function CheckAll(form) {
        for (var i = 0; i < form.elements.length; i++) {
            var e = form.elements[i];
            if (e.name.indexOf('chkbox') != -1)
                e.checked = form.chkall.checked;
        }
    }
</script>
</head>
<body>
    <form id="form2" runat="server">
<div class="container">
 <div class="path clearfix"><div class="l"><h4><img src="skins/icon/imagemanager_summ.gif" align="absmiddle" />图片管理</h4></div><div class="r"><asp:Literal ID="litAdv" runat="server"></asp:Literal></div></div>
 <div class="mbox clearfix">
  <div class="left">
    <a href="pic.aspx" class="on">图片列表</a>
    <a href="picEdit.aspx">添加图片</a>
  </div>
  <div class="right">
<div>搜索：
<asp:TextBox ID="txtKey" runat="server"></asp:TextBox>
      <asp:DropDownList ID="drpType" runat="server">
          <asp:ListItem Value="1">标题</asp:ListItem>
          <asp:ListItem Value="0">编号</asp:ListItem>
      </asp:DropDownList>
      <asp:Button CssClass="btn0" ID="btnSearch" runat="server" Text="搜索" 
        onclick="btnSearch_Click" />
</div>
<table class="rtable" width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
<tr>
  <td align="center" width="5%">选择</td>
  <td align="center">标题</td>
  <td align="center">释放</td>
  <td align="center">生成时间</td>
  <td align="center">操作</td>
</tr> 
    <asp:Repeater ID="rptList" runat="server" onitemcommand="rptList_ItemCommand" 
        onitemdatabound="rptList_ItemDataBound">
    <ItemTemplate>
<tr>
  <asp:HiddenField ID="hidId" runat="server" Value='<%#Eval("id") %>'/>
  <td align="center"><asp:CheckBox ID="chkbox" runat="server"/></td>
  <td><%#Eval("title") %></td>
  <td align="center"><asp:Literal ID="litState" runat="server"></asp:Literal></td>
  <td align="center"><%#Eval("addtime") %></td>
  <td align="center"><a href="picEdit.aspx?id=<%#Eval("id") %>">编辑</a>　
      <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="false" CommandName="del" OnClientClick="return confirm('确定删除?')">删除?</asp:LinkButton></td>
</tr>    
    </ItemTemplate>
    </asp:Repeater>
<tr>
  <td colspan="4">
      <label>&nbsp; <input id="chkall" onclick="CheckAll(form)" type="checkbox" />全选/全不选</label>
      <asp:DropDownList ID="cz" runat="server" onselectedindexchanged="cz_SelectedIndexChanged" AutoPostBack="True">
         <asp:ListItem Value="sf">释放</asp:ListItem>
         <asp:ListItem Value="bsf">不释放</asp:ListItem>
         <asp:ListItem Value="tj">推荐</asp:ListItem>
         <asp:ListItem Value="btj">不推荐</asp:ListItem>
         <asp:ListItem Selected="True">=选择=</asp:ListItem>
       </asp:DropDownList>
       <asp:Button ID="Btndel" runat="server" Text="删除" onclick="Btndel_Click" 
          onclientclick="return confirm('确认删除么？')" CssClass="btn0" />
       <input id="Button1" onclick="location.href='picEdit.aspx'" type="button" 
          value="新增内容" class="btn0" /></td>
</tr>
</table>
<Kc:PageNavigator ID="PageNavigator1" runat="server" CssClass="pager" 
          onchangepageclick="PageNavigator1_ChangePageClick" />
  </div>
 </div>
</div>
</form>
</body>
</html>