-
Notifications
You must be signed in to change notification settings - Fork 1
/
ViewEhvss.jsp
121 lines (117 loc) · 4.66 KB
/
ViewEhvss.jsp
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
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>View EHVSS Records</title>
<link href="css/metro/blue/jtable.css" rel="stylesheet" type="text/css" />
<link href="css/jquery-ui.css" rel="stylesheet" type="text/css" />
<!-- Importing CSS file for jTable form validations-->
<!-- <link href="css/validationEngine/validationEngine.jquery.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/validationEngine/jquery.validationEngine.js"></script>
<script type="text/javascript" src="js/validationEngine/jquery.validationEngine-en.js"></script>-->
<!-- Include jTable script file.
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<script src="https://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>-->
<script src="js/jquery-2.1.4.min.js"></script>
<script src="js/jquery-ui.min.js"></script>
<script src="js/jquery.jtable.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#region').change(function(event) {
var regionName = $("select#region").val();
$('#EhvssTableContainer').jtable('load',{region: regionName });
});
//initialize jTable
$('#EhvssTableContainer').jtable({
title: 'Table of EHVSS',
paging: true, //Enable paging
pageSize: 10, //Set page size (default: 10)
actions: {
listAction: 'EHVSSController?action=list',
createAction:'EHVSSController?action=create',
updateAction: 'EHVSSController?action=update',
deleteAction: 'EHVSSController?action=delete'
},
fields:{
id: {
title: 'EHVSS ID',
key: true,
list: false,
create:false
},
name: {
title: 'EHVSS Name',
width: '30%'
},
code: {
title: 'Code',
width: 'auto'
},
region: {
title: 'Region',
width: '15%',
options: ['INDORE','UJJAIN'],
}
},
deleteConfirmation: function(data) {
data.deleteConfirmMessage = 'Are you sure to delete EHVSS: ' + data.record.name + '?';
}
});
$('#EhvssTableContainer').jtable('load',{region: 'ALL'});
});
</script>
</head>
<body>
<jsp:useBean id="user" class="mms.com.beans.UserLogin" scope="session" />
<%@ include file="MasterPageTopSection.jsp" %>
<br/>
<h4 align="center"><mark>${errorBean.errorMessage}</mark></h4>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
<tr>
<td width="100%" colspan="2">
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
<tr>
<td width="34%" bgcolor="#000080">
<b>
<span lang="en">
<a href="home.jsp"><font color="#00FFFF">HOME</font></a>
</span>
</b>
</td>
<td width="7%" bgcolor="#000080">
<p align="center">
<b>
<font color="#FFFFFF"><a target="_parent" href="logout.jsp">
<span lang="en">
<font color="#FFFFFF">SIGN OUT</font>
</span>
</font>
</b>
</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br/>
<div style="width:60%;margin-right:20%;margin-left:20%;text-align:center;">
<h1>All EHVSS Records</h1><br/>
<label>
<span>Select EHVSS Region</span>
<select name="region" id="region" required="true">
<option selected='true'>ALL</option>
<option >INDORE</option>
<option >UJJAIN</option>
</select>
</label>
<br/>
<br/>
<div id="EhvssTableContainer">
</div>
</div>
<br/>
<br/>
<br/>
<%@ include file="MasterPageBottomSection.jsp" %>
</body>
</html>