<!--#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='bcount:1px dashed #b7b7b7 '>
<form name=search_customer method=get action='admin_user_customer_count_list.asp'>	
<tr>
	<td  valign='middle' align=right width=15% >用户:</td>
	<td  valign='middle' align=left width=25% >
	<input size=30 name=customer_name value='<%=request("customer_name")%>' >
	</td>
	<td  valign='middle' align=right width=15% >积分操作数量:</td>
	<td  valign='middle' align=left width=45% >
	<input size=18 name=customer_count_sum_s value='<%=request("customer_count_sum_s")%>' > 
	 到 
	<input size=18 name=customer_count_sum_e value='<%=request("customer_count_sum_e")%>' > 
	 </td>
</tr>
<tr>
	<td  valign='middle' align=right width=15% >积分操作种类:</td>
	<td  valign='middle' align=left width=25% >
	<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_count_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=15% >积分操作时间:</td>
	<td  valign='middle' align=left width=45% >
	<input size=18 name=customer_count_addtime_s value='<%=request("customer_count_addtime_s")%>' > 
	 到 
	<input size=18 name=customer_count_addtime_e value='<%if request("customer_count_addtime_e")<>"" then response.write request("customer_count_addtime_e") else response.write now() %>' > 
	 </td>
</tr>
<tr>
	<td  valign='middle' align=right width=15% >积分操作出入:</td>
	<td  valign='middle' align=left width=25% >
	<select name=customer_count_out >
	<option value='' <%if request("customer_count_out")="" then response.write "selected"%>>随便</option>
	<option value='增加' <%if request("customer_count_out")="增加" then response.write "selected"%>>增加</option>
	<option value='减少' <%if request("customer_count_out")="减少" then response.write "selected"%>>减少</option>
	</select>
	</td>
	<td  valign='middle' align=right width=15% ></td>
	<td  valign='middle' align=left width=45% >
	</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="5,customer_count_addtime|3,customer_name,1|3,customer_count_out,1|1,sort_id,0|4,customer_count_sum" >
	<input type=image align=absmiddle bcount=0 src='Images/search.jpg'  alt='开始搜索！！'  hspace='3' ></td>
</tr>
</form>
</table>
<br></div>
<%
c_count="积分操作数量$customer_count_sum|积分操作种类$sort_id|加入日期$customer_count_addtime|出入$customer_count_out|用户$customer_name,升序$|降序$desc"

c_h="<form name=jins_customer_count_list action='admin_user_customer_count_list_handle.asp' method=post>"
c_h=c_h+"<table cellspacing=0 cellpadding=0 align=center width=98% bgcolor=#F7F7F7 style='bcount-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='37%' align=left>积分操作数量</td>"
c_h=c_h+"<td height=30 width='13%' align=left>积分操作种类</td>"
c_h=c_h+"<td height=30 width='18%' align=left>积分操作日期</td>"
c_h=c_h+"<td height=30 width='18%' 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_count_id$$'> "
c=c+"</td>"

c=c+"<td height=30  width='37%' align=left>"
c=c+"$$customer_count_out$$ <font color=red style='font-size:10pt'> $$customer_count_sum$$ </font>"
c=c+"</td>"
		
c=c+"<td height=30  width='13%' align=left>"
c=c+"$$customer_count_kind$$"
c=c+"</td>"

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

c=c+"<td height=30  width='18%' 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='6%' align=center>"
c=c+"<a title='点击删除此项！' href=""javascript:neww=window.open('admin_user_customer_count_edit_handle.asp?back=2&action=delete&ids=$$customer_count_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_count,c_h,c,sql,"jins_customer_count_list","customer_count_id",ins
%>
<!--#include file="admin_end.asp" -->