<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="TotCms.Web.Admin.NewsPaper.List" %>
<%@ Register src="../UI/main_top.ascx" tagname="main_top" tagprefix="uc1" %>

<%@ Register assembly="TotCms.Controls" namespace="TotCms.Controls" tagprefix="cc1" %>
<!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>
    <script src="../../js/jquery-1.5.1.min.js" type="text/javascript"></script>
    <link href="../style/global.css" rel="stylesheet" type="text/css" />    
</head>
<body>
    <form id="form1" runat="server">    
    <div>    
      <uc1:main_top ID="main_top1" runat="server" />    
    </div>
    <table cellpadding="0" cellspacing="1" border="0" width="100%">
      <tr>
        <td class="topic">
        <span class="left">期刊管理</span>
        <span class="right">
        关键字：<asp:TextBox ID="tbKey" runat="server"></asp:TextBox>
          <asp:Button ID="Button1" runat="server" Text="搜索" onclick="Button1_Click" />
        </span>
        </td>
      </tr>   
      </table>
      <table cellpadding="0" cellspacing="1" border="0" width="100%">
      <asp:Repeater ID="RepeatList" runat="server" OnItemCommand="RepeatList_ItemCommand">
        <HeaderTemplate>
          <tr class="suphead">
              <td></td>
              <td>名称</td>
              <td>总(期)</td>
              <td>第(期)</td>
              <td>版面管理</td>
              <td>编辑</td>
          </tr>
        </HeaderTemplate>
        <ItemTemplate>
          <tr class="lines">
            <td align="center"><a href="/NewsPaper/Show.aspx?pid=<%# Eval("id") %>" target="_blank">
            <img src='<%# Eval("Photo")%>' width="90" height="90" border="0" alt="" /></a></td>
            <td>            
            <div align="left">&nbsp;
            <a href="/NewsPaper/Show.aspx?pid=<%# Eval("id") %>" target="_blank">            
            <%# Eval("Title")%></a>
            </div></td>
            <td><%# Eval("ZhongQ")%></td>
            <td><%# Eval("DiQ")%></td>    
            <td>
            <a href='Ban_Add.aspx?pid=<%# Eval("id") %>'>添加</a>
            <a href='Ban_List.aspx?pid=<%# Eval("id") %>'>管理</a>
            </td>      
            <td>
            <asp:LinkButton ID="LinkButton1" runat="server" CommandName="edit" CommandArgument='<%# Eval("id") %>'>编辑</asp:LinkButton>
			      |
			      <asp:LinkButton ID="LinkButton2" OnLoad="Delete_Load" runat="server" CommandName="delete" CommandArgument='<%# Eval("id") %>'>删除</asp:LinkButton>		
			      </td>
          </tr>
         </ItemTemplate>
         </asp:Repeater>      
      
    </table>
    <cc1:Pager ID="Pager1" runat="server" GenerateFirstLastSection="True" 
      GenerateGoToSection="True" GenerateHiddenHyperlinks="False" 
      QueryStringParameterName="CurrentPage" OnCommand="pager_Command" 
      GoToStyle="text" OfClause="/" PageClause="页" PageSize="5" />      
    </form>
    <script language="javascript" type="text/javascript">
      function SeleAct(obj) {
        if (obj == "remove") {
          document.getElementById("selclass").className = 'selclass';
        }
        else {
          document.getElementById("selclass").className = 'hidden';
        }
      }
     </script>

</body>
</html>
