-
Notifications
You must be signed in to change notification settings - Fork 0
/
Job seeker profile.html
104 lines (94 loc) · 2.91 KB
/
Job seeker profile.html
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
<?php
//session_start();
// $_SESSION['username']
?>
<!DOCTYPE html>
<html>
<head>
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'/>
<link rel="stylesheet" type="text/css" href="style.css" />
<title>User Profile</title>
</head>
<body>
<h1 align='center'>Welcome <?php echo $loggedin_session; ?>,</h1>
<p align='center'> You are now logged in. you can logout by clicking on signout link given below.</p>
<div id="st"><a href="logout.php" id="st-btn" align "right">Sign Out</a></div>
<div id="contentbox">
<?php
$sql="SELECT skill,desired_salary,job_id,projects,Honors,hobby,language,publication FROM profile";
//*** execute the query
$result=mysql_query($sql);
$dbhost = 'localhost';
$dbuser='root';
$dbpass='root';
$dbname='IADFINAL';
//*** create a connection object
$conn = mysql_connect($dbhost, $dbuser, $dbpass)
or die (mysql_error());
mysql_select_db($dbname)
or die (mysql_error());
//*** die if no result
if (!$result)
die("Query Failed.");
?>
<?php
echo $rows['desired_salary'];
if ($result){
while($rows=mysql_fetch_assoc($result)){ ?>
<div id="signup">
<div id="signup-st">
<form id="signin" id="reg">
<div id="reg-head" class="headrg"><strong>Your Profile</strong></div>
<table border="0" align="left" cellpadding="2" cellspacing="0">
<tr id="lg-1">
<td class="tl-1"><div align="left" id="tb-name"><strong>Skill</strong></div></td>
<td class="tl-4"><?php echo $rows['skill']; ?></td>
</tr>
<tr id="lg-1">
<td class="tl-1"><div align="left" id="tb-name"><strong>Desired Salary</strong></div></td>
<td class="tl-4"><?php echo $rows['desired_salary']; ?></td>
</tr>
<tr id="lg-1">
<td class="tl-1"><div align="left" id="tb-name"><strong>Job Type</strong></div></td>
<td class="tl-4"><?php echo $rows['type_id']; ?></td>
</tr>
<tr id="lg-1">
<td class="tl-1"><div align="left" id="tb-name"><strong>Projects</strong></div></td>
<td class="tl-4"><?php echo $rows['projects']; ?></td>
</tr>
<tr id="lg-1">
<td class="tl-1"><div align="left" id="tb-name"><strong>Award</strong></div></td>
<td class="tl-4"><?php echo $rows['Honors']; ?></td>
</tr>
<tr id="lg-1">
<td class="tl-1"><div align="left" id="tb-name"><strong>Hobby</strong></div></td>
<td class="tl-4"><?php echo $rows['hobby']; ?></td>
</tr>
<tr id="lg-1">
<td class="tl-1"><div align="left" id="tb-name"><strong>Language</strong></div></td>
<td class="tl-4"><?php echo $rows['language']; ?></td>
</tr>
<tr id="lg-1">
<td class="tl-1"><div align="left" id="tb-name"><strong>Publication</strong></div></td>
<td class="tl-4"><?php echo $rows['publication']; ?></td>
</tr>
</table>
<?php
else { ?>
<li><img src="images/noresults.jpg"></li>
<?php } ?>
</form>
</div>
</div>
</div> <?php } ?>
</div>
</div>
<?php
// close connection;
mysql_close();
?>
</br>
<div id="footer">
</div>
</body>
</html>