-
Notifications
You must be signed in to change notification settings - Fork 1
/
cloudfile1.jsp
203 lines (138 loc) · 5.13 KB
/
cloudfile1.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
<%@ page import="java.sql.*,databaseconnection.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Deduplication</title>
<link href="css/style.css" rel="stylesheet" type="text/css" media="screen" />
<link type="text/css" rel="stylesheet" href="css/dropdown.css" />
<script src="js/bootstrap.js"></script>
<script type="text/javascript" src="js/jquery.min.js" ></script>
<script type="text/javascript">
function valid()
{
var a = document.form.uname.value;
var b = document.form.fname.value;
var c = document.form.pass.value;
var d = document.form.mobile.value;
if(document.form.mydropdown.selectedIndex==0)
{
alert("Choose any option from the list");
document.form.mydropdown.focus() ;
return false;
}
if(a==""){
alert("Enter Your User-Id");
document.form.uname.focus();
return false;
}
if(c==""){
alert("Enter Your Password");
document.form.pass.focus();
return false;
}
if(b==""){
alert("Enter Your Name");
document.form.fname.focus();
return false;
}
}
</script>
</head>
<body>
<div id="wrapper">
<div id="header-wrapper" class="container">
<div id="header" class="container">
<h1 style="padding:10px;padding-top:15px;padding-left:40px;line-height:40px;color:#FFFFFF;">A Hybrid Cloud Approach for Secure Authorized
<br />
<font style="margin-left:220px;"> Deduplication </font></h1>
</div>
<div><img src="images/img03.png" width="1000" height="40" alt="" /></div>
</div>
<!-- end #header -->
<div id="banner">
<ul class="nav nav-pills" style="float:right;margin-top:-25px;">
<li><a href="#" style="font-size:18px;margin-left:10px;margin-right:10px;" >
Welcome <font color="#FF33FF"> Admin</font></a></li>
<li class="active"><a href="adminhome.jsp" style="font-size:18px;margin-left:10px;margin-right:10px;">Home</a></li>
<li><a href="index.html" style="font-size:18px;margin-left:10px;margin-right:10px;" >Sign Out</a></li>
</ul>
</div>
<div id="page" style="margin-top:25px;">
<div id="content">
<h3 class="title"><u>Admin Home</u></h3>
<div style="clear: both;"> </div>
<div class="well" style="width:930px;height:auto;float:left;border:1px #000 solid;margin:15px;margin-left:-35px;">
<form action="ccc.jsp" method="post" name="form" onsubmit="return valid()" >
<table class="table table-striped table-hover">
<thead style="background-color:#FC9;color:#F0C;font-size:20px;">
<tr>
<th>File_Name</th>
<th>File_Size</th>
<th>File_KEY</th>
<th>Uploaded By</th>
<th align="center" colspan="2"> Shared Type</th>
</tr>
</thead>
<tbody style="color:#093;font-size:18px;">
<%
Connection con = null;
String user_id=null,fname=null,email=null,password=null,mobile=null,type=null,status=null;
try
{
con=database.getconnection();
Statement st=con.createStatement();
ResultSet rs = st.executeQuery("SELECT * FROM upload_file;");
while(rs.next())
{
user_id=rs.getString(1);
fname=rs.getString(2);
email=rs.getString(3);
password=rs.getString(4);
mobile=rs.getString(5);
type=rs.getString(6);
status=rs.getString(7);
%>
<tr>
<td><%=user_id%></td>
<td><%=email%></td>
<td><%=mobile%></td>
<td><%=type%></td>
<%
String kk=user_id+","+mobile+","+"normal";
String kkk=user_id+","+mobile+","+"key";
%>
<td>
<a href="normal1.jsp?<%=kk%>">Normal</a>
</td>
<td>
<a href="normal1.jsp?<%=kkk%>">Key</a>
</td>
</tr>
<%
}
}
catch (Exception e) {
e.printStackTrace();
}
%>
</tbody>
</table>
</form>
</div>
</div>
<!-- end #content -->
<!-- end #sidebar -->
<div style="clear: both;"> </div>
</div>
<div class="container"><img src="images/img03.png" width="1000" height="40" alt="" /></div>
<!-- end #page -->
</div>
<div id="footer-content"></div>
<div id="footer">
</div>
<!-- end #footer -->
</body>
</html>