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

📄 editdingdan2.asp

📁 购物系统(本版为正式商业版
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<!--#include file="conn.asp"-->
<!--#include file="../fuction.asp"-->
<!--#include file="adminset.asp"-->
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登陆!');window.location.href='login.asp';</script>"
response.End
end if
if session("flag")>2 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限!</b></font></div>"
response.End
end if
if qx3<>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限!</b></font></div>"
response.End
end if
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style></head>

<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/right_top2.gif">
  <tr>
    <td width="1%">&nbsp;</td>
    <td width="99%"><table width="100%" border="0" cellspacing="0" cellpadding="5">
        <tr>
          <td width="30%" style="font-size:14px;color:#ffffff">&nbsp;<strong><font color="#000000">管理会员商品废订单</font></strong></td>
          <td width="70%" align="right">&nbsp;</td>
        </tr>
    </table></td>
  </tr>
</table>
<%dim zhuangtai,namekey,dd,day1,day2
zhuangtai=trim(request("zhuangtai"))
namekey=trim(request("namekey"))
dd=trim(request("dd"))
if trim(request("year1"))<>"" then
  day1=trim(Request.Form("year1"))&"-"&trim(Request.Form("month1"))&"-"&trim(Request.Form("day1"))
  else
  day1=trim(request("day1"))
end if
 if trim(request("year2"))<>"" then
  day2=trim(Request.Form("year2"))&"-"&trim(Request.Form("month2"))&"-"&trim(Request.Form("day2"))
 else
  day2=trim(request("day2"))
 end if
if zhuangtai="" then zhuangtai=0
if namekey="" then namekey=request.querystring("namekey")
if dd="" then dd=request.querystring("dd")
%>
<br>
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="1">
  <tr>
    <td>
      <div align="right">    </div></td>
  </tr>
</table>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="40">
      <form name="form1" method="post" action="editdingdan2.asp?zhuangtai=8">
        开始:
          <select name="year1" class="wenbenkuang">
            <%for i=2005 to 2100%>
            <option value="<%=i%>"  <%if year(now())=i then%>selected<%end if%>><%=i%></option>
            <%next%>
          </select>
        <select name="month1" class="wenbenkuang">
          <%for i=1 to 12%>
          <option value="<%=i%>"  <%if year(date())=i then %>selected<% end if %>><%=i%></option>
          <%next%>
        </select>
        <select name="day1" class="wenbenkuang">
          <%for i=1 to 31%>
          <option value="<%=i%>"  ><%=i%></option>
          <%next%>
        </select>
        日 到结束:
        <select name="year2" class="wenbenkuang">
          <%for i=2005 to 2100%>
          <option value="<%=i%>" <%if year(date())=i then%>selected<%end if%>><%=i%> </option>
          <%next%>
        </select>
        <select name="month2" class="wenbenkuang">
          <%for i=1 to 12%>
          <option value="<%=i%>"  <%if month(date())=i then%>selected<%end if%>><%=i%> </option>
          <%next%>
        </select>
        <select name="day2" class="wenbenkuang">
          <%for i=1 to 31%>
          <option value="<%=i%>"  <%if day(date())=i then%>selected<%end if%>><%=i%> </option>
          <%next%>
        </select>
        <input type="submit" class="go-wenbenkuang" name="Submit3" value="统 计">
        <select name="select"  class="wenbenkuang" onChange="var jmpURL=this.options[this.selectedIndex].value ; if(jmpURL!='') {window.location=jmpURL;} else {this.selectedIndex=0 ;}" >
          <base target=Right>
          <option value="editdingdan2.asp?zhuangtai=0" selected>--款到发货--</option>
          <option value="editdingdan2.asp?zhuangtai=0" >全部订单状态</option>
          <option value="editdingdan2.asp?zhuangtai=1" >未作任何处理</option>
          <option value="editdingdan2.asp?zhuangtai=2" >订单已确认款未到</option>
          <option value="editdingdan2.asp?zhuangtai=3" >款已到,正在备货</option>
          <option value="editdingdan2.asp?zhuangtai=4" >货已发出</option>
          <option value="editdingdan2.asp?zhuangtai=5" >货已收到谢谢定购 </option>
        </select>
      </form></td>
  </tr>
</table>
<%'开始分页
				Const MaxPerPage=12 
   				dim totalPut   
   				dim CurrentPage
   				dim TotalPages
   				dim j
   				dim sql
    				if Not isempty(request("page")) then
      				currentPage=Cint(request("page"))
   				else
      				currentPage=1
   				end if 
	set rs=server.CreateObject("adodb.recordset")
		if namekey="" then
	'//按状态查询
	  if zhuangtai=0 then

                rs.open "select distinct(dingdan),userid,username,userzhenshiname,actiondate,songhuofangshi,zhifufangshi,zhuangtai,new from shop_action where zhuangtai<6 and zt=2 order by actiondate desc",conn,1,1
  
       elseif zhuangtai=8 then
            rs.open "select distinct(dingdan),userid,username,userzhenshiname,actiondate,songhuofangshi,zhifufangshi,zhuangtai,new from shop_action where (datediff(dd,actiondate,'"&day2&"')>=0)  and (datediff(dd,'"&day1&"',actiondate)>=0)  and (zhuangtai<6) and (zt=2)  order by actiondate",conn,1,1
       elseif zhuangtai=888 then
		    rs.open "select distinct(dingdan),userid,username,userzhenshiname,shouhuoname,actiondate,songhuofangshi,zhifufangshi,zhuangtai,new from shop_action order by actiondate",conn,1,1
	   else
            rs.open "select distinct(dingdan),userid,username,userzhenshiname,actiondate,songhuofangshi,zhifufangshi,zhuangtai,new from shop_action where  zhuangtai="&zhuangtai&" and zt=2 order by actiondate desc",conn,1,1
	   end if
  else
  '//按用户查询
       if zhuangtai=9 then
            if dd=1 then
                rs.open "select distinct(dingdan),userid,username,userzhenshiname,actiondate,songhuofangshi,zhifufangshi,zhuangtai,new from shop_action where username='"&namekey&"' and zt=2 order by actiondate",conn,1,1
            elseif dd=2 then
                rs.open "select distinct(dingdan),userid,username,userzhenshiname,actiondate,songhuofangshi,zhifufangshi,zhuangtai,qlr,new from shop_action where qlr='"&namekey&"' and zt=2  order by actiondate",conn,1,1
            elseif dd=5 then
                rs.open "select distinct(dingdan),userid,username,userzhenshiname,actiondate,songhuofangshi,zhifufangshi,zhuangtai,new from shop_action where dingdan='"&namekey&"' and zt=2  order by actiondate",conn,1,1
            else
                rs.open "select distinct(dingdan),userid,username,userzhenshiname,shouhuoname,actiondate,songhuofangshi,zhifufangshi,zhuangtai,new from shop_action where shouhuoname='"&namekey&"' and zt=2  order by actiondate",conn,1,1
            end if
        end if
  end if
		  
			'	if err.number<>0 then
				'response.write "数据库中无数据"
				'end if
				
  				if rs.eof And rs.bof then
       				Response.Write "<p align='center' class='contents'> 对不起,您选择的状态目前还没有订单!</p>"
   				else
	  				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
            			showContent
            			showpage totalput,MaxPerPage,"editdingdan.asp"
       				else
          				if (currentPage-1)*MaxPerPage<totalPut then
            				rs.move  (currentPage-1)*MaxPerPage
            				dim bookmark
            				bookmark=rs.bookmark
            				showContent
             				showpage totalput,MaxPerPage,"editdingdan.asp"
        				else
	        				currentPage=1
           					showContent
           					showpage totalput,MaxPerPage,"editdingdan.asp"
	      				end if
	   				end if
   				   				end if

   				sub showContent
       			dim i
	   			i=0

			%><form name="form1" method="post" action="deldingdan.asp?action=hy2">
<table width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#9DB2D4">
  <tr bgcolor="#C7D3E6">
      <td><div align="center">删除</div></td>
    <td height="22">
    <div align="center">订单号</div></td>
    <td height="22">
    <div align="center">下单用户</div></td>
    <td height="22">
    <div align="center">订货人姓名</div></td>
    <td height="22">
    <div align="center">付款方式</div></td>
    <td height="22">
    <div align="center">收货方式</div></td>
    <td height="22">
    <div align="center">订单状态</div></td>

⌨️ 快捷键说明

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