⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sellstat2.asp

📁 漂亮公司企业网站自助建站系统 .asp.rar
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="session3.asp"-->
<%
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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<%set rs=server.createobject("adodb.recordset")
	rs.open "select * from wq_books order by bookid",conn,1,1
%>
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" class="tableBorder">
	<tr> 
       <th class="tableHeaderText" colspan=5 height=25>销售报表</th>
   </tr>
   <tr align="center"> 
       
    <td width="11%" class="forumRowHighlight"><strong>ID</strong></td>
       
    <td width="41%" class="forumRowHighlight"><strong>名称</strong></td>
       
    <td width="17%" class="forumRowHighlight"><strong>单位</strong></td>
       
    <td width="14%" class="forumRowHighlight"><strong>销售量</strong></td>
       
    <td width="17%" class="forumRowHighlight"><strong>销售额</strong></td>
   </tr>
         <%z_xs_sl=0
		 	z_xs_je=0
			while not rs.eof
			set rs2=server.createobject("adodb.recordset")
			rs2.open "select * from wq_action where (datediff('d',fhsj,"&day2&")>=0)  and (datediff('d',"&day1&",fhsj)>=0)  and (bookid="&rs("bookid")&")",conn,1,1
			xs_sl=0
			xs_je=0
			while not rs2.eof
			xs_sl=xs_sl+rs2("bookcount")
			xs_je=xs_je+rs2("zonger")
			rs2.movenext
			wend
			rs2.close
			set rs2=nothing
		%>
     
  <tr>
    <td align="center" width="11%"  class="forumRow"><%=rs("bookid")%></td>
         <td width="41%"  class="forumRow"><%=rs("bookname")%></td>
         <td align="center"  width="17%"  class="forumRow"><%=rs("bookchuban")%></td>
         <td align="center" width="14%"  class="forumRow"><%=xs_sl%></td>
         <td align="center" width="17%"  class="forumRow"><%=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="#D9E6FF"> 
       <td height="22" colspan="5" align="center"><input class=button type="button" name="Submit" value=" 返 回 " onclick="javascript:history.go(-1)"></td>
   </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -