?? menu_download_tree.jsp
字號:
<%@ page contentType="text/html; charset=GBK"%>
<%@ taglib uri="/cms4j" prefix="cms4j" %>
<%String node_id=cn.com.dekn.cms.util.StrUtil.getNotNullStringValue(request.getParameter("cluster_node_id"),cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeID(request));%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>CMS4J</title>
<link href="../skin/blue/css/menu.css" rel="stylesheet" type="text/css">
<link href="../skin/blue/css/tree.css" rel="stylesheet" type="text/css">
<script src="../../js/common.js"></script>
<script src="../../js/tree/xtree.js"></script>
<script src="../../js/page_init.js"></script>
<script>
function goto(target,URL){
obj = eval("top." + target);
obj.location.href = URL;
}
function executeGoto(target,URL,classID){
document.formForCLassID.classID.value=classID;
obj = eval("top." + target);
obj.location.href = URL;
}
</script>
<%
if(!cn.com.dekn.cms.security.login.CMS4JUser.isLogin(request)){
%>
<script>
top.location.href="../login.jsp";
</script>
<%
return;
}
%>
</head>
<script>
function displayOrHideMenu(objID){
displayOrHide("menu_" + objID);
var linkTable = document.getElementById("menu_" + objID);
var obj = document.getElementById("menu_title_" + objID);
if(obj){
if(linkTable.style.display==""){
obj.className = "menu-ctrl-bar-exp-button";
}else{
obj.className = "menu-ctrl-bar-col-button";
}
}
}
//頁面初始化
function pageInit(){
if(document.getElementById("NODE_ID")){
selectInit("NODE_ID","${param.cluster_node_id}");
}
}
</script>
<%
//是否擁有菜單管理項
boolean isHasTree = false;
%>
<body onLoad="pageInit()">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="8"></td>
</tr>
</table>
<table width="99%" border="0" align="right" cellpadding="0" cellspacing="0">
<%
//只有網站群版才有此功能
if(cn.com.dekn.cms.syscfg.SysConfigHelper.getInstance().getValue("version").equals("cluster")){
cn.com.dekn.cms.cluster.busi.ClusterNodeBean bean=new cn.com.dekn.cms.cluster.busi.ClusterNodeBean();
if(bean.isExistChildNode(cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeID(request))){
%>
<tr>
<td align="center">
<select name="NODE_ID" id="NODE_ID" onChange="location.href='?cluster_node_id=' + this.value" style="width:90%">
<cms4j:cluster_node node_id="<%=cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeID(request)%>">
<option value="<%=cluster_node_info.getCLUSTER_NODE_ID()%>"><%=cluster_node_info.getNAME()%></option>
<cms4j:cluster_node parent_id="<%=cluster_node_info.getCLUSTER_NODE_ID()%>">
<option value="<%=cluster_node_info.getCLUSTER_NODE_ID()%>"> └<%=cluster_node_info.getNAME()%></option>
<cms4j:cluster_node parent_id="<%=cluster_node_info.getCLUSTER_NODE_ID()%>">
<option value="<%=cluster_node_info.getCLUSTER_NODE_ID()%>"> └<%=cluster_node_info.getNAME()%></option>
<cms4j:cluster_node parent_id="<%=cluster_node_info.getCLUSTER_NODE_ID()%>">
<option value="<%=cluster_node_info.getCLUSTER_NODE_ID()%>"> └<%=cluster_node_info.getNAME()%></option>
</cms4j:cluster_node>
</cms4j:cluster_node>
</cms4j:cluster_node>
</cms4j:cluster_node>
</select> </td>
</tr>
<%}
}
%>
<tr>
<td>
<script>
var tree = new WebFXTree("<%=cn.com.dekn.cms.cluster.busi.ClusterNodeBean.getClusterNodeNameForID(cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeIDForParam(request)) %>","javascript:goto('mainFrame','../download/download_list.jsp?cluster_node_id=<%=cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeIDForParam(request)%>')");
tree.setBehavior('classic');
<% String tID = "";String tID2 = "";String tID3 = ""; String tID4 = ""; String tID5 = "";String tID6 = ""; %>
<% int i = 0; %>
<cms4j:class is_purview_show="true" purview_type="operat" node_id="<%=cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeIDForParam(request)%>" content_type="download">
<%isHasTree=true;%>
var t_<%=class_info.getARTICLE_CLASS_ID()%> = new WebFXTreeItem("<%=class_info.getCLASS_NAME()%>","javascript:executeGoto('mainFrame','../download/download_list.jsp?class_id=<%=class_info.getARTICLE_CLASS_ID()%>&cluster_node_id=${param.cluster_node_id}','<%=class_info.getARTICLE_CLASS_ID()%>')");
tree.add(t_<%=class_info.getARTICLE_CLASS_ID()%>);
<% tID = "t_" + class_info.getARTICLE_CLASS_ID(); %>
<cms4j:class is_purview_show="true" purview_type="operat" node_id="<%=cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeIDForParam(request)%>">
var t_<%=class_info.getARTICLE_CLASS_ID()%> = new WebFXTreeItem("<%=class_info.getCLASS_NAME()%>","javascript:executeGoto('mainFrame','../download/download_list.jsp?class_id=<%=class_info.getARTICLE_CLASS_ID()%>&cluster_node_id=${param.cluster_node_id}','<%=class_info.getARTICLE_CLASS_ID()%>')");
<%=tID%>.add(t_<%=class_info.getARTICLE_CLASS_ID()%>);
<% tID2 = "t_" + class_info.getARTICLE_CLASS_ID(); %>
<cms4j:class is_purview_show="true" purview_type="operat" node_id="<%=cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeIDForParam(request)%>">
var t_<%=class_info.getARTICLE_CLASS_ID()%> = new WebFXTreeItem("<%=class_info.getCLASS_NAME()%>","javascript:executeGoto('mainFrame','../download/download_list.jsp?class_id=<%=class_info.getARTICLE_CLASS_ID()%>&cluster_node_id=${param.cluster_node_id}','<%=class_info.getARTICLE_CLASS_ID()%>')");
<%=tID2%>.add(t_<%=class_info.getARTICLE_CLASS_ID()%>);
<% tID3 = "t_" + class_info.getARTICLE_CLASS_ID(); %>
<cms4j:class is_purview_show="true" purview_type="operat" node_id="<%=cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeIDForParam(request)%>">
var t_<%=class_info.getARTICLE_CLASS_ID()%> = new WebFXTreeItem("<%=class_info.getCLASS_NAME()%>","javascript:executeGoto('mainFrame','../download/download_list.jsp?class_id=<%=class_info.getARTICLE_CLASS_ID()%>&cluster_node_id=${param.cluster_node_id}','<%=class_info.getARTICLE_CLASS_ID()%>')");
<%=tID3%>.add(t_<%=class_info.getARTICLE_CLASS_ID()%>);
<% tID4 = "t_" + class_info.getARTICLE_CLASS_ID(); %>
<cms4j:class is_purview_show="true" purview_type="operat" node_id="<%=cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeIDForParam(request)%>">
var t_<%=class_info.getARTICLE_CLASS_ID()%> = new WebFXTreeItem("<%=class_info.getCLASS_NAME()%>","javascript:executeGoto('mainFrame','../download/download_list.jsp?class_id=<%=class_info.getARTICLE_CLASS_ID()%>&cluster_node_id=${param.cluster_node_id}','<%=class_info.getARTICLE_CLASS_ID()%>')");
<%=tID4%>.add(t_<%=class_info.getARTICLE_CLASS_ID()%>);
<% tID5 = "t_" + class_info.getARTICLE_CLASS_ID(); %>
<cms4j:class is_purview_show="true" purview_type="operat" node_id="<%=cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeIDForParam(request)%>">
var t_<%=class_info.getARTICLE_CLASS_ID()%> = new WebFXTreeItem("<%=class_info.getCLASS_NAME()%>","javascript:executeGoto('mainFrame','../download/download_list.jsp?class_id=<%=class_info.getARTICLE_CLASS_ID()%>&cluster_node_id=${param.cluster_node_id}','<%=class_info.getARTICLE_CLASS_ID()%>')");
<%=tID5%>.add(t_<%=class_info.getARTICLE_CLASS_ID()%>);
<% tID6 = "t_" + class_info.getARTICLE_CLASS_ID(); %>
</cms4j:class>
</cms4j:class>
</cms4j:class>
</cms4j:class>
</cms4j:class>
</cms4j:class>
<%
if(isHasTree){
%>
document.write(tree);
<%
}
%>
</script>
</td>
</tr>
</table>
<!-- 用作保持欄目分類的標記 -->
<form name="formForCLassID">
<input type="hidden" name="classID" id="classID" value="">
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -