-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcustomer_manage.php
52 lines (51 loc) · 1.09 KB
/
customer_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
47
48
49
50
51
52
<?php
include("include/db.php");
include("include/utility.php");
include("include/session.php");
include("include/paging.php");
define("APP_START", 1);
$tab_array=array("list", "add", "edit", "status", "delete", "bulk_action");
if(isset($_REQUEST["tab"]) && in_array($_REQUEST["tab"], $tab_array)){
$tab=$_REQUEST["tab"];
}
else{
$tab="list";
}
switch($tab){
case 'add':
include("modules/customer/add_do.php");
break;
case 'edit':
include("modules/customer/edit_do.php");
break;
case 'delete':
include("modules/customer/delete_do.php");
break;
case 'status':
include("modules/customer/status_do.php");
break;
case 'bulk_action':
include("modules/customer/bulkactions.php");
break;
}
?>
<?php include("include/header.php");?>
<div class="container-widget row">
<div class="col-md-12">
<?php
switch($tab){
case 'list':
include("modules/customer/list.php");
break;
case 'add':
include("modules/customer/add.php");
break;
case 'edit':
include("modules/customer/edit.php");
break;
}
?>
</div>
</div>
</div>
<?php include("include/footer.php");?>