⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 adminitem.asp

📁 SEO过的带数据库的NBA直播程序!解压到根目录更换banner即可!后台admin 密码zidane
💻 ASP
字号:
<!--#include file="conn.asp"-->
<%
if session("admin")="" then
response.redirect "../0_1.htm"
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>栏目管理</title>
<style type="text/css">
<!-- 
td           { font-size: 12px; line-height: 17px }
body         { font-size: 12px; line-height: 17px }
p            { margin-top: 1px; margin-bottom: 1px }
a:link       { text-decoration: none; color: black }
a:visited    { text-decoration: none; color: black }
a:active     { text-decoration: none }
a:hover      { text-decoration: underline; color: red }
-->
</style>
</head>

<body leftmargin="0">
<br>
<div align="center">
  <center>
  <table border="0" width="400" cellspacing="0" cellpadding="0">
    <%
    sql="select * from item order by id asc"
    set rs=server.createobject("adodb.recordset")
    rs.open sql,connstr,1,1
    if rs.eof then
    %>
    <tr>
      <td width="580">
    <p align="center"><font color="#FF0000">暂时没有栏目!</font></p>
      </td>
    </tr>
    <tr>
      <td width="580">
<%
else
const maxperpage=20
dim currentpage
rs.pagesize=maxperpage
currentpage=request.querystring("pageid")
if currentpage="" then
currentpage=1
elseif currentpage<1 then
currentpage=1
else
currentpage=clng(currentpage)
	if currentpage > rs.pagecount then
	currentpage=rs.pagecount
	end if
end if

if not isnumeric(currentpage) then
currentpage=1
end if
dim totalput,n
totalput=rs.recordcount
if totalput mod maxperpage=0 then
n=totalput\maxperpage
else
n=totalput\maxperpage+1
end if
if n=0 then
n=1
end if
rs.move(currentpage-1)*maxperpage
i=0
do while i< maxperpage and not rs.eof
%>
<div align="center">
  <center>
<table border="1" width="398" bordercolorlight="#000000" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF">
  <tr>
    <td width="86" height="22" align="center" bgcolor="#F1F1F1">栏目名称</td>
    <td width="306" height="22" colspan="3">&nbsp;<%=rs("name")%>&nbsp;&nbsp;<a href="delitem.asp?id=<%=rs("name")%>"><font color="#FF0000">删除</font></a></td>
  </tr>
</table></center>
</div>
    <%                                                                         
    i=i+1                                                      
    rs.movenext                                                        
    loop                                                                                 
    end if                                      
    %>   
   </td>     
    </tr>         
  <center>               
    <tr>       
      <td width="400" align="center" height="30"><p align="center">页数:<%=currentpage%>/<% =n%>                                                       
   	<%k=currentpage                                                                                
   	if k<>1 then%>                                                            
   	<a href="adminitem.asp?pageid=1">首页</a>                                                                                
   	<a href="adminitem.asp?pageid=<%=k-1%>">上一页</a>                                                                                
   	<%else%>                                                            
   	首页&nbsp;上一页                                                                                
   	<%end if%>                                                            
   	<%if k<>n then%>                                                                                
   	<a href="adminitem.asp?pageid=<%=k+1%>">下一页</a>                                                                                
   	<a href="adminitem.asp?pageid=<%=n%>">尾页</a>                                                                                
   	<%else%>                                                            
   	下一页&nbsp;尾页                                                                                
   	<%end if%>                                                            
     现有<font color="red"><%=totalput%></font>个栏目</p>                                                                              
      </td>             
    </tr>          
  </table>             
  </center>             
</div>                                                                                                              
  <p align="center"><input type="button" value="返回" name="B3" onclick="javascript:history.back()"></p>
</body>                                                                   
</html>                                              

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -