-
Notifications
You must be signed in to change notification settings - Fork 0
/
user_All_Recieved_Request.jsp
228 lines (200 loc) · 8.05 KB
/
user_All_Recieved_Request.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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>All Recieved Request</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="css/coin-slider.css" />
<script type="text/javascript" src="js/cufon-yui.js"></script>
<script type="text/javascript" src="js/droid_sans_400-droid_sans_700.font.js"></script>
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/script.js"></script>
<script type="text/javascript" src="js/coin-slider.min.js"></script>
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
.style2 {color: #5286bc}
.style6 {font-size: 15px}
.style7 {
font-size: 12px;
font-weight: bold;
}
.style8 {color: #FFFF00}
-->
</style>
</head>
<body>
<div class="main">
<div class="header">
<div class="header_resize">
<div class="menu_nav">
<ul>
<li><a href="index.html"><span>Home </span></a></li>
<li><a href="admin_Login.jsp"><span>Admin</span></a></li>
<li class="active"><a href="user_Login.jsp"><span>User</span></a></li>
</ul>
</div>
<div class="logo">
<h2><span class="style1">Clustering Based Collaborative Filtering Using an Incentivized Penalized User Model</span></h2>
</div>
<div class="clr"></div>
<div class="slider">
<div id="coin-slider"> <a href="#"><img src="images/slide1.jpg" width="960" height="294" alt="" /> </a> <a href="#"><img src="images/slide2.jpg" width="960" height="294" alt="" /> </a> <a href="#"><img src="images/slide3.jpg" width="960" height="294" alt="" /> </a> </div>
<div class="clr"></div>
</div>
<div class="clr"></div>
</div>
</div>
<div class="content">
<div class="content_resize">
<div class="mainbar">
<div class="article">
<h2> All Reciever Requests of <span class="style2"> <%=application.getAttribute("user")%></span></h2>
<div class="clr"></div>
<p></p>
<p>
<%@ include file="connect.jsp" %>
<%
try{
String user="",from="",date="",status="",dob="",contact="",location="",community="";
int i=0,id=0,count=1,count1=1;;
user = (String)application.getAttribute("user");
String str1 = "select * from requests where reqto='"+user+"' ";
Statement st1=connection.createStatement();
ResultSet rs1 = st1.executeQuery(str1);
while(rs1.next())
{
if(count==1)
{
count=count+1;
%>
<table width="655" border="1" cellpadding="0" cellspacing="0" font-size:14px;">
<tr>
<td width="40" height="28" valign="baseline" bgcolor="#FF0000" style="color: #2c83b0;"><div align="center" class="style15 style10 style7 style8">SI NO</div></td>
<td width="103" height="28" valign="baseline" bgcolor="#FF0000" style="color: #2c83b0;"><div align="center" class="style8 style6 style10 style15"><strong>Sender Image</strong></div></td>
<td width="103" height="28" valign="baseline" bgcolor="#FF0000" style="color: #2c83b0;"><div align="center" class="style8 style6 style10 style15"><strong>Requested from</strong></div></td>
<td width="101" height="28" valign="baseline" bgcolor="#FF0000" style="color: #2c83b0;"><div align="center" class="style8 style6 style10 style15"><strong>Date </strong></div></td>
<td width="101" height="28" valign="baseline" bgcolor="#FF0000" style="color: #2c83b0;"><div align="center" class="style8 style6 style10 style15"><strong>User Domain</strong></div></td>
<td width="101" height="28" valign="baseline" bgcolor="#FF0000" style="color: #2c83b0;"><div align="center" class="style8 style6 style10 style15"><strong>Status</strong></div></td>
<tr>
<%
}
id = rs1.getInt(1);
from = rs1.getString(2);
date = rs1.getString(4);
status = rs1.getString(5);
String str2 = "Select * from user where username = '"+from+"' ";
Statement st2 = connection.createStatement();
ResultSet rs2 = st2.executeQuery(str2);
if(rs2.next())
{
i = rs2.getInt(1);
dob = rs2.getString(7);
contact = rs2.getString(5);
location = rs2.getString(12);
community = rs2.getString(13);
}
%>
<tr>
<td valign="baseline" height="0"><div align="center" class="style16 style11 style6">
<p>
<%out.println(count1);%>
</p>
<p> </p>
</div></td>
<td width="111" rowspan="1" ><div class="style6" style="margin:10px 13px 10px 13px;">
<input name="image" type="image" src="admin_ProfilePic.jsp?id=<%=i%>" style="width:80px; height:80px;" /></div></td>
<td valign="baseline" height="0"><div align="center" class="style16 style11 style6">
<p>
<%out.println(from);%>
</p>
<p> </p>
</div></td>
<td valign="baseline" height="0"><div align="center" class="style16 style11 style6">
<p>
<%out.println(date);%>
</p>
<p> </p>
</div></td>
<td valign="baseline" height="0"><div align="center" class="style16 style11 style6">
<p>
<%out.println(community);%>
</p>
<p> </p>
</div></td>
<%
if(status.equalsIgnoreCase("Waiting"))
{
%>
<td valign="baseline" height="0"><div align="center" class="style16 style11 style6">
<p><a href="user_Request_Status.jsp?id=<%=id%>">Waiting</a></p>
<p> </p>
</div></td>
<%
}
else
{
%>
<td valign="baseline" height="0"><div align="center" class="style16 style11 style6">
<p>
<%out.println(status);%>
</p>
<p> </p>
</div></td>
<%
}
%>
</tr>
<%
}
connection.close();
}
catch(Exception e)
{
out.println(e.getMessage());
}
%>
<tr>
<td valign="baseline" height="0"> </td>
<td valign="baseline" height="0"> </td>
<td valign="baseline" height="0"> </td>
<td valign="baseline" height="0"> </td>
<td valign="baseline" height="0"> </td>
<td valign="baseline" height="0"> </td>
</tr>
</table>
</p>
<p> </p>
<p align="right"><a href="user_Request_Response.jsp">Back</a></p>
<div class="clr"></div>
</div>
<div class="article">
<div class="clr"></div>
<div class="clr"></div>
</div>
</div>
<div class="sidebar">
<div class="searchform">
</div>
<div class="clr"></div>
<div class="gadget">
<h2 class="star"><span>User </span> Menu</h2>
<div class="clr"></div>
<ul class="sb_menu">
<li><a href="user_Main.jsp"><span>User Main </span></a></li>
<li><a href="user_Login.jsp"><span>Log Out </span></a></li>
</ul>
</div>
</div>
<div class="clr"></div>
</div>
</div>
<div class="fbg"></div>
<div class="footer">
<div class="footer_resize">
<div style="clear:both;"></div>
</div>
</div>
</div>
</body>
</html>