chooseLayoutModelBrowser.jsp
2.75 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
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<%@ include file="/formmode/checkright4setting.jsp" %>
<%@ taglib uri="/WEB-INF/weaver.tld" prefix="wea"%>
<HTML>
<HEAD>
<TITLE></TITLE>
<LINK href="/css/Weaver_wev8.css" type=text/css rel=STYLESHEET>
</HEAD>
<BODY>
<%@ include file="/systeminfo/RightClickMenuConent_wev8.jsp" %>
<div style="background-color:#FFF;padding-left:17%">
<div style="height:30px"></div>
<div>
<input type=radio name=layoutmodel value="0" checked onclick="layoutmodelClickFun()" /><%=SystemEnv.getHtmlLabelName(84089,user.getLanguage())%>
</div>
<div style="height:20px"></div>
<div>
<input type=radio name=layoutmodel value="2" onclick="layoutmodelClickFun()" /><%="excel"+SystemEnv.getHtmlLabelNames("19071,64",user.getLanguage())%>
</div>
<div style="height:10px"></div>
<div id="initexcellayoutdiv" style="display:none;">
<input type="checkbox" name="intiexcellayout" id="initexcellayout" value="1" /><%=SystemEnv.getHtmlLabelName(125556,user.getLanguage())%>
</div>
</div>
<div id="zDialog_div_bottom" class="zDialog_div_bottom">
<wea:layout type="2col" needImportDefaultJsAndCss="false">
<wea:group context="">
<wea:item type="toolbar">
<input type="button" class=zd_btn_submit id=btnok onclick="onSave();" value="<%=SystemEnv.getHtmlLabelName(826,user.getLanguage())%>"><!-- 确定 -->
<input type="button" class=zd_btn_submit id=btncancel onclick="btncancel_onclick();" value="<%=SystemEnv.getHtmlLabelName(201,user.getLanguage())%>"><!-- 取消 -->
</wea:item>
</wea:group>
</wea:layout>
</div>
</BODY>
<SCRIPT type="text/javascript">
var parentWin = window.parent.parent.getParentWindow(parent);
var dialog = window.parent.parent.getDialog(parent);
if(!dialog){
parentWin = window.parent.parent;
dialog = window.parent.parent.getDialog(window);
}
function onSave() {
var layoutmodel = $("input[name='layoutmodel']:checked").val();
var initexcellayout = $("#initexcellayout").attr("checked");
if(layoutmodel==0){
initexcellayout = false;
}
var returnjson = {layoutmodel:layoutmodel,initexcellayout:initexcellayout};
if(dialog){
try{
dialog.callback(returnjson);
}catch(e){}
try{
dialog.close(returnjson);
}catch(e){}
}
}
function btncancel_onclick(){
if(dialog){
dialog.close();
}else{
window.parent.parent.close();
}
}
function layoutmodelClickFun(){
var layoutmodel = $("input[name='layoutmodel']:checked").val();
if(layoutmodel==0){
$("#initexcellayoutdiv").hide();
$("#initexcellayout").trigger("checked",false);
}else{
$("#initexcellayoutdiv").show();
}
}
</SCRIPT>
</HTML>