-
Notifications
You must be signed in to change notification settings - Fork 47
/
dashboard.php
225 lines (172 loc) · 7.67 KB
/
dashboard.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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<?php
include_once("init.php");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>POSNIC - Dashboard</title>
<!-- Stylesheets -->
<link href='http://fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet'>
<link rel="stylesheet" href="css/style.css">
<!-- Optimize for mobile devices -->
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<!-- jQuery & JS files -->
<?php include_once("tpl/common_js.php"); ?>
<script src="js/script.js"></script>
</head>
<body>
<!-- TOP BAR -->
<?php include_once("tpl/top_bar.php"); ?>
<!-- end top-bar -->
<!-- HEADER -->
<div id="header-with-tabs">
<div class="page-full-width cf">
<ul id="tabs" class="fl">
<li><a href="dashboard.php" class="active-tab dashboard-tab">Dashboard</a></li>
<li><a href="view_sales.php" class="sales-tab">Sales</a></li>
<li><a href="view_customers.php" class=" customers-tab">Customers</a></li>
<li><a href="view_purchase.php" class="purchase-tab">Purchase</a></li>
<li><a href="view_supplier.php" class=" supplier-tab">Supplier</a></li>
<li><a href="view_product.php" class=" stock-tab">Stocks / Products</a></li>
<li><a href="view_payments.php" class="payment-tab">Payments / Outstandings</a></li>
<li><a href="view_report.php" class="report-tab">Reports</a></li>
</ul> <!-- end tabs -->
<!-- Change this image to your own company's logo -->
<!-- The logo will automatically be resized to 30px height. -->
<?php $line = $db->queryUniqueObject("SELECT * FROM store_details ");
$_SESSION['logo']=$line->log;
?>
<a href="#" id="company-branding-small" class="fr"><img src="<?php if(isset($_SESSION['logo'])) { echo "upload/".$_SESSION['logo'];}else{ echo "upload/posnic.png"; } ?>" alt="Point of Sale" /></a>
</div> <!-- end full-width -->
</div> <!-- end header -->
<!-- MAIN CONTENT -->
<div id="content">
<div class="page-full-width cf">
<div class="side-menu fl">
<h3>Quick Links</h3>
<ul>
<li><a href="add_sales.php">Add Sales</a></li>
<li><a href="add_purchase.php">Add Purchase</a></li>
<li><a href="add_supplier.php">Add Supplier</a></li>
<li><a href="add_customer.php">Add Customer</a></li>
<li><a href="view_report.php">Report</a></li>
</ul>
</div> <!-- end side-menu -->
<div class="side-content fr">
<div class="content-module">
<div class="content-module-heading cf">
<h3 class="fl">Statistics</h3>
<span class="fr expand-collapse-text">Click to collapse</span>
<span class="fr expand-collapse-text initial-expand">Click to expand</span>
</div> <!-- end content-module-heading -->
<div class="content-module-main cf">
<table style="width:350px; float:left;" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="250" align="left"> </td>
<td width="150" align="left"> </td>
</tr>
<tr>
<td align="left">Total Number of Products</td>
<td align="left"><?php echo $count = $db->countOfAll("stock_avail");?> </td>
</tr>
<tr>
<td align="left"> </td>
<td align="left"> </td>
</tr>
<tr>
<td align="left">Tatal Sales Transactions </td>
<td align="left"><?php echo $count = $db->countOfAll("stock_sales");?></td>
</tr>
<tr>
<td align="left"> </td>
<td align="left"> </td>
</tr>
<tr>
<td align="left">Total number of Suppliers </td>
<td align="left"><?php echo $count = $db->countOfAll("supplier_details");?></td>
</tr>
<tr>
<td align="left"> </td>
<td align="left"> </td>
</tr>
<tr>
<td align="left">Total Number of Customers </td>
<td align="left"><?php echo $count = $db->countOfAll("customer_details");?></td>
</tr>
<tr>
<td align="left"> </td>
<td align="left"> </td>
</tr>
<tr>
<td align="left"> </td>
<td align="left"> </td>
</tr>
</table>
<table style="width:600px; margin-left:50px; float:left;" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
<td width="250" align="left">Home (Ctrl+0) </td>
<td width="150" align="left">Add Purchase(Ctrl+1)</td>
</tr>
<tr><td> </td>
<td width="250" align="left">Add Stock(Ctrl+2)</td>
<td align="left">Add Sale(Ctrl+3)</td>
</tr>
<tr><td> </td>
<td align="left">Add Category (Ctrl+4 ) </td>
<td align="left">Add Supplier (Ctrl+5 )</td>
</tr>
<tr><td> </td>
<td align="left">Add Customer (Ctrl+6)</td>
<td align="left">View Stocks (Ctrl+7)</td>
</tr>
<tr><td> </td>
<td align="left">View Sales(Ctrl+8)</td>
<td align="left">View Purchase (Ctrl+9) </td>
</tr>
<tr><td> </td>
<td align="left">Add New (Ctrl+a)</td>
<td align="left">Save( Ctrl+s ) </td>
</tr>
</table>
<!--<ul class="temporary-button-showcase">
<li><a href="#" class="button round blue image-right ic-add text-upper">Add</a></li>
<li><a href="#" class="button round blue image-right ic-edit text-upper">Edit</a></li>
<li><a href="#" class="button round blue image-right ic-delete text-upper">Delete</a></li>
<li><a href="#" class="button round blue image-right ic-download text-upper">Download</a></li>
<li><a href="#" class="button round blue image-right ic-upload text-upper">Upload</a></li>
<li><a href="#" class="button round blue image-right ic-favorite text-upper">Favorite</a></li>
<li><a href="#" class="button round blue image-right ic-print text-upper">Print</a></li>
<li><a href="#" class="button round blue image-right ic-refresh text-upper">Refresh</a></li>
<li><a href="#" class="button round blue image-right ic-search text-upper">Search</a></li>
</ul>-->
</div> <!-- end content-module-main -->
</div> <!-- end content-module -->
</div> <!-- end full-width -->
</div>
</div>
<!-- FOOTER -->
<div id="footer">
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=286371564842269";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div id="fb-root"></div>
<div class="fb-like" data-href="https://www.facebook.com/posnic.point.of.sale" data-width="450" data-show-faces="true" data-send="true"></div>
<div class="g-plusone" data-href="https://plus.google.com/u/0/107268519615804538483"></div>
<script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
<p>Any Queries email to <a href="mailto:[email protected]?subject=Stock%20Management%20System">[email protected]</a>.</p>
</div> <!-- end footer -->
</body>
</html>