mobiledevice.jsp
3.9 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
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@page import="com.weaver.formmodel.mobile.ui.manager.MobiledeviceManager"%>
<%@page import="com.weaver.formmodel.mobile.ui.model.Mobiledevice"%>
<%@ include file="/mobilemode/init.jsp"%>
<%
MobiledeviceManager mobiledeviceManager=MobiledeviceManager.getInstance();
int id=Util.getIntValue(Util.null2String(request.getParameter("id")),0);
int refresh=Util.getIntValue(Util.null2String(request.getParameter("refresh")));
Mobiledevice mobiledevice=mobiledeviceManager.getMobiledevice(id);
%>
<HTML><HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style>
*{
font: 12px Microsoft YaHei;
}
html,body{
height: 100%;
margin: 0px;
padding: 0px;
overflow: hidden;
}
.e8_tblForm{
width: 100%;
margin: 0 0;
border-collapse: collapse;
}
.e8_tblForm .e8_tblForm_label{
vertical-align: middle;
border-bottom: 1px solid #e6e6e6;
padding: 5px 5px 5px 10px;
}
.e8_tblForm .e8_tblForm_field{
border-bottom: 1px solid #e6e6e6;
padding: 5px 7px;
background-color: #f8f8f8;
}
.e8_label_desc{
color: #aaa;
}
.loading{
position:absolute;
left:45%;
background:#ffffff;
top:40%;
padding:8px;
z-index:20001;
height:auto;
border:1px solid #ccc;
}
</style>
<script type="text/javascript">
if('<%=refresh%>'=='1'){
top.closeTopDialog();
}
</script>
<script>
function onSave(){
enableAllmenu();
$(".loading").show();
document.frmMain.action = jionActionUrl("com.weaver.formmodel.mobile.ui.servlet.MobiledeviceAction", "action=save");
document.frmMain.submit();
}
function onDelete(){
if(confirm("<%=SystemEnv.getHtmlNoteName(7,user.getLanguage())%>")) {
enableAllmenu();
$(".loading").show();
document.frmMain.action = jionActionUrl("com.weaver.formmodel.mobile.ui.servlet.MobiledeviceAction", "action=delete");
document.frmMain.submit();
}
}
</script>
</HEAD>
<%@ include file="/systeminfo/RightClickMenuConent_wev8.jsp" %>
<%
RCMenu += "{"+SystemEnv.getHtmlLabelName(86,user.getLanguage())+",javascript:onSave(),_self} " ;
RCMenuHeight += RCMenuHeightStep ;
if(id > 0) {
RCMenu += "{"+SystemEnv.getHtmlLabelName(91,user.getLanguage())+",javascript:onDelete(),_self} ";
RCMenuHeight += RCMenuHeightStep ;
}
%>
<%@ include file="/systeminfo/RightClickMenu_wev8.jsp" %>
<body>
<form id="frmMain" name="frmMain" method="post" target="_self" enctype="multipart/form-data">
<input type="hidden" id="id" name="id" value="<%=id%>"/>
<table class="e8_tblForm">
<tr>
<td class="e8_tblForm_label" width="20%"><%=SystemEnv.getHtmlLabelName(19187,user.getLanguage())%></td><!-- 设备名称 -->
<td class="e8_tblForm_field"><input type="text" style="width:83%;" id="devicename" name="devicename" value="<%=Util.null2String(mobiledevice.getDevicename())%>"/></td>
</tr>
<tr>
<td class="e8_tblForm_label"><%=SystemEnv.getHtmlLabelName(22969,user.getLanguage())%></td><!-- 图标 -->
<td class="e8_tblForm_field">
<INPUT type="file" name="picpath" id="picpath" value="<%=Util.null2String(mobiledevice.getPicpath())%>" maxlength="40" >
<SPAN>
<%
if(mobiledevice.getPicpath() != null){
%>
<img alt="" src="<%=mobiledevice.getPicpath() %>" height="30" width="30">
<%
}
%>
</SPAN>
</td>
</tr>
<tr>
<td class="e8_tblForm_label"><%=SystemEnv.getHtmlLabelName(203,user.getLanguage())%></td><!-- 宽度 -->
<td class="e8_tblForm_field"><input type="text" style="width:83%;" id="width" name="width" value="<%=Util.null2String(mobiledevice.getWidth())%>"/></td>
</tr>
<tr>
<td class="e8_tblForm_label"><%=SystemEnv.getHtmlLabelName(33819,user.getLanguage())%></td><!-- 高度 -->
<td class="e8_tblForm_field"><input type="text" style="width:83%;" id="height" name="height" value="<%=Util.null2String(mobiledevice.getHeight())%>"/></td>
</tr>
</table>
</form>
</body>
</html>