<!--#include file="admin_start.asp" -->
<body topmargin="30" marginwidth="10" marginheight="10">
<div id=search_open style='display:none'>
<table cellspacing=3 cellpadding=3 width=98% bgcolor='#f7f7f7' align=center style='border:1px dashed #b7b7b7 '>
<form name=search_customer method=get action='admin_user_customer_order_list.asp'>	
<tr>
	<td  valign='middle' align=right width=10% >总订单号:</td>
	<td  valign='middle' align=left width=40% >
	<input size=42 name=customer_order_mark value='<%=request("customer_order_mark")%>' >
	</td>
	<td  valign='middle' align=right width=10% >子订单号:</td>
	<td  valign='middle' align=left width=40% >
	<input size=42 name=customer_order_mark_children value='<%=request("customer_order_mark_children")%>' >
	</td>
</tr>
<tr>
	<td  valign='middle' align=right width=10% >订单种类:</td>
	<td  valign='middle' align=left width=40% >
	<select name=sort_id >
	<option value='' <%if request("sort_id")="" then response.write "selected"%>>所有类型</option>
	<%
	set rs_t=conn.execute("select sort_description ,sort_id from jins_customer_order_sort ")
	do while not rs_t.eof 
	response.write "<option value='"&rs_t("sort_id")&"' "
	if request("sort_id")<>"" then
	if rs_t("sort_id")-request("sort_id")=0 then response.write " selected "
	end if
	response.write ">"&rs_t("sort_description")&"</option>"
	rs_t.movenext
	loop
	%>
	</select>
	</td>
	<td  valign='middle' align=right width=10% >加入时间:</td>
	<td  valign='middle' align=left width=40% >
	<input size=18 name=customer_order_addtime_s value='<%=request("customer_order_addtime_s")%>' > 
	 到 
	<input size=18 name=customer_order_addtime_e value='<%if request("customer_order_addtime_e")<>"" then response.write request("customer_order_addtime_e") else response.write now() %>' > 
	 </td>
</tr>
<tr>
	<td  valign='middle' align=right width=10% >下单用户:</td>
	<td  valign='middle' align=left width=40% >
	<input size=42 name=customer_name value='<%=request("customer_name")%>' >
	</td>
	<td  valign='middle' align=right width=10% >订单状态:</td>
	<td  valign='middle' align=left width=40% >
	<select name=customer_order_stat >
	<option value='' <%if request("customer_order_stat")="" then response.write "selected"%>>随便</option>
	<option value=0 <%if request("customer_order_stat")="0" then response.write "selected"%>>未做任何处理</option>
	<option value=1 <%if request("customer_order_stat")="1" then response.write "selected"%>>用户已付款</option>
	<option value=2 <%if request("customer_order_stat")="2" then response.write "selected"%>>确认到款</option>
	<option value=3 <%if request("customer_order_stat")="3" then response.write "selected"%>>已发货</option>
	<option value=4 <%if request("customer_order_stat")="4" then response.write "selected"%>>用户收到货</option>
	<option value=5 <%if request("customer_order_stat")="5" then response.write "selected"%>>订单完成</option>
	</select>
	</td>
</tr>
<tr>
	<td  valign='middle' align=right width=10% >订单金额:</td>
	<td  valign='middle' align=left width=40% >
	<input size=18 name=customer_order_money_s value='<%=request("customer_order_money_s")%>' > 
	 到 
	<input size=18 name=customer_order_money_e value='<%=request("customer_order_money_e")%>' > 
	 </td>
	<td  valign='middle' align=right width=10% >商品名称:</td>
	<td  valign='middle' align=left width=40% >
	<input size=42 name=goods_name value='<%=request("goods_name")%>' >
	</td>
	</td>
</tr>
<tr>
<td height='1' width='100%' colspan='10' background='images/dot03.gif'></td>
</tr>
<tr>
	<td  valign='middle' colspan=10 align=center width=100% >
	<input type=hidden  name=s_n value="0,goods_name,1|3,customer_order_mark,1|3,customer_order_mark_children,1|5,customer_order_addtime|1,customer_order_stat,0|3,customer_name,1|1,sort_id,0|4,customer_order_money" >
	<input type=image align=absmiddle border=0 src='Images/search.jpg'  alt='开始搜索！！'  hspace='3' ></td>
</tr>
</form>
</table>
<br></div>
<%
c_order="订单号$customer_order_mark|订单金额$customer_order_money|订单种类$sort_id|加入日期$customer_order_addtime|下单用户$customer_name|订单状态$customer_order_stat,升序$|降序$desc"

c_h="<form name=jins_customer_order_list action='admin_user_customer_order_list_handle.asp' method=post>"
c_h=c_h+"<table cellspacing=0 cellpadding=0 align=center width=98% bgcolor=#F7F7F7 style='border-top: 1px solid #EBEBEB; '>"
c_h=c_h+"<tr>"
c_h=c_h+"<td height=30 width='6%' align=center>选择</td>"
c_h=c_h+"<td height=30 width='19%' align=left>订单号(总)</td>"
c_h=c_h+"<td height=30 width='13%' align=left>订单种类</td>"
c_h=c_h+"<td height=30 width='17%' align=left>加入日期</td>"
c_h=c_h+"<td height=30 width='15%' align=left>下单用户</td>"
c_h=c_h+"<td height=30 width='12%' align=left>订单状态</td>"
c_h=c_h+"<td height=30 width='10%' align=left>订单金额</td>"
c_h=c_h+"<td height=30 width='8%' align=center>删除</td>"
c_h=c_h+"</tr>"
c_h=c_h+"<tr>"
c_h=c_h+"<td height='1' width='100%' colspan='10' background='images/dot03.gif'></td>"
c_h=c_h+"</tr>"
c_h=c_h+"</table>"

c="<table cellspacing=0 cellpadding=0 width=98% align=center >"
c=c+"<tr onmouseover=""this.style.background='#ebebeb';"" onmouseout=""this.style.background='#ffffff';"">"
c=c+"<td height=30  width='6%' align=center>"
c=c+"<input type=checkbox name=ids value='$$customer_order_id$$'> "
c=c+"</td>"

c=c+"<td height=30  width='19%' align=left >"
c=c+"<a title='点击进行详细设置！' href='admin_user_customer_order_edit.asp?action=edit&id=$$customer_order_id$$'>"
c=c+"<font style=""font-size:10pt"" >$$customer_order_mark$$</font>"
c=c+"</a>"
c=c+"</td>"

c=c+"<td height=30  width='13%' align=left>"
c=c+"$$customer_order_kind$$"
c=c+"</td>"

c=c+"<td height=30  width='17%' align=left>"
c=c+"$$customer_order_addtime$$"
c=c+"</td>"

c=c+"<td height=30  width='15%' align=left>"
c=c+"<a title='点击查看此用户详细信息！' href='admin_user_customer_list.asp?s_n=3,customer_reg_name,1&customer_reg_name=$$customer_name$$'><font color=blue style='font-size:10pt'>$$customer_name$$</font></a>"
c=c+"</td>"

c=c+"<td height=30  width='12%' align=left>"
c=c+"$$customer_order_stat_description$$"
c=c+"</td>"

c=c+"<td height=30  width='10%' align=left>"
c=c+" <font color=red style='font-size:10pt'>"&MySys.info.unit_money(1)&" $$customer_order_money$$ </font>"
c=c+"</td>"
		
c=c+"<td height=30 width='8%' align=center>"
c=c+"<a title='点击删除此项！' href=""javascript:neww=window.open('admin_user_customer_order_edit_handle.asp?back=2&action=delete&ids=$$customer_order_id$$');neww.focus();"" >"
c=c+"<img border='0' src='Images/delete.gif' align='bottom' alt='点击删除此项！'></a>"
c=c+"</td></tr>"
c=c+"<tr>"
c=c+"<td height='1' width='100%' colspan='10' background='images/dot03.gif'></td>"
c=c+"</tr>"
c=c+"</table>"
dim ins(2)
dim sql

sql=MySys.search(trim(request("s_n")))

if sql<>"" then 
sql=" where 1=1 and customer_order_mark=customer_order_mark_children "&sql
else
sql=" where customer_order_mark=customer_order_mark_children "&sql
end if

'response.write sql
'response.end
MySys.ListThings c_order,c_h,c,sql,"jins_customer_order_list","customer_order_id",ins
%>
<!--#include file="admin_end.asp" -->