-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathreport_manage.php
46 lines (45 loc) · 961 Bytes
/
report_manage.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
<?php
include("include/db.php");
include("include/utility.php");
include("include/session.php");
include("include/paging.php");
define("APP_START", 1);
$filename = 'sales_manage.php';
include("include/admin_type_access.php");
$tab_array=array("daily", "sales","income");
if(isset($_REQUEST["tab"]) && in_array($_REQUEST["tab"], $tab_array)){
$tab=$_REQUEST["tab"];
}
else{
$tab="daily";
}
switch($tab){
case "print":
include("modules/sales/print.php");
break;
case 'report':
include("modules/sales/report.php");
die;
break;
}
?>
<?php include("include/header.php");?>
<div class="container-widget row">
<div class="col-md-12">
<?php
switch($tab){
case 'daily':
include("modules/reports/daily.php");
break;
case 'sales':
include("modules/reports/sales.php");
break;
case 'income':
include("modules/reports/income.php");
break;
}
?>
</div>
</div>
</div>
<?php include("include/footer.php");?>