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

📄 trees.jsp

📁 oa办公系统
💻 JSP
字号:
<%@ page language="java" import="java.util.*,cn.jx.ecjtu.oa.ps.pojo.*,cn.jx.ecjtu.oa.services.*" pageEncoding="GBK"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<title>名片</title>
<link rel="StyleSheet" href="../common/defaultFa/css/dtree.css" type="text/css" />
<link href="../common/defaultFa/css/all.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="../common/js/dtree.js"></script>
</head>

<body style="overflow-y:auto">

<table width="200" height="100%" >
 	<tr>
	<td valign="top">
<div id="mytree" style="width:100%; height:100%; z-index:2;overflow:auto">

<script type="text/javascript">

d = new dTree('d');
d.add('cardtree',-1,'名片管理');
d.add('card','cardtree','名片','hill.jsp','','frame_rightcontent');
	d.add('usercard','card','个人名片','listusercardServlet','','frame_rightcontent');
</script>
<%
List<Group> groups=(List<Group>)request.getAttribute("groups");
for(int i=0;i<groups.size();i++){
    Group group=groups.get(i);
%>
<script "text/javascript">
var url= "listusercardServlet?id="+<%=group.getGroup_id()%>
	d.add(<%=i%>,'usercard','<%=group.getGroup_name()%>',url,'','frame_rightcontent');
</script>	
<%}%>
<script "text/javascript">				
	d.add('companycard','card','公司名片','ListCompanyCardServlet','','frame_rightcontent');
    document.write (d);
</script>
  <script language="javascript">
  	function doSelectPanel(idNum){
		clearSelect();
		switch(idNum){
			case 1:
			    document.all.head1.style.background = "#0066FF";
				document.all.panl1.style.display = "";
				break;
			case 2:
				document.all.head2.style.background = "#0066FF";
				document.all.panl2.style.display = "";
				break;
			case 3:
				document.all.head3.style.background = "#0066FF";
				document.all.panl3.style.display = "";
				break;
		}
	}
	
	function clearSelect(){
		document.all.head1.style.background = "#00FFFF";
		document.all.head2.style.background = "#00FFFF";
		document.all.head3.style.background = "#00FFFF";
		document.all.panl1.style.display = "none";
		document.all.panl2.style.display = "none";
		document.all.panl3.style.display = "none";
	}
  </script>
  </div>
  </td>
</tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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