AlbumSubcompanyTree.jsp
3.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<%@ page import="weaver.general.Util" %>
<%@ page import="java.util.*" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" %> <%@ include file="/systeminfo/init_wev8.jsp" %>
<%
String urlType = Util.null2String(request.getParameter("urlType"));
String subcompanyid1 = Util.null2String(request.getParameter("subcompanyid1"));
String isdata = Util.null2String(request.getParameter("isdata"));
String from = Util.null2String(request.getParameter("from"));
if(urlType.equals(""))urlType="0";
String id=Util.null2String(request.getParameter("paraid"));
String checktype=Util.null2String(request.getParameter("checktype")); //radio or not
String onlyendnode=Util.null2String(request.getParameter("onlyendnode")); //如果需要check是否仅仅只是没有孩子的节点
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
<HEAD>
<LINK REL=stylesheet type=text/css HREF=/css/Weaver_wev8.css>
<link rel="stylesheet" href="/css/ecology8/request/leftNumMenu_wev8.css" type="text/css" />
<script type="text/javascript" src="/js/ecology8/request/leftNumMenu_wev8.js"></script>
</HEAD>
<body>
<%@ include file="/systeminfo/RightClickMenuConent_wev8.jsp" %>
<%@ include file="/systeminfo/RightClickMenu_wev8.jsp" %>
<%@ include file="/systeminfo/leftMenuCommon.jsp" %>
<script type="text/javascript">
rightMenu.style.visibility='hidden';
</script>
<table cellspacing="0" cellpadding="0" class="flowsTable" style="width:100%;height:100%;" >
<tr>
<td class="leftTypeSearch" >
<div>
<span class="leftType" onclick="reload()">
<span><img style="vertical-align:middle;" src="/images/ecology8/request/alltype_wev8.png" width="18" /></span>
<span><%=SystemEnv.getHtmlLabelNames("16455",user.getLanguage())%></span>
<span id="totalDoc"></span>
</span>
<span class="leftSearchSpan">
<input type="text" class="leftSearchInput"/>
</span>
</div>
</td>
<td rowspan="2">
</td>
</tr>
<tr>
<td style="width:246px;" class="flowMenusTd">
<div class="flowMenuDiv" >
<div style="overflow:hidden;height:1000px;position:relative;" id="overFlowDiv">
<div class="ulDiv" ></div>
</div>
</div>
</td>
</tr>
</table>
<script type="text/javascript">
jQuery(document).ready(function(){
initTree();
});
function reload(){
e8InitTreeSearch({ifrms:'',formID:'',conditions:''});
var optFrame=$("#contentframe",parent.document);
var src="/album/AlbumList.jsp?1=1";
optFrame.attr("src",src);
}
function initTree(){
var numbertypes={};
numbertypes={hoverColor:"#A6A6A6",color:"black",title:"<%=SystemEnv.getHtmlLabelNames("1331",user.getLanguage())%>"};
var demoLeftMenus="/album/AlbumSubcompanyTreeData.jsp?from=<%=from %>&subcompanyid1=<%=subcompanyid1 %>";
//console.log("demoLeftMenus:"+demoLeftMenus);
$(".ulDiv").leftNumMenu(demoLeftMenus,{
numberTypes:{
data2count:numbertypes
},
showZero:false,
selectFirst:true,
clickFunction:function(attr,level,numberType,node){
leftMenuClickFn(attr,level,numberType,node);
},
expand:{
url:function(attr,level){
},
done:function(children,attr,level){
}
},
});
}
function leftMenuClickFn(attr,level,numberType,node){
if(attr.groupid){
var optFrame=$("#contentframe",parent.document);
var src=optFrame.attr("src");
if(src.indexOf("paraid")>-1){
src=src.substring(0, src.indexOf("paraid"))+"paraid="+attr.groupid;
}else{
src+="¶id="+attr.groupid;
}
//console.log("albummanage src:"+src);
optFrame.attr("src",src);
}
}
</script>
</body>
</HTML>