@@ 83-98 (lines=16) @@ | ||
80 | /** |
|
81 | * @brief Pop-up details of the module (conf/info.xml) |
|
82 | */ |
|
83 | function dispModuleAdminInfo() |
|
84 | { |
|
85 | // Obtain a list of modules |
|
86 | $oModuleModel = getModel('module'); |
|
87 | $module_info = $oModuleModel->getModuleInfoXml(Context::get('selected_module')); |
|
88 | Context::set('module_info', $module_info); |
|
89 | ||
90 | $security = new Security(); |
|
91 | $security->encodeHTML('module_info...'); |
|
92 | ||
93 | // Set the layout to be pop-up |
|
94 | $this->setLayoutPath('./common/tpl'); |
|
95 | $this->setLayoutFile('popup_layout'); |
|
96 | // Set a template file |
|
97 | $this->setTemplateFile('module_info'); |
|
98 | } |
|
99 | ||
100 | /** |
|
101 | * @brief Module Categories |
@@ 13-28 (lines=16) @@ | ||
10 | /** |
|
11 | * @brief Initialization |
|
12 | */ |
|
13 | function init() |
|
14 | { |
|
15 | // Get teh configuration information |
|
16 | $oModuleModel = getModel('module'); |
|
17 | $config = $oModuleModel->getModuleConfig('point'); |
|
18 | // Set the configuration variable |
|
19 | Context::set('config', $config); |
|
20 | ||
21 | //Security |
|
22 | $security = new Security(); |
|
23 | $security->encodeHTML('config.point_name','config.level_icon'); |
|
24 | $security->encodeHTML('module_info..'); |
|
25 | ||
26 | // Set the template path |
|
27 | $this->setTemplatePath($this->module_path.'tpl'); |
|
28 | } |
|
29 | ||
30 | /** |
|
31 | * @brief Default configurations |
@@ 115-126 (lines=12) @@ | ||
112 | /** |
|
113 | * @brief Managing pop-up pages used in the generated code |
|
114 | */ |
|
115 | function dispWidgetGenerateCodeInPage() |
|
116 | { |
|
117 | $oWidgetModel = getModel('widget'); |
|
118 | $widget_list = $oWidgetModel->getDownloadedWidgetList(); |
|
119 | Context::set('widget_list',$widget_list); |
|
120 | // When there is no widget is selected in the first widget |
|
121 | if(!Context::get('selected_widget')) Context::set('selected_widget',$widget_list[0]->widget); |
|
122 | ||
123 | $this->dispWidgetGenerateCode(); |
|
124 | $this->setLayoutFile('default_layout'); |
|
125 | $this->setTemplateFile('widget_generate_code_in_page'); |
|
126 | } |
|
127 | ||
128 | /** |
|
129 | * @brief Create widget style code page used in the pop-up management |