ASP大牛 小人跪求

来源:百度知道 编辑:UC知道 时间:2024/06/02 06:46:14
<title>统计报表</title>
(表格设计代码)
<%
z_xs_sl=0
z_xs_je=0
while not rs.eof
set rs2=server.createobject("adodb.recordset")
rs2.open "select * from shop_order where (datediff('d',fhsj,"&day2&")>=0) and (datediff('d',"&day1&",fhsj)>=0) and (shopid="&rs("shopid")&")",conn,1,1
xs_sl=0
xs_je=0//初始化
while not rs2.eof
xs_sl=xs_sl+rs2("shopcount")
xs_je=xs_je+rs2("zonger")
rs2.movenext
wend
rs2.close
set rs2=nothing
%>
<tr bgcolor="#FFFFFF">
<td align="center" width="11%"><%=rs("shopid")%></td>
<td width="41%" height="22"

“ %
z_xs_sl = 0
z_xs_je = 0
虽然不是rs.eof
设置rs2 = server.createobject ( “ adodb.recordset ” )
rs2.open “选择*从shop_order在哪里( datediff ( ' D '类, fhsj , ” &第二天&")>= 0 )和( datediff ( ' D '类, “ &第一天& ” , fhsj ) “ = 0 )和( shopid = ” &卢比( “ shopid ")&")",康恩, 1,1
xs_sl = 0
xs_je = 0 / /初始化
虽然不是rs2.eof
xs_sl = xs_sl + rs2 ( “ shopcount ” )
xs_je = xs_je + rs2 ( “ zonger ” )
rs2.movenext

rs2.close
设置rs2 =什么
% “
<tr bgcolor="#FFFFFF">
<td align="center" width="11%"> “ % =卢比( ” shopid ")%></运输署“
<td width="41%" height="22"> “ % =卢比( ” shopname ")%></运输署“
<td width