<!--#include file="conn.asp"-->
<!--#include file="inc/cook2.asp"-->
<!--#include file="inc/dimflag.asp" -->
<!--#include file="top.asp"-->
<!--#include file="inc/htmlconfig.asp"-->
<%
tid=0
htmlpage="job"
pageumb="18"
%>
<div id="container">
<div class="top_but">
 <li class="left">&nbsp;</li>
 <li><a href="?tid=<%=tid%>"><img src="images/but_10.gif" alt="生成页面" ></a></li>
 <li><img src="images/but_8.gif" alt="刷新" onClick="window.location.reload(true);"></li>
 <li><img src="images/but_9.gif" alt="打印" onClick="window.print() "/></li>
</div>
<div class="tableAll titlebgcolor">
 <li style="width:30px;">&nbsp;</li>
 <li style="width:700px;">生成静态页面</li>
</div>

<div class="html titlebgcolor" style="padding-left:35px;">
<%
call Htmlcall()
%>
</div>
</div>
<!--#include file="footer.asp"-->
<%

totalrec=Conn.Execute("select count(*) from com_job")(0)
totalpage=int(totalrec/pageumb)

If (totalpage * pageumb)<totalrec Then
totalpage=totalpage+1
End If

if totalpage<=1 then
call htmll(""&HTMLname1_cn&"",""&HTMLname2_cn&"",""&HTMLname3_cn&htmlpage&"_page1.html",""&htmlpage&".asp","Page=",1,"","","","")
if Const_webEn=1 then
call htmll(""&HTMLname1_en&"",""&HTMLname2_en&"",""&HTMLname3_en&htmlpage&"_page1.html",""&htmlpage&".asp","Page=",1,"","","","")
end if
if Const_webUtf=1 then
call htmll(""&HTMLname1_utf&"",""&HTMLname2_utf&"",""&HTMLname3_utf&htmlpage&"_page1.html",""&htmlpage&".asp","Page=",1,"","","","")
end if
Response.Write "<script>bar_img.width="&Fix((1/1)*200)&";bar_txt1.innerHTML=""已成功生成静态页。完成比例" & formatnumber(1/1*100) & """;</script>"
Response.Flush

else
for i=1 to totalpage
call htmll(""&HTMLname1_cn&"",""&HTMLname2_cn&"",""&HTMLname3_cn&htmlpage&"_page"&i&".html",""&htmlpage&".asp","Page=",i,"","","","")
if Const_webEn=1 then
call htmll(""&HTMLname1_en&"",""&HTMLname2_en&"",""&HTMLname3_en&htmlpage&"_page"&i&".html",""&htmlpage&".asp","Page=",i,"","","","")
end if
if Const_webUtf=1 then
call htmll(""&HTMLname1_utf&"",""&HTMLname2_utf&"",""&HTMLname3_utf&htmlpage&"_page"&i&".html",""&htmlpage&".asp","Page=",i,"","","","")
end if
Response.Write "<script>bar_img.width="&Fix((i/totalpage)*200)&";"
Response.Write "bar_txt1.innerHTML=""成功生成"&i&"个分类的HTML静态页面。完成比例：" & formatnumber(i/totalpage*100) & """;</script>"
Response.Flush
next
end If


%>