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

📄 admin.asp

📁 用asp做的咨询平台 比较简单 但是修改很方便 很实用
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="includes\conleft.asp"-->
<%
if Session("open")<>True then
	Response.Redirect "index.asp"
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新闻管理—管理首页</title>
</head>

<body>
<table width="75%" border="0" align="center" 
cellpadding="0" cellspacing="1" bgcolor="#999999">
<tr>
<td width="60%" bgcolor="#FFFFFF">&gt;&gt;新闻管理—管理首页:
</td>
    <td width="40%" height="23" align="center" bgcolor="#FFFFFF"> <a href="add.asp">发布新闻</a><a href="admin_admin.asp">- 
      新闻首页</a>-<a href="logout.asp">退出管理</a> </td>
</tr>
<tr>
    <td height="240" colspan="2" align="center" bgcolor="#FFFFFF"> <table width="98%" cellpadding="0" cellspacing="1" bgcolor="#999999">
        <%
sql="select * from news order by id desc" 
rs.Open sql,conn,1,1
rs.pagesize=10  '设置一页显示多少条记录 
if not rs.eof then 
    pageno=request("pageno")
    if Not IsNumeric(pageno) or pageno="" then
		pageno=1
	else
		pageno=cint(pageno)
	end if
   rs.absolutepage=pageno
else
	pageno=0
end if

if not rs.eof then 
	for i=1 to rs.pagesize%>
        <tr> 
          <td width="61%" bgcolor="#FFFFFF"><%call conleft(rs("title"),10)%></td>
		  <td width="16%" bgcolor="#FFFFFF"> <%=rs("addtime")%></td>
          <td width="11%" bgcolor="#FFFFFF"><a href=modify.asp?id=<%=rs("id")%>>修改</a> </td>
          <td width="12%" bgcolor="#FFFFFF"><a href=del.asp?id=<%=rs("id")%> 
	  onClick="javaScript:return confirm('您确定删除本条新闻?')">删除</a> </td>
        </tr>
        <%rs.movenext
 	if rs.EOF then Exit For
	next
end if
%>
      </table></td>
</tr>
<tr>
    <td height="23" colspan="2" bgcolor="#FFFFFF"> 
      <%
response.Write pagecute(rs.pagecount,pageno,"admin.asp",5)
rs.close
set rs=nothing
call CloseDB()
%>
    </td>
</tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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