<!--#include file="../inc/config.asp" -->
<!--#include file="../inc/conn.asp" -->
<!--#include file="inc/function.asp" -->
<!--#include file="inc/create_soft_file.asp"-->
<!-- #include file="inc/Session.asp" -->
<!-- #include file="inc/checkrole.asp" -->
<%
'''''''''''''''''''''''''''''''''''''''''''''''
call checkPrevilege(Session("Name"),"p19")
'''''''''''''''''''''''''''''''''''''''''''''''	
dim classid,flag,imglist,BeginTime
BeginTime=Timer
classid=Clng(request("classid"))
if(request.Form("imglist")<>"") then
	imglist=Clng(request("imglist"))
else
	imglist=0
end if
Set rs = Server.CreateObject("adodb.recordset")
sql="select flag from catalogs where id="&classid
rs.open sql,conn,3,1
if not rs.eof then
	flag=Cint(rs("flag"))
	rs.close
	set rs=nothing
	if(flag=1) then
		call CreateCatalogHtml(classid)
	else
		call CreateHtml(classid,SoftNumPerPage)
	end if
else
	rs.close
	set rs=nothing
	response.Write("错误的参数!")
end if

call connclose()
response.Write("发布成功!<br>")
response.Write("<br><br><br><input type='button' value='继续发布 →' onclick="&Chr(34)&"javascript:history.go(-1)"&Chr(34)&">")
response.Write("<br><br><br>执行时间"&CStr(FormatNumber((Timer-BeginTime)*1000,2))& "毫秒")
%>