-
Notifications
You must be signed in to change notification settings - Fork 0
/
case.jsp
120 lines (119 loc) · 3.92 KB
/
case.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
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.style1 {font-family: Georgia, "Times New Roman", Times, serif}
-->
</style>
<body>
<table width="98%" >
<tr>
<th width="15%" height="96"><p align="center"><img src="../images/logom.gif" width="190" height="184"></p></th>
<td align="center" width="71%"><p align="center"><font size="6" color="#FF0088"><img src="../images/tiharm.gif"></font></p>
<td width="14%" align="right"><img src="../images/CAXGR6RB.jpg" width="146" height="139"></td>
</tr>
</table>
<p><span class="style1"><font size="+3">Prisoner Case Detail </font></span></p>
<p> </p>
<p align="center">
<%
String v6=new String("");
v6=(String)session.getAttribute("uuid");
Connection con=null;
ResultSet rs=null;
Statement stmt=null;
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
}catch(Exception e){}
con=DriverManager.getConnection("jdbc:odbc:jail","tihar","jail");
stmt=con.createStatement();
rs=stmt.executeQuery("select *from case where prn='"+v6+"'");
out.println("<html><body>");
out.println("<table border=2>");
out.println("<tr>");
out.println("<th>prisoner name</th>");
out.println("<th>Case Id</th>");
out.println("<th>Description</th>");
out.println("<th>type</th>");
out.println("<th>Duration</th>");
out.println("</tr>");
while(rs.next())
{
out.println("<tr>");
out.println("<td>"+rs.getString(1)+"</td>");
out.println("<td>"+rs.getInt(2)+"</td>");
out.println("<td>"+rs.getString(3)+"</td>");
out.println("<td>"+rs.getString(4)+"</td>");
out.println("<td>"+rs.getInt(5)+"</td>");
out.println("</tr>");
}
out.println("</table>");
out.println("</body>");
out.println("</html>");
%>
</p>
<table align="center" width="75%" bgcolor="#CCCCCC">
<tr>
<td colspan="2">
<tr>
<td height="57" colspan="2"><font color="#003366" size="+2"> NEW TO Areezona ? <br>
Registered Now</font></td>
</tr>
<tr>
<td align="right"> </td>
<td width="56%"> </td>
</tr>
<tr>
<td align="right"><b>Case id<br>
</b></td>
<td><input name="cid" type="text" size="22"></td>
</tr>
<tr>
<td width="44%" align="right"><b>Prisoner Name </b></td>
<td><input name="prn" type="text" size="22" ></td>
</tr>
<tr>
<td align="right"><strong>Entry Date </strong></td>
<td><input name="entry" type="text"size="15"></td>
</tr>
<tr>
<td align="right"><strong>Last Date </strong></td>
<td><input name="last" type="text"size="15"></td>
</tr>
<tr>
<td align="right"><b>Duration of Sentence</b></td>
<td><select name="dur">
<%
for(int vl=1;vl<20;vl++){%>
<option value="<%=vl%>"><%=vl%></option>
<%}%>
</select></td>
</tr>
<tr>
<td align="right"><strong>Height</strong></td>
<td><input name="hei" type="text"></td>
</tr>
<tr>
<td align="right"><strong>Weight</strong></td>
<td><input name="wei" type="text" ></td>
</tr>
<tr>
<td align="right"><strong>Address</strong></td>
<td><input name="adr" type="text" ></td>
</tr>
<tr>
<td align="right"><strong>Password</strong></td>
<td><input name="pass" type="password" ></td>
</tr>
</table>
<p align="center"> </p>
<br><Br><br><br>
<%@include file="footer.jsp"%>
</body>
</html>
<br><br>