top.jsp
29.6 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ page import="weaver.general.Util"%>
<%@ page import="weaver.general.StaticObj" %>
<%@ page import="java.util.*"%>
<%@ page import="weaver.hrm.HrmUserVarify"%>
<%@ page import="weaver.hrm.User"%>
<%@ page import="weaver.systeminfo.menuconfig.MenuMaint"%>
<%@ page import="weaver.systeminfo.SystemEnv"%>
<%@ page import="weaver.general.GCONST,weaver.filter.MultiLangFilter"%>
<%@ page import="weaver.general.IsGovProj" %>
<%@ page import="weaver.rdeploy.portal.PortalUtil"%>
<%@ page import="weaver.system.SystemComInfo"%>
<jsp:useBean id="baseBean" class="weaver.general.BaseBean" scope="page" />
<jsp:useBean id="MouldStatusCominfo" class="weaver.systeminfo.MouldStatusCominfo" scope="page" />
<jsp:useBean id="RecordSet" class="weaver.conn.RecordSet" scope="page"/>
<%
/*用户验证*/
User user = HrmUserVarify.getUser(request, response);
if (user == null) {
response.sendRedirect("/login/Login.jsp");
return;
}
%>
<%
//判断是否有微搜功能
boolean microSearch=weaver.fullsearch.util.RmiConfig.isOpenMicroSearch();
MenuMaint mm = new MenuMaint("left", 3, user.getUID(), user.getLanguage());
List menuArray = mm.getAllMenus(user, 1);
boolean isSortTopByUsage = true;
boolean showTopMenuName = "1".equals(new SystemComInfo().getShowtopmenuname());
/*每次加载top时查询一次,效率没有影响,正常情况top.jps只会加载一次*/
RecordSet.executeSql("select issorttopbyusage from PageUserDefault where userid="+user.getUID());
if(RecordSet.next()){
isSortTopByUsage = !"0".equals(RecordSet.getString("issorttopbyusage"));
}
if(isSortTopByUsage){
menuArray = byClickCntSort(user, menuArray);
}
boolean rmflg = menuArray.remove(null);
while(rmflg) {
rmflg = menuArray.remove(null);
}
String skin = (String)request.getAttribute("REQUEST_SKIN_FOLDER");
StaticObj staticobj = null;
staticobj = StaticObj.getInstance();
String software = (String)staticobj.getObject("software") ;
if(software == null) software="ALL";
int isgoveproj = Util.getIntValue(IsGovProj.getPath(),0);//0:非政务系统,1:政务系统
String Customertype = Util.null2String(""+user.getType()) ;
String logintype = Util.null2String(user.getLogintype()) ;
String signWeekBg = getWeekBg(user);
%>
<%
//获得动态绑定的搜索栏
RecordSet.executeSql("select * from mode_toolbar_search where isusedsearch=1 order by showorder");
%>
<%!
private String[] convMenuInfo(User user, Map map,boolean showTopName) {
String[] result = new String[3];
int level = Integer.parseInt((String) map.get("levelid"));
String sicon = "";
String sname = "";
String position = "";
String isDefault="1"; //是否具有默认图标菜单
if(!showTopName){
switch (level) {
//任务管理
case -2908:
sname = SystemEnv.getHtmlLabelName(1332, user.getLanguage());
position += "-0 -111";
break;
//集成系统
case -2774:
sname = SystemEnv.getHtmlLabelName(26267, user.getLanguage());
position += "-0 -37";
break;
//计划任务
case -2741:
sname = SystemEnv.getHtmlLabelName(407, user.getLanguage());
position += "-148 -74";
break;
//临时LICENSE
case -2080:
sname = SystemEnv.getHtmlLabelName(18599, user.getLanguage());
position += "-185 -74";
break;
//流程
case 1:
sname = SystemEnv.getHtmlLabelName(22244, user.getLanguage());
position += "-111 -0";
break;
//我的知识
case 2:
sname = SystemEnv.getHtmlLabelName(26268,user.getLanguage());
position += "-74 -0";
break;
//我的客户
case 3:
sname = SystemEnv.getHtmlLabelName(21313, user.getLanguage());
position += "-148 -0";
break;
//我的项目
case 4:
sname = SystemEnv.getHtmlLabelName(25106, user.getLanguage());
position += "-185 -0";
break;
//人事
case 5:
sname = SystemEnv.getHtmlLabelName(20694, user.getLanguage());
position += "-222 -0";
break;
//我的会议
case 6:
sname = SystemEnv.getHtmlLabelName(2103, user.getLanguage());
position += "-74 -37";
break;
//我的资产
case 7:
sname = SystemEnv.getHtmlLabelName(535, user.getLanguage());
position += "-37 -37";
break;
//我的邮件
case 10:
sname = SystemEnv.getHtmlLabelName(71, user.getLanguage());
break;
//我的短信
case 11:
sname = SystemEnv.getHtmlLabelName(22825, user.getLanguage());
break;
//我的协助
case 80:
sname = SystemEnv.getHtmlLabelName(26269, user.getLanguage());
position += "-37 -0";
break;
//目标绩效
case 94:
sname = SystemEnv.getHtmlLabelName(26270, user.getLanguage());
position += "-111 -74";
break;
//我的通信
case 107:
sname = SystemEnv.getHtmlLabelName(26271, user.getLanguage());
position += "-74 -111";
break;
//我的报表
case 110:
sname = SystemEnv.getHtmlLabelName(15101, user.getLanguage());
position += "-37 -74";
break;
//信息中心
case 111:
sname = SystemEnv.getHtmlLabelName(70, user.getLanguage());
position += "-0 -74";
break;
//系统设置
case 114:
sname = SystemEnv.getHtmlLabelName(22250, user.getLanguage());
position += "-74 -74";
break;
//我的日程
case 140:
sname = SystemEnv.getHtmlLabelName(2211, user.getLanguage());
position += "-148 -37";
break;
//车辆管理
case 144:
sname = SystemEnv.getHtmlLabelName(920, user.getLanguage());
position += "-185 -37";
break;
//我的相册
case 199:
sname = SystemEnv.getHtmlLabelName(20003, user.getLanguage());
position += "-222 -37";
break;
//临时LICENSE
case 227:
sname = SystemEnv.getHtmlLabelName(18599, user.getLanguage());
position += "-185 -74";
break;
//计划任务
case 263:
sname = SystemEnv.getHtmlLabelName(407, user.getLanguage());
position += "-148 -74";
break;
//我的客服
case 352:
sname = SystemEnv.getHtmlLabelName(26272, user.getLanguage());
position += "-222 -74";
break;
case 392:
sname = SystemEnv.getHtmlLabelName(26467, user.getLanguage());
position += "-37 -111";
break;
//我的邮件
case 536:
sname = SystemEnv.getHtmlLabelName(71, user.getLanguage());
position += "-111 -37";
break;
default:
sname = (String) map.get("name");
String topIcon=(String)map.get("topIcon");
if("".equals(topIcon))
position += "";
else{
position+=topIcon;
isDefault="0";
}
break;
}
}else{
sname = (String) map.get("name");
String topIcon=(String)map.get("topIcon");
if("".equals(topIcon))
position += "";
else{
position+=topIcon;
isDefault="0";
}
}
if (sname == null || "".equals(sname.trim())) {
sname = SystemEnv.getHtmlLabelName(149, user.getLanguage());
}
if ("".equals(position)) {
position += "-315 0";
}
//顶部菜单简称
// sname = getTopMenuName(level,sname);
//使用config里面的顶部简称
if(map.get("customTopName")!=null && !"".equals((String)map.get("customTopName"))){
sname = (String)map.get("customTopName");
}
result[0] = sname;
result[1] = position;
result[2] = isDefault;
return result;
}
private String getTopMenuName(int menuId,String menuName){
String result = "";
weaver.conn.RecordSet rs = new weaver.conn.RecordSet();
rs.executeSql("select topmenuname,topname_e,topname_t from LeftMenuInfo where topmenuname is not null and id="+menuId);
if(rs.next()){
result = Util.null2String(rs.getString("topmenuname"));
}
result = "".equals(result)?menuName:result;
return result;
}
private String getWeekBg(User user) {
String strWeek = "";
java.util.GregorianCalendar g=new java.util.GregorianCalendar();
int week = g.get(java.util.Calendar.DAY_OF_WEEK);
switch(week) {
case 1:
strWeek = SystemEnv.getHtmlLabelName(24626,user.getLanguage());
break;
case 2:
strWeek = SystemEnv.getHtmlLabelName(392,user.getLanguage());
break;
case 3:
strWeek = SystemEnv.getHtmlLabelName(393,user.getLanguage());
break;
case 4:
strWeek = SystemEnv.getHtmlLabelName(394,user.getLanguage());
break;
case 5:
strWeek = SystemEnv.getHtmlLabelName(395,user.getLanguage());
break;
case 6:
strWeek = SystemEnv.getHtmlLabelName(396,user.getLanguage());
break;
case 7:
strWeek = SystemEnv.getHtmlLabelName(397,user.getLanguage());
break;
default:
break;
}
return strWeek;
}
private List byClickCntSort(User user, List target) {
int displayMenuCount = 6;
//result
List sortList = new ArrayList();
//初始化返回菜单列表
for(int i=0; i<displayMenuCount; i++) {
sortList.add(null);
}
//点击量最高的6个菜单id列表
List menuIds = new ArrayList();
weaver.conn.RecordSet rs = new weaver.conn.RecordSet();
String dbType = rs.getDBType();
String exeSql = "";
if ("sqlserver".equals((dbType))) {
exeSql = "SELECT menuId, clickCnt FROM HrmUserMenuStatictics WHERE userid=" + user.getUID() + " order by clickCnt desc, menuid";
}else if("mysql".equals((dbType))){
exeSql = "SELECT menuId, clickCnt FROM HrmUserMenuStatictics WHERE userid=" + user.getUID() + " order by clickCnt desc, menuid";
}
else {
//exeSql = "select t.rownumber,t.menuId, t.clickCnt from ( SELECT rownum as rownumber,menuId, clickCnt FROM HrmUserMenuStatictics WHERE userid=" + user.getUID() + " order by clickCnt desc, menuid) t where t.rownumber<=6";
exeSql = "select t.rownumber,t.menuId, t.clickCnt from ( SELECT rownum as rownumber,menuId, clickCnt from (SELECT menuId, clickCnt FROM HrmUserMenuStatictics WHERE userid=" + user.getUID() + " order by clickCnt desc, menuid) t ) t where t.rownumber>=0";
}
//取得点击量最高的6个菜单
rs.executeSql(exeSql);
int displayClickMenuCnt = 0;
while(rs.next()) {
long clickCnt = 0;
int menuId = 0;
try {
clickCnt = Long.parseLong(rs.getString("clickCnt"));
} catch(NumberFormatException e) {
clickCnt = 0;
}
menuId = Util.getIntValue(rs.getString("menuId"), 0);
if (clickCnt > 0 && hasVisible(menuId, target)) {
if (displayClickMenuCnt > displayMenuCount - 1) {
continue;
}
displayClickMenuCnt++;
menuIds.add(new Integer(menuId));
}
}
Iterator it = target.iterator();
while(it.hasNext()) {
Map map = (Map) it.next();
int menuId = Integer.parseInt((String)map.get("levelid"));
//是否显示调查模块
if (!PortalUtil.isShowSurvey() && menuId == 635) {
continue;
}
//是否显示邮件模块
if (!PortalUtil.isShowEMail() && menuId == 536) {
continue;
}
//是否显示通信模块
if (!PortalUtil.isShowMessage() && menuId == 107) {
continue;
}
//是否显示报表模块
if (!PortalUtil.isShowReport() && menuId == 110) {
continue;
}
//是否显示信息中心模块
if (!PortalUtil.isShowInfoCenter() && menuId == 111) {
continue;
}
int index = menuIds.indexOf(new Integer(menuId));
if (index != -1) {
sortList.set(index, map);
continue;
}
sortList.add(map);
}
return sortList;
}
private boolean hasVisible(int id, List target) {
Iterator it = target.iterator();
while(it.hasNext()) {
Map map = (Map) it.next();
int menuId = Integer.parseInt((String)map.get("levelid"));
if (id == menuId) {
return true;
}
}
return false;
}
%>
<script type="text/javascript">
function topMenuBgIframeOnload(_this) {
_this.contentWindow.document.body.style.background = 'transparent';
_this.contentWindow.document.body.style.border='none';
}
</script>
<style>
.topMenuItem{
width:60px;
margin:0 2px;
}
</style>
<table border="0" style="max-width:900px;min-width:661px" height="50px" align="left" cellpadding="0px" cellspacing="0px" id="topCenterTable">
<tr>
<td align="left" width="100%">
<div class="topMenuDiv">
<%--//不知道为什么该处要增加一个iframe...
<iframe src="" style="filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';filter:alpha(opacity=0);opacity:0;position:absolute; visibility:inherit; top:0px; left:0px; width:100%; height:100%; z-index:-1; ">
</iframe> --%>
<div class="topMenuDiv_top">
<div id="divFloatBg"></div>
<div class="menuItem topMenuItem" style="" onClick="dymlftenu(this);topMenuContraction();" >
<!--<DIV class="menuItemIcon" style="background-position:0 0;"></DIV>-->
<DIV class="slideItemText"><%=SystemEnv.getHtmlLabelName(582,user.getLanguage())%></DIV>
</div>
<%
int maxLen = 4;
//String sicon = "/wui/theme/ecology8/skins/" + skin + "/page/top/menutopicons_wev8.png";
int topLine = 1;
//String sicon = "";
String positoin = "";
String sname = "";
String isDefault="";
String browser_isie=(String)session.getAttribute("browser_isie"); //当前浏览器是否为IE浏览器
//baseBean.writeLog(menuArray.size());
MultiLangFilter f = new MultiLangFilter();
for (int index = 0; index < menuArray.size(); index++) {
Map map = (Map) menuArray.get(index);
if (map == null) continue;
//非IE下是否启用系统设置菜单
int level = Integer.parseInt((String) map.get("levelid"));
if(!"true".equals(browser_isie)){
if(level==114){
String isOpenSysSettingMenu=GCONST.getSystemSettingMenu(); //是否开启系统设置菜单
if(!isOpenSysSettingMenu.equals("1"))
continue; //没有开启则不显示系统设置菜单
}
}
if(level==114)continue;
String[] convInfo = convMenuInfo(user, map,showTopMenuName);
try{
sname = f.processBody(convInfo[0], ""+user.getLanguage());
}catch(Exception e){
sname = convInfo[0];
}
//sicon = convInfo[1];
positoin = convInfo[1];
isDefault = convInfo[2];
String chinese = "[\u0391-\uFFE5]";
int length=0;
String tempName = showTopMenuName ?sname : "";
if(sname==null){
sname="";
}
for(int i=0;i<sname.length();i++){
String temp = sname.substring(i, i + 1);
if (temp.matches(chinese)) {
length += 2; // 中文字符长度为2
} else {
length += 1; // 其他字符长度为1
}
if(showTopMenuName){
if( length>=8)
break;
}else{
if(length>4)
break;
else
tempName+=temp;
}
}
if(maxLen < length){
maxLen = length;
}
%>
<div class="menuItem topMenuItem" style="" onClick="clickstatictics(this);" levelid="<%=map.get("levelid")%>" id="<%=map.get("id")%>" target="<%=map.get("target")%>" title="<%=map.get("name")%>">
<!--<DIV class="menuItemIcon" style="<%=isDefault.equals("1")?"background-position:"+positoin:"background: url('"+positoin+"')"%>;"></DIV>-->
<DIV class="slideItemText"><%=tempName %></DIV>
</div>
<%
topLine++;
}
%>
<%
int itemWidth = (int)(60 + (maxLen - 7 )* 6);
//int numPerLine = (300/itemWidth);
int numPerLine = 5;
//itemWidth = 300/numPerLine - 4;
float lineNum = 1.0f * topLine /numPerLine ;
int pdHeight = (int)Math.ceil(lineNum) * 35;
%>
</div>
<div style="height:50px;float:left;vertical-align:middle">
<div id="topMenuContr" class="slideItemText moreText leftMenuTopBtn add" style="vertical-align:middle;width:40px;margin-top:7px;margin-left:13px">
<div style="padding-top:8px; position:absolute;width:100%;" class="">
<img src='/wui/theme/ecology8/page/images/nav_wev8.png' width="16px" height="16px" style='vertical-align:middle;' id='closeTop'/>
</div>
</div>
</div>
<div style="margin-left:3px;top:7px;" class="slideItemText moreText leftMenuTopBtn">
<div id="freqUse" class="freqUse" style="height:100%;line-height:35px;"><%=SystemEnv.getHtmlLabelName(31649,user.getLanguage()) %></div>
</div>
<div id="searchBlockOuterDiv" style="float:left">
<form name="searchForm" method="post" action="/system/QuickSearchOperation.jsp" target="mainFrame">
<div class="searchBlockBgDiv slideItemText" style="overflow:visible;position:absolute;"></div>
<input type="hidden" name="searchtype" value="<%=microSearch?9:2%>">
<input type="hidden" id="mainid" name="mainid" value="">
<input type="hidden" id="stype" name="stype" value="">
<input type="hidden" id="fieldname" name="fieldname" value="">
<div id="sample" class="dropdown" style="float:left;position:relative;top:8px;width:61px;margin-left:30px">
<div class="selectTile">
<a href="#" style="width:57px;">
<span style="height:35px;line-height:28px;float:left;width:32px;display:block;overflow:hidden;text-overflow:ellipsis;color:#fff;padding:0;" class="searchTxt">
<%=microSearch?
SystemEnv.getHtmlLabelName(31953,user.getLanguage()):
SystemEnv.getHtmlLabelName(30042,user.getLanguage())%>
</span>
<div class="e8_dropdown"></div>
<!--background: url(/wui/theme/ecology8/skins/default/page/ecologyShellImg_wev8.png);background-repeat: no-repeat; background-position: -262px -62px;-->
<div style="float:right;display: block; width:8px;height:18px;*height:18px;margin-top:3px;" class="searchTxt searchTxtSplit">|</div>
</a>
</div>
<div class="selectContent" style="margin-top:26px;*margin-top:20px;_margin-top:0px;">
<ul id="searchBlockUl">
<iframe src="" style="filter:alpha(opacity=0);opacity:0;position:absolute; visibility:inherit; top:0px; left:0px; width:100%; height:100%; z-index:-1; filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';" >
</iframe>
<% if(microSearch){ %>
<li><a href="#"><img src="/wui/theme/ecology8/page/images/toolbar/ws_wev8.png"/><span searchType="9"><%=SystemEnv.getHtmlLabelName(31953,user.getLanguage())%></span></a></li>
<%}%>
<li><a href="#"><img src="/wui/theme/ecology8/page/images/toolbar/hrs_wev8.png"/><span searchType="2"><%=SystemEnv.getHtmlLabelName(30042,user.getLanguage())%></span></a></li>
<li><a href="#"><img src="/wui/theme/ecology8/page/images/toolbar/wls_wev8.png"/><span searchType="5"><%=SystemEnv.getHtmlLabelName(30045,user.getLanguage())%></span></a></li>
<li><a href="#"><img src="/wui/theme/ecology8/page/images/toolbar/docs_wev8.png"/><span searchType="1"><%=SystemEnv.getHtmlLabelName(30041,user.getLanguage())%></span></a></li>
<%if(isgoveproj==0){%>
<%if((Customertype.equals("3") || Customertype.equals("4") || !logintype.equals("2"))&&("1".equals(MouldStatusCominfo.getStatus("crm"))||"".equals(MouldStatusCominfo.getStatus("crm")))){%>
<li><a href="#"><img src="/wui/theme/ecology8/page/images/toolbar/crm_wev8.png"/><span searchType="3"><%=SystemEnv.getHtmlLabelName(30043,user.getLanguage())%></span></a></li>
<%
}
}
%>
<%if("1".equals(MouldStatusCominfo.getStatus("cwork"))||"".equals(MouldStatusCominfo.getStatus("cwork"))) {%>
<li><a href="#"><img src="/wui/theme/ecology8/page/images/toolbar/xz_wev8.png"/><span searchType="8"><%=SystemEnv.getHtmlLabelName(30047,user.getLanguage())%></span></a></li>
<%} %>
<%
if (PortalUtil.isShowEMail()) {
%>
<li><a href="#"><img src="/wui/theme/ecology8/page/images/toolbar/mail_wev8.png"/><span searchType="7"><%=SystemEnv.getHtmlLabelName(71,user.getLanguage())%></span></a></li>
<%
}
%>
<%
if(isgoveproj==0&&("1".equals(MouldStatusCominfo.getStatus("proj"))||"".equals(MouldStatusCominfo.getStatus("proj")))){%>
<li><a href="#"><img src="/wui/theme/ecology8/page/images/toolbar/p_wev8.png"/><span searchType="6"><%=SystemEnv.getHtmlLabelName(30046,user.getLanguage())%></span></a></li>
<%
}
%>
<%
if((!logintype.equals("2")) && software.equals("ALL")&&("1".equals(MouldStatusCominfo.getStatus("cpt"))||"".equals(MouldStatusCominfo.getStatus("cpt")))){%>
<li><a href="#"><img src="/wui/theme/ecology8/page/images/toolbar/zc_wev8.png"/><span searchType="4"><%=SystemEnv.getHtmlLabelName(30044,user.getLanguage())%></span></a></li>
<%
}
%>
<%
while(RecordSet.next()){
String tempName = RecordSet.getString("searchname");
if(tempName.length() > 2){
tempName = tempName.substring(0,2);
}
%>
<li>
<a href="#"><img height="14" width="14" src="<%=RecordSet.getString("imageurl") %>"/><span searchType="10"><%=tempName %></span></a>
<span style="display:none;" name="mainid" ><%=RecordSet.getInt("mainid") %></span>
<span style="display:none;" name="stype"><%=RecordSet.getInt("serachtype") %></span>
<span style="display:none;" name="fieldname"><%=RecordSet.getInt("searchField") %></span>
</li>
<% } %>
</ul>
</div>
</div>
<div style="float:left;vertical-align :middle;position:relative;top:8px;width:110px" >
<input type="text" id="searchvalue" name="searchvalue" onfocus="clearVal(this);" onblur="recoverVal(this);" class="searchkeywork" value="<%=SystemEnv.getHtmlLabelName(84128,user.getLanguage()) %>" style="vertical-align :middle;"/>
</div>
<div class="keywordsearchbtn" style="float:left;position:relative;top:7px;">
<div onclick="clearVal(document.getElementById('searchvalue'));searchForm.submit()" id="searchbt" style="cursor:pointer;height:100%;width:100%;">
<img style="vertical-align:middle;margin-top:10px;position:absolute;left:8px" src="/wui/theme/ecology8/skins/<%=skin %>/page/search_wev8.png"></img>
</div>
</div>
</form>
</div>
<%--
<div class="slideItemText toolbarItemDiv">
<div class="toolbarItem" onclick="mainFrame.history.go(-1);" title="<%=SystemEnv.getHtmlLabelName(15122,user.getLanguage())%>">
<span style="background:url(/wui/theme/ecology8/page/images/toolbar/back_wev8.png) no-repeat scroll center 50%;display:block;" class="tbItm back"></span>
</div>
<div class="toolbarItem"onclick="mainFrame.history.go(1);" title="<%=SystemEnv.getHtmlLabelName(15123,user.getLanguage())%>">
<span style="background:url(/wui/theme/ecology8/page/images/toolbar/forward_wev8.png) no-repeat scroll center 50%;display:block;" class="tbItm"></span>
</div>
<div class="toolbarItem"onclick="document.getElementById('mainFrame').contentWindow.document.location.reload();" title="<%=SystemEnv.getHtmlLabelName(354,user.getLanguage())%>">
<span style="background:url(/wui/theme/ecology8/page/images/toolbar/refresh_wev8.png) no-repeat scroll center 50%;display:block;" class="tbItm"></span>
</div>
</div>
--%>
<!--<div style="float:left;">
<div style="float:left">
<div class="topBlockDateBlock" style="float:left;cursor:pointer;font-weight:bold;color:#003366;background:url(/wui/theme/ecology8/skins/<%=skin %>/page/ecologyShellImg_wev8.png);background-position: -148px -75px;background-repeat: no-repeat;width:54px;height:29px;line-height:32px;text-align:center;overflow:hidden;" >
<%=signWeekBg %>
</div>
</div>-->
<!--<div style="float:left;display:block;background:url(/wui/theme/ecology8/skins/<%=skin %>/page/ecologyShellImg_wev8.png);background-position: -252 -75px;background-repeat: no-repeat;width:6px;height:29px;" class="toolbarTopRight">
</div>-->
</div>
</div>
</td>
</tr>
</table>
<!-- For slide-->
<script type="text/javascript" src="/wui/common/jquery/plugin/jquery.cycle.all_wev8.js"></script>
<script type="text/javascript" src="/wui/common/jquery/plugin/jquery.easing_wev8.js"></script>
<script type="text/javascript" src="/js/ecology8/jQueryRotate_wev8.js"></script>
<script language="javascript">
var isAdd = true;
//顶部菜单最大高度
var TOP_MENU_MAX_HEIGHT = "<%=pdHeight + 10%>";
var itemWidth = "<%=itemWidth%>";
jQuery(document).ready(function(){
//导航块移动
jQuery(".menuItem").bind("mouseover",function() {
topMenuNavMove(this);
});
jQuery(".menuItem").bind("mouseout",function(){
topMenuNavOut(this);
})
//菜单展开或者收缩
jQuery("#topMenuContr").bind("click", function() {
hideOtherHoverDiv('top');
if (jQuery(".topMenuDiv_top").height() > 70) {
jQuery(this).removeClass("menuNavSpan_Contraction").removeClass("leftcolor");
jQuery(this).addClass("menuNavSpan_Expand");
topMenuContraction();
} else {
jQuery(this).removeClass("menuNavSpan_Expand");
jQuery(this).addClass("menuNavSpan_Contraction").addClass("leftcolor");
topMenuExpand();
}
});
//光标不在菜单区域时,如果菜单时展开的则收缩。
jQuery(".topMenuDiv").hover(function() {}, function() {
if (jQuery(".topMenuDiv_top").height() > 70) {
topMenuContraction();
}
});
jQuery.ajax({
url: "/wui/theme/ecology8/page/getLeftMenu.jsp?t="+new Date().getTime(),
dataType: "text",
contentType : "charset=UTF-8",
error:function(ajaxrequest){},
success:function(content){
eval(content);
}
})
var plus = <%=(itemWidth+4) * 5 - 300%>;
var outWidth = $('.topMenuDiv').width()+plus;
$('.topMenuDiv').width(outWidth)
$('.topMenuDiv_top').width($('.topMenuDiv_top').width()+plus)
$('.topMenuDiv').parent().width(outWidth)
$('.topMenuDiv').parent().parent().width(outWidth)
$('.topMenuDiv').parent().parent().parent().parent().width(outWidth)
//console.log("maxLen:"+maxLen);
jQuery(".topMenuDiv_top>.menuItem").css('width',itemWidth);
});
function topMenuNavMove(_this) {
$this=jQuery(_this);
/*jQuery("#divFloatBg").show();
jQuery("#divFloatBg").each(function(){jQuery.dequeue(this, "fx");}).animate({
top: $this.position().top -3,
left: $this.position().left+4
},600, 'easeOutExpo');*/
$this.children(".slideItemText").addClass("topItemOver");
}
function topMenuNavOut(_this){
$this=jQuery(_this);
$this.children(".slideItemText").removeClass("topItemOver");
}
/**
* 菜单收缩
*/
function topMenuContraction() {
jQuery("#topMenuContr").removeClass("menuNavSpan_Contraction").removeClass("leftcolor");
jQuery("#topMenuContr").addClass("menuNavSpan_Expand");
jQuery("#topMenuContr").parent().removeClass("menuNavSpan_Contraction").removeClass("leftcolor");
jQuery(".topMenuDiv_top .slideItemText").removeClass("slideItemTextExpand");
jQuery(".topMenuDiv_top").each(function() {jQuery.dequeue(this, "fx")}).animate({
height:35
} , 0);
if (jQuery("#divFloatBg").offset().top >= 67 ) {
jQuery("#divFloatBg").hide();
}
/*if(isAdd){
}else{
var angle = 0;
var timer = setInterval(function(){
angle+=5;
jQuery("#closeTop").rotate(angle);
if (angle==90) clearInterval(timer);
},5);
}*/
jQuery(".topMenuDiv_top").removeClass("topMenuDivOver").removeClass("leftcolor")
//jQuery(".topMenuDiv_top").css("background", "");
jQuery("#topMenuContr").parent().css("height","50px");
jQuery(".topItemSelect").removeClass("topItemSelectBorder").removeClass("logobordercolor");
}
/**
* 菜单展开
*/
function topMenuExpand() {
/*jQuery(".topMenuDiv").css("background", "url(/wui/theme/ecology8/skins/<%=skin %>/page/top/menu_expand_bg_wev8.jpg) ");*/
jQuery(".topMenuDiv_top").addClass("topMenuDivOver").addClass("leftcolor");
jQuery(".topMenuDiv_top").css("background-position","0 <%="-" + (342 - (pdHeight + 10)) %>");
jQuery(".topMenuDiv_top").css("background-repeat","no-repeat");
jQuery(".topMenuDiv_top .slideItemText").addClass("slideItemTextExpand");
if(isIE() && document.documentMode==5){
jQuery("#topMenuContr").parent().css("height",parseInt(TOP_MENU_MAX_HEIGHT)+7);
}else{
jQuery("#topMenuContr").parent().css("height",parseInt(TOP_MENU_MAX_HEIGHT)+7-2);
}
jQuery("#topMenuContr").parent().addClass("menuNavSpan_Contraction").addClass("leftcolor");
jQuery(".topItemSelect").addClass("topItemSelectBorder").addClass("logobordercolor");
/*var angle = 0;
var timer = setInterval(function(){
angle+=5;
isAdd = false;
jQuery("#closeTop").rotate(angle);
if (angle==135) clearInterval(timer);
},5);*/
jQuery(".topMenuDiv_top").each(function() {jQuery.dequeue(this, "fx")}).animate({
height: TOP_MENU_MAX_HEIGHT
//height:"100px"
} , 0);
}
/**
* 点击菜单项时触发,会统计菜单点击的次数,并打开子项(左侧)
*/
function clickstatictics(_this) {
topMenuContraction();
isAdd = true;
jQuery("#drillcrumb").text(jQuery(_this).text());
//jQuery(".slideDivHidden").hide();//animate({opacity: "hide", height: "hide"}, 0);
dymlftenu(_this);
var ajaxUrl = "/wui/theme/ecology8/page/topMenuClickStatictics.jsp";
ajaxUrl += "?mid=";
ajaxUrl += jQuery(_this).attr("levelid");
ajaxUrl += "&token=";
ajaxUrl += new Date().getTime();
jQuery.ajax({
url: ajaxUrl,
dataType: "text",
contentType : "charset=UTF-8",
error:function(ajaxrequest){},
success:function(content){
}
});
}
</script>