-
Notifications
You must be signed in to change notification settings - Fork 0
/
controller.php
116 lines (93 loc) · 2.68 KB
/
controller.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?php
//Запрет к прямому обращению
defined('_JEXEC') or die;
class StalramsController extends JControllerLegacy
{
//Возвращение способа отображения, кешируемый или нет
public function display($cachable = false, $urlparams = false)
{
$view = $this->input->get('view', 'genpass');
$layout = $this->input->get('layout', 'default');
// Проверка формы редактирования
// $this->setRedirect(JRoute::_('index.php?option=com_stalrams&view=genpass', false));
// Отображаем представление
//echo 'contr-deff';
parent::display();
//Вернуть значение
return $this;
}
public function genpass($cachable = false, $urlparams = false)
{
$this->input->set('view', 'genpass');
parent::display();
}
public function translit($cachable = false, $urlparams = false)
{
$this->input->set('view', 'translit');
parent::display();
}
public function zabbix($cachable = false, $urlparams = false)
{
$this->input->set('view', 'zabbix');
parent::display();
}
public function sprav($cachable = false, $urlparams = false)
{
$this->input->set('view', 'sprav');
parent::display();
}
public function build($cachable = false, $urlparams = false)
{
$this->input->set('view', 'build');
parent::display();
}
public function tm($cachable = false, $urlparams = false)
{
$this->input->set('view', 'tm');
parent::display();
}
public function tmsprav($cachable = false, $urlparams = false)
{
$this->input->set('view', 'tmsprav');
parent::display();
}
public function decode($cachable = false, $urlparams = false)
{
$this->input->set('view', 'decode');
parent::display();
}
public function equipment($cachable = false, $urlparams = false)
{
$this->input->set('view', 'equipment');
parent::display();
}
public function getAjaxData()
{
$this->input->set('view', 'po');
//echo 'controller';
parent::display();
}
public function getZabbixAjaxData(){
$this->input->set('view', 'zabbix');
//echo 'controller';
parent::display();
}
public function getTMAjaxData()
{
$this->input->set('view', 'tmajax');
//echo 'controller';
parent::display();
}
public function inventory($cachable = false, $urlparams = false)
{
$this->input->set('view', 'inventory');
parent::display();
}
public function getINVAjaxData()
{
$this->input->set('view', 'invajax');
//echo 'controller';
parent::display();
}
}
?>