-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdemand_manage.php
61 lines (58 loc) · 1.15 KB
/
demand_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
53
54
55
56
57
58
59
60
61
<?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", "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/demand/add_do.php");
break;
case 'edit':
include("modules/demand/edit_do.php");
break;
case 'delete':
include("modules/demand/delete_do.php");
break;
case 'bulk_action':
include("modules/demand/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/demand/list.php");
break;
case 'add':
include("modules/demand/add.php");
break;
case 'edit':
include("modules/demand/edit.php");
break;
}
?>
</div>
</div>
</div>
<style>
.col-head strong {
background-color: #ddd;
display: block;
padding: 10px;
}
.col-head > div {
margin-bottom: 10px;
}
</style>
<?php include("include/footer.php");?>