-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
140 lines (134 loc) · 3.64 KB
/
index.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
<?php
//index.php
include('database_connection.php');
include('function.php');
if(!isset($_SESSION["type"]))
{
header("location:login.php");
}
include('header.php');
?>
<br />
<div class="row">
<?php
if($_SESSION['type'] == 'master')
{
?>
<!--<div class="col-md-3"> -->
<div class="col-md-6">
<div class="panel panel-default">
<div class="panel-heading"><strong>Total User</strong></div>
<div class="panel-body" align="center">
<h1><?php echo count_total_user($connect); ?></h1>
</div>
</div>
</div>
<!--<div class="col-md-3"> -->
<div class="col-md-6">
<div class="panel panel-default">
<div class="panel-heading"><strong>Total Equipment</strong></div>
<div class="panel-body" align="center">
<h1><?php echo count_total_equipment($connect); ?></h1>
</div>
</div>
</div>
<!--
<div class="col-md-3">
<div class="panel panel-default">
<div class="panel-heading"><strong>Total Brand</strong></div>
<div class="panel-body" align="center">
<h1><?php //echo count_total_brand($connect); ?></h1>
</div>
</div>
</div>
<div class="col-md-3">
<div class="panel panel-default">
<div class="panel-heading"><strong>Total Item in Stock</strong></div>
<div class="panel-body" align="center">
<h1><?php //echo count_total_product($connect); ?></h1>
</div>
</div>
</div>
-->
<?php
}
?>
<div class="col-md-3">
<div class="panel panel-default">
<div class="panel-heading"><strong>Total Request Made</strong></div>
<div class="panel-body" align="center">
<h1><?php echo count_total_request($connect); ?></h1>
</div>
</div>
</div>
<div class="col-md-3">
<div class="panel panel-default">
<div class="panel-heading"><strong>Total Request Approved</strong></div>
<div class="panel-body" align="center">
<h1><?php echo count_total_request_approved($connect); ?></h1>
</div>
</div>
</div>
<div class="col-md-3">
<div class="panel panel-default">
<div class="panel-heading"><strong>Total Request Pending</strong></div>
<div class="panel-body" align="center">
<h1><?php echo count_total_request_pending($connect); ?></h1>
</div>
</div>
</div>
<div class="col-md-3">
<div class="panel panel-default">
<div class="panel-heading"><strong>Total Request Closed</strong></div>
<div class="panel-body" align="center">
<h1><?php echo count_total_request_closed($connect); ?></h1>
</div>
</div>
</div>
<!--
<div class="col-md-4">
<div class="panel panel-default">
<div class="panel-heading"><strong>Total Order Value</strong></div>
<div class="panel-body" align="center">
<h1>$<?php //echo count_total_order_value($connect); ?></h1>
</div>
</div>
</div>
<div class="col-md-4">
<div class="panel panel-default">
<div class="panel-heading"><strong>Total Cash Order Value</strong></div>
<div class="panel-body" align="center">
<h1>$<?php //echo count_total_cash_order_value($connect); ?></h1>
</div>
</div>
</div>
<div class="col-md-4">
<div class="panel panel-default">
<div class="panel-heading"><strong>Total Credit Order Value</strong></div>
<div class="panel-body" align="center">
<h1>$<?php //echo count_total_credit_order_value($connect); ?></h1>
</div>
</div>
</div>-->
<hr />
<?php
if($_SESSION['type'] == 'master')
{
?>
<!--
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading"><strong>Total Order Value User wise</strong></div>
<div class="panel-body" align="center">
<?php //echo get_user_wise_total_order($connect); ?>
</div>
</div>
</div>
-->
<?php
}
?>
</div>
<?php
include("footer.php");
?>