forked from beisong7/career
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathview_user.php
203 lines (176 loc) · 8.07 KB
/
view_user.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
<?php
$script['file'] = 'public/js/vendor/applyjob.js';
$active = null;
include_once ('config/director.php');
include_once('layout/header.php');
include_once ('core/functionality.php');
include_once ('core/alldata.php');
include_once ('config/auth.php');
include_once ('core/path_data.php');
?>
<br>
<br>
<div style="min-height: 550px">
<div class="panel panel-default">
<div class="panel-heading">
<b><?php
echo ucfirst($data['fname']) . " " . ucfirst($data['lname']);
$user_cv = getUserCv($data['id']);
?>
</b>
</div>
<div class="panel-body" style="margin: 0; padding: 0">
<?php
if(count($user_cv) < 1){ ?>
<h3 class="text-center" style="padding: 20px;"> <b><?php echo ucfirst($data['fname']) ?> does not have a Digital CV to preview.</b></h3>
<?php }else{ ?>
<div class="row" style="padding: 20px">
<div class="col-xs-3">
<?php
if($data['image'] == '' or $data['image'] == null){
$img = 'public/assets/default.png';
} else{
$img = $data['image'];
}
?>
<img class="img-circle img-fit" src="<?php echo "public/uploads/". $img;?>" alt="" style="margin: 20px">
<br>
<p style="padding-left: 25%">
<small>User Profile ratings</small><br>
<b>
<?php
$uk = getUStars($data['id']);
// echo $uk;
$k=0;
for($k; $k < $uk; $k++){}
$key = $k - $uk;
if($key > 0){
for($v = 0; $v < $uk; $v++){
if($v!==0)
echo "<i class='fa fa-star'></i> ";
$i = $v;
}
// echo $i;
$r = $uk - ($i - 1);
$c = 0;
if($r > 0){
$c = 5 - ($i+1);
echo "<i class='fa fa-star-half-o'></i> ";
}
for($x =0; $x<$c;$x++){
echo "<i class='fa fa-star-o'></i> ";
}
}else{
$i = 0;
for($i; $i < $uk; $i++){
echo "<i class='fa fa-star'></i> ";
}
$c = 5 - $i;
for($x =0; $x<$c;$x++){
echo "<i class='fa fa-star-o'></i> ";
}
}
?>
</b>
</p>
</div>
<div class="col-xs-9">
<h3><b>Contact Information</b></h3>
<hr style="margin-top:1px; margin-bottom: 7px;">
<h5 class="clearfix">
<b>Address</b> - <span class=""><?php if( trim($data['address']) == ''){echo 'Not Available';}else{echo $data['address'];} ?></span>
</h5>
<hr style="margin-top:1px; margin-bottom: 7px;">
<hr style="margin-top:1px; margin-bottom: 7px;">
<h5 class="">
<b>Email</b> - <span class=""><?php if( trim($data['email']) == ''){echo 'Not Available';}else{echo $data['email'];} ?></span>
</h5>
<hr style="margin-top:1px; margin-bottom: 7px;">
<h5 class="">
<b>Phone</b> - <span class=""><?php if( trim($data['phone']) == ''){echo 'Not Available';}else{echo $data['phone'];} ?></span>
</h5>
<hr style="margin-top:1px; margin-bottom: 7px;">
<h5 class="">
<b>Location</b> - <span class=""><?php if( trim($data['location']) == ''){echo 'Not Available';}else{echo $data['location'];} ?></span>
</h5>
<hr style="margin-top:1px; margin-bottom: 7px;">
<h5 class="">
<b>Date of Birth</b> - <span class=""><?php if( trim($data['dob']) == ''){echo 'Not Available';}else{echo date('F d, Y', strtotime($data['dob']));} ?></span>
</h5>
<hr style="margin-top:1px; margin-bottom: 7px;">
</div>
</div>
<div class="row" style="padding: 20px">
<hr>
<h3><b>Educational and Experience</b></h3>
<hr style="margin-top:1px; margin-bottom: 7px;">
<div style="width: 100%; padding: 20px" class="clearfix">
<h5 class="list-group-item">
<b>Educational Level</b> -
<span class="">
<?php echo getMinReq($user_cv['edu']) ?>
</span>
</h5>
<h5 class="list-group-item">
<b>Functional Areas</b> -
<span class="">
<?php
echo $user_cv['fun_areas'];
?>
</span>
</h5>
<h5 class="list-group-item">
<b>Experience</b> -
<span class="">
<?php
echo $user_cv['exp'];
?>
Years
</span>
</h5>
<h5 class="list-group-item">
<b>Hobbies</b> -
<span class="">
<?php
echo $user_cv['hobbies'];
?>
</span>
</h5>
<h5 class="list-group-item">
<b>Languages Spoken</b> -
<span class="">
<?php
echo $user_cv['lang'];
?>
</span>
</h5>
<h5 class="list-group-item">
<b>Core Areas of Specialization</b> -
<span class="">
<?php
echo $user_cv['core_area'];
?>
</span>
</h5>
<h5 class="list-group-item">
<b>Referee</b> -
<span class="">
<?php
if(trim($user_cv['referee']) == ''){
echo 'Not Available';
}else{
echo $user_cv['referee'];
}
?>
</span>
</h5>
</div>
</div>
<?php }
?>
</div>
</div>
</div>
<?php
include_once 'layout/footer.php';
?>