📄 edit_list_old.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="session.asp"-->
<!--#include file="../include/code.asp"-->
<%
'**********************************
'版本:host_free 3.0 *
'官方网站:http://www.850518.com *
'技术论坛:http://forum.850518.com *
'qq:54455245 (欢迎咨询商业版) *
'msn: steven_bass@msn.com *
'手机:(0)13632779827 *
'mail:wtez@vip.163.com *
'版权所有,请保留该信息,谢谢合作 *
'**********************************
%>
<%
set rs = server.createobject("adodb.recordset")
sql="select * from sub where sub_check=true order by sub_id desc"
rs.open sql,conn,1,3
%>
<%
const maxperpage=20
dim totalput
dim currentpage
dim totalpages
dim i,j
if not isempty(request("page")) then
currentpage=cint(request("page"))
else
currentpage=1
end if
%>
<html>
<head>
<meta http-equiv="content-language" content="zh-cn">
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<meta name="generator" content="microsoft frontpage 4.0">
<meta name="progid" content="frontpage.editor.document">
<link href="style.css" rel=stylesheet>
</head>
<body style="background-color: #eeeeee">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="1" width="100%" bgcolor="#626262">
<tr>
<td height="20"> <b><font color="#ffffff">确认订单</font></b></td>
</tr>
<tr>
<td height="500" bgcolor="#ffffff" valign="top">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="90%">
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%">
<p align="center"><%
if rs.eof and rs.bof then
response.write "<p align='center'> 还没有添加订单 </p>"
else
totalput=rs.recordcount
totalput=rs.recordcount
if currentpage<1 then
currentpage=1
end if
if (currentpage-1)*maxperpage>totalput then
if (totalput mod maxperpage)=0 then
currentpage= totalput \ maxperpage
else
currentpage= totalput \ maxperpage + 1
end if
end if
if currentpage=1 then
showpage totalput,maxperpage,"edit_list_new.asp"
showcontent
showpage totalput,maxperpage,"edit_list_new.asp"
else
if (currentpage-1)*maxperpage<totalput then
rs.move (currentpage-1)*maxperpage
dim bookmark
bookmark=rs.bookmark
showpage totalput,maxperpage,"edit_list_new.asp"
showcontent
showpage totalput,maxperpage,"edit_list_new.asp"
else
currentpage=1
showpage totalput,maxperpage,"edit_list_new.asp"
showcontent
showpage totalput,maxperpage,"edit_list_new.asp"
end if
end if
rs.close
end if
set rs=nothing
conn.close
set conn=nothing
sub showcontent
dim i
i=0
%></td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%">
<table border="0" cellpadding="0" cellspacing="1" width="100%" bgcolor="#626262">
<tr>
<td width="9%" bgcolor="#626262" height="20" align="center"><font color="#ffffff">编号</font></td>
<td width="30%" bgcolor="#626262" height="20" align="center"><font color="#ffffff">订单号</font></td>
<td width="20%" bgcolor="#626262" height="20" align="center"><font color="#ffffff">订购者</font></td>
<td width="29%" bgcolor="#626262" height="20" align="center"><font color="#ffffff">订购时间</font></td>
<td width="11%" bgcolor="#626262" height="20" align="center"><font color="#ffffff">删除</font></td>
</tr>
<%do while not rs.eof%>
<tr>
<td width="9%" bgcolor="#ffffff" height="20" align="center"><%=rs("sub_id")%></td>
<td width="30%" bgcolor="#ffffff" height="20" align="center"><a class="red" href="save_list.asp?sub_number=<%=rs("sub_number")%>"><%=rs("sub_number")%></a></td>
<td width="20%" bgcolor="#ffffff" height="20" align="center"><%=rs("d_webname")%></td>
<td width="29%" bgcolor="#ffffff" height="20" align="center"><%=rs("sub_time")%></td>
<td width="11%" bgcolor="#ffffff" height="20" align="center"><a href="del.asp?sub_id=<%=rs("sub_id")%>&action=del_list_1" onclick="return confirm('确定要删除吗?\n\n该操作不可恢复!')">删除</a></td>
</tr>
<% i=i+1
if i>=maxperpage then exit do
rs.movenext
loop
%>
</table> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%">
<p align="center"><%
end sub
function showpage(totalnumber,maxperpage,filename)
dim n
if totalnumber mod maxperpage=0 then
n= totalnumber \ maxperpage
else
n= totalnumber \ maxperpage+1
end if
response.write "<form method=post action="&filename&">"
response.write "<p align='center'><font color='#000080'>分页</font> "
if currentpage<2 then
response.write "<font color='#000080'>首页 上一页</font> "
else
response.write "<a href="&filename&"?page=1&>首页</a> "
response.write "<a href="&filename&"?page="¤tpage-1&">上一页</a> "
end if
if n-currentpage<1 then
response.write "<font color='#000080'>下一页 尾页</font>"
else
response.write "<a href="&filename&"?page="&(currentpage+1)
response.write ">下一页</a> <a href="&filename&"?page="&n&">尾页</a>"
end if
response.write "<font color='#000080'> 页次:</font><strong><font color=red>"¤tpage&"</font><font color='#000080'>/"&n&"</strong>页</font> "
response.write "<font color='#000080'> 共<b>"&totalnumber&"</b>条新闻<b>"&maxperpage&"</b>条新闻/页</font> "
end function
%></td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</center>
</div>
</body>
</html>
<%
'**********************************
'版本:host_free 3.0 *
'官方网站:http://www.850518.com *
'技术论坛:http://forum.850518.com *
'qq:54455245 (欢迎咨询商业版) *
'msn: steven_bass@msn.com *
'手机:(0)13632779827 *
'mail:wtez@vip.163.com *
'版权所有,请保留该信息,谢谢合作 *
'**********************************
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -