📄 proedorder.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="chk.asp"-->
<!--#include file="db_conn.asp"-->
<!--#include file="../my_libs/my_request.asp"-->
<!--#include file="../my_libs/my_lib.asp"-->
<!--#include file="../my_libs/pages.asp"-->
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
<link rel="stylesheet" type="text/css" href="style_admin.css" />
</head>
<body>
<b>预定订单管理<font face="宋体" color="#FF6600">↓</font></b>
<br>
<table border="1" width="100%" id="table1">
<tr>
<td width="4%" class="top_td" align="center">ID</td>
<td width="10%" class="top_td" align="center">预定人姓名</td>
<td width="21%" class="top_td" align="center">预定时间</td>
<td width="22%" class="top_td" align="center">预定人联系电话</td>
<td width="11%" class="top_td" align="center">来游人数</td>
<td width="15%" class="top_td" align="center">预定线路</td>
<td colspan="2" class="top_td" align="center">操作</td>
</tr>
<%
dim sql,rs,arrlist(5),i,ii
sql="select id,zm_username,zm_phone,zm_lvnums,zm_ydtime,zm_iscl from ssort_order where zm_iscl=1 order by zm_ydtime desc"
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,1,1
if (rs.eof and rs.bof) then
response.write "<tr>"
response.write "<td class=12px width=760 colspan=7><font color=#FF0000>暂时还没有任何数据</font></td>"
response.write "</tr>"
else
rs.PageSize =20 '每页记录条数
iCount=rs.RecordCount '记录总数
iPageSize=rs.PageSize
maxpage=rs.PageCount
page=request("page")
if Not IsNumeric(page) or page="" then
page=1
else
page=cint(page)
end if
if page<1 then
page=1
elseif page>maxpage then
page=maxpage
end if
rs.AbsolutePage=Page
if page=maxpage then
x=iCount-(maxpage-1)*iPageSize
else
x=iPageSize
end if
end if
ii=1
while not rs.eof and ii<=rs.pagesize
for i=0 to 5
arrlist(i)=rs(i)
next
%>
<tr>
<td width="4%" align="center"><%=(page-1)*19+ii%></td>
<td width="10%" align="center"><a href=userlist.asp?id=<%=arrlist(0)%>><%=arrlist(1)%></a></td>
<td width="21%" align="center"><%=arrlist(4)%></td>
<td width="22%" align="center"><%=arrlist(2)%></td>
<td width="11%" align="center"><%=arrlist(3)%></td>
<td width="15%" align="center"><a href=../lineDetail.asp?id=<%=arrlist(0)%> target=_blank>查看线路</a></td>
<td width="4%" align="center"><input type="button" value="删除" name="B1" onclick="window.location='pro_order.asp?id=<%=arrlist(0)%>&action=del'"></td>
<td width="8%" align="center">
<input type="button" value="撤回审核" name="B2" onclick="window.location='pro_order.asp?id=<%=arrlist(0)%>&action=modi&flag=<%=arrlist(5)%>'"></td>
</tr>
<%
rs.movenext
ii=ii+1
wend
%>
<%call PageControl(iCount,maxpage,page,"border=0 width=100% align=center class=left_td ","<p align=right>")
rs.close
set rs=nothing%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -