<!--#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='bconsume:1px dashed #b7b7b7 '>
<form name=search_customer method=get action='admin_user_customer_consume_list.asp'>	
<tr>
	<td  valign='middle' align=right width=10% >订单号:</td>
	<td  valign='middle' align=left width=40% >
	<input size=42 name=order_mark value='<%=request("order_mark")%>' >
	</td>
	<td  valign='middle' align=right width=10% >交易金额:</td>
	<td  valign='middle' align=left width=40% >
	<input size=18 name=customer_consume_sum_s value='<%=request("customer_consume_sum_s")%>' > 
	 到 
	<input size=18 name=customer_consume_sum_e value='<%=request("customer_consume_sum_e")%>' > 
	 </td>
	<td  valign='middle' align=right width=10% ></td>
	<td  valign='middle' align=left width=40% >
	</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_consume_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_consume_addtime_s value='<%=request("customer_consume_addtime_s")%>' > 
	 到 
	<input size=18 name=customer_consume_addtime_e value='<%if request("customer_consume_addtime_e")<>"" then response.write request("customer_consume_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_consume_out >
	<option value='' <%if request("customer_consume_out")="" then response.write "selected"%>>随便</option>
	<option value='入帐' <%if request("customer_consume_out")="入帐" then response.write "selected"%>>入账</option>
	<option value='出帐' <%if request("customer_consume_out")="出帐" then response.write "selected"%>>出账</option>
	<option value='在线支付' <%if request("customer_consume_out")="在线支付" then response.write "selected"%>>在线支付</option>
	</select>
	</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="3,order_mark,1|5,customer_consume_addtime|3,customer_name,1|3,customer_consume_out,1|1,sort_id,0|4,customer_consume_sum" >
	<input type=image align=absmiddle bconsume=0 src='Images/search.jpg'  alt='开始搜索！！'  hspace='3' ></td>
</tr>
</form>
</table>
<br></div>
<%
c_consume="帐户交易订单$order_mark|帐户交易金额$customer_consume_sum|帐户交易种类$sort_id|加入日期$customer_consume_addtime|帐户出入$customer_consume_out|帐户用户$customer_name,升序$|降序$desc"

c_h="<form name=jins_customer_consume_list action='admin_user_customer_consume_list_handle.asp' method=post>"
c_h=c_h+"<table cellspacing=0 cellpadding=0 align=center width=98% bgcolor=#F7F7F7 style='bconsume-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='25%' 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='17%' align=left>帐户用户</td>"
c_h=c_h+"<td height=30 width='14%' align=left>帐户交易订单号</td>"
c_h=c_h+"<td height=30 width='6%' 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_consume_id$$'> "
c=c+"</td>"

c=c+"<td height=30  width='25%' align=left>"
c=c+"$$customer_consume_out$$ <font color=red style='font-size:10pt'>"&MySys.info.unit_money(1)&" $$customer_consume_sum$$ </font>"
c=c+"</td>"
		
c=c+"<td height=30  width='13%' align=left>"
c=c+"$$customer_consume_kind$$"
c=c+"</td>"

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

c=c+"<td height=30  width='17%' 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='14%' align=left >"
c=c+"<a title='点击察看订单详情！' href='admin_user_customer_order_list.asp?s_n=3,customer_order_mark,1&customer_order_mark=$$order_mark$$'>"
c=c+"<font style=""font-size:10pt"" >$$order_mark$$</font>"
c=c+"</a>"
c=c+"</td>"

c=c+"<td height=30 width='6%' align=center>"
c=c+"<a title='点击删除此项！' href=""javascript:neww=window.open('admin_user_customer_consume_edit_handle.asp?back=2&action=delete&ids=$$customer_consume_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 "&sql

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