-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.php
More file actions
126 lines (117 loc) · 3.7 KB
/
index.php
File metadata and controls
126 lines (117 loc) · 3.7 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<?php
include('include/header.php');
?>
<!-- Page Content -->
<div class="container">
<br><br>
<!-- Simple Invoice System Cards -->
<div class="row">
<div class="col-xl-3 col-sm-6 mb-3">
<div class="card bg-light border-info text-info o-hidden h-100">
<div class="card-body">
<div class="card-body-icon">
<h2><i class="fas fa-file-invoice-dollar"></i></h2>
</div>
<h4><b id="total_orders"></b> Total Invoices</h4>
</div>
<a class="card-footer border-info text-muted clearfix small z-1" href="invoice.php">
<span class="float-left">View Details</span>
<span class="float-right">
<i class="fas fa-angle-right"></i>
</span>
</a>
</div>
</div>
<div class="col-xl-3 col-sm-6 mb-3">
<div class="card bg-light border-info text-info o-hidden h-100">
<div class="card-body">
<div class="card-body-icon">
<h2><i class="fas fa-users"></i></h2>
</div>
<h4><b id="total_users"></b> Total Users</h4>
</div>
<a class="card-footer border-info text-muted clearfix small z-1" href="user.php">
<span class="float-left">View Details</span>
<span class="float-right">
<i class="fas fa-angle-right"></i>
</span>
</a>
</div>
</div>
<div class="col-xl-3 col-sm-6 mb-3">
<div class="card bg-light border-info text-info o-hidden h-100">
<div class="card-body">
<div class="card-body-icon">
<h2><i class="fas fa-users-cog"></i></h2>
</div>
<h4><b id="total_admin"></b> Total Admin</h4>
</div>
<a class="card-footer border-info text-muted clearfix small z-1" href="user.php">
<span class="float-left">View Details</span>
<span class="float-right">
<i class="fas fa-angle-right"></i>
</span>
</a>
</div>
</div>
<div class="col-xl-3 col-sm-6 mb-3">
<div class="card bg-light border-info text-info o-hidden h-100">
<div class="card-body">
<div class="card-body-icon">
<h2><i class="fas fa-fw fa-dollar-sign"></i></h2>
</div>
<h4><b id="total_income"></b> Income</h4>
</div>
<a class="card-footer border-info text-muted clearfix small z-1" href="invoice.php">
<span class="float-left">View Details</span>
<span class="float-right">
<i class="fas fa-angle-right"></i>
</span>
</a>
</div>
</div>
</div>
<!-- End Simple Invoice System Information Cards -->
<!-- Monthly Income Graphic -->
<div class="card mb-3 border-info mb-3">
<div class="card-header border-info">
<i class="fas fa-table"></i>
Latest Created Invoices
</div>
<div class="card-body">
<div class="table-responsive">
<div id="latest_invoices"></div>
</div>
</div>
</div>
<!-- Monthly Income Graphic -->
</div>
<div style="height: 265px;"></div>
<!-- Footer -->
<?php
include("include/footer.php");
?>
<script>
$(document).ready(function(){
$.ajax({
type:"POST",
data:{action:'add_info'},
url:"admin_action.php",
dataType:"json",
success:function(data){
$('#total_orders').text(data['total_orders']);
$('#total_users').text(data['total_users']);
$('#total_admin').text(data['total_admin']);
$('#total_income').text(data['total_income']);
}
});
$.ajax({
url:"admin_action.php",
method:"POST",
data:{action:'latest_invoices'},
success:function(data){
$('#latest_invoices').html(data);
}
});
});
</script>