show_sell.asp

来自「Activity——活动管理模块 Analyse——分析模块 Client—」· ASP 代码 · 共 61 行

ASP
61
字号
<!--#include file="../conn.asp"-->
<!--#include file="../IsUser.asp"-->
<!--#include file="../Pub_Fun.asp"-->

<%
if trim(request("type_kind"))="" then
''判断是否进行查询操作
  if request("opstatus")="query" then
  ''判断是否是进行数据范围的选择
      if  request("start_time")<>"" and request("end_time")<>"" then
           condition=" where selldate between '"&request("start_time")&"' and '"&request("end_time")&"'"
	  else
	       condition=" where 1=1"
      end if
	'判断要显示的时间周期,默认值为月
      if trim(request("S_time"))<>"" then
            kind=trim(request("S_time"))
      else
            kind="1"
       end if
''如果没有查询操作,则显示查询条件为真,时间周期为月
  else
      condition=" where 1=1"
      kind="1"
  end if
  condition=encrypt(condition)
%>
 <script language="JavaScript">
childwin=open("chart_sell_list.asp?condition=<%=condition%>&kind=<%=kind%>","","location=no,menubar=0,status=no,scrollbars,titlebar=no,resizable=1,toolbar=no,width=1000,height=520,top=20,left=20");
</script>
<%
else
''判断是否进行查询操作
   if request("opstatus")="query" then
     ''判断是否是进行数据范围的选择
       if  request("start_time")<>"" and request("end_time")<>"" then
           condition=" where selldate between '"&request("start_time")&"' and '"&request("end_time")&"'"
	   else
	       condition=" where 1=1"
       end if
	'判断要显示的统计对象,默认为产品
      if trim(request("S_object"))<>"" then
          kind=trim(request("S_object"))
     else
          kind="1"
	  end if
''如果没有查询操作,则显示查询条件为真,统计对象设置为产品
   else
	    condition=" where 1=1"
		 kind="1"
   end if
   '将查询条件加密
   condition=encrypt(condition)
   '打开图表显示窗口
%>
 <script language="JavaScript">
childwin=open("chart_sell_gc.asp?condition=<%=condition%>&kind=<%=kind%>","","location=no,menubar=0,status=no,scrollbars,titlebar=no,resizable=1,toolbar=no,width=1000,height=520,top=20,left=20");
</script>
<%
end if
%>

⌨️ 快捷键说明

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