?? chart_client_value.asp
字號:
<!--#include file="../conn.asp"-->
<!--#include file="../IsUser.asp"-->
<!--#include file="Private_fun.asp"-->
<!--#include file="../pub_fun.asp"-->
<script language="vBScript">
opener.close()
</script>
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<style>
v\:* { behavior: url(#default#VML) }
o\:* { behavior: url(#default#VML) }
.shape { behavior: url(#default#VML) }
</style>
<HEAD><title>客戶價值分析</title>
<META NAME="Keywords" CONTENT="FastReport"/>
<META NAME="Description" CONTENT="The FastReport report"/>
<LINK href="../css.css" rel="stylesheet" type="text/css" media="all">
</head>
<body >
<%
'獲取傳遞過來的參數,并且生成相應的SQL語句
condition=decrypt(trim(request("condition")))
select case trim(request("kind"))
case "0"
sql="SELECT count(sellclientid) as total,sellclientid from V_client_value "
sql=sql& condition
sql=sql&"GROUP BY sellclientid ORDER BY total DESC"
case "1"
sql=" SELECT sum(sellmoney) as total,sellclientid from sell "
sql=sql& condition
sql=sql&" GROUP BY SellClientID ORDER BY total desc"
end select
dim show_data(100,2)
set rs_s = server.createobject("adodb.recordset")
rs_s.open sql,conn,3
if not rs_s.eof then
total_no=rs_s.recordcount
for i=1 to total_no
show_data(i,1)=cdbl(rs_s("total"))
show_data(i,2)=showclientname(rs_s("SellClientid"))
rs_s.movenext
next
end if
width=cint(total_no)*100
call table1(show_data,total_no,-20,30,8,15,width,400)
%>
</BODY></HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -