shops_operations.htm
6.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>订单管理</title>
<link href="css/base.css" rel="stylesheet" type="text/css" />
<script language="javascript">
//获得选中项
function getCheckboxItem()
{
var allSel="";
if(document.form1.aids.value) return document.form1.aids.value;
for(i=0;i<document.form1.aids.length;i++)
{
if(document.form1.aids[i].checked)
{
if(allSel=="")
allSel=document.form1.aids[i].value;
else
allSel=allSel+"`"+document.form1.aids[i].value;
}
}
return allSel;
}
function ReSel()
{
for(i=0;i<document.form1.aids.length;i++)
{
if(document.form1.aids[i].checked) document.form1.aids[i].checked = false;
else document.form1.aids[i].checked = true;
}
}
function DelSel()
{
var nid = getCheckboxItem();
if(nid==""){
alert("请选择要删除的业务记录!\r\n");
return ;
}
location.href = "shops_operations.php?dopost=delete&nid="+nid;
}
function UpSel()
{
var nid = getCheckboxItem();
if(nid==""){
alert("请选择要更改的订单记录!\r\n");
return ;
}
location.href = "shops_operations.php?dopost=up&nid="+nid;
}
function OkSel()
{
var nid = getCheckboxItem();
if(nid==""){
alert("请选择要更改的订单记录!\r\n");
return ;
}
location.href = "shops_operations.php?dopost=ok&nid="+nid;
}
function PushSel(){
var nid = getCheckboxItem();
if(nid==""){
alert("请选择要更改的订单记录!\r\n");
return ;
}
location.href = "shops_operations.php?dopost=push&nid="+nid;
}
function OpenMyWinN(surl,w,h){
window.open(surl, "popUpMyWinN", "scrollbars=yes,resizable=yes,statebar=no,width="+w+",height="+h+",left=200, top=100");
}
</script>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#cbd8ac;margin-bottom:5px">
<tr>
<td height="30" align="center" bgcolor="#FAFCEF">
<form name="form2" method="get" action="shops_operations.php">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>输入订单号:</td>
<td>
<input name="buyid" type="text" id="buyid"></td>
<td width="100" align="center"> <input name="imageField" type="submit" class='np coolbg' value="搜索">
</td>
</tr>
</table>
</form></td>
</tr>
</table>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#cfcfcf;">
<tr>
<td height="28" colspan="11" bgcolor="#EDF9D5" background='images/tbg.gif'>
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="30%" style="padding-left:10px;"><strong>订单列表:</strong> </td>
<td width="45%" align="right" style="padding-top:4px">
<input type="button" name="ss13" value="未付款" style="width:50px;margin-right:6px" onClick="location='shops_operations.php?sta=0';" class='np coolbg'/>
<input type="button" name="ss14" value="已付款" style="width:50px;margin-right:6px" onClick="location='shops_operations.php?sta=1';" class='np coolbg'/>
<input type="button" name="ss142" value="已发货" style="width:50px;margin-right:6px" onClick="location='shops_operations.php?sta=2';" class='np coolbg'/>
<input type="button" name="ss142" value="已完成" style="width:50px;margin-right:6px" onClick="location='shops_operations.php?sta=4';" class='np coolbg'/>
<input type="button" name="ss16" value="全部" style="width:40px;margin-right:6px" onClick="location='shops_operations.php';" class='np coolbg'/>
</td>
<td width="25%" align="right" style="padding-top:4px">
<input type="button" name="ss12" value="订单管理" style="width:90px;margin-right:6px" onClick="location='shops_operations.php';" class='np coolbg'/>
</td>
</tr>
</table></td>
</tr>
<tr bgcolor="#FBFCE2">
<td width="8%" align="center">选择</td>
<td width="25%" align="center">订单号</td>
<td align="center">收货人</td>
<td align="center">数量</td>
<td width="22%" align="center">生成日期</td>
<td align="center">订单价</td>
<td align="center">配送费</td>
<td align="center">总计</td>
<td align="center">支付方式</td>
<td align="center">状态</td>
<td align="center">用户</td>
</tr>
<form name="form1">
{dede:datalist}
<tr bgcolor="#FFFFFF" height="26" align="center" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
<td align="center">
<input type='checkbox' name='aids' value='<?php echo $fields['oid']?>' class='np'></td>
<td align="center">
<?php echo $fields['oid'];?>
</td>
<td align="center">
<a href="javascript:OpenMyWinN('shops_operations_userinfo.php?oid=<?php echo $fields['oid']?>',500,350);" ><?php echo $fields['consignee']?></a>
</td>
<td align="center">
<?php echo $fields['cartcount']?>
<a href="javascript:OpenMyWinN('shops_operations_cart.php?oid=<?php echo $fields['oid']?>',680,450);" >[详情]</a>
</td>
<td align="center">
<?php echo GetDateTimeMk($fields['stime'])?>
(<font color="#FF0000">{dede:field.stime function="floorTime(time()-@me,@me)"/}</font>)
</td>
<td align="center">
<?php echo $fields['price']?>
</td>
<td align="center">
<?php echo $fields['dprice']?>
</td>
<td align="center">
<?php echo $fields['priceCount']?>
</td>
<td align="center">
<?php echo GetsType($fields['paytype'])?>
</td>
<td align="center">
<?php echo GetSta($fields['state'])?>
</td>
<td align="center">
<?php echo GetMemberID($fields['userid'])?>
</td>
</tr>
{/dede:datalist}
</form>
<tr>
<td height="28" colspan="11" bgcolor="#FCFDF7" style="padding-top:4px;">
<input type="button" name="b7" value="反选" class='np coolbg' style="width:40" onClick="ReSel();">
<input type="button" name="b" value="删除" style="width:40" onClick="DelSel();" class='np coolbg' />
<input type="button" name="b5" value="设为已付款状态" class='np coolbg' style="width:100" onClick="UpSel();">
<input type="button" name="b9" value="设为已发货状态" class='np coolbg' style="width:100" onClick="PushSel();">
<input type="button" name="b9" value="设为已完成状态" class='np coolbg' style="width:100" onClick="OkSel();">
</td>
</tr>
<tr>
<td height="36" colspan="11" bgcolor="#F9FCEF" align="center">
{dede:pagelist listitem="info,index,end,pre,next,pageno" listsize="5"/}
</td>
</tr>
</table>
</body>
</html>