<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../../conn/conn.asp"-->
<!--#include file="../../Inc/Commoncode.asp" -->
<!--#include file="../checkvalid.asp"-->
<%
'**********************************************************
'   Software name: Finereason HRCMS 7.0
'   软件名称:嘉缘人才网站内容管理系统 V7.0
'   Email: service@finereason.com  QQ:109530926
'   Web: http://www.finereason.com  http://www.yjys.net
'   Copyright (C) FineSincere Inc. All Rights Reserved.
'   版权所有 嘉挚科技 未经嘉挚公司授权不得用于任何商业用途
'
'	文件名称：Admin_CreateHTML.asp
'	作    用：站点文件生成管理
'	最后更新：Fine Sincere (Mr.Hou)
'	最后日期：2007-6-11
'************************************************************
If Not FRAdminLevel(601) Then
	Call ErrorMsg()
End If
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css/style<%=sk%>.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../inc/input.js"></script>
<script language="javascript">
function CreateResultPage(StrAction,Strid,Strtypes)
{  document.all.bodyly.style.display="block";   
  document.all.bodyly.style.width=document.body.clientWidth;   
  document.all.bodyly.style.height=document.body.clientHeight; 
  document.getElementById("jumply").style.display='block'; 
  document.getElementById("jumply").style.top=document.documentElement.scrollTop+40;   
  document.getElementById("jumply").style.left=document.body.clientWidth/2-250;
	CreateHTMLResult.location.href="Admin_CreateHTMLResult.asp?Action="+StrAction+"&ChannelID="+Strid+"&types="+Strtypes;
	
}
function unwindow(){
  CreateHTMLResult.location.href="Admin_CreateHTMLResult.asp";
  document.getElementById("jumply").style.display='none';
  document.all.bodyly.style.display='none';
  } 
</script>
<style type="text/css">
.memmenul{border:1px #ABCEE2 solid; margin:4px;}
.leftmenutit {padding:5px; background-color:#03398F;line-height:normal;}
.leftmenutit span {font-size:14px; font-weight:bold; color:#FFFFFF; padding-left:20px; margin:0;}
</style>
</head>
<body>
<div id="bodyly" style="position:absolute;top:0px;FILTER: alpha(opacity=80);background-color:#333; z-index:0;left:0px;display:none;"></div>
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" class="tableBorder">
  <tr>
    <th height=22 class="tableHeaderText">HTML文件生成</th>
  </tr>
  <tr>
    <td height="22">　请按以下频道进行操作 <font color="ff0000">注:执行生成操作后请勿关闭窗口</font>&nbsp;[<a href="javascript:location.reload()">刷新页面</a>]</td>
  </tr>
  
  <tr>
    <td height="22">　网站首页：<a style="cursor:hand" onClick="CreateResultPage('Createindex',0,0);">生成首页</a> &gt;&gt; <a style="cursor:hand" onClick="CreateResultPage('Createindexall',0,0);">全部频道首页</a></td>
  </tr>
<%set rs=server.CreateObject("adodb.recordset")
sql="select * from JOB_Channel where Disabled="&FR_HR_False&" and UseCreateHTML=1 order by orderid"
rs.open sql,conn,1,1
if not rs.eof then
do while not rs.eof
Response.Write "<tr>"
Response.Write "<td height=""22"">　"&rs("ChannelName")&"：<a style=""cursor:pointer"" onClick=""CreateResultPage('Createindex',"&rs("ChannelID")&",0);"">生成首页</a>"
select case rs("ModuleType")
case 1
response.write " &gt;&gt; <a style=""cursor:pointer"" onClick=""CreateResultPage('Createcontent',"&rs("ChannelID")&",0);"">全部个人简历</a>"
case 2
response.write " &gt;&gt; <a style=""cursor:pointer"" onClick=""CreateResultPage('Createcontent',"&rs("ChannelID")&",1);"">全部企业页面</a> &gt;&gt; <a style=""cursor:pointer"" onClick=""CreateResultPage('Createcontent',"&rs("ChannelID")&",2);"">全部企业职位列表</a> &gt;&gt; <a style=""cursor:pointer"" onClick=""CreateResultPage('Createcontent',"&rs("ChannelID")&",3);"">全部职位页面</a>"
case 3

case 4

case 5

case 6
'response.write "留言"
case 7
'response.write "测评"
case 8
'response.write "派遣"
case 9
'response.write "下载"
case 10
response.write " &gt;&gt; <a style=""cursor:pointer"" onClick=""CreateResultPage('Createlist',"&rs("ChannelID")&",0);"">全部分类列表</a> &gt;&gt; <a style=""cursor:pointer"" onClick=""CreateResultPage('Createcontent',"&rs("ChannelID")&",0);"">全部内容页</a>"
case 11
'response.write "论坛"
case 12
'response.write "视频招聘"
case 13
'response.write "视频简历"
case 14
'response.write "帮助"
case 15
'response.write "分站"
end select
response.write "</td>"
response.write "</tr>"
rs.movenext
loop
end if
rs.close
set rs=nothing
%>
  <tr>
    <td height="22">　通用频道：<a style="cursor:pointer" onClick="CreateResultPage('Createcontent',9999,0);">生成所有</a></td>
  </tr>
</table>
<div id="jumply" style="position:absolute;background-color:#ffffff; z-index:9999;display:none; width:510px;">
	<div class="memmenul">
	<div class="leftmenutit"><span>注:执行生成操作后请勿关闭窗口&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a style="cursor:pointer; color:#FFFFFF" onClick="unwindow()">[关闭]</a></span></div>
	<iframe id="CreateHTMLResult" src="Admin_CreateHTMLResult.asp" width="496" height="100" frameborder="0" scrolling="auto" style="margin:2px;"></iframe>
	</div>
</div>
<!--#include file="../inc/copy.asp" -->
</body>
</html>
<%
'Sub Createindexmenu()
'	set rs=conn.execute("select * from JOB_Channel where Disabled="&FR_HR_False&" and UseCreateHTML<>0 order by OrderID asc")
'	if not rs.eof then
'	do while not rs.eof
'	Response.Write("<a style='cursor:pointer' onClick=CreateHTMLResult.location.href='Admin_CreateHTMLResult.asp?Action=Createindex&ChannelID="&rs("ChannelID")&"';>"&rs("ChannelName")&"首页</a> | ")
'	if rs.eof then exit do
'	rs.movenext
'	loop
'	end if
'	rs.close
'	set rs=nothing
'End Sub
'Sub Createcontentmenu()
'	set rs=conn.execute("select * from JOB_Channel where Disabled="&FR_HR_False&" and UseCreateHTML<>0 order by OrderID asc")
'	if not rs.eof then
'	do while not rs.eof
'	Response.Write("<a style='cursor:pointer' onClick=CreateHTMLResult.location.href='Admin_CreateHTMLResult.asp?Action=Createcontent&ChannelID="&rs("ChannelID")&"';>"&rs("ChannelName")&"内容页</a> | ")
'	if rs.eof then exit do
'	rs.movenext
'	loop
'	end if
'	rs.close
'	set rs=nothing
'End Sub
%>