forked from JintoAntony/Job-Castle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
process_jobseeker_login.php
333 lines (290 loc) · 9.4 KB
/
process_jobseeker_login.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
<?php
session_start();
$link=mysql_connect("localhost","root","root")or die("can not connect");
mysql_select_db("jobportal",$link) or die("can not select database");
$q = "select * from employees where ee_email = '".$_POST['email']."'";
$res = mysql_query($q,$link) or die("wrong query");
$row = mysql_fetch_assoc($res);
if(!empty($row))
{
if($_POST['password']==$row['ee_password'])
{
//login
$_SESSION = array();
$_SESSION['email']=$row['ee_email'];
$_SESSION['eeid']=$row['ee_id'];
$_SESSION['category']='jobseeker';
$_SESSION['status']=1;
$_SESSION['jobseeker']=1;
header("location:jobseeker_home.php");
}
else
{
// echo "Wrong Password";
}
}
else
{
// echo "No Such User";
}
//back to this page
//header("location:jobseeker_registration.html");
?>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Search Job</title>
<link rel="stylesheet" type="text/css" href="css/stylejobseeker.css" />
<link rel="stylesheet" type="text/css" href="js/style.js" />
<link rel="stylesheet" type="text/css" href="lib/jquery.ad-gallery.css">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="lib/jquery.ad-gallery.js"></script>
<script type="text/javascript">
$(function() {
$('img.image1').data('ad-desc', 'Whoa! This description is set through elm.data("ad-desc") instead of using the longdesc attribute.<br>And it contains <strong>H</strong>ow <strong>T</strong>o <strong>M</strong>eet <strong>L</strong>adies... <em>What?</em> That aint what HTML stands for? Man...');
$('img.image1').data('ad-title', 'Title through $.data');
$('img.image4').data('ad-desc', 'This image is wider than the wrapper, so it has been scaled down');
$('img.image5').data('ad-desc', 'This image is higher than the wrapper, so it has been scaled down');
var galleries = $('.ad-gallery').adGallery();
$('#switch-effect').change(
function() {
galleries[0].settings.effect = $(this).val();
return false;
}
);
$('#toggle-slideshow').click(
function() {
galleries[0].slideshow.toggle();
return false;
}
);
$('#toggle-description').click(
function() {
if(!galleries[0].settings.description_wrapper) {
galleries[0].settings.description_wrapper = $('#descriptions');
} else {
galleries[0].settings.description_wrapper = false;
}
return false;
}
);
});
</script>
<style type="text/css">
* {
font-family: Arial, Helvetica, sans-serif;
color: #333;
line-height: normal;
}
h2 {
margin-top: 1.2em;
margin-bottom: 0;
padding: 0;
border-bottom: 1px dotted #dedede;
}
h3 {
margin-top: 1.2em;
margin-bottom: 0;
padding: 0;
}
.example {
border: 1px solid #CCC;
background: #f2f2f2;
padding: 10px;
}
ul {
list-style-image:url(list-style.gif);
}
pre {
font-family: "Lucida Console", "Courier New", Verdana;
border: 1px solid #CCC;
background: #f2f2f2;
padding: 10px;
}
code {
font-family: "Lucida Console", "Courier New", Verdana;
margin: 0;
padding: 0;
}
#gallery {
background: #fff;
padding-top: 0px;
padding-right: 30px;
padding-bottom: 0px;
padding-left: 30px;
width:1000px; margin:0 auto;
}
#descriptions {
position: relative;
height: 50px;
background: #EEE;
margin-top: 10px;
width: 640px;
padding: 10px;
overflow: hidden;
}
#descriptions .ad-image-description {
position: absolute;
}
#descriptions .ad-image-description .ad-description-title {
display: block;
}
</style>
<style>
input[type=text]{ color:#ccc;}
input[type=text]:focus{ color:#71716f;}
input.focus {
border: 1px solid #F00;
}
</style>
</head>
<body>
<div class="home_header_main">
<div id="home_header">
<div class="home_logo"><img src="images/jobs_castle_logo.png" width="180" /></div>
<div class="home_header_right">
<div class="home_right_topmenubar">
<?php
include ('includes/top.inc.php');
?>
</div>
<div class="home_menubar">
<div class="home_socialmedia_icons">
<ul>
<li><a href="#"><img src="images/techno.png" width="23" /></a></li>
<li><a href="#"><img src="images/twitter.png" width="23" /></a></li>
<li><a href="#"><img src="images/fb.png" width="23" /></a></li>
<li><a href="#"><img src="images/in.png" width="23" /></a></li>
</ul>
</div>
<div class="home_menubar_manu">
<?php
include ('includes/menu.inc.php');
?>
</div>
</div>
</div>
</div>
</div>
<div class="clear_both"> </div>
<div class="login_banner_main">
<div id="login_banner_duplicat">
<div class="login_incorrect">
Username or Password is incorrect
</div>
<div class="login_div">
<style>
input[type=text]{ color:#ccc;}
input[type=text]:focus{ color:#71716f;}
input.focus {
border: 1px solid #F00;
}
</style>
<form name="jobseeker_login" action="process_jobseeker_login.php" method="post" >
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<span style="color:red";>Wrong username or password...! </span>
<tr>
<td height="35" class="login_box">Login</td>
</tr>
<tr>
<td height="auto" style="padding-top:25px;">Email</td>
</tr>
<tr>
<td height="auto" style="padding:0px;">
<input type="text" value="Enter your email id" class="login_select"
name="email" id="email"
onblur="if(value=='') value = 'Enter your email id'"
onfocus="if(value=='Enter your email id') value = ''"
/> </td>
</tr>
<tr>
<td height="auto" style="padding-top:25px;" >Password</td>
</tr>
<tr>
<td height="auto"><input type="password" value="Password"
class="login_select"
name="password" id="email"
onblur="if(value=='') value = 'Password'"
onfocus="if(value=='Password') value = ''"/></td>
</tr>
<tr>
<td height="71" ><input type="submit" value="Login" class="login_submit" /></td>
</tr>
<tr>
<td height="50"><a href="#">Forgot Password</a> / <a href="#">Register Now</a></td>
</tr>
</table>
</div>
</div>
</div>
<div id="container">
<div id="gallery" class="ad-gallery">
<div class="ad-nav">
<div class="ad-thumbs">
<ul class="ad-thumb-list">
<li>
<a href="#">
<img src="images/thumbs/t1.jpg" class="image0">
</a>
</li>
<li>
<a href="#" id="t2">
<img src="images/thumbs/t2.jpg" title="A title for 2.jpg" alt="This is a nice, and incredibly descriptive, description of the image 2.jpg" class="image6">
</a>
</li>
<li>
<a href="#">
<img src="images/thumbs/t3.jpg" title="A title for 3.jpg" alt="This is a nice, and incredibly descriptive, description of the image 3.jpg" class="image7">
</a>
</li>
<li>
<a href="#">
<img src="images/thumbs/t4.jpg" title="A title for 4.jpg" alt="This is a nice, and incredibly descriptive, description of the image 4.jpg" class="image8">
</a>
</li>
<li>
<a href="#">
<img src="images/thumbs/t5.jpg" title="A title for 5.jpg" alt="This is a nice, and incredibly descriptive, description of the image 5.jpg" class="image9">
</a>
</li>
<li>
<a href="#">
<img src="images/thumbs/t6.jpg" title="A title for 6.jpg" alt="This is a nice, and incredibly descriptive, description of the image 6.jpg" class="image10">
</a>
</li>
<li>
<a href="#">
<img src="images/thumbs/t7.jpg" title="A title for 7.jpg" alt="This is a nice, and incredibly descriptive, description of the image 7.jpg" class="image11">
</a>
</li>
<li>
<a href="#">
<img src="images/thumbs/t8.jpg" title="A title for 8.jpg" alt="This is a nice, and incredibly descriptive, description of the image 8.jpg" class="image12">
</a>
</li>
<li>
<a href="#">
<img src="images/thumbs/t9.jpg" title="A title for 9.jpg" alt="This is a nice, and incredibly descriptive, description of the image 9.jpg" class="image13">
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="clear_both"> </div>
<div id="home_footer_main">
<div id="home_footer">
<div id="home_footer_slice_one"> <a href="#"><img src="images/jobs_castle_logo.png" width="100" border="none"/></a> </div>
<div id="home_footer_slice_two"> <span class="home_foote_span">Jobs Castle Links</span><br />
<?php
include ('includes/footer.inc.php');
?>
<div id="home_footer_slice_five"> <span class="home_foote_span_second"><i>Free Speech:</i></span><br />
<br />
<span class="speech_number">8-800-845-4587, 8-800-845-8578</span> </div>
</div>
</div>
</body>
</html>