?? admin_log.asp
字號:
<!--#include file="include/conn.asp"-->
<!--#include file="inc/format.asp"-->
<!--#include file="inc/error.asp"-->
<%
dim founderr,errmsg
founderr=false
errmsg=""
dim totalnews,Currentpage,totalpages,i
sql="select * from log where u_id="&session("u_id")&" order by l_id DESC"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
%>
<HTML><HEAD><TITLE>管理中心</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK
href="inc/djcss" type=text/css rel=StyleSheet>
<META content="MSHTML 6.00.2800.1126" name=GENERATOR>
</HEAD>
<body onkeydown=return(!(event.keyCode==78&&event.ctrlKey))>
<br><br><br><br>
<table width="60%" border="0" align="center" cellpadding="4" cellspacing="1" bordercolor="#C0C0C0" bgcolor="#000000" style="border-collapse: collapse">
<tr align="center">
<td colspan="3" bgcolor="#E8E8E8">心情故事管理</font> [<a href="admin_logadd.asp" target="_self" >添加故事</a>]</td>
</tr>
<tr bgcolor="#E8E8E8" align="center">
<td class="chinese" width="20%" bgcolor="#FFFFFF">編號</td>
<td class="chinese" width="60%" bgcolor="#FFFFFF">標題&發布時間</td>
<td class="chinese" width="20%" bgcolor="#FFFFFF">操作</td>
</tr>
<%if rs.eof and rs.bof then%>
<tr align="center">
<td bgcolor="#FFFFFF" colspan="3" class="chinese">當前沒有故事!</td>
</tr>
<% else
rs.movefirst
newsperpage=15
rs.pagesize=newsperpage
if trim(request("page"))<>"" then
currentpage=clng(request("page"))
if currentpage>rs.pagecount then
currentpage=rs.pagecount
end if
else
currentpage=1
end if
totalnews=rs.recordcount
if currentpage<>1 then
if (currentpage-1)*newsperpage<totalnews then
rs.move(currentpage-1)*newsperpage
dim bookmark
bookmark=rs.bookmark
end if
end if
if (totalnews mod newsperpage)=0 then
totalpages=totalnews\newsperpage
else
totalpages=totalnews\newsperpage+1
end if
i=0
do while not rs.eof and i<newsperpage%>
<tr>
<td bgcolor="#FFFFFF" class="chinese" align="center"><%=rs("l_id")%> </td>
<td bgcolor="#FFFFFF" class="chinese"><%=left(rs("l_title"),30)&"..."%> <span class="date"><%=rs("l_time")%></span> </td>
<td bgcolor="#FFFFFF" class="chinese" align="center"><a href="admin_logmod.asp?id=<%=rs("l_id")%>">修改</a>
<a href="admin_logdel.asp?id=<%=rs("l_id")%>">刪除</a> <a href="admin_showart.asp?art_id=<%=rs("l_id")%>" target="_blank">瀏覽</a></td>
</tr>
<%i=i+1
rs.movenext
loop
end if%>
</table>
<table align="center" width="60%" border="0" cellspacing="0" cellpadding="0">
<form name="form2" method="post" action="admin_log.asp">
<tr>
<td class="chinese" align="right"><%=currentpage%> /<%=totalpages%>頁,<%=totalnews%>條記錄/<%=newsperpage%>篇每頁..
<%
i=1
showye=totalpages
if showye>10 then
showye=10
end if
for i=1 to showye
if i=currentpage then
%>
<%=i%>
<%else%>
<a href="admin_log.asp?page=<%=i%>"><%=i%></a>
<%end if
next
if totalpages>currentpage then
if request("page")="" then
page=1
else
page=request("page")+1
end if%>
<a href="admin_log.asp?page=<%=page%>" title="下一頁">>></a>
<%end if%>
<input type="text" name="page" class="textarea" size="4">
<input type="submit" name="Submit" value="Go" class="button"></td>
</tr>
</form>
</table>
<%
rs.close
set rs=nothing
%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -