-
Notifications
You must be signed in to change notification settings - Fork 2
/
admin.php
337 lines (289 loc) · 11.9 KB
/
admin.php
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
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
<!------------------------------------------>
<!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>
<style type="text/css">
body {
background-color:#2781BA;
background-image:url('images/bg1.gif');
}
table {
border: 0px red solid;
padding-top:0px;
margin-top:0px;
cellspacing:0px;
cellpadding:0px;
}
td {
border:0px green dotted;
}
table.login_tab {
background:rgba(255,255,255,0.9);
cellspacing:0px;
cellpadding:0px;
}
table.main_tab {
background:rgba(0,0,0,0);
width:70%;
}
td.login {
background-color:#C0C0C0;
padding-left:5px;
padding-right:5px;
}
td.login_table {
background:rgba(248,248,255,1);
padding-top:50px;
padding-left:40px;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
}
td.login_nam {
height:30px;
font-size:13pt;
color:white;
background-color:#3b5998;
padding-left:5px;
}
td.new {
height:30px;
font-weight:none;
font-size:11pt;
}
a {
color:#999933;
}
a:hover {
font-size:20pt;
}
td.marquee{
padding-top:1px;
padding-bottom:1px;
padding-left:130px;
background:rgba(0,0,0,1);
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
}
td.footer {
background-color:#2952A3;
background-image:url('images/tdback1.gif');
border-top: 1px grey solid;
color:#999933;
text-align:center;
font-size:8pt;
padding-bottom:5px;
padding-top:5px;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CapitalVia - Courier Management System</title>
<meta name="keywords" content="metro, free website template, beautiful grid, image grid menu, colorful theme" />
<meta name="description" content="Metro is a free website template by templatemo.com and it features jQuery horizontal scrolling among pages." />
<link href="templatemo_style.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.scrollTo-min.js"></script>
<script type="text/javascript" src="js/jquery.localscroll-min.js"></script>
<script type="text/javascript" src="js/init.js"></script>
<link rel="stylesheet" href="css/slimbox2.css" type="text/css" media="screen" />
<script type="text/JavaScript" src="js/slimbox2.js"></script>
<style type="text/css">
<!--
.style1 {color: #000000}
.style2 {
color: #000000
}
-->
</style>
<script type="text/javascript">
<!--
function MM_validateForm() { //v4.0
if (document.getElementById){
var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=document.getElementById(args[i]);
if (val) { nm=val.name; if ((val=val.value)!="") {
if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
} else if (test!='R') { num = parseFloat(val);
if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
min=test.substring(8,p); max=test.substring(p+1);
if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
} } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
} if (errors) alert('The following error(s) occurred:\n'+errors);
document.MM_returnValue = (errors == '');
} }
//-->
</script>
</head>
<body>
<div id="templatemo_header">
<div id="site_title">
<h2>Welcome Admin !!</h2>
</div>
</div>
<div id="templatemo_main">
<div id="content">
<div id="home" class="section">
<div id="home_about" class="box">
<h3><a href="index.php#contact">(Logout)</a></h3>
<p><strong>In this section, you can </br><li>1. View Employees</li></br><li>2. Remove Employees</li></br><li>3. View Courier and Courier Reports</li></br><li>4. Change Password</li></strong></p>
<p>Dedicated and reliable Courier Service system.</p>
</div>
<div id="home_gallery" class="box no_mr">
<a href="images/gallery/01-l.jpg" rel="lightbox[gallery]"><img src="images/gallery/01.jpg" alt="image 1" /></a>
<a href="images/gallery/02-l.jpg" rel="lightbox[gallery]"><img src="images/gallery/02.jpg" alt="image 2" /></a>
<a href="images/gallery/03-l.jpg" rel="lightbox[gallery]" class="no_mr"><img src="images/gallery/03.jpg" alt="image 3" /></a>
<a href="images/gallery/04-l.jpg" rel="lightbox[gallery]"><img src="images/gallery/04.jpg" alt="image 4" /></a>
<a href="images/gallery/05-l.jpg" rel="lightbox[gallery]"><img src="images/gallery/05.jpg" alt="image 5" /></a>
<a href="images/gallery/06-l.jpg" rel="lightbox[gallery]" class="no_mr"><img src="images/gallery/06.jpg" alt="image 6" /></a>
</div>
<div class="box home_box1 color1">
<a href="#services"><img src="images/employee.jpg" alt="Services" /></a>
</div>
<div class="box home_box1 color2">
<a href="#testimonial"><img src="images/employeeremove.jpg" alt="Testimonial" /></a>
</div>
<div class="box home_box2 color3" onclick="addc.php">
<div id="addc" onclick="addc.php">
<a href="report.php"><img src="images/report.jpg"></a>
<div align="center" class="clear h20"></div>
<h3 align="center">Add and View Couriers</h3>
</div>
</div>
<div class="box home_box1 color4 no_mr">
<a href="#contact"><img src="images/passw.jpg" alt="Contact" /></a>
</div>
</div> <!-- END of home -->
<div class="section section_with_padding" id="services">
<h2> View Employee List</h2>
<div class="half left">
<table>
<form action="viewemp.php" method="post" style="background-color:#000000">
<tr>
<td width="355" colspan='2' bgcolor="#000000" class='login' align="center"><input type='submit' name='submit' value='Click here to view the employee list'>
</td>
</tr>
</form>
</table>
</div>
<div class="clear h40"></div>
<div class="img_border img_fr">
</div>
<div class="half left">
</div>
<a href="#home" class="slider_nav_btn home_btn">home</a>
<a href="#home" class="slider_nav_btn previous_btn">Previous</a>
<a href="#testimonial" class="slider_nav_btn next_btn">Next</a>
</div>
<div class="section section_with_padding" id="testimonial">
<h2>Remove Employee</h2>
<p> </p>
<div class="clear h40"></div>
<div class="half left">
<table cellpadding="4" cellspacing="0" align="center" width="70%">
<script language="JavaScript" type="text/javascript">
function validate()
{
if (form.Consignment.value == "" )
{
alert("Consignment No is required.");
form.track.focus( );
return false;
}
}
</script>
<tbody>
<tr>
<td class="TrackTitle" valign="top"><div class="newtext" align="center"><strong> Remove Employee<br />
</strong></div></td>
</tr>
<tr>
<td class="bottom" valign="middle"> </td>
</tr>
<tr bgcolor="EFEFEF">
<td class="aalpha" valign="top"><div align="center" class="style1">Enter the Employee's username</div></td>
</tr>
<tr bgcolor="EFEFEF">
<td valign="top"><div align="center">
<form action="removeemp.php" method="post" name="form" id="form" >
<input name="emp" class="gentxt" id="emp" maxlength="50" type="text" />
<input name="Submit" type="submit" class="gentxt" value="Remove Employee">
</form>
<span class="gentxt style1">Ex: rasesh </span> </div></td>
</tr>
<tr bgcolor="EFEFEF">
<td valign="top"> </td>
</tr>
<tr bgcolor="EFEFEF">
<td class="TrackNormalBlue" bgcolor="#FFFFFF" valign="top"> </td>
</tr>
</tbody>
</table>
<p> </p>
</div>
<div class="half right"></div>
<div class="clear h40"></div>
<div class="half left"></div>
<div class="half right">
<p><a href="#home" class="slider_nav_btn home_btn">home</a>
<a href="#services" class="slider_nav_btn previous_btn">Previous</a>
<a href="#contact" class="slider_nav_btn next_btn">Next</a> </p>
</div>
</div>
<div class="section section_with_padding" id="contact">
<h2>Change Password</h2>
<div class="half left">
<h4> </h4>
<table width="91%" align='center' cellpadding= "0" cellspacing= "0" class='main_tab'>
<tr>
<td class='login_table' align='left'><form action='changepassa.php' method='post'>
<table class="login_tab">
<td class='login_table' align='left'>
<tr>
<td colspan="2" class='login_nam' valign='middle'>Change Password</td>
</tr>
<tr>
<td class='login style1'>Username:</td>
<td class='login'><input type='text' name='username'> </td>
</tr>
<tr>
<td class='login style1'>Old Password:</td>
<td class='login'><input type='password' name='opassword'> </td>
</tr>
<tr>
<td class='login style1'>New Password:</td>
<td class='login'><input type='password' name='npassword'> </td>
</tr>
<tr>
<td class='login' colspan='2'><input type='submit' name='submit' value='Change'>
</td>
</tr>
</table>
</form> </td>
</tr>
</table>
</div>
<div class="half right">
<h4>You are here --></h4>
<h4><br />
</h4>
<div class="clear h20"></div>
<div class="img_nom img_border"><span></span>
<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.co.in/maps?f=q&source=s_q&hl=en&geocode=&q=nit+rourkela&aq=&sll=22.22777,84.897738&sspn=0.090099,0.169086&ie=UTF8&hq=nit+rourkela&t=m&ll=22.250437,84.905196&spn=0.011732,0.022935&output=embed"></iframe><br /><small><a href="https://maps.google.co.in/maps?f=q&source=embed&hl=en&geocode=&q=nit+rourkela&aq=&sll=22.22777,84.897738&sspn=0.090099,0.169086&ie=UTF8&hq=nit+rourkela&t=m&ll=22.250437,84.905196&spn=0.011732,0.022935" style="color:#0000FF;text-align:left">View Larger Map</a></small>
</div>
<a href="#home" class="slider_nav_btn home_btn">home</a>
<a href="#testimonial" class="slider_nav_btn previous_btn">Previous</a>
</div>
</div>
</div>
</div>
<div id="templatemo_footer">
Copyright © 2016 <a href="#">Amit Kumar Jaiswal</a> | Designed using <a href="http://www.templatemo.com" target="_parent">PHP and MySQL</a>
</div>
<?php
print "Hello World !!";
?>
</body>
</html>