-
Notifications
You must be signed in to change notification settings - Fork 21
/
page-profile.php
180 lines (159 loc) · 6.32 KB
/
page-profile.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
<?php
//To Handle Session Variables on This Page
session_start();
//If user Not logged in then redirect them back to homepage.
if(empty($_SESSION['id_user'])) {
header("Location: index.php");
exit();
}
require_once("db.php");
?>
<!doctype html>
<html lang="en">
<head>
<title>Candidate Profile</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<!-- VENDOR CSS -->
<link rel="stylesheet" href="dashboard.css">
<link rel="stylesheet" href="page-profile.css">
<link rel="stylesheet" href="assets/vendor/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/vendor/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="assets/vendor/linearicons/style.css">
<!-- MAIN CSS -->
<link rel="stylesheet" href="assets/css/main.css">
<!-- FOR DEMO PURPOSES ONLY. You should remove this in your project -->
<link rel="stylesheet" href="assets/css/demo.css">
<!-- GOOGLE FONTS -->
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700" rel="stylesheet">
<!-- ICONS -->
<link rel="apple-touch-icon" sizes="76x76" href="assets/img/apple-icon.png">
<link rel="icon" type="image/png" sizes="96x96" href="assets/img/favicon.png">
</head>
<body>
<!-- WRAPPER -->
<div id="wrapper">
<!-- END NAVBAR -->
<!-- LEFT SIDEBAR -->
<div id="sidebar-nav" class="sidebar">
<div class="sidebar-scroll">
<nav>
<ul class="nav">
<li><a href="dashboard_candidate.php" class="active"><i class="lnr lnr-home"></i> <span>Dashboard</span></a></li>
<li><a href="page-profile.php" class=""><i class="lnr lnr-user"></i> <span>Profile</span></a></li>
<li><a href="edit-profile.php" class=""><i class="lnr lnr-pencil"></i>Edit Profile</span></a></li>
<li><a href="applied-jobs.php" class=""><i class="lnr lnr-calendar-full"></i></span>Applied Jobs</span></a></li>
<li><a href="jobs.php" class=""><i class="lnr lnr-briefcase"></i> <span>Available Jobs</span></a></li>
<li><a href="logout.php"><i class="lnr lnr-arrow-right-circle"></i> Logout</span></a></li>
</ul>
</nav>
</div>
</div>
<!-- END LEFT SIDEBAR -->
<!-- MAIN -->
<div class="main">
<!-- MAIN CONTENT -->
<div class="main-content">
<div class="container-fluid">
<div class="panel panel-profile">
<div class="clearfix">
<!-- LEFT COLUMN -->
<div class="profile-left">
<!-- PROFILE HEADER -->
<div class="profile-header">
<div class="overlay"></div>
<div class="profile-main">
<img src="assets/img/user1.png" class="img-circle" alt="Avatar">
<h3 class="name"><?php echo $_SESSION['name']; ?></h3>
<span class="online-status status-available">Available</span>
</div>
<div class="profile-stat">
<div class="row">
<div class="col-md-4 stat-item">
45 <span>Available</span>
</div>
<div class="col-md-4 stat-item">
15 <span>Applied</span>
</div>
<div class="col-md-4 stat-item">
2 <span>Approved</span>
</div>
</div>
</div>
</div>
<!-- END PROFILE HEADER -->
<!-- PROFILE DETAIL -->
<div class="profile-info">
<h4 class="heading">Social</h4>
<ul class="list-inline social-icons">
<li><a href="#" class="facebook-bg"><i class="fa fa-facebook"></i></a></li>
<li><a href="#" class="twitter-bg"><i class="fa fa-twitter"></i></a></li>
<li><a href="#" class="google-plus-bg"><i class="fa fa-google-plus"></i></a></li>
<li><a href="#" class="github-bg"><i class="fa fa-github"></i></a></li>
</ul>
</div>
</div>
<!-- END PROFILE DETAIL -->
</div>
<?php
//Sql to get logged in user details.
$sql = "SELECT * FROM users WHERE id_user='$_SESSION[id_user]'";
$result = $conn->query($sql);
//If user exists then show his details.
if($result->num_rows > 0) {
while($row = $result->fetch_assoc()) {
?>
<!-- END LEFT COLUMN -->
<!-- RIGHT COLUMN -->
<div class="profile-right">
<div class="profile-info">
<ul class="list-unstyled list-justify">
<li><h4 class="heading">About<span><button type="submit" class="btn btn-primary btn-sm btn-block">Edit</button> </span></h4></li>
</ul>
<p>Interactively fashion excellent information after distinctive outsourcing.</p>
</div>
<!-- AWARDS -->
<!-- END AWARDS -->
<!-- TABBED CONTENT -->
<div class="profile-detail">
<div class="profile-info">
<h4 class="heading">Basic Info</h4>
<ul class="list-unstyled list-justify">
<li>Birthdate <span><?php echo $row['dob']; ?></span></li>
<li>Mobile <span><?php echo $row['contactno']; ?></span></li>
<li>Email <span><?php echo $row['email']; ?></span></li>
<li>Qualification<span><?php echo $row['qualification']; ?></span></li>
<li>Address<span><?php echo $row['address']; ?><?php echo $row['state']; ?></span></li>
<li>Website <span><a href="#">www.samisha.com</a></span></li>
</ul>
</div>
<!-- END TABBED CONTENT -->
</div>
<!-- END RIGHT COLUMN -->
</div>
</div>
</div>
</div>
<!-- END MAIN CONTENT -->
</div>
<!-- END MAIN -->
<div class="clearfix"></div>
<footer>
<div class="container-fluid">
<p class="copyright">© 2018 <a href="https://www.themeineed.com" target="_blank">Theme I Need</a>. All Rights Reserved.</p>
</div>
</footer>
</div>
<?php
}
}
?>
<!-- END WRAPPER -->
<!-- Javascript -->
<script src="assets/vendor/jquery/jquery.min.js"></script>
<script src="assets/vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="assets/vendor/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<script src="assets/scripts/klorofil-common.js"></script>
</body>
</html>