-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathview_evaluator.php
35 lines (35 loc) · 1.39 KB
/
view_evaluator.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
<?php include 'db_connect.php' ?>
<?php
if(isset($_GET['id'])){
$qry = $conn->query("SELECT *,concat(lastname,', ',firstname,' ',middlename) as name FROM evaluator_list where id = ".$_GET['id'])->fetch_array();
foreach($qry as $k => $v){
$$k = $v;
}
}
?>
<div class="container-fluid">
<div class="card card-widget widget-user shadow">
<div class="widget-user-header bg-dark">
<h3 class="widget-user-username"><?php echo ucwords($name) ?></h3>
<h5 class="widget-user-desc"><?php echo $email ?></h5>
</div>
<div class="widget-user-image">
<?php if(empty($avatar) || (!empty($avatar) && !is_file('assets/uploads/'.$avatar))): ?>
<span class="brand-image img-circle elevation-2 d-flex justify-content-center align-items-center bg-primary text-white font-weight-500" style="width: 90px;height:90px"><h4><?php echo strtoupper(substr($firstname, 0,1).substr($lastname, 0,1)) ?></h4></span>
<?php else: ?>
<img class="img-circle elevation-2" src="assets/uploads/<?php echo $avatar ?>" alt="Avatar de Usuario" style="width: 90px;height:90px;object-fit: cover">
<?php endif ?>
</div>
</div>
</div>
<div class="modal-footer display p-0 m-0">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cerrar</button>
</div>
<style>
#uni_modal .modal-footer{
display: none
}
#uni_modal .modal-footer.display{
display: flex
}
</style>