⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hierarchytree.jsp

📁 老外的在线考试
💻 JSP
字号:
<%-- * CyberTester - J2EE Web application for creating, delivering and managing tests/exams/surveys.  * Copyright (C) 2003 CyberDemia Research and Services Pty Ltd * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program (see the file COPYING); if not, write to the * Free Software Foundation, Inc., * 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA * * See the COPYING file located in the top-level-directory of * the archive of this program for complete text of license.--%><%@ page language="java" %><%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %><%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %><html:html xhtml="true">	<head>		<title>CyberTester Hierarchy Tree</title>		<meta http-equiv="pragmas" content="no-cache" />		<meta http-equiv="cache-control" content="no-cache" />		<meta http-equiv="expires" content="0" />		<link rel="stylesheet" href="<%= request.getContextPath() %>/cybertester.css" type="text/css" />		<style type="text/css" >		<!--			.tNodeDiv {				width: 100%;			}						.selectable {				font-weight: bold;				cursor: pointer;			}		// -->		</style>		<script type="text/javascript">		<!--			var imagesDir = "<%= request.getContextPath() %>/images";						self.enabled = false;						function setEnabled( en ) {				self.enabled = en;				if (en) {					document.body.style.backgroundColor="#ffffff";					document.getElementById("headerMsg").innerHTML="Drill down into the hierarchy tree below and select a node...";				} else {					document.body.style.backgroundColor="#999999";					document.getElementById("headerMsg").innerHTML="Hierarchy tree is currently disabled.";				}			}			 			function indentNode( level ) {				for (sp=0; sp<level; sp++) {					document.writeln("<img src=\""+imagesDir+"/tree_blank.gif\" alt=\"space\" />");				}			}						function expand( hierId ) {				if ( self.enabled ) {					self.location.replace( "<%= response.encodeURL( request.getContextPath()+"/admin/getHierarchyTree.do?action=expand" ) %>&hierId="+hierId );				}			}						function collapse( hierId ) {				if ( self.enabled ) {					self.location.replace( "<%= response.encodeURL( request.getContextPath()+"/admin/getHierarchyTree.do?action=collapse" ) %>&hierId="+hierId );				}			}						function nodeClicked( hierId ) {				if ( self.enabled ) {					self.location.replace( "<%= response.encodeURL( request.getContextPath()+"/admin/getHierarchyTree.do?action=select" ) %>&hierId="+hierId );				}			}						function pageLoaded() {				<logic:present name="selectedHierId" scope="session" >					var pnodeDiv = document.getElementById("n-<bean:write name="selectedHierId" scope="session" />");					if (pnodeDiv) {						pnodeDiv.style.backgroundColor = "#ffff88";					}										parent.hierarchyNodeSelected();				</logic:present>				setEnabled( true );			}		// -->		</script>		<html:base/>	</head>	<body onload="pageLoaded()" style="background-color:#999999;" >		<p id="headerMsg" style="font-weight:bold;font-size:8pt;width:100%">Please wait...</p>		<div id="hierarchy" style="width:100%;border:1px solid #000055;" >			<logic:iterate name="treeNodes" id="node" >				<div class="tNodeDiv" id="n-<bean:write name="node" property="hierId" />" >					<span>						<script type="text/javascript">						<!--							indentNode( <bean:write name="node" property="level" /> );						// -->						</script>						<logic:equal name="node" property="expandable" value="true" >							<img src="<%= request.getContextPath() %>/images/tree_plus.gif" alt="expand" onclick="expand('<bean:write name="node" property="hierId" />')" />						</logic:equal>						<logic:equal name="node" property="collapsable" value="true" >							<img src="<%= request.getContextPath() %>/images/tree_minus.gif" alt="collapse" onclick="collapse('<bean:write name="node" property="hierId" />')" />						</logic:equal>						<logic:equal name="node" property="selectable" value="true" >							<span class="selectable" onclick="nodeClicked( '<bean:write name="node" property="hierId" />' )" >								<img src="<%= request.getContextPath() %>/images/tree_triangle.gif" alt="triangle" />														</logic:equal>						<logic:notEqual name="node" property="selectable" value="true" >							<span >						</logic:notEqual>													<bean:write name="node" property="id" />:&nbsp;<bean:write name="node" property="name" />						</span>					</span>				</div>			</logic:iterate>		</div>	</body></html:html>	

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -