-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathreports.php
121 lines (106 loc) · 4.55 KB
/
reports.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
<?php include ('header.php');?>
<body>
<div id="wrapper">
<nav class="navbar navbar-default top-navbar" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">Personal Project</a>
</div>
<ul class="nav navbar-top-links navbar-right">
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" aria-expanded="false">
Welcome : Administrator
</a>
<!-- /.dropdown-user -->
</li>
<!-- /.dropdown -->
</ul>
</nav>
<!--/. NAV TOP -->
<?php include ('nav_sidebar.php');?>
<!-- /. NAV SIDE -->
<div id="page-wrapper" >
<div id="page-inner">
<div class="row">
<div class="col-md-12">
<div class="hero-unit-table">
<div class="charts_container">
<div class="chart_container">
<div class="alert alert-info">List of Books</div>
<canvas id="chartCanvas1" width="1100" height="400">
Your web-browser does not support the HTML 5 canvas element.
</canvas>
</div>
</div>
<script type="application/javascript">
var chart1 = new AwesomeChart('chartCanvas1');
chart1.data = [
<?php include ('connect.php');
$query = mysqli_query($aVar,"select * from tb_products");
while ($row = mysqli_fetch_array($query)) {
?>
<?php echo $row['quantity'] . ','; ?>
<?php }; ?>
];
chart1.labels = [
<?php include ('connect.php');
$query = mysqli_query($aVar,"select * from tb_products");
while ($row = mysqli_fetch_array($query)) {
?>
<?php echo "'" . $row['name'] . "'" . ','; ?>
<?php }; ?>
];
chart1.colors = ['#006CFF', '#FF6600', '#34A038', '#945D59', '#93BBF4', '#F493B8'];
chart1.randomColors = true;
chart1.animate = true;
chart1.animationFrames = 30;
chart1.draw();
var chart5 = new AwesomeChart('chartCanvas5');
chart5.chartType = "pie";
chart5.title = "Worldwide browser market share: December 2010";
chart5.data = [ <?php ('connect.php');
$query = mysqli_query($aVar,"select * from tb_products");
while ($row = mysqli_fetch_array($query)) {
?>
<?php echo $row['quantity'] . ','; ?>
<?php }; ?>];
chart5.labels = [
<?php include ('connect.php');
$query = mysqli_query($aVar,"select * from tb_products");
while ($row = mysqli_fetch_array($query)) {
?>
<?php echo "'" . $row['name'] . "'" . ','; ?>
<?php }; ?>];
chart5.colors = chart1.colors;
chart5.animate = true;
chart5.draw();
</script>
</div>
</div>
</div>
</div>
<!-- /. PAGE INNER -->
</div>
<!-- /. PAGE WRAPPER -->
</div>
<!-- /. WRAPPER -->
<!-- JS Scripts-->
<!-- jQuery Js -->
<script src="assets/js/jquery-1.10.2.js"></script>
<!-- Bootstrap Js -->
<script src="assets/js/bootstrap.min.js"></script>
<!-- Metis Menu Js -->
<script src="assets/js/jquery.metisMenu.js"></script>
<!-- Morris Chart Js -->
<script src="assets/js/morris/raphael-2.1.0.min.js"></script>
<script src="assets/js/morris/morris.js"></script>
<!-- Custom Js -->
<script src="assets/js/custom-scripts.js"></script>
<?php include ('script.php');?>
</body>
</html>