<%@ page contentType="text/html; charset=GBK" language="java" errorPage="" %>
<%@ taglib tagdir="/WEB-INF/tags/" prefix="cms4jExd"%>



<cms4jExd:init/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>CMS4J </title>
<link href="../skin/blue/css/oper_area_style.css" rel="stylesheet" type="text/css">
</head>

<%
String cacheList = (String)request.getAttribute("cacheList");
String articleID = (String)request.getAttribute("id");
String request_url = (String)request.getAttribute("request_url");

if(null == request_url){
	request_url = "";
}

%>

<script>
//待cache的文章ID数组
var cacheArray = <%=cacheList%>;
var i = -1;
var nextOperAction = "<%=request_url%>";
var cacheOverText = "";

if(nextOperAction == ""){
	cacheOverText = "文章保存并发布成功!   <a href='article_list.jsp'>返回 文章管理页面</a>";
}else{
	//cacheOverText = "文章保存并发布成功!   <a href='" + nextOperAction + "'>继续添加</a>";
	cacheOverText = "文章保存并发布成功!   <a href='article_add.jsp'>继续添加</a>";
}


<%
cn.com.dekn.cms.syscfg.vo.SiteConfigVO siteConfigVO = cn.com.dekn.cms.syscfg.vo.SiteConfig.getInstance(cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeID(request));
%>
function nextCache(){
	i=i+1;
	if(i<cacheArray.length){
		cacheFrame.location.href= 
			"<%=siteConfigVO.getCONTEXT_PATH()%><%=siteConfigVO.getARTICLE_VIEW_TEMPLET_PATH2()%>?id=" + cacheArray[i];
	}else{
		cacheFrame.width = 0;
		cacheFrame.height = 0;
		tip.innerHTML = cacheOverText;
	}
	
}

</script>

<body onLoad="nextCache();">
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="title_bar"><span id="tip">正在生成静态页,请稍候...</span></td>
  </tr>
  <tr height="4">
    <td height="4"></td>
  </tr>
</table>

<IFRAME border=0 marginWidth=0 
      	frameSpacing=0 marginHeight=0 
      	src="null.html" frameBorder=0 
      	noResize  scrolling="no" width=200 height=200 vspale="0" id="cacheFrame"></IFRAME>
		
</body>
</html>
