-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathview_evaluation.php
More file actions
75 lines (75 loc) · 2.32 KB
/
view_evaluation.php
File metadata and controls
75 lines (75 loc) · 2.32 KB
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
<?php
include 'db_connect.php';
if(isset($_GET['id'])){
$qry = $conn->query("SELECT r.*,concat(e.lastname,', ',e.firstname,' ',e.middlename) as name,t.task,concat(ev.lastname,', ',ev.firstname,' ',ev.middlename) as ename,((((r.efficiency + r.timeliness + r.quality + r.accuracy)/4)/5) * 100) as pa FROM ratings r inner join employee_list e on e.id = r.employee_id inner join task_list t on t.id = r.task_id inner join evaluator_list ev on ev.id = r.evaluator_id where r.id = ".$_GET['id'])->fetch_array();
foreach($qry as $k => $v){
$$k = $v;
}
}
?>
<div class="container-fluid">
<div class="col-lg-12">
<div class="row">
<div class="col-md-6">
<dl>
<dt><b class="border-bottom border-primary">Task</b></dt>
<dd><?php echo ucwords($task) ?></dd>
</dl>
<dl>
<dt><b class="border-bottom border-primary">Assign To</b></dt>
<dd><?php echo ucwords($name) ?></dd>
</dl>
<dl>
<dt><b class="border-bottom border-primary">Evaluator</b></dt>
<dd><?php echo ucwords($ename) ?></dd>
</dl>
<dl>
<dt><b class="border-bottom border-primary">Date Evaluated</b></dt>
<dd><?php echo date("m d,Y",strtotime($date_created)) ?></dd>
</dl>
<dl>
<dt><b class="border-bottom border-primary">Remarks</b></dt>
<dd><?php echo $remarks ?></dd>
</dl>
</div>
<div class="col-md-6">
<b>Ratings:</b>
<dl>
<dt><b class="border-bottom border-primary">Efficiency</b></dt>
<dd><?php echo $efficiency ?></dd>
</dl>
<dl>
<dt><b class="border-bottom border-primary">Timeliness</b></dt>
<dd><?php echo $timeliness ?></dd>
</dl>
<dl>
<dt><b class="border-bottom border-primary">Quality</b></dt>
<dd><?php echo $quality ?></dd>
</dl>
<dl>
<dt><b class="border-bottom border-primary">Accuracy</b></dt>
<dd><?php echo $accuracy ?></dd>
</dl>
<dl>
<dt><b class="border-bottom border-primary">Performance Average</b></dt>
<dd><?php echo number_format($pa,2).'%' ?></dd>
</dl>
</div>
</div>
</div>
</div>
<style>
#uni_modal .modal-footer{
display: none
}
#uni_modal .modal-footer.display{
display: flex
}
#post-field{
max-height: 70vh;
overflow: auto;
}
</style>
<div class="modal-footer display p-0 m-0">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>