?? editdingdan_fhy.asp
字號:
<!--#include file="conn.asp"-->
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('網(wǎng)絡超時或您還沒有登陸!');window.location.href='login.asp';</script>"
response.End
else
if session("flag")>3 then
response.Write "<div align=center><font size=80 color=red><b>您沒有此項目管理權(quán)限!</b></font></div>"
response.End
end if
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">
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/right_top2.gif">
<tr>
<td width="1%"> </td>
<td width="99%"><table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td width="48%"> <strong><font color="#000000">管理非會員商品訂單 </font></strong><font color="#000000"><a href="editdingdan_fhy.asp?zhuangtai=888">查詢所有訂單(包括廢訂單)</a> <a href="deldingdan.asp?action=000">刪除所有不完整訂單</a></font></td>
<td align="right"> </td>
</tr>
</table></td>
</tr>
</table>
<%dim zhuangtai,namekey,dd,day1,day2
namekey=trim(request("namekey"))
zhuangtai=trim(request("zhuangtai"))
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="editdingdan_fhy.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%>"><%=i%></option>
<%next%>
</select>
月
<select name="day1" class="wenbenkuang">
<%for i=1 to 31%>
<option value="<%=i%>" ><%=i%></option>
<%next%>
</select>
日 到結(jié)束:
<select name="year2" class="wenbenkuang">
<%for i=2005 to 2100%>
<option value="<%=i%>" ><%=i%> </option>
<%next%>
</select>
年
<select name="month2" class="wenbenkuang">
<%for i=1 to 12%>
<option value=<%=i%> ><%=i%> </option>
<%next%>
</select>
月
<select name="day2" class="wenbenkuang">
<%for i=1 to 31%>
<option value=<%=i%> <%if year(date())=i then%>selected<%end if%>><%=i%> </option>
<%next%>
</select>
日
<input type="submit" class="go-wenbenkuang" name="Submit3" value="統(tǒng) 計">
<select name="select2" class="wenbenkuang" onChange="var jmpURL=this.options[this.selectedIndex].value ; if(jmpURL!='') {window.location=jmpURL;} else {this.selectedIndex=0 ;}" >
<base target=Right>
<option value="editdingdan_fhy.asp?zhuangtai=0" selected>--款到發(fā)貨--</option>
<option value="editdingdan_fhy.asp?zhuangtai=0" >全部訂單狀態(tài)</option>
<option value="editdingdan_fhy.asp?zhuangtai=1" >未作任何處理</option>
<option value="editdingdan_fhy.asp?zhuangtai=2" >訂單已確認款未到</option>
<option value="editdingdan_fhy.asp?zhuangtai=3" >款已到,正在備貨</option>
<option value="editdingdan_fhy.asp?zhuangtai=4" >貨已發(fā)出</option>
<option value="editdingdan_fhy.asp?zhuangtai=5" >貨已收到謝謝定購 </option>
</select>
</form></td>
</tr>
</table>
<br>
<%'開始分頁
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
'//按狀態(tài)查詢
if zhuangtai=0 then
rs.open "select distinct(dingdan),userid,username,userzhenshiname,actiondate,songhuofangshi,zhifufangshi,zhuangtai,new from shop_action_fhy where zhuangtai<6 and zt<>2 order by actiondate desc",conn,1,1
elseif zhuangtai=8 then
'day1=trim(Request.Form("year1"))&"-"&trim(Request.Form("month1"))&"-"&trim(Request.Form("day1"))
' day2=trim(Request.Form("year2"))&"-"&trim(Request.Form("month2"))&"-"&trim(Request.Form("day2"))
rs.open "select distinct(dingdan),userid,username,userzhenshiname,actiondate,songhuofangshi,zhifufangshi,zhuangtai,new from shop_action_fhy 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_fhy order by actiondate",conn,1,1
else
rs.open "select distinct(dingdan),userid,username,userzhenshiname,actiondate,songhuofangshi,zhifufangshi,zhuangtai,new from shop_action_fhy 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_fhy where username='"&namekey&"' and zt<>2 order by actiondate desc",conn,1,1
elseif dd=2 then
rs.open "select distinct(dingdan),userid,username,userzhenshiname,actiondate,songhuofangshi,zhifufangshi,zhuangtai,qlr,new from shop_action_fhy where qlr='"&namekey&"' and zt<>2 order by actiondate desc",conn,1,1
elseif dd=5 then
rs.open "select distinct(dingdan),userid,username,userzhenshiname,actiondate,songhuofangshi,zhifufangshi,zhuangtai,new from shop_action_fhy where dingdan='"&namekey&"' and zt<>2 order by actiondate desc",conn,1,1
else
rs.open "select distinct(dingdan),userid,username,shouhuoname,userzhenshiname,actiondate,songhuofangshi,zhifufangshi,zhuangtai,new from shop_action_fhy 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 "數(shù)據(jù)庫中無數(shù)據(jù)"
end if
if rs.eof And rs.bof then
Response.Write "<p align='center' class='contents'> 對不起,您選擇的狀態(tài)目前還沒有訂單!</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_fhy.asp"
else
if (currentPage-1)*MaxPerPage<totalPut then
rs.move (currentPage-1)*MaxPerPage
dim shopmark
shopmark=rs.bookmark
showContent
showpage totalput,MaxPerPage,"editdingdan_fhy.asp"
else
currentPage=1
showContent
showpage totalput,MaxPerPage,"editdingdan_fhy.asp"
end if
end if
end if
sub showContent
dim i
i=0
%>
<form name="form1" method="post" action="deldingdan.asp?action=fhy">
<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">
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -