-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile.php
52 lines (52 loc) · 2.51 KB
/
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
<?php
$user = $conn->query("SELECT s.*,d.name as department, c.name as curriculum,CONCAT(lastname,', ',firstname,' ',middlename) as fullname FROM student_list s inner join department_list d on s.department_id = d.id inner join curriculum_list c on s.curriculum_id = c.id where s.id ='{$_settings->userdata('id')}'");
foreach($user->fetch_array() as $k =>$v){
$$k = $v;
}
?>
<style>
.student-img{
object-fit:scale-down;
object-position:center center;
height:200px;
width:200px;
}
</style>
<div class="content py-4">
<div class="card card-outline card-primary shadow rounded-0">
<div class="card-header rounded-0">
<h5 class="card-title">Your Information:</h5>
<div class="card-tools">
<a href="./?page=my_archives" class="btn btn-default bg-primary btn-flat"><i class="fa fa-archive"></i> My Archives</a>
<a href="./?page=manage_account" class="btn btn-default bg-navy btn-flat"><i class="fa fa-edit"></i> Update Account</a>
</div>
</div>
<div class="card-body rounded-0">
<div class="container-fluid">
<div class="col-md-12">
<div class="row">
<div class="col-lg-4 col-sm-12">
<center>
<img src="<?= validate_image($avatar) ?>" alt="Student Image" class="img-fluid student-img bg-gradient-dark border">
</center>
</div>
<div class="col-lg-8 col-sm-12">
<dl>
<dt class="text-navy">Student Name:</dt>
<dd class="pl-4"><?= ucwords($fullname) ?></dd>
<dt class="text-navy">Gender:</dt>
<dd class="pl-4"><?= ucwords($gender) ?></dd>
<dt class="text-navy">Email:</dt>
<dd class="pl-4"><?= $email ?></dd>
<dt class="text-navy">Department:</dt>
<dd class="pl-4"><?= ucwords($department) ?></dd>
<dt class="text-navy">Curriculum:</dt>
<dd class="pl-4"><?= ucwords($curriculum) ?></dd>
</dl>
</div>
</div>
</div>
</div>
</div>
</div>
</div>