-
Notifications
You must be signed in to change notification settings - Fork 4
/
action.defaultadmin.php
64 lines (52 loc) · 2.1 KB
/
action.defaultadmin.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
<?php
#-------------------------------------------------------------------------
#
# Author: Ben Malen, <[email protected]>
# Co-Maintainer: Simon Radford, <[email protected]>
# Web: www.conceptfactory.com.au
#
#-------------------------------------------------------------------------
#
# Maintainer since 2011: Jonathan Schmid, <[email protected]>
# Web: www.jonathanschmid.de
#
#-------------------------------------------------------------------------
#
# ListIt is a CMS Made Simple module that enables the web developer to create
# multiple lists throughout a site. It can be duplicated and given friendly
# names for easier client maintenance.
#
#-------------------------------------------------------------------------
if (!is_object(cmsms())) exit;
if (isset($params['message'])) {
echo $this->ShowMessage($this->ModLang($params['message']));
}
if (isset($params['errors']) && count($params['errors'])) {
echo $this->ShowErrors($params['errors']);
}
if (!empty($params['active_tab'])) {
$tab = $params['active_tab'];
} else {
$tab = 'instancestab';
}
echo $this->StartTabHeaders();
echo $this->SetTabHeader('instancestab', $this->ModLang('instances'), ($tab == 'instancestab'));
echo $this->SetTabHeader('fielddefstab', $this->ModLang('fielddefs'), ($tab == 'fielddefstab'));
echo $this->SetTabHeader('maintenancetab', $this->ModLang('maintenance'), ($tab == 'maintenancetab'));
echo $this->SetTabHeader('optionstab', $this->ModLang('options'), ($tab == 'optionstab'));
echo $this->EndTabHeaders();
echo $this->StartTabContent();
echo $this->StartTab('instancestab', $params);
include dirname(__FILE__) . '/tabcontent.admin_instancestab.php';
echo $this->EndTab();
echo $this->StartTab('fielddefstab', $params);
include dirname(__FILE__) . '/tabcontent.admin_fielddefstab.php';
echo $this->EndTab();
echo $this->StartTab('maintenancetab', $params);
include dirname(__FILE__) . '/tabcontent.admin_maintenancetab.php';
echo $this->EndTab();
echo $this->StartTab('optionstab', $params);
include dirname(__FILE__) . '/tabcontent.admin_optionstab.php';
echo $this->EndTab();
echo $this->EndTabContent();
?>