<!--#include file="../../conn/conn2.asp"-->
<!--#include file="../inc.asp"-->
<html>
<head>
<title>专题管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<link href="../../css/css.css" rel="stylesheet" type="text/css">
<script>
function CheckAll(form){for (var i=0;i<form.elements.length;i++){var e = form.elements[i];if (e.name != 'chkall')e.checked = form.chkall.checked;}}
</script>
</head>
<body leftmargin="2" topmargin="0" marginwidth="0" marginheight="0">
<table width="95%" border="0" align="center" cellpadding="2" cellspacing="1" class="border">
  <tr class="topbg"> 
    <td height="22" colspan="2"  align="center"><strong>专 题 管 理</strong></td>
  </tr>
  <tr class="tdbg"> 
    <td width="70" height="30" ><strong>管理导航：</strong></td>
    <td><a href="special.asp">专题管理首页</a>&nbsp;|&nbsp;<a href="addspecial.asp">添加专题</a></td>
  </tr>
</table>
<div align="center">
  <% set rs=server.createobject("adodb.recordset") 
              if not isempty(request("page")) then   
	          pagecount=cint(request("page"))   
              else   
	          pagecount=1   
              end if
			  sql="select * from special order by id desc"
              rs.open sql,conn,1,1         
              rs.pagesize=8
              if pagecount>rs.pagecount or pagecount<=0 then              
              pagecount=1              
              end if              
              %>
			    <%if rs.eof and rs.bof then%>   
                对不起，该栏目还没有任何文章
			    <%else%>
  
</div>
<table width='95%' border="0" align="center" cellpadding="0" cellspacing="0">
  <form method="post" action="Admin_ArticleDel.asp"><tr>
    
     <td><table width="100%" border="0" cellpadding="0" cellspacing="1" class="border">
       <tr bgcolor="bde9ff" class="title" height="22">
         <td width="5%" height="22" align="center"><strong>选中</strong></td>
         <td width="5%"  height="22" align="center"><strong>ID</strong></td>
         <td align="center" ><strong>文章标题</strong></td>
         <td width="15%" align="center" ><strong>作者</strong></td>
         <td width="10%" align="center" ><strong>点击数</strong></td>
       </tr>
          <%rs.AbsolutePage=pagecount 
					 do while not rs.eof %>
	   <tr class="tdbg" onMouseOut="this.style.backgroundColor='#f3f3f3'" onMouseOver="this.style.backgroundColor='#BFDFFF'">
         <td width="5%" align="center"><input name='id' type='checkbox' id="id" value='<%=cstr(rs("ID"))%>'></td>
         <td width="5%" align="center"><%=rs("articleid")%></td>
         <td> <a href="Admin_ArticleModify.asp?id=<%=rs("id")%>"><%=rs("title")%></a></td>
         <td align="center">&nbsp;</td>
         <td align="center"><%=rs("hits")%></td>
       </tr>
	       <% i=i+1                                                                                                  
          rs.movenext                                                                                                  
          if i>=rs.PageSize then exit do 
		  loop                                                                    
         %>
     </table>
     <table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30"> <input type=checkbox name=chkall onclick=CheckAll(this.form) value="ON">
      选择本页所有文章 
        <input name="submit"  type="submit" onClick="{if(confirm('您确定要删除您所选的文章?')){return true;}return false;}" value="  删 除   "></td>
  </tr>
</table>
</td>
</tr></form></table>

<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr align="right">
    <% if rs.pagecount=1 then %>
    <td height="30" colspan="2"><font color="#000000">共有[<font color="#ff0000"><%=rs.recordcount%></font>]篇文章 以下是[<font color="red">1～<%=rs.recordcount%></font>]篇</font></td>
  </tr>
  <tr>
    <%else%>
    <td width="38%" align="center" valign="middle"><font color="#000000">
      <% page_start=(pagecount-1)*rs.pagesize
            if pagecount=1 then page_start=1
		    page_end=rs.pagesize*pagecount
		    if pagecount*rs.pagesize=>rs.recordcount then page_end=rs.recordcount end if%>
      共有[<font color="#ff0000"><%=rs.recordcount%></font>]篇文章 以下是[<font color="red"><%=page_start%>～<%=page_end%></font>]篇</font></td>
    <td width="62%" height="30" align="right"><font color="#000000">
      <% response.write"<form name=go2to form method=Post action='admin_articlemanage.asp'>"                                             
		     if pagecount=1 then                                                        
			 response.write "<font color='#000064'>首页 上一页</font>&nbsp;"
			 else                                                        
             response.write "<a href=admin_articlemanage.asp?page=1&classid="+classid+"><font color='0000BE'>首页</font></a>&nbsp;" 
	         response.write "<a href=admin_articlemanage.asp?page="+cstr(pagecount-1)+"&classid="+classid+"><font color='0000BE'>上一页</font></a>&nbsp;"
			 end if                                             
             if rs.PageCount-pagecount<1 then                                                        
             response.write "<font color='#000064'>下一页 尾页</font>"                                                    
			 else                                                        
             response.write "<a href=admin_articlemanage.asp?page="+cstr(pagecount+1)+"&classid="+classid+"><font color='0000BE'>下一页</font></a>&nbsp;"
			 response.write "<a href=admin_articlemanage.asp?page="+cstr(rs.PageCount)+"&classid="+classid+"><font color='0000BE'>尾页</font></a>"           
             end if 
			 response.write "<font color='000064'>&nbsp;页次:<font color=blue>"&pagecount&"</font>/"&rs.pagecount&"页</font>" 
			response.write "<font color='000064'> 转到第<input type='text' name='page' size=2 maxLength=3 style='font-size: 9pt; color:#0E96DF; position: relative; height: 18' value="&PageCount&">页</font>&nbsp;"                               
			response.write "<input class=button type='button' value='确 定' onclick=check() style='font-family: 宋体; font-size: 9pt; color: #000073; position: relative; height: 19'>" %>
    </font></td>
  <tr>
    <td height="6" colspan="4" valign="bottom"><font color="#000000">&nbsp; </font></td>
  </tr>
  <% end if %>
</table>
<% end if%>
</body>
</html>