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

📄 index.asp

📁 电子商务系统Easy_Buy是一个在线销售系统
💻 ASP
字号:
<!--#include file="../0.asp"-->
<!--#include file="../../../conn/conn.asp"-->
<!--#include file="../../../conn/nosql.asp"-->
<html>
<head>
<title>订单管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../../css/css.css" rel="stylesheet" type="text/css">
<STYLE>
BODY {
	SCROLLBAR-FACE-COLOR: #799ae1;
	SCROLLBAR-HIGHLIGHT-COLOR: #799ae1;
	SCROLLBAR-SHADOW-COLOR: #799ae1;
	SCROLLBAR-3DLIGHT-COLOR: #799ae1;
	SCROLLBAR-ARROW-COLOR: #fcfcfc;
	SCROLLBAR-TRACK-COLOR: #aabfec;
	SCROLLBAR-DARKSHADOW-COLOR: #799ae1;
	SCROLLBAR-BASE-COLOR: #799ae1;
	background-color: #CAD7F7;
}
.STYLE3 {
	color: #FFFFFF;
	font-weight: bold;
}
</STYLE>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div align="center"><br>
</div>
<table width="99%" height="30" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#FFFFFF">
  <form name="form1" method="post" action="?">
    <tr align="center" valign="top"> 
      <td width="40%" height="25" bgcolor="#E8F1FF"> 
        <div align="center">客户名称、地址 
          <input name="keywords" type="text" size="15">
          <input name="Submit2" type="submit" value="查找">
      </div></td>
      <td width="40%" bgcolor="#E8F1FF">客户所定产品名称 
        <input name="keywords2" type="text" size="15"> 
        <input name="Submit22" type="submit" value="查找"> 
      </td>
      <td width="20%" bgcolor="#E8F1FF"><a href="add.asp?add=t">&gt;&gt;添加电话订单</a></td>
    </tr></form>
</table>
  <br>
<table width="99%" border="0" align="center" bgcolor="#FFFFFF" cellpadding="2" cellspacing="1">
  <tr bgcolor="#f1f1f1" valign="middle" align="center"> 
    <td width="150" height="25" background="../../../images/admin_bg_11.gif" bgcolor="#f1f1f1"> <div align="center" class="STYLE3">电话订单ID</div></td>
    <td width="200" height="20" background="../../../images/admin_bg_11.gif" bgcolor="#f1f1f1"> <div align="center" class="STYLE3">电话订单录入时间</div></td>
    <td width="150" height="20" background="../../../images/admin_bg_11.gif" bgcolor="#f1f1f1"><span class="STYLE3">订单状态</span></td>
    <td width="100" height="20" background="../../../images/admin_bg_11.gif" bgcolor="#f1f1f1"><span class="STYLE3">修改</span></td>
    <td width="100" background="../../../images/admin_bg_11.gif" bgcolor="#f1f1f1"><span class="STYLE3">删除</span></td>
  </tr>
  <% set rs=server.createobject("adodb.recordset")
     keywords=nosql(replace(request("keywords"),"'",""))
 keywords2=nosql(replace(request("keywords2"),"'",""))
  xs=nosql(replace(request("xs"),"'",""))
if keywords<>"" then 
Set s= Server.CreateObject("abodb.recordset")
   sql="select * from telorder where user_name='"&nosql(session("www.wygk.cn"))&"' and (t_name like '%"&keywords&"%' or t_add like '%"&keywords&"%') order by dates desc" 
else if keywords2<>"" then 
Set s= Server.CreateObject("abodb.recordset")
   sql="select * from telorder where user_name='"&nosql(session("www.wygk.cn"))&"'and t_id in(select distinct t_id from telorder_goods where gname like '%"&keywords2&"%') order by dates desc"
   else 
   if xs<>"" then
   Set s= Server.CreateObject("abodb.recordset")
   sql="select * from telorder where user_name='"&nosql(session("www.wygk.cn"))&"' and "&xs&" order by dates desc "
   else 
   Set s= Server.CreateObject("abodb.recordset")
   sql="select * from telorder where user_name='"&nosql(session("www.wygk.cn"))&"' order by dates desc "
    end if
	end if 
	end if
	rs.open sql,conn,3,1
	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="#FFFFFF" valign="middle" align="center"> 
    <td width="150" bgcolor="#E8F1FF" > <a href="detailor.asp?id=<% =rs("t_id")%>"> 
      <% =rs("t_id")%>
      </a></td>
    <td width="200" bgcolor="#E8F1FF"> <div align="center"> 
        <%=rs("dates")%>
      </div></td>
    <td width="150" bgcolor="#E8F1FF">[ 
      <%if rs("istate")="0" then 
		   response.write "<font color=red>尚未处理</color>"
		   else 
		    if rs("istate")="1" then 
			response.write "已发货"
		   else 
		    if rs("istate")="2" then
			response.write "货已到" 
		   
		   
		      end if
		     end if
		     end if %>
      ]</td>
    <td width="100" bgcolor="#E8F1FF"> <a href="add.asp?add=x&id=<% =rs("t_id")%>">修改</a></td>
    <td width="100" bgcolor="#E8F1FF"><a href="del.asp?x=b&id=<% =rs("t_id")%>&page=<%= page %>">删除</a></td>
  </tr>
  <%
i=i+1
 rs.MoveNext                                              
 loop 
%>
  <tr bgcolor="#FFFFFF" valign="middle" align="center"> 
    <form name=form method=post action=?keywords=<%=request("keywords")%>&keywords2=<%=request("keywords2")%>&xs=<%=request("xs")%>>
      <td height="30" colspan="5" bgcolor="#E8F1FF" > 
      <%
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 > <input type=submit name=Submit value=Go >")
end if%>      </td></form>
  </tr>
</table>

<form name="form2" method="post" action="">
  <div align="center">&gt;&gt;自定义显示: 
    <input type="radio" name="xs" value="istate=0">
    尚未处理
    <input type="radio" name="xs" value="istate=1">
    已发货 
    <input type="radio" name="xs" value="istate=2">
    货已到 
    <input name="Submit" type="submit" value="显示">
  </div>
</form>
</body>
</html>

⌨️ 快捷键说明

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