-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathview.php
60 lines (46 loc) · 1.27 KB
/
view.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
<?php
require_once 'lib/config.php';
require_once 'lib/functions.php';
$_SESSION['login_return_url'] = $_SERVER['REQUEST_URI'];
checkUser();
$view = (isset($_GET['v']) && $_GET['v'] != '') ? $_GET['v'] : '';
switch ($view) {
case 'adduser' :
$content = 'user/add.php';
$pageTitle = 'GMI - Add Users';
break;
case 'addvendor' :
$content = 'vendor/add.php';
$pageTitle = 'GMI - Add Vendor';
break;
case 'addcat' :
$content = 'category/add.php';
$pageTitle = 'GMI - Add category';
break;
case 'search' :
$content = 'search/search.php';
$pageTitle = 'GMI - Search Asset';
break;
case 'addlab' :
$content = 'labs/add.php';
$pageTitle = 'GMI - Add Laboratory';
break;
case 'assign' :
$content = 'assign/add.php';
$pageTitle = 'GMI - Assign Asset';
break;
case 'addhardware' :
$content = 'hardware/add.php';
$pageTitle = 'GMI - Add Hardware';
break;
case 'addsoftware' :
$content = 'software/add.php';
$pageTitle = 'GMI - Add New Software';
break;
default :
$content = 'list.php';
$pageTitle = 'Shop Admin Control Panel - View Users';
}
$script = array('user.js','category.js','hardware.js');
require_once 'Global.php';
?>