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

📄 order.asp

📁 ASP在线订单系统下载介绍: 可方便大家在asp和htm网页中调用
💻 ASP
字号:
<%
 if session("pass")="" then
response.redirect "login.asp"
end if
%>
<!--#include file="conn.asp"-->
<style type="text/css">
<!--
.STYLE1 {color: #FF0000}
-->
</style>

<a href="logout.asp">退出</a>
<TABLE width="900" border=0 align="center" cellPadding=3 cellSpacing=1  bgcolor="#CCCCCC">
  <TR bgcolor="EEF9FF">
    <TD height="32" align=right bgcolor="#F1F1F1"><div align="center">订单ID</div></TD>
    <TD  bgcolor="#F1F1F1"><div align="center">数量</div></TD>
    <TD width="10%"  bgcolor="#F1F1F1"><div align="center">名字</div></TD>
    <TD width="14%"  bgcolor="#F1F1F1"><div align="center">电话</div></TD>
	<TD width="16%"  bgcolor="#F1F1F1"><div align="center">手机</div></TD>
	<TD width="10%"  bgcolor="#F1F1F1"><div align="center">邮编</div></TD>
    <TD width="19%"  bgcolor="#F1F1F1"><div align="center">邮件</div></TD>
    <TD width="17%"  bgcolor="#F1F1F1"><div align="center">下单时间</div></TD>
  </TR>
    <% set rs=server.createobject("adodb.recordset")
	rs.Open "select * from [order] order by date desc",conn,1,3
	if rs.eof then 
	  response.write "没有订单!"
	 end if 
 rs.pagesize = 20
if request("page")=""  or isempty(request("page")) then
page = 1
else
page=int(request("page"))
end if
if page>rs.pagecount then
page=rs.pagecount
end if
if not rs.BOF then
Rs.Move Rs.PageSize*(page-1)
end if
i=1
do while not rs.eof and i<=rs.pagesize
%>
  <TR bgcolor="EEF9FF">
    <TD width="9%" height="36" align=right bordercolor="#0066FF"> <div align="center"><%=rs("id")%>&nbsp;&nbsp;  <a href="del.asp?id=<%=rs("id")%>">删除</a></div></TD>
    <TD width="5%" align=right bordercolor="#0066FF"><div align="center"><%=rs("number")%></div></TD>
    <TD  align=right bordercolor="#0066FF"><div align="center"><%=rs("name")%></div></TD>
    <TD align=right bordercolor="#0066FF"><div align="center"><%=rs("tel")%></div></TD>
    <TD align=right bordercolor="#0066FF"><div align="center"><%=rs("shouji")%></div></TD>
    <TD align=right bordercolor="#0066FF"><div align="center"><%=rs("youbian")%></div></TD>
	<TD align=right bordercolor="#0066FF"><div align="center"><%=rs("email")%></div></TD>
	<TD align=right bordercolor="#0066FF"><div align="center"><%=rs("date")%></div></TD>
  </TR>
    <TR bgcolor="EEF9FF">
    <TD width="9%" height="35"  bordercolor="#0066FF">&nbsp;</TD>
    <TD colspan="7"  bordercolor="#0066FF"><table width="100%" height="80" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td>送货地址:<%=rs("address")%></td>
        </tr>
      <tr>
        <td>邮箱:<%=rs("email")%></td>
        </tr>
      <tr>
        <td>留言:<%=rs("content")%></td>
        </tr>
    </table></TD>
    </TR>
    <%
i=i+1
 rs.MoveNext                                              
 loop 
%>
  <TR bgcolor="EEF9FF">
    <TD height="26" colspan="8" align=right><div align="center">
      <%
if rs.recordcount<>0 then
if page-1 mod 10=0 then
		p=(page-1) \ 10
	else
		p=(page-1) \ 10
	end if

	response.write "页次:"& page &"/"& rs.pagecount &"页 每页"& rs.pagesize &" 共"& rs.recordcount &"条记录"&_
					" 分页:"

	if p*10>0 then response.write "<a href='?keywords="&keywords&"&keywords2="&keywords2&"&xs="&xs&"&page="&p*10&"' title=上十页>[&lt;&lt;]</a>   "
    uming_i=1
	for ii=p*10+1 to P*10+10
		   if ii=page then
	          response.write "<font color=#ff0000>["+Cstr(ii)+"]</font> "
		   else
		      response.write "<a href='?keywords="&keywords&"&keywords2="&keywords2&"&xs="&xs&"&page="&ii&"'>["+Cstr(ii)+"]</a>   "
		   end if
		if ii=rs.pagecount then exit for
		 uming_i=uming_i+1
	next
	if ii<=rs.pagecount and uming_i=11 then response.write "<a href='?keywords="&keywords&"&keywords2="&keywords2&"&xs="&xs&"&page="&ii&"' title=下十页>[&gt;&gt;]</a>   "
response.write("  跳页:<input type=text name=page size=2 maxlength=3 class=wenbenkuang> <input type=submit name=Submit value=Go class=go-wenbenkuang>")
end if%>
    </div></TD>
  </TR>
</TABLE>
<p>&nbsp;</p>
<table width="410" height="90" border="0" align="center">
  <tr>
    <td width="47%"><div align="right"><span class="STYLE1">SHOPXP网上购物系统</span></div></td>
    <td width="31%"><div align="center"><a href="http://www.shopxp.cn" target="_blank" class="STYLE1">www.shopxp.cn</a></div></td>
    <td width="22%"><span class="STYLE1">480元</span></td>
  </tr>
  <tr>
    <td><div align="right"><span class="STYLE1">SHOPV8商城购物系统</span></div></td>
    <td><div align="center"><a href="http://www.shopv8.com" target="_blank" class="STYLE1">www.shopv8.com</a></div></td>
    <td><span class="STYLE1">300元</span></td>
  </tr>
  <tr>
    <td><div align="right"><span class="STYLE1">官方网站</span></div></td>
    <td><div align="center"><span class="STYLE1"><a href="http://www.010net.cn" target="_blank">www.010net.cn</a></span></div></td>
    <td><span class="STYLE1"></span></td>
  </tr>
</table>
<p>&nbsp;</p>

⌨️ 快捷键说明

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