-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathviewOilChanges.jsp
52 lines (50 loc) · 2.08 KB
/
viewOilChanges.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
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*,
java.util.*,
net.vehicle.*" errorPage="" %>
<%
ArrayList all = VehicleCommon.viewAllOilChanges();
int size = all.size();
%>
<style type="text/css">
<!--
.style10 {color: #EED9A8; font-weight: bold; font-size: 14px; }
.style11 {color: #E49C7C}
-->
</style>
<script>
function deleteOil(id){
if(confirm('Want to Delete this Vehicle Oil Details?')){
window.location.href = 'do?MOD=MTN&ACT=oDel&oid='+id;
}//if
}//delete
</script>
<div class="header">View All Oil Change Details </div>
<br/>
<h3>View all the Oil Change Details.<br/>
If you want to add more Details then <a href="do?MOD=MTN&ACT=OilAdd">Click Here.</a></h3>
<br/>
<table width="95%" align="center" style="border:#D22929 solid 2px;padding:10px;" border="0">
<tr>
<th bgcolor="#D22929" scope="col"><span class="style10">Vehicle Name </span></th>
<th bgcolor="#D22929" scope="col"><span class="style10">Driver Name </span></th>
<th bgcolor="#D22929" scope="col"><span class="style10">Date</span></th>
<th bgcolor="#D22929" scope="col"><span class="style10">Cost </span></th>
<th bgcolor="#D22929" scope="col"><span class="style10">Oil Type</span></th>
<th bgcolor="#D22929" scope="col"><span class="style10">Odometer </span></th>
<th bgcolor="#D22929" scope="col"><span class="style10">Ation</span></th>
</tr>
<%
for(int i=0;i<size;i++){
ArrayList one=(ArrayList)all.get(i);
%>
<tr style="height:30px; padding:4px;">
<td><div align="center"><%=(String)one.get(1)%></div></td>
<td><div align="center"><%=(String)one.get(2)%></div></td>
<td><div align="center"><%=(String)one.get(3)%></div></td>
<td><div align="center"><%=(String)one.get(4)%> Rs.</div></td>
<td><div align="center"><%=(String)one.get(5)%> </div></td>
<td><div align="center"><%=(String)one.get(6)%>Rs.</div></td>
<td><div align="center"><a href="javascript:deleteOil(<%=(String)one.get(0)%>)">Delete</a></div></td>
</tr>
<% } %>
</table>