-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathC_ClientsDetails.jsp
176 lines (170 loc) · 7.4 KB
/
C_ClientsDetails.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@page import ="java.util.*"%>
<%@ include file="connect.jsp" %>
<%@page import ="java.util.*,java.security.Key,java.util.Random,javax.crypto.Cipher,javax.crypto.spec.SecretKeySpec,org.bouncycastle.util.encoders.Base64"%>
<%@ page import="java.sql.*,java.util.Random,java.io.PrintStream,java.io.FileOutputStream,java.io.FileInputStream,java.security.DigestInputStream,java.math.BigInteger,java.security.MessageDigest,java.io.BufferedInputStream" %>
<%@ page import ="java.security.Key,java.security.KeyPair,java.security.KeyPairGenerator,javax.crypto.Cipher"%>
<%@page import ="java.util.*,java.text.SimpleDateFormat,java.util.Date,java.io.FileInputStream,java.io.FileOutputStream,java.io.PrintStream"%>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Server </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="style.css" rel="stylesheet" type="text/css" />
<script src="js/cufon-yui.js" type="text/javascript"></script>
<script src="js/cufon-replace.js" type="text/javascript"></script>
<script src="js/Myriad_Pro_300.font.js" type="text/javascript"></script>
<!--[if lt IE 7]>
<script type="text/javascript" src="js/ie_png.js"></script>
<script type="text/javascript">ie_png.fix('.png, #header .row-2 ul li a, #content, .list li');</script>
<![endif]-->
<style type="text/css">
<!--
.style1 {
font-size: 37px;
color: #CCCCCC;
}
.style25 {font-size: 14px;
color: #0d6887;
font-weight: bold;
}
.style26 {color: #595f61}
.style27 {color: #0d6887; font-weight: bold; }
.style28 {color: #FFFF00}
-->
</style>
</head>
<body id="page1">
<div class="tail-top">
<div class="tail-bottom">
<div class="body-bg">
<!-- HEADER -->
<div id="header">
<div class="extra"></div>
<div class="row-1">
<div class="fleft">
<h2 class="style1">Enabling Authorized Encrypted Search for Multi Authority Medical Databases</h2>
</div>
<div class="fright"></div>
</div>
<div class="row-2">
<ul>
<li class="m5"><a href="C_Main.jsp" class="active">Server</a></li>
<li class="m4"><a href="C_Login.jsp">Logout</a></li>
</ul>
</div>
<div class="row-3">
<form action="#" method="post" id="search-form">
<fieldset>
<div><a href="#"></a></div>
</fieldset>
</form>
</div>
</div>
<!-- CONTENT -->
<div id="content">
<div class="inner_copy">More <a href="#">Website Templates</a> @ Templates.com!</div>
<div class="tail-right">
<div class="wrapper">
<div class="col-1">
<div class="indent">
<div class="indent1">
<h3> Clientss Details </h3>
<p align="justify"> </p>
<table width="523" height="311" border="1" align="center" cellpadding="0" cellspacing="0" style="border-collapse: collapse; margin:10px 10px 10px 10px; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:14px;">
<%
String name = request.getParameter("name");
//int uid = Integer.parseInt(mid);
String s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11,s12,s13;
int i=0;
try
{
String query="select * from enduser where name='"+name+"'";
Statement st=connection.createStatement();
ResultSet rs=st.executeQuery(query);
while ( rs.next() )
{
i=rs.getInt(1);
s1=rs.getString(2);
s2=rs.getString(4);
s3=rs.getString(5);
s4=rs.getString(6);
s5=rs.getString(7);
//s6=rs.getString(8);
//s7=rs.getString(9);
//s8=rs.getString(8);
%>
<tr>
<td rowspan="8" ><div style="margin:10px 13px 10px 13px;" >
<input name="image" type="image" src="profileimage.jsp?imgid=<%=i%>" style="width:200px; height:230px;" />
</div></td>
</tr>
<tr>
<td width="150" height="40" valign="middle" bgcolor="#FF0000" style="color: #2c83b0;"><div align="left" class="style25 style28" style="margin-left:20px;">Name:</div></td>
<td width="300" valign="middle" height="40" style="color:#000000;"><div align="left" class="style26" style="margin-left:20px;">
<%out.println(s1);%>
</div></td>
</tr>
<tr>
<td width="120" height="40" valign="middle" bgcolor="#FF0000" style="color: #2c83b0;"><div align="left" class="style27 style28" style="margin-left:20px;">E-Mail:</div></td>
<td width="72" valign="middle" height="40" style="color:#000000;"><div align="left" class="style26" style="margin-left:20px;">
<%out.println(s2);%>
</div></td>
</tr>
<tr>
<td width="100" height="40" valign="middle" bgcolor="#FF0000" style="color: #2c83b0;"><div align="left" class="style27 style28" style="margin-left:20px;">Mobile:</div></td>
<td width="82" valign="middle" height="40"><div align="left" class="style26" style="margin-left:20px;">
<%out.println(s3);%>
</div></td>
</tr>
<tr>
<td width="100" height="40" align="left" valign="middle" bgcolor="#FF0000" style="color: #2c83b0;"><div align="left" class="style27 style28" style="margin-left:20px;">Date Of Birth:</div></td>
<td width="82" align="left" valign="middle" height="40"><div align="left" class="style26" style="margin-left:20px;">
<%out.println(s5);%>
</div></td>
</tr>
<tr>
<td width="100" height="40" align="left" valign="middle" bgcolor="#FF0000" style="color: #2c83b0;"><div align="left " class="style27 style28" style="margin-left:20px;">Address:</div></td>
<td width="82" align="left" valign="middle" height="40"><div align="left" class="style26" style="margin-left:20px;">
<%out.println(s4);%>
</div></td>
</tr>
<%
}
connection.close();
}
catch(Exception e)
{
out.println(e.getMessage());
}
%>
</table>
<p> </p>
<p align="right"><a href="C_AuthorizeReceiver.jsp">Back</a></p>
</div>
</div>
</div>
<div class="col-2">
<ul>
<li><a href="C_Main.jsp">Home</a></li>
<li><a href="C_Login.jsp">Logout</a></li>
</ul>
</div>
</div>
</div>
</div>
<!-- FOOTER -->
<div id="footer">
<div class="indent">
<div class="fleft"></div>
<div class="fright"></div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript"> Cufon.now(); </script>
<div align=center></div>
</body>
</html>