-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader-summary-student.php
More file actions
executable file
·107 lines (102 loc) · 4.79 KB
/
header-summary-student.php
File metadata and controls
executable file
·107 lines (102 loc) · 4.79 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
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
<!-- Content Row -->
<!--HEADER SUMMARY FOR STUDENT-->
<div class="row">
<!-- Pending Payments -->
<div class="col-xl-3 col-md-6 mb-4">
<div class="card border-left-primary shadow h-100 py-2">
<div class="card-body">
<div class="row no-gutters align-items-center">
<div class="col mr-2">
<div class="text-xs font-weight-bold text-primary text-uppercase mb-1">
Pending Payments</div>
<!-- Count Bills-->
<?php
$sql = "SELECT * FROM student_bill_view where email = '$email'";
$query = mysqli_query($conn, $sql);
$count = mysqli_num_rows($query);
?>
<div class="h5 mb-0 font-weight-bold text-gray-800"><?php echo $count; ?></div>
</div>
<div class="col-auto">
<i class="fas fa-money-bill-alt fa-2x text-gray-300"></i>
</div>
</div>
</div>
</div>
</div>
<!-- Pending Documents -->
<div class="col-xl-3 col-md-6 mb-4">
<div class="card border-left-success shadow h-100 py-2">
<div class="card-body">
<div class="row no-gutters align-items-center">
<div class="col mr-2">
<div class="text-xs font-weight-bold text-success text-uppercase mb-1">
Pending Documents</div>
<!-- Count document that are not uploaded-->
<?php
$student = "SELECT student_id from student where email ='$email'";
$run = mysqli_query($conn, $student);
$student_i = mysqli_fetch_assoc($run);
$student_id = $student_i['student_id'];
$sql = "SELECT DISTINCT * FROM unsubmitted_docs_view WHERE student_id='$student_id'";
$query = mysqli_query($conn, $sql);
$count_two = mysqli_num_rows($query);
?>
<div class="h5 mb-0 font-weight-bold text-gray-800"><?php echo $count_two; ?></div>
</div>
<div class="col-auto">
<i class="fas fa-file fa-2x text-gray-300"></i>
</div>
</div>
</div>
</div>
</div>
<!-- Helpdesk -->
<div class="col-xl-3 col-md-6 mb-4">
<div class="card border-left-info shadow h-100 py-2">
<div class="card-body">
<div class="row no-gutters align-items-center">
<div class="col mr-2">
<div class="text-xs font-weight-bold text-info text-uppercase mb-1">HelpDesk Requests
</div>
<div class="row no-gutters align-items-center">
<div class="col-auto">
<?php
$sql = "SELECT * FROM student_service where email = '$email'";
$query = mysqli_query($conn, $sql);
$count = mysqli_num_rows($query);
?>
<div class="h5 mb-0 mr-3 font-weight-bold text-gray-800"><?php echo $count; ?></div>
</div>
</div>
</div>
<div class="col-auto">
<i class="fas fa-clipboard-list fa-2x text-gray-300"></i>
</div>
</div>
</div>
</div>
</div>
<!-- Deans Appointment -->
<div class="col-xl-3 col-md-6 mb-4">
<div class="card border-left-warning shadow h-100 py-2">
<div class="card-body">
<div class="row no-gutters align-items-center">
<div class="col mr-2">
<div class="text-xs font-weight-bold text-warning text-uppercase mb-1">
Dean's Appointment</div>
<?php
$sql = "SELECT * FROM dean_appointment where email = '$email' AND status = 'approved'";
$query = mysqli_query($conn, $sql);
$count = mysqli_num_rows($query);
?>
<div class="h5 mb-0 font-weight-bold text-gray-800"><?php echo $count; ?></div>
</div>
<div class="col-auto">
<i class="fas fa-user-clock fa-2x text-gray-300"></i>
</div>
</div>
</div>
</div>
</div>
</div>