📄 tjbb2.asp
字号:
<!--#include file="conn.asp"-->
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登录!');window.location.href='login.asp';</script>"
response.End
else
if session("flag")>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限!</b></font></div>"
response.End
end if
end if
'day1=trim(Request.Form("year1"))&"-"&trim(Request.Form("month1"))&"-"&trim(Request.Form("day1"))
'day2=trim(Request.Form("year2"))&"-"&trim(Request.Form("month2"))&"-"&trim(Request.Form("day2"))
day1="#"&trim(Request.Form("month1"))&"-"&trim(Request.Form("day1"))&"-"&trim(Request.Form("year1"))&"#"
day2="#"&trim(Request.Form("month2"))&"-"&trim(Request.Form("day2"))&"-"&trim(Request.Form("year2"))&"#"
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css.css" rel="stylesheet" type="text/css">
</head>
<body><br>
<table width="95%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td height="22" bgcolor="f1f1f1">
<div align="center"><font color="#000000">统计报表</font></div>
</td>
</tr>
<tr>
<%
set rs=server.createobject("adodb.recordset")
rs.open "select * from shop_snsn order by shopid",conn,1,1
%>
<td height="107" bgcolor="#FFFFFF">
<table width="95%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
<tr align="center" bgcolor="#f1f1f1">
<td width="11%">商品ID</td>
<td width="41%">商品名称</td>
<td width="17%"><%=rs("jj")%></td>
<td width="14%">销售数量</td>
<td width="17%">销售额</td>
</tr>
<%
z_xs_sl=0
z_xs_je=0
while not rs.eof
set rs2=server.createobject("adodb.recordset")
rs2.open "select * from shop_action where (datediff('d',fhsj,"&day2&")>=0) and (datediff('d',"&day1&",fhsj)>=0) and (shopid="&rs("shopid")&")",conn,1,1
'rs2.open "select * from shop_action where (datediff('d',fhsj,"&day2&")>=0) and (shopid="&rs("shopid")&")",conn,1,1
'response.write "select * from shop_action where datediff('d',fhsj,"&day2&")>=0 and datediff('d',"&day1&",fhsj)<=0 and shopid="&rs("shopid")
'response.end
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"><%=rs("shopname")%></td>
<td width="17%" align="center"><%=rs("shopchuban")%> </td>
<td align="center" width="14%"><%=xs_sl%></td>
<td align="center" width="17%"><%=xs_je%></td>
</tr>
<%
z_xs_sl=z_xs_sl+xs_sl
z_xs_je=z_xs_je+xs_je
rs.movenext
wend
rs.close
set rs=nothing
%>
<tr bgcolor="#FFFFFF">
<td height="22" colspan="5">
<div align="center">
<input type="button" name="Submit" class="go-wenbenkuang" value="返回" onClick="javascript:history.go(-1)">
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<!--#include file="copyright.asp"-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -