%
CountNum=10
Sql="Select Id From Z_Class order by id desc"
Set rs=zhcx.conn(sql)
if not rs.eof then
record_total=rs.recordCount
if( (Record_total Mod CountNum) =0) Then
Page_total=int(Record_total/CountNum)
else
Page_total=int(Record_total/CountNum)+1
End if
else
Page_total=0
End if
rs.close
set rs=nothing
Randomize
if Clng(Page_total)>0 then
for i=1 to Page_total
if i=1 then
pathhtml="Class/Index.html"
else
pathhtml="Class/Index_"&(i-1)&".html"
End if
Call Cre_New_Html(syspath&pathhtml,Http_Url&"action/do/Class/?pageno="&i&"&class_id=42&r="&Rnd )
response.write "页面:"&pathhtml&"生成
"
response.flush()
next
else
pathhtml="Class/Index.html"
Call Cre_New_Html(syspath&pathhtml,Http_Url&"action/do/Class/?pageno="&i&"&class_id=42&r="&Rnd)
End if
'生成首页
response.write " 首页生成完成<返回>"
%>