<%
totalrec=Conn.Execute("select count(*) from niu_News")(0)
sql="Select * from niu_News order by ID desc"
Set Rs=Conn.Execute(sql)
if totalrec=0 then
Detail_Num=0
Else
Detail_Num=1
do while not rs.eof
ID=rs("ID")
sortid=rs("sortid")
call htmll("","","game/"&ID&"."&HTMLName&"","newsview.asp","ID=",ID,"sortid=",sortid&"&menuclass=xinwen")
Response.Write "<script>bar_img.width="&Fix((Detail_Num/totalrec)*300)&";"
Response.Write "bar_txt1.innerHTML=""已成功生成静态页"&Detail_Num&"页,完成比例:" & formatnumber(Detail_Num/totalrec*100) & """;</script>"
Response.Flush
rs.movenext
Detail_Num=Detail_Num+1
loop
end if
rs.close
set rs=Nothing
conn.close
set conn=Nothing
%>
欢迎光临 源码论坛,商业源码下载,尽在锦尚中国商业源码论坛 (https://bbs.52jscn.com/) | Powered by Discuz! X3.3 |