asp代码
<%
dim ConnStr
dim conn
'on error resume next
m=1
If m=1 Then
db="111.mdb"
path=Server.MapPath(DB)
set conn=server.createobject("adodb.Connection")
connstr="provider=Microsoft.Jet.OLEDB.4.0;Data Source="&path
conn.Open connstr
else
ConnStr= "Provider = Sqloledb; User ID = " & "sa" & "; Password = " & "fuckchc" & "; Initial Catalog = " & "tianyipt" & "; Data Source = " & "server" & ";"
ConnStr= "Provider = Sqloledb; User ID = " & "sa" & "; Password = " & "" & "; Initial Catalog = " & "aaaa" & "; Data Source = " & "localhost" & ";"
'ConnStr= "Provider = Sqloledb; User ID = " & "sa" & "; Password = " & "" & "; Initial Catalog = " & "mydb" & "; Data Source = " & "localhost" & ";"
Set conn = Server.CreateObject("ADODB.Connection")
conn.open ConnStr
End if
Set rs=server.CreateObject("adodb.recordset")
'┏━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
'┃ ┃
'┃ 摘 要: 统计图--曲线图 ┃
'┃ 作 者: 翁云兵 ┃
'┃ 创建日期:2004年12月01日 ┃
'┃ 完成日期:2004年11月03日 ┃
'┃ ┃
'┗━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
'参数含义(数组,横坐标,纵坐标,图表的宽度,图表的高度,图表标题,X轴单位,Y轴单位)
function table1(stat_array,table_left,table_top,all_width,all_height,table_title,X_unit,Y_unit)
dim bg_color(10)
bg_color(1)="#ff1919"
bg_color(2)="#ffff19"
bg_color(3)="#1919ff"
bg_color(4)="#19ff19"
bg_color(5)="#fc0"
bg_color(6)="#3cc"
bg_color(7)="#ff19ff"
bg_color(8)="#993300"
bg_color(9)="#f60"
bg_color(10)="#ff8c19"
if X_unit <> "" then
X_unit = X_unit
end if
if Y_unit <> "" then
Y_unit = Y_unit
end if
num1 = ubound(stat_array,1)
line_temp=split(stat_array(0,1),",")
num2 = ubound(line_temp,1)+1
dim line_code
redim line_code(num1,num2)
for j=1 to num2
line_code(0,j) = line_temp(j-1)
next
for i=1 to num1
line_temp = split(stat_array(i,1),",")
line_code(i,0) = stat_array(i,2)
for j=1 to num2
line_code(i,j) = cdbl(line_temp(j-1))
next
next
value_Max=0
for i=1 to num1
for j=1 to num2
if value_Max
next
value_Max = cint(value_Max)
value_Max_str =cstr(value_Max)
if value_Max>9 then
temp=mid(value_Max_str,2,1)
if temp>4 then
temp2=(int(value_Max/(10^(len(value_Max_str)-1)))+1)*10^(len(value_Max_str)-1)
else
temp2=(int(value_Max/(10^(len(value_Max_str)-1)))+0.5)*10^(len(value_Max_str)-1)
end if
else
if value_Max>4 then temp2=10 else temp2=5
end if
item_hight = temp2/5
item_/(num2-1)
response.Write "
response.Write "
response.Write "
response.Write "
response.Write "
response.Write "
response.Write " "
"
response.Write " " "
response.Write " "
response.Write "
response.Write "
response.Write "
response.Write "
response.Write "
response.Write "
response.Write "
response.Write "
response.Write "
response.Write "
response.Write "
for i=1 to num1
if i=1 then
displaystr=""
else
displaystr="none"
end if
response.Write "
response.Write "
response.Write "
response.Write "
response.Write "
response.Write "
response.Write "
response.Write "
response.Write "
next
response.Write "
response.Write "
response.Write "
response.Write "
response.Write "
response.Write "
response.Write "
response.Write "
for i=0 to 4
response.Write "
response.Write "
response.Write "
response.Write "
response.Write "
response.Write "
response.Write "
response.Write "
response.Write "
next
response.Write "
response.Write "
response.Write "
for j=0 to num2-1
response.Write "
response.Write "
response.Write "
response.Write "
response.Write "
response.Write "
next
for i=1 to num1
if i=1 then
displaystr=""
else
displaystr="none"
end if
response.Write "
for j=0 to num2-2
this_hight1 = cint(line_code(i,j+1)/(5*item_hight)*10000)
this_hight2 = cint(line_code(i,j+2)/(5*item_hight)*10000)
'线条样式
response.Write "
response.Write "
response.Write "
next
response.Write "
next
response.Write "
end function
%>
忍者必须死34399账号登录版 最新版v1.0.138v2.0.72
下载勇者秘境oppo版 安卓版v1.0.5
下载忍者必须死3一加版 最新版v1.0.138v2.0.72
下载绝世仙王官方正版 最新安卓版v1.0.49
下载Goat Simulator 3手机版 安卓版v1.0.8.2
Goat Simulator 3手机版是一个非常有趣的模拟游
Goat Simulator 3国际服 安卓版v1.0.8.2
Goat Simulator 3国际版是一个非常有趣的山羊模
烟花燃放模拟器中文版 2025最新版v1.0
烟花燃放模拟器是款仿真的烟花绽放模拟器类型单机小游戏,全方位
我的世界动漫世界 手机版v友y整合
我的世界动漫世界模组整合包是一款加入了动漫元素的素材整合包,
我的世界贝爷生存整合包 最新版v隔壁老王
我的世界MITE贝爷生存整合包是一款根据原版MC制作的魔改整