MobileSettings.jsp
23.1 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
<%@page import="weaver.systeminfo.systemright.CheckSubCompanyRight"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<%@page import="net.sf.json.JSONArray"%>
<%@page import="net.sf.json.JSONObject"%>
<%@page import="com.weaver.formmodel.mobile.manager.MobileAppBaseManager"%>
<%@page import="com.weaver.formmodel.util.StringHelper"%>
<%@ include file="/mobilemode/init.jsp"%>
<%
if(!HrmUserVarify.checkUserRight("MobileModeSet:All", user)){
return;
}
int defaultSubCompanyId = Util.getIntValue(request.getParameter("subCompanyId"),-1);
if(mmdetachable.equals("1")){//开启移动建模分权
if(defaultSubCompanyId==-1){
defaultSubCompanyId = Util.getIntValue(Util.null2String(session.getAttribute("mobilemode_defaultSubCompanyId")),-1);
}
CheckSubCompanyRight mSubRight = new CheckSubCompanyRight();
int[] mSubCom = mSubRight.getSubComByUserRightId(user.getUID(),"MobileModeSet:All",0);
if(defaultSubCompanyId!=-1){
boolean subFlag = false;
for(int i=0;i<mSubCom.length;i++){
if(defaultSubCompanyId==mSubCom[i]){
subFlag = true;
break;
}
}
if(!subFlag){
session.removeAttribute("mobilemode_defaultSubCompanyId");
defaultSubCompanyId = -1;
}
}
if(defaultSubCompanyId==-1){
for(int i=0;i<mSubCom.length;i++){
if(mmdftsubcomid.equals(""+mSubCom[i])){
defaultSubCompanyId = mSubCom[i];
break;
}
}
if(defaultSubCompanyId==-1&&mSubCom.length>0){
defaultSubCompanyId = mSubCom[0];
}
}
if(defaultSubCompanyId!=-1){
session.setAttribute("mobilemode_defaultSubCompanyId",String.valueOf(defaultSubCompanyId));
}
}
String userRightStr = "MobileModeSet:All";
int operatelevel = getCheckRightSubCompanyParam(userRightStr,user,mmdetachable ,defaultSubCompanyId);//权限等级-> 2完全控制 1 编辑 0 只读
MobileAppBaseManager mobileAppBaseManager=MobileAppBaseManager.getInstance();
JSONArray jsonArray=new JSONArray();
if(mmdetachable.equals("1")){
jsonArray=mobileAppBaseManager.getAppBaseInfoWithJSONByParam(defaultSubCompanyId);
}else{
jsonArray=mobileAppBaseManager.getAppBaseInfoWithJSON();
}
String rightframeurl=StringHelper.null2String(request.getParameter("rightframeurl"),"/mobilemode/appComponentlist.jsp");
%>
<html>
<head>
<title></title>
<script type="text/javascript" src="/formmode/js/jquery/pagination/jquery.pagination_wev8.js"></script>
<script type="text/javascript" src="/formmode/js/jquery/hoverIntent/jquery.hoverIntent.minified_wev8.js"></script>
<link rel="stylesheet" type="text/css" href="/formmode/css/leftPartTemplate_wev8.css" />
<script type="text/javascript" src="/formmode/js/leftPartTemplate_wev8.js"></script>
<script type="text/javascript" src="/formmode/js/jquery/contextMenu/jquery.contextMenu_wev8.js"></script>
<link rel="stylesheet" type="text/css" href="/formmode/js/jquery/contextMenu/jquery.contextMenu_wev8.css"/>
<link rel="stylesheet" type="text/css" href="/wui/theme/ecology8/page/perfect-scrollbar/perfect-scrollbar_wev8.css" />
<script type="text/javascript" src="/js/nicescroll/jquery.nicescroll_wev8.js"></script>
<script type="text/javascript" src="/wui/theme/ecology8/page/perfect-scrollbar/perfect-scrollbar_wev8.js"></script>
<script type="text/javascript" src="/wui/theme/ecology8/page/perfect-scrollbar/jquery.mousewheel_wev8.js"></script>
<style>
html{
background-color: #53A2E0;
}
body{
overflow:hidden;
}
* {
font-size: 12px;
font-family: 'Microsoft Yahei', Arial;
}
input{outline:none}
a:focus { outline: none; }
#leftPart{
height: 100%;
background-color: #53A2E0!important;
position: relative;
overflow: hidden;
}
.e8_left_top{
position: relative;
top: 0px;
left: 0px;
padding: 10px 15px 5px 13px;
}
.e8_left_top .e8_module_range{
cursor: pointer;
}
.e8_searchTable{
border-collapse:collapse;border:1px solid #66bafc;background-color:#53a2e0;height:24px;width:100%;
}
.e8_searchText{
width: 160px;
border: 0px;
background-color:#53a2e0;
color: #fff;
}
.e8_btnCreate_mouseover{
background-color:#66bafc !important;
}
.e8_searchText_tip{
position: absolute;
top: 4px;
left: 5px;
color: #ccc;
}
.e8_left_center{
padding-top:8px;
padding-bottom: 0px;
overflow: hidden;
position:relative;
}
.e8_left_center .e8_title{
padding: 0px 12px;
}
.e8_left_center .e8_title span{
display: block;
padding: 5px 0 7px 0;
border-bottom: 1px solid #D3D3D3;
font-size: 12px;
font-weight: bold;
color: #333;
padding-left: 1px;
}
.e8_left_center ul{
margin:0px;
padding:0px;
list-style: none;
}
.e8_left_center ul li{
margin:0px;
padding: 2px 12px;
cursor: pointer;
}
.e8_left_center ul li a{
display: block;
padding: 3px 0px;
border-bottom: 0px solid #CFCFCF;
padding-left: 0px;
text-decoration: none;
position: relative;
}
.e8_left_center ul li a .e8_data_label{
color: #fff;
font-size: 14px;
}
.e8_left_center ul li a .e8_data_label2{
color: #a9d1f0;
font-size: 10px;
line-height: 14px;
}
.e8_left_center ul li a .e8_data_subtablecount{
background: url(/formmode/images/circleBg_wev8.png) no-repeat 1px 1px;
font-size: 9px;
font-style: italic;
color: #333;
width: 16px;
/*
float: right;
*/
position: absolute;
top: 5px;
right: 0px;
padding-left: 4px;
}
.e8_left_center ul li:hover{
background-color: #5FACE9;
}
.e8_left_center ul li:hover a{
border-bottom-color: #5FACE9;
}
.e8_left_center ul li:hover a .e8_data_label{
}
.e8_left_center ul li:hover a .e8_data_label2{
}
.e8_left_center ul li:hover a .e8_data_subtablecount{
}
.e8_left_center ul li.selected{
/*background-color: #e6e6e6;*/
background-image: url("/formmode/images/ztree_select_bg_blackborder_wev8.png");
}
.e8_left_center ul li.selected a{
border-bottom-color: #E5E5E5;
}
.e8_left_center ul li.selected div.line{
background-color: #e5e5e5;
}
.e8_left_center ul li.selected a .e8_data_label{
color: #2F5E85;
}
.e8_left_center ul li.selected a .e8_data_label2{
color: #396d97;
}
.e8_left_center ul li.selected a .e8_data_subtablecount{
background: url(/formmode/images/circleBgWhite_wev8.png) no-repeat 1px 1px;
color: #fff;
}
.e8_left_center ul li.nodata a{
border-bottom: none;
color: #fff;
padding: 6px 1px;
}
.line{
height:1px;background-color:#5FACE9;
}
.pagination{
width: 200px;
text-align: center;
}
.pagination a{
color: #fff !important;
}
.pagination span{
color: #a9d1f0 !important;
}
.e8_left_button{
padding: 8px 0px 0px 0px;
}
.e8_left_button span{
color: #666;
padding-bottom: 0px;
padding-left: 2px;
padding-right: 2px;
padding-top: 0px;
}
.e8_left_button A{
color: #ccc;
padding-bottom: 0px;
padding-left: 2px;
padding-right: 2px;
padding-top: 0px;
text-decoration:underline
}
.publishedFlag{
margin: 3px 0 0 0;
text-align: center;
background: url(/formmode/images/cloud_white_wev8.png) no-repeat;
font-size: 9px;
font-style: italic;
line-height: 15px;
color: #fff;
width: 14px;
height: 15px;
}
#drillmenu{
overflow:hidden;
}
</style>
<script type="text/javascript">
var datas=<%=jsonArray.toString()%>;
var operatelevel=<%=operatelevel+""%>;
var pSize = 8;
var currentDatas;
var currMobileAppId = null;
$(document).ready(function () {
currMobileAppId = FormmodeUtil.getLastId(FormModeConstant._CURRENT_Mobile_APP, datas, "id");
document.getElementById("currMobileAppId").value = currMobileAppId;
if(window.parent.location.href.indexOf("/formmode/setup/ModeSettingMain.jsp")!=-1){
if(typeof(parent.changeRightUrl)=="function"){
parent.changeRightUrl(currMobileAppId);
}
}
currPageIndex = FormmodeUtil.getLastIdPageIndex(currMobileAppId,datas,"id",pSize);
initSearchText(onSearchTextChange);
currentDatas = datas;
doPagination(datas, pagedDataRender, pSize);
selectedApp();
initRightMenu();
$("#btnCreate").bind("click", function(){createMobileApp();});
$("#btnCreate").mouseover(function(){
$(this).addClass("e8_btnCreate_mouseover");
});
$("#btnCreate").mouseout(function(){
$(this).removeClass("e8_btnCreate_mouseover");
});
updateLeftPartHeight();
});
function updateLeftPartHeight(option){
var winHeight=$(window).height();
var e8_left_top_height = $(".e8_left_top").height();
var e8_left_button_height = $(".e8_left_button").height();
var e8_left_center_height = winHeight - e8_left_top_height - e8_left_button_height - 34;
$("#leftPart").height(winHeight);
$("#e8_left_center").height(e8_left_center_height);
if(!!option){
$("#e8_left_center").perfectScrollbar(option);
}else{
$("#e8_left_center").perfectScrollbar();
}
}
$(window).resize(function() {
updateLeftPartHeight("update");
});
function onSearchTextChange(text){
var srarchData;
if(text == ""){
srarchData = currentDatas;
}else{
srarchData = [];
for(var i = 0; i < currentDatas.length; i++){
if(currentDatas[i].appname.toLowerCase().indexOf(text.toLowerCase()) != -1 || currentDatas[i].descriptions.toLowerCase().indexOf(text.toLowerCase()) != -1){
srarchData.push(currentDatas[i]);
}
}
}
doPagination(srarchData, pagedDataRender, pSize);
initRightMenu();
}
function doSearchTextChange(){
var st = $(".e8_searchText").val();
onSearchTextChange(st);
}
function changeRightFrameUrl(id){
var $AElement = $("#A_" + id);
var $li = $AElement.parent();
$li.siblings().removeClass("selected");
$li.addClass("selected");
currMobileAppId=id;
document.getElementById("currMobileAppId").value = currMobileAppId;
FormmodeUtil.writeCookie(FormModeConstant._CURRENT_Mobile_APP, id);
var rightFrame = getRightFrame();
$(rightFrame).attr("src", "/mobilemode/appComponentlist.jsp?id="+id);
}
function pagedDataRender(data){
var descriptions=data["descriptions"];
if(descriptions.length>7){
descriptions=descriptions.substring(0,7)+"...";
}else if(descriptions.length==0){
descriptions = "<%=SystemEnv.getHtmlLabelName(127449,user.getLanguage())%>";//无描述信息
}
var ispublish=data["ispublish"];
var publishedFlag="";
if(ispublish==1){
publishedFlag="<div class=\"publishedFlag\" title=\"<%=SystemEnv.getHtmlLabelName(20517,user.getLanguage())%>\"></div>";//已发布
}
return "<a id=\"A_"+data["id"]+"\" appname=\""+data["appname"]+"\" ispublish=\""+data["ispublish"]+"\" href=\"javascript:void(0);\" onclick=\"javascript:changeRightFrameUrl("+data["id"]+");\">" +
"<table width=\"100%\"><tr>" +
"<td style=\"padding-right:10px;width:25px;\"><img src=\""+data["picpath"]+"\" border=\"0\" width=32 height=\"32\"/></td>"+
"<td valign='top'><div class=\"e8_data_label\">"+data["appname"]+"</div>" +
"<div class=\"e8_data_label2\" title=\""+data["descriptions"]+"\">"+descriptions+"</div></td>" +
"<td width='12px' align='right' style='vertical-align:top;'>"+publishedFlag+"</td>"+
"</tr></table></a><div class=\"line\"/>";
}
var mobileAppDlg;
function createMobileApp(id){
mobileAppDlg = top.createTopDialog();//定义Dialog对象
mobileAppDlg.Model = true;
mobileAppDlg.Width = 700;//定义长度
mobileAppDlg.Height = 370;
if(id==undefined){
id="";
}
mobileAppDlg.URL = "/mobilemode/appbase.jsp?id="+id;
mobileAppDlg.Title = id ? "<%=SystemEnv.getHtmlLabelName(127450,user.getLanguage())%>" : "<%=SystemEnv.getHtmlLabelName(127448,user.getLanguage())%>";//编辑移动应用:新建移动应用
mobileAppDlg.onCloseCallbackFn=function(result){
refreshData(result);
}
mobileAppDlg.show();
}
function refreshData(id){
var url = jionActionUrl("com.weaver.formmodel.mobile.servlet.MobileAppBaseAction", "action=getAppBaseInfoWithJSON");
if(jQuery("#subCompanyId").length>0){
var subCompanyId = jQuery("#subCompanyId").val();
if(subCompanyId!=""){
url = url + "&subCompanyId="+subCompanyId;
}
}
FormmodeUtil.doAjaxDataLoad(url, function(mobileAppBaseDatas){
currentDatas = mobileAppBaseDatas;
if(id){
refreshLeftPart(currentDatas, id);
}else{
doSearchTextChange();
}
});
}
/**
*左侧菜单新建应用时定位并选中此应用
*/
function refreshLeftPart(currentDatas, id){
fixPageIndex(currentDatas, id);
doPagination(currentDatas, pagedDataRender, pSize);
changeRightFrameUrl(id);
}
/**
*根据新建应用id定位所在页
*/
function fixPageIndex(currentDatas, id){
for ( var i = 0; i < currentDatas.length; i++) {
if(id == currentDatas[i].id){
if((i+1)%pSize == 0){// 整除另算
currPageIndex = (i+1)/pSize-1;
}else{
currPageIndex = Math.floor((i+1)/pSize);
}
}
}
}
function initRightMenu(){
initBodyRightMenu();
initEditEvent();
}
/**
* 初始化编辑事件
*/
function initEditEvent(){
$(".e8_left_center ul li:not([class='nodata']) a").contextMenu({
menu: 'appRightMenu'
}, function(action, el, pos) {
var id=el.attr("id").substring(2);
var appname=el.attr("appname");
if(action == "create"){
createMobileApp();
}else if(action == "edit"){
createMobileApp(id);
}else if(action == "onPublish"){
publish(id,1);
}else if(action == "unPublish"){
publish(id,2);
}else if(action == "delete"){
onDelete(id,appname);
}else if(action == "waste"){
onWaste(id,appname);
}else if(action == "export"){
onExport(id,appname);
}else if(action == "import"){
onImport();
}else if(action == "skin"){
openSkin(id);
}
$(el).removeClass("rightMenuSelected");
});
$(".e8_left_center ul li:not([class='nodata']) a").mousedown(function(e){
e.stopPropagation();
var ispublish=$(this).attr("ispublish");
if(e.which == 3){ // 鼠标右键单击事件
$('#appRightMenu').enableContextMenuItems('#onPublish,#unPublish,#delete,#waste');
var disableMenuItems = ""; //需要被禁用的右键菜单
if(ispublish=="1"){
disableMenuItems += "#onPublish,#delete,#waste,";
}else{
disableMenuItems += "#unPublish,";
}
if(operatelevel == 0){//只读
disableMenuItems += "#create,#edit,#onPublish,#unPublish,#delete,#waste,#export,#import,#skin,";
}
if(operatelevel == 1){//编辑
disableMenuItems += "#create,#onPublish,#unPublish,#delete,#waste,#export,#import,";
}
if(disableMenuItems != ""){
disableMenuItems.substring(0, disableMenuItems.length - 1);
$('#appRightMenu').disableContextMenuItems(disableMenuItems);
}
$(".e8_left_center li a.rightMenuSelected").removeClass("rightMenuSelected");
$(this).addClass("rightMenuSelected");
}
});
}
function initBodyRightMenu(){
$("body").contextMenu({
menu: 'bodyRightMenu'
}, function(action, el, pos) {
if(action=="create"){
createMobileApp();
}else if(action=="import"){
onImport();
}
});
$("body").mousedown(function(e){
e.stopPropagation();
if(e.which == 3){ // 鼠标右键单击事件
var disableMenuItems = "";
if(operatelevel <= 1){
disableMenuItems += "#create,#import,";
}
if(disableMenuItems != ""){
disableMenuItems.substring(0, disableMenuItems.length - 1);
$('#bodyRightMenu').disableContextMenuItems(disableMenuItems);
}
}
});
}
function publish(id,ispublish){
var cfmMessage="<%=SystemEnv.getHtmlLabelName(127451,user.getLanguage())%>";//确认发布?
if(ispublish!="1"){
cfmMessage="<%=SystemEnv.getHtmlLabelName(127452,user.getLanguage())%>";//确认下架?
}
if(confirm(cfmMessage)) {
var url = jionActionUrl("com.weaver.formmodel.mobile.servlet.MobileAppBaseAction", "action=publish");
FormmodeUtil.doAjaxDataSave(url, {"id":id,"ispublish":ispublish}, function(res){
if(res == "1"){
refreshData();
}else{
alert("error:\n" + res);
}
});
}
}
function onDelete(id,appname){
if(confirm("<%=SystemEnv.getHtmlLabelName(127418,user.getLanguage())%>")) { //你确定要删除此移动应用吗?
var url = jionActionUrl("com.weaver.formmodel.mobile.servlet.MobileAppBaseAction", "action=delete");
FormmodeUtil.doAjaxDataSave(url, {"id":id,"setting":"1"}, function(res){
if(res == "1"){
refreshData();
}else{
alert("error:\n" + res);
}
});
}
}
function onWaste(id,appname){
if(confirm("<%=SystemEnv.getHtmlLabelName(127420,user.getLanguage())%>")) { //你确定要废弃此移动应用吗?
var url = jionActionUrl("com.weaver.formmodel.mobile.servlet.MobileAppBaseAction", "action=waste");
FormmodeUtil.doAjaxDataSave(url, {"id":id,"setting":"1"}, function(res){
if(res == "1"){
refreshData();
}else{
alert("error:\n" + res);
}
});
}
}
function onExport(id,appname){
if(confirm("<%=SystemEnv.getHtmlLabelName(127453,user.getLanguage())%>")) { //你确定要导出此移动应用吗?
var url = jionActionUrl("com.weaver.formmodel.mobile.appio.exports.MobileAppioAction", "action=export");
var paramData={id:id};
jQuery.ajax({
url: url,
timeout:240000,
data: paramData,
type: 'POST',
success: function (res) {
var downxml = res.replace(/(^\s*)|(\s*$)/g, "");
window.open(downxml,"_self");
},
error: function(){
}
});
}
}
function onImport(){
mobileAppDlg = top.createTopDialog();//定义Dialog对象
mobileAppDlg.Model = true;
mobileAppDlg.Width = 405;//定义长度
mobileAppDlg.Height = 125;
mobileAppDlg.URL = "/mobilemode/appio.jsp";
mobileAppDlg.Title = "<%=SystemEnv.getHtmlLabelName(127454,user.getLanguage())%>";//导入移动应用
mobileAppDlg.onCloseCallbackFn=function(result){
refreshData();
}
mobileAppDlg.show();
}
function openSkin(id){
mobileAppDlg = top.createTopDialog();//定义Dialog对象
mobileAppDlg.Model = true;
mobileAppDlg.Width = 900;//定义长度
mobileAppDlg.Height = 575;
mobileAppDlg.URL = "/mobilemode/setup/skinChoose.jsp?appid="+id;
mobileAppDlg.Title = "<%=SystemEnv.getHtmlLabelName(127458,user.getLanguage())%>";//皮肤选择
mobileAppDlg.onCloseCallbackFn=function(result){
if(!result){
return;
}
var isChange = result["isChange"];
var skin = result["skin"];
if(isChange){
var url = jionActionUrl("com.weaver.formmodel.mobile.servlet.MobileAppBaseAction", "action=updateSkin");
FormmodeUtil.doAjaxDataSave(url, {"id":id, "skin":skin}, function(res){
if(res == "1"){
top.Dialog.alert("<%=SystemEnv.getHtmlLabelName(30700,user.getLanguage())%>");//操作成功
changeRightFrameUrl(id);
}else{
alert("<%=SystemEnv.getHtmlLabelName(127456,user.getLanguage())%>");//设置皮肤时出现错误
}
});
}
}
mobileAppDlg.show();
}
function selectedApp(){
if(currMobileAppId != null){
$("#A_" + currMobileAppId).parent().addClass("selected");
}
}
function onPagedCallback(){
initRightMenu();
selectedApp();
}
function getRightFrame(){
return parent.document.getElementById("mainFrame");
}
function selectOrg(){
var winHight = jQuery(window).height();
var winWidth = jQuery(window).width();
var dialog = new window.top.Dialog();
dialog.currentWindow = window;
dialog.Width = 580;
dialog.Height = 630;
dialog.normalDialog = false;
dialog.URL = "/systeminfo/BrowserMain.jsp?url=/mobilemode/setup/SubcompanyBrowser.jsp?rightStr=MobileModeSet:All";
dialog.callbackfun = function (paramobj, id1) {
if(id1){
var id = id1.id;
var name = id1.name;
if(id!=""){
window.location.href="/mobilemode/MobileSettings.jsp?subCompanyId="+id;
}
}
};
dialog.Title = "<%=SystemEnv.getHtmlLabelName(33256,user.getLanguage())%>";//选择分部
dialog.Drag = false;
dialog.show();
}
</script>
</head>
<body>
<input type="hidden" id="currMobileAppId"/>
<input type="hidden" id="rightFrameUrl" value="<%=rightframeurl%>"/>
<div id="leftPart">
<div class="e8_left_top">
<%if(mmdetachable.equals("1")){%>
<div id="detachDiv">
<table style="padding-bottom: 5px;">
<tbody><tr>
<td width="18" style="padding-right:5px;line-height:5px;"><a title="查询" href="javascript:selectOrg();"> <img src="/formmode/images/globalwhite_wev8.png" width="16" height="16" border="0px" /></a></td>
<td style="padding:0 0 0 5px;position: relative;">
<div id="subCompanyIdSpan" name="subCompanyIdSpan" onclick="selectOrg()" style="overflow: hidden;height: 20px;line-height: 20px;color: #fff;">
<%
if(defaultSubCompanyId == -1){%>
<%=SystemEnv.getHtmlLabelName(82181,user.getLanguage())%><!-- 请选择分部 -->
<%}else{%>
<%=SubCompanyComInfo.getSubCompanyname(""+defaultSubCompanyId)%>
<%} %>
</div>
<input style="display: none" type="text" id="subCompanyId" name="subCompanyId" value="<%=defaultSubCompanyId %>"/></td>
</td>
</tr>
</tbody>
</table>
</div>
<%}else{%>
<span style="color:#66bafc;font-size:18px;">Apps</span>
<%} %>
<table class="e8_searchTable">
<tr>
<td style="padding:0 0 0 5px;position: relative;"><input type="text" class="e8_searchText" value=""/></td>
<!-- <td width="18" style="padding:1px;line-height:5px;"><img src="/formmode/images/btnSearch2_wev8.png" /></td> -->
<%if(operatelevel > 1){%>
<td width="20" style="padding:1px 0 1px 2px;line-height:5px;border-left:1px solid #66bafc;cursor:pointer;" id="btnCreate" title="<%=SystemEnv.getHtmlLabelName(127448,user.getLanguage())%>"><!-- 新建移动应用 --><img src="/mobilemode/images/btnCreate_wev8.png" /></td>
<%} %>
</tr>
</table>
</div>
<div id="e8_left_center" class="e8_left_center">
<div id="drillmenu">
<ul>
</ul>
</div>
</div>
<div class="e8_left_button" id="pagination" style=""></div>
</div>
<ul id="appRightMenu" class="contextMenu">
<li class="create1"><a href="#create"><%=SystemEnv.getHtmlLabelName(127448,user.getLanguage())%><!-- 新建移动应用 --></a></li>
<li class="edit"><a href="#edit"><%=SystemEnv.getHtmlLabelName(26473,user.getLanguage())%><!-- 编辑 --></a></li>
<li class="onPublish"><a href="#onPublish"><%=SystemEnv.getHtmlLabelName(114,user.getLanguage())%><!-- 发布 --></a></li>
<li class="unPublish"><a href="#unPublish"><%=SystemEnv.getHtmlLabelName(127383,user.getLanguage())%><!-- 下架 --></a></li>
<li class="delete"><a href="#delete"><%=SystemEnv.getHtmlLabelName(126371,user.getLanguage())%><!-- 删除 --></a></li>
<li class="create1"><a href="#waste"><%=SystemEnv.getHtmlLabelName(81999,user.getLanguage())%><!-- 废弃 --></a></li>
<li class="export"><a href="#export"><%=SystemEnv.getHtmlLabelName(17416,user.getLanguage())%><!-- 导出 --></a></li>
<li class="import"><a href="#import"><%=SystemEnv.getHtmlLabelName(32935,user.getLanguage())%><!-- 导入 --></a></li>
<li class="create1"><a href="#skin"><%=SystemEnv.getHtmlLabelName(84213,user.getLanguage())%><!-- 皮肤 --></a></li>
</ul>
<ul id="bodyRightMenu" class="contextMenu">
<li class="create1"><a href="#create"><%=SystemEnv.getHtmlLabelName(127448,user.getLanguage())%><!-- 新建移动应用 --></a></li>
<li class="import"><a href="#import"><%=SystemEnv.getHtmlLabelName(32935,user.getLanguage())%><!-- 导入 --></a></li>
</ul>
</body>
</html>