@@ -281,17 +281,17 @@ |
||
281 | 281 | $edits = array(); |
282 | 282 | foreach ($diff as $line) { |
283 | 283 | switch ($line[0]) { |
284 | - case ' ': |
|
285 | - $edits[] = new Text_Diff_Op_copy(array(substr($line, 1))); |
|
286 | - break; |
|
284 | + case ' ': |
|
285 | + $edits[] = new Text_Diff_Op_copy(array(substr($line, 1))); |
|
286 | + break; |
|
287 | 287 | |
288 | - case '+': |
|
289 | - $edits[] = new Text_Diff_Op_add(array(substr($line, 1))); |
|
290 | - break; |
|
288 | + case '+': |
|
289 | + $edits[] = new Text_Diff_Op_add(array(substr($line, 1))); |
|
290 | + break; |
|
291 | 291 | |
292 | - case '-': |
|
293 | - $edits[] = new Text_Diff_Op_delete(array(substr($line, 1))); |
|
294 | - break; |
|
292 | + case '-': |
|
293 | + $edits[] = new Text_Diff_Op_delete(array(substr($line, 1))); |
|
294 | + break; |
|
295 | 295 | } |
296 | 296 | } |
297 | 297 |
@@ -131,21 +131,21 @@ |
||
131 | 131 | |
132 | 132 | foreach ($edits as $edit) { |
133 | 133 | switch (strtolower(get_class($edit))) { |
134 | - case 'text_diff_op_copy': |
|
135 | - $output .= $this->_context($edit->orig); |
|
136 | - break; |
|
134 | + case 'text_diff_op_copy': |
|
135 | + $output .= $this->_context($edit->orig); |
|
136 | + break; |
|
137 | 137 | |
138 | - case 'text_diff_op_add': |
|
139 | - $output .= $this->_added($edit->final); |
|
140 | - break; |
|
138 | + case 'text_diff_op_add': |
|
139 | + $output .= $this->_added($edit->final); |
|
140 | + break; |
|
141 | 141 | |
142 | - case 'text_diff_op_delete': |
|
143 | - $output .= $this->_deleted($edit->orig); |
|
144 | - break; |
|
142 | + case 'text_diff_op_delete': |
|
143 | + $output .= $this->_deleted($edit->orig); |
|
144 | + break; |
|
145 | 145 | |
146 | - case 'text_diff_op_change': |
|
147 | - $output .= $this->_changed($edit->orig, $edit->final); |
|
148 | - break; |
|
146 | + case 'text_diff_op_change': |
|
147 | + $output .= $this->_changed($edit->orig, $edit->final); |
|
148 | + break; |
|
149 | 149 | } |
150 | 150 | } |
151 | 151 |
@@ -255,15 +255,4 @@ |
||
255 | 255 | // create form |
256 | 256 | echo " |
257 | 257 | <label for='tpl_file'>"._MD_A_MYTPLSFORM_LABEL_TPLFILE."</label> |
258 | - <input type='text' name='tpl_file' id='tpl_file' value='".htmlspecialchars($tpl['tpl_file'], ENT_QUOTES)."' size='64' /><br /> |
|
259 | - <input type='submit' name='do_create' id='do_create' value='"._MD_A_MYTPLSFORM_BTN_CREATE."' />\n" ; |
|
260 | -} else { |
|
261 | - // modify form |
|
262 | - echo " |
|
263 | - <input type='submit' name='do_modifycont' id='do_modifycont' value='"._MD_A_MYTPLSFORM_BTN_MODIFYCONT."' /> |
|
264 | - <input type='submit' name='do_modify' id='do_modify' value='"._MD_A_MYTPLSFORM_BTN_MODIFYEND."' /> |
|
265 | - <input type='reset' name='reset' value='"._MD_A_MYTPLSFORM_BTN_RESET."' /> |
|
266 | -</form>\n" ; |
|
267 | -} |
|
268 | - |
|
269 | -xoops_cp_footer() ; |
|
258 | + <input type='text' name='tpl_file' id='tpl_file' value='".htmlspecialchars($tpl[ |
|
270 | 259 | \ No newline at end of file |
@@ -47,42 +47,42 @@ discard block |
||
47 | 47 | $scoln = 'disabled'; |
48 | 48 | } else { |
49 | 49 | switch ($side) { |
50 | - case XOOPS_SIDEBLOCK_LEFT : |
|
51 | - $ssel0 = " checked='checked'"; |
|
52 | - $scol0 = 'selected'; |
|
53 | - break ; |
|
54 | - case XOOPS_SIDEBLOCK_RIGHT : |
|
55 | - $ssel1 = " checked='checked'"; |
|
56 | - $scol1 = 'selected'; |
|
57 | - break ; |
|
58 | - case XOOPS_CENTERBLOCK_LEFT : |
|
59 | - $ssel3 = " checked='checked'"; |
|
60 | - $scol3 = 'selected'; |
|
61 | - break ; |
|
62 | - case XOOPS_CENTERBLOCK_RIGHT : |
|
63 | - $ssel4 = " checked='checked'"; |
|
64 | - $scol4 = 'selected'; |
|
65 | - break ; |
|
66 | - case XOOPS_CENTERBLOCK_CENTER : |
|
67 | - $ssel5 = " checked='checked'"; |
|
68 | - $scol5 = 'selected'; |
|
69 | - break ; |
|
70 | - case XOOPS_CENTERBLOCK_BOTTOMLEFT : |
|
71 | - $ssel7 = " checked='checked'"; |
|
72 | - $scol7 = 'selected'; |
|
73 | - break ; |
|
74 | - case XOOPS_CENTERBLOCK_BOTTOMRIGHT : |
|
75 | - $ssel8 = " checked='checked'"; |
|
76 | - $scol8 = 'selected'; |
|
77 | - break ; |
|
78 | - case XOOPS_CENTERBLOCK_BOTTOM : |
|
79 | - $ssel9 = " checked='checked'"; |
|
80 | - $scol9 = 'selected'; |
|
81 | - break ; |
|
82 | - default : |
|
83 | - $value4extra_side = $side ; |
|
84 | - $stextbox = 'selected'; |
|
85 | - break ; |
|
50 | + case XOOPS_SIDEBLOCK_LEFT : |
|
51 | + $ssel0 = " checked='checked'"; |
|
52 | + $scol0 = 'selected'; |
|
53 | + break ; |
|
54 | + case XOOPS_SIDEBLOCK_RIGHT : |
|
55 | + $ssel1 = " checked='checked'"; |
|
56 | + $scol1 = 'selected'; |
|
57 | + break ; |
|
58 | + case XOOPS_CENTERBLOCK_LEFT : |
|
59 | + $ssel3 = " checked='checked'"; |
|
60 | + $scol3 = 'selected'; |
|
61 | + break ; |
|
62 | + case XOOPS_CENTERBLOCK_RIGHT : |
|
63 | + $ssel4 = " checked='checked'"; |
|
64 | + $scol4 = 'selected'; |
|
65 | + break ; |
|
66 | + case XOOPS_CENTERBLOCK_CENTER : |
|
67 | + $ssel5 = " checked='checked'"; |
|
68 | + $scol5 = 'selected'; |
|
69 | + break ; |
|
70 | + case XOOPS_CENTERBLOCK_BOTTOMLEFT : |
|
71 | + $ssel7 = " checked='checked'"; |
|
72 | + $scol7 = 'selected'; |
|
73 | + break ; |
|
74 | + case XOOPS_CENTERBLOCK_BOTTOMRIGHT : |
|
75 | + $ssel8 = " checked='checked'"; |
|
76 | + $scol8 = 'selected'; |
|
77 | + break ; |
|
78 | + case XOOPS_CENTERBLOCK_BOTTOM : |
|
79 | + $ssel9 = " checked='checked'"; |
|
80 | + $scol9 = 'selected'; |
|
81 | + break ; |
|
82 | + default : |
|
83 | + $value4extra_side = $side ; |
|
84 | + $stextbox = 'selected'; |
|
85 | + break ; |
|
86 | 86 | } |
87 | 87 | } |
88 | 88 | |
@@ -166,31 +166,31 @@ discard block |
||
166 | 166 | } |
167 | 167 | |
168 | 168 | switch ($mode) { |
169 | - case 'clone' : |
|
170 | - $form_title = _MD_A_MYBLOCKSADMIN_CLONEFORM ; |
|
171 | - $button_value = _MD_A_MYBLOCKSADMIN_BTN_CLONE ; |
|
172 | - $next_op = 'clone_ok' ; |
|
173 | - // breadcrumbs |
|
174 | - $breadcrumbsObj =& AltsysBreadcrumbs::getInstance() ; |
|
175 | - $breadcrumbsObj->appendPath('', _MD_A_MYBLOCKSADMIN_CLONEFORM) ; |
|
176 | - break ; |
|
177 | - case 'new' : |
|
178 | - $form_title = _MD_A_MYBLOCKSADMIN_NEWFORM ; |
|
179 | - $button_value = _MD_A_MYBLOCKSADMIN_BTN_NEW ; |
|
180 | - $next_op = 'new_ok' ; |
|
181 | - // breadcrumbs |
|
182 | - $breadcrumbsObj =& AltsysBreadcrumbs::getInstance() ; |
|
183 | - $breadcrumbsObj->appendPath('', _MD_A_MYBLOCKSADMIN_NEWFORM) ; |
|
184 | - break ; |
|
185 | - case 'edit' : |
|
186 | - default : |
|
187 | - $form_title = _MD_A_MYBLOCKSADMIN_EDITFORM ; |
|
188 | - $button_value = _MD_A_MYBLOCKSADMIN_BTN_EDIT ; |
|
189 | - $next_op = 'edit_ok' ; |
|
190 | - // breadcrumbs |
|
191 | - $breadcrumbsObj =& AltsysBreadcrumbs::getInstance() ; |
|
192 | - $breadcrumbsObj->appendPath('', _MD_A_MYBLOCKSADMIN_EDITFORM) ; |
|
193 | - break ; |
|
169 | + case 'clone' : |
|
170 | + $form_title = _MD_A_MYBLOCKSADMIN_CLONEFORM ; |
|
171 | + $button_value = _MD_A_MYBLOCKSADMIN_BTN_CLONE ; |
|
172 | + $next_op = 'clone_ok' ; |
|
173 | + // breadcrumbs |
|
174 | + $breadcrumbsObj =& AltsysBreadcrumbs::getInstance() ; |
|
175 | + $breadcrumbsObj->appendPath('', _MD_A_MYBLOCKSADMIN_CLONEFORM) ; |
|
176 | + break ; |
|
177 | + case 'new' : |
|
178 | + $form_title = _MD_A_MYBLOCKSADMIN_NEWFORM ; |
|
179 | + $button_value = _MD_A_MYBLOCKSADMIN_BTN_NEW ; |
|
180 | + $next_op = 'new_ok' ; |
|
181 | + // breadcrumbs |
|
182 | + $breadcrumbsObj =& AltsysBreadcrumbs::getInstance() ; |
|
183 | + $breadcrumbsObj->appendPath('', _MD_A_MYBLOCKSADMIN_NEWFORM) ; |
|
184 | + break ; |
|
185 | + case 'edit' : |
|
186 | + default : |
|
187 | + $form_title = _MD_A_MYBLOCKSADMIN_EDITFORM ; |
|
188 | + $button_value = _MD_A_MYBLOCKSADMIN_BTN_EDIT ; |
|
189 | + $next_op = 'edit_ok' ; |
|
190 | + // breadcrumbs |
|
191 | + $breadcrumbsObj =& AltsysBreadcrumbs::getInstance() ; |
|
192 | + $breadcrumbsObj->appendPath('', _MD_A_MYBLOCKSADMIN_EDITFORM) ; |
|
193 | + break ; |
|
194 | 194 | } |
195 | 195 | |
196 | 196 | $is_custom = in_array($block->getVar('block_type'), array( 'C', 'E' )) ? true : false ; |
@@ -160,7 +160,4 @@ |
||
160 | 160 | $module_id = (int)(@$regs[0]); |
161 | 161 | $page_id = (int)(@$regs[1]); |
162 | 162 | $sql = "INSERT INTO `$table` (`block_id`,`module_id`,`page_id`) VALUES ($bid,$module_id,$page_id)" ; |
163 | - $this->db->query($sql) ; |
|
164 | - } |
|
165 | -} |
|
166 | -} |
|
163 | + $this->db->query($sql |
|
167 | 164 | \ No newline at end of file |
@@ -308,30 +308,30 @@ discard block |
||
308 | 308 | $scoln = 'disabled'; |
309 | 309 | } else { |
310 | 310 | switch ($side) { |
311 | - case XOOPS_SIDEBLOCK_LEFT : |
|
312 | - $ssel0 = " checked='checked'"; |
|
313 | - $scol0 = 'selected'; |
|
314 | - break ; |
|
315 | - case XOOPS_SIDEBLOCK_RIGHT : |
|
316 | - $ssel1 = " checked='checked'"; |
|
317 | - $scol1 = 'selected'; |
|
318 | - break ; |
|
319 | - case XOOPS_CENTERBLOCK_LEFT : |
|
320 | - $ssel2 = " checked='checked'"; |
|
321 | - $scol2 = 'selected'; |
|
322 | - break ; |
|
323 | - case XOOPS_CENTERBLOCK_RIGHT : |
|
324 | - $ssel4 = " checked='checked'"; |
|
325 | - $scol4 = 'selected'; |
|
326 | - break ; |
|
327 | - case XOOPS_CENTERBLOCK_CENTER : |
|
328 | - $ssel3 = " checked='checked'"; |
|
329 | - $scol3 = 'selected'; |
|
330 | - break ; |
|
331 | - default : |
|
332 | - $value4extra_side = $side ; |
|
333 | - $stextbox = 'selected'; |
|
334 | - break ; |
|
311 | + case XOOPS_SIDEBLOCK_LEFT : |
|
312 | + $ssel0 = " checked='checked'"; |
|
313 | + $scol0 = 'selected'; |
|
314 | + break ; |
|
315 | + case XOOPS_SIDEBLOCK_RIGHT : |
|
316 | + $ssel1 = " checked='checked'"; |
|
317 | + $scol1 = 'selected'; |
|
318 | + break ; |
|
319 | + case XOOPS_CENTERBLOCK_LEFT : |
|
320 | + $ssel2 = " checked='checked'"; |
|
321 | + $scol2 = 'selected'; |
|
322 | + break ; |
|
323 | + case XOOPS_CENTERBLOCK_RIGHT : |
|
324 | + $ssel4 = " checked='checked'"; |
|
325 | + $scol4 = 'selected'; |
|
326 | + break ; |
|
327 | + case XOOPS_CENTERBLOCK_CENTER : |
|
328 | + $ssel3 = " checked='checked'"; |
|
329 | + $scol3 = 'selected'; |
|
330 | + break ; |
|
331 | + default : |
|
332 | + $value4extra_side = $side ; |
|
333 | + $stextbox = 'selected'; |
|
334 | + break ; |
|
335 | 335 | } |
336 | 336 | } |
337 | 337 | |
@@ -1085,8 +1085,4 @@ discard block |
||
1085 | 1085 | // the first form (blocks) |
1086 | 1086 | $this->list_blocks() ; |
1087 | 1087 | // the second form (groups) |
1088 | - $this->list_groups() ; |
|
1089 | - break ; |
|
1090 | - } |
|
1091 | - } |
|
1092 | -} |
|
1088 | + $this->list_groups |
|
1093 | 1089 | \ No newline at end of file |
@@ -76,83 +76,83 @@ |
||
76 | 76 | $title4tray = (!defined($config[$i]->getVar('conf_desc')) || constant($config[$i]->getVar('conf_desc')) == '') ? (constant($config[$i]->getVar('conf_title')).$title_icon) : (constant($config[$i]->getVar('conf_title')).$title_icon.'<br /><br /><span style="font-weight:normal;">'.constant($config[$i]->getVar('conf_desc')).'</span>'); // GIJ |
77 | 77 | $title = '' ; // GIJ |
78 | 78 | switch ($config[$i]->getVar('conf_formtype')) { |
79 | - case 'textarea': |
|
80 | - (method_exists('MyTextSanitizer', 'sGetInstance') and $myts =& MyTextSanitizer::sGetInstance()) || $myts =& MyTextSanitizer::getInstance(); |
|
81 | - if ($config[$i]->getVar('conf_valuetype') == 'array') { |
|
82 | - // this is exceptional.. only when value type is arrayneed a smarter way for this |
|
83 | - $ele = ($config[$i]->getVar('conf_value') != '') ? new XoopsFormTextArea($title, $config[$i]->getVar('conf_name'), $myts->htmlspecialchars(implode('|', $config[$i]->getConfValueForOutput())), 5, 50) : new XoopsFormTextArea($title, $config[$i]->getVar('conf_name'), '', 5, 50); |
|
84 | - } else { |
|
85 | - $ele = new XoopsFormTextArea($title, $config[$i]->getVar('conf_name'), $myts->htmlspecialchars($config[$i]->getConfValueForOutput()), 5, 50); |
|
86 | - } |
|
87 | - break; |
|
88 | - case 'select': |
|
89 | - case 'radio': |
|
90 | - if ($config[$i]->getVar('conf_formtype') === 'select') { |
|
91 | - $ele = new XoopsFormSelect($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput()); |
|
92 | - $addBr = ''; |
|
93 | - } else { |
|
94 | - $ele = new XoopsFormRadio($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput()); |
|
95 | - $addBr = '<br />'; |
|
96 | - } |
|
97 | - $options =& $config_handler->getConfigOptions(new Criteria('conf_id', $config[$i]->getVar('conf_id'))); |
|
98 | - $opcount = count($options); |
|
99 | - for ($j = 0; $j < $opcount; $j++) { |
|
100 | - $optval = defined($options[$j]->getVar('confop_value')) ? constant($options[$j]->getVar('confop_value')) : $options[$j]->getVar('confop_value'); |
|
101 | - $optkey = defined($options[$j]->getVar('confop_name')) ? constant($options[$j]->getVar('confop_name')) : $options[$j]->getVar('confop_name'); |
|
102 | - $ele->addOption($optval, $optkey.$addBr); |
|
103 | - } |
|
104 | - break; |
|
105 | - case 'select_multi': |
|
106 | - case 'checkbox': |
|
107 | - if ($config[$i]->getVar('conf_formtype') === 'select_multi') { |
|
108 | - $ele = new XoopsFormSelect($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput(), 5, true); |
|
109 | - $addBr = ''; |
|
110 | - } else { |
|
111 | - $ele = new XoopsFormCheckBox($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput()); |
|
112 | - $addBr = '<br />'; |
|
113 | - } |
|
114 | - $options =& $config_handler->getConfigOptions(new Criteria('conf_id', $config[$i]->getVar('conf_id'))); |
|
115 | - $opcount = count($options); |
|
116 | - for ($j = 0; $j < $opcount; $j++) { |
|
117 | - $optval = defined($options[$j]->getVar('confop_value')) ? constant($options[$j]->getVar('confop_value')) : $options[$j]->getVar('confop_value'); |
|
118 | - $optkey = defined($options[$j]->getVar('confop_name')) ? constant($options[$j]->getVar('confop_name')) : $options[$j]->getVar('confop_name'); |
|
79 | + case 'textarea': |
|
80 | + (method_exists('MyTextSanitizer', 'sGetInstance') and $myts =& MyTextSanitizer::sGetInstance()) || $myts =& MyTextSanitizer::getInstance(); |
|
81 | + if ($config[$i]->getVar('conf_valuetype') == 'array') { |
|
82 | + // this is exceptional.. only when value type is arrayneed a smarter way for this |
|
83 | + $ele = ($config[$i]->getVar('conf_value') != '') ? new XoopsFormTextArea($title, $config[$i]->getVar('conf_name'), $myts->htmlspecialchars(implode('|', $config[$i]->getConfValueForOutput())), 5, 50) : new XoopsFormTextArea($title, $config[$i]->getVar('conf_name'), '', 5, 50); |
|
84 | + } else { |
|
85 | + $ele = new XoopsFormTextArea($title, $config[$i]->getVar('conf_name'), $myts->htmlspecialchars($config[$i]->getConfValueForOutput()), 5, 50); |
|
86 | + } |
|
87 | + break; |
|
88 | + case 'select': |
|
89 | + case 'radio': |
|
90 | + if ($config[$i]->getVar('conf_formtype') === 'select') { |
|
91 | + $ele = new XoopsFormSelect($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput()); |
|
92 | + $addBr = ''; |
|
93 | + } else { |
|
94 | + $ele = new XoopsFormRadio($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput()); |
|
95 | + $addBr = '<br />'; |
|
96 | + } |
|
97 | + $options =& $config_handler->getConfigOptions(new Criteria('conf_id', $config[$i]->getVar('conf_id'))); |
|
98 | + $opcount = count($options); |
|
99 | + for ($j = 0; $j < $opcount; $j++) { |
|
100 | + $optval = defined($options[$j]->getVar('confop_value')) ? constant($options[$j]->getVar('confop_value')) : $options[$j]->getVar('confop_value'); |
|
101 | + $optkey = defined($options[$j]->getVar('confop_name')) ? constant($options[$j]->getVar('confop_name')) : $options[$j]->getVar('confop_name'); |
|
102 | + $ele->addOption($optval, $optkey.$addBr); |
|
103 | + } |
|
104 | + break; |
|
105 | + case 'select_multi': |
|
106 | + case 'checkbox': |
|
107 | + if ($config[$i]->getVar('conf_formtype') === 'select_multi') { |
|
108 | + $ele = new XoopsFormSelect($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput(), 5, true); |
|
109 | + $addBr = ''; |
|
110 | + } else { |
|
111 | + $ele = new XoopsFormCheckBox($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput()); |
|
112 | + $addBr = '<br />'; |
|
113 | + } |
|
114 | + $options =& $config_handler->getConfigOptions(new Criteria('conf_id', $config[$i]->getVar('conf_id'))); |
|
115 | + $opcount = count($options); |
|
116 | + for ($j = 0; $j < $opcount; $j++) { |
|
117 | + $optval = defined($options[$j]->getVar('confop_value')) ? constant($options[$j]->getVar('confop_value')) : $options[$j]->getVar('confop_value'); |
|
118 | + $optkey = defined($options[$j]->getVar('confop_name')) ? constant($options[$j]->getVar('confop_name')) : $options[$j]->getVar('confop_name'); |
|
119 | 119 | |
120 | - $ele->addOption($optval, $optkey.$addBr); |
|
121 | - } |
|
122 | - break; |
|
123 | - case 'yesno': |
|
124 | - $ele = new XoopsFormRadioYN($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput(), _YES, _NO); |
|
125 | - break; |
|
126 | - case 'group': |
|
127 | - include_once XOOPS_ROOT_PATH.'/class/xoopslists.php'; |
|
128 | - $ele = new XoopsFormSelectGroup($title, $config[$i]->getVar('conf_name'), false, $config[$i]->getConfValueForOutput(), 1, false); |
|
129 | - break; |
|
130 | - case 'group_multi': |
|
131 | - include_once XOOPS_ROOT_PATH.'/class/xoopslists.php'; |
|
132 | - $ele = new XoopsFormSelectGroup($title, $config[$i]->getVar('conf_name'), false, $config[$i]->getConfValueForOutput(), 5, true); |
|
133 | - break; |
|
134 | - case 'group_checkbox': |
|
135 | - include_once __DIR__.'/include/formcheckboxgroup.php'; |
|
136 | - $ele = new AltsysFormCheckboxGroup($title, $config[$i]->getVar('conf_name'), false, $config[$i]->getConfValueForOutput()); |
|
137 | - break; |
|
138 | - // RMV-NOTIFY: added 'user' and 'user_multi' |
|
139 | - case 'user': |
|
140 | - include_once XOOPS_ROOT_PATH.'/class/xoopslists.php'; |
|
141 | - $ele = new XoopsFormSelectUser($title, $config[$i]->getVar('conf_name'), false, $config[$i]->getConfValueForOutput(), 1, false); |
|
142 | - break; |
|
143 | - case 'user_multi': |
|
144 | - include_once XOOPS_ROOT_PATH.'/class/xoopslists.php'; |
|
145 | - $ele = new XoopsFormSelectUser($title, $config[$i]->getVar('conf_name'), false, $config[$i]->getConfValueForOutput(), 5, true); |
|
146 | - break; |
|
147 | - case 'password': |
|
148 | - (method_exists('MyTextSanitizer', 'sGetInstance') and $myts =& MyTextSanitizer::sGetInstance()) || $myts =& MyTextSanitizer::getInstance(); |
|
149 | - $ele = new XoopsFormPassword($title, $config[$i]->getVar('conf_name'), 50, 255, $myts->htmlspecialchars($config[$i]->getConfValueForOutput())); |
|
150 | - break; |
|
151 | - case 'textbox': |
|
152 | - default: |
|
153 | - (method_exists('MyTextSanitizer', 'sGetInstance') and $myts =& MyTextSanitizer::sGetInstance()) || $myts =& MyTextSanitizer::getInstance(); |
|
154 | - $ele = new XoopsFormText($title, $config[$i]->getVar('conf_name'), 50, 255, $myts->htmlspecialchars($config[$i]->getConfValueForOutput())); |
|
155 | - break; |
|
120 | + $ele->addOption($optval, $optkey.$addBr); |
|
121 | + } |
|
122 | + break; |
|
123 | + case 'yesno': |
|
124 | + $ele = new XoopsFormRadioYN($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput(), _YES, _NO); |
|
125 | + break; |
|
126 | + case 'group': |
|
127 | + include_once XOOPS_ROOT_PATH.'/class/xoopslists.php'; |
|
128 | + $ele = new XoopsFormSelectGroup($title, $config[$i]->getVar('conf_name'), false, $config[$i]->getConfValueForOutput(), 1, false); |
|
129 | + break; |
|
130 | + case 'group_multi': |
|
131 | + include_once XOOPS_ROOT_PATH.'/class/xoopslists.php'; |
|
132 | + $ele = new XoopsFormSelectGroup($title, $config[$i]->getVar('conf_name'), false, $config[$i]->getConfValueForOutput(), 5, true); |
|
133 | + break; |
|
134 | + case 'group_checkbox': |
|
135 | + include_once __DIR__.'/include/formcheckboxgroup.php'; |
|
136 | + $ele = new AltsysFormCheckboxGroup($title, $config[$i]->getVar('conf_name'), false, $config[$i]->getConfValueForOutput()); |
|
137 | + break; |
|
138 | + // RMV-NOTIFY: added 'user' and 'user_multi' |
|
139 | + case 'user': |
|
140 | + include_once XOOPS_ROOT_PATH.'/class/xoopslists.php'; |
|
141 | + $ele = new XoopsFormSelectUser($title, $config[$i]->getVar('conf_name'), false, $config[$i]->getConfValueForOutput(), 1, false); |
|
142 | + break; |
|
143 | + case 'user_multi': |
|
144 | + include_once XOOPS_ROOT_PATH.'/class/xoopslists.php'; |
|
145 | + $ele = new XoopsFormSelectUser($title, $config[$i]->getVar('conf_name'), false, $config[$i]->getConfValueForOutput(), 5, true); |
|
146 | + break; |
|
147 | + case 'password': |
|
148 | + (method_exists('MyTextSanitizer', 'sGetInstance') and $myts =& MyTextSanitizer::sGetInstance()) || $myts =& MyTextSanitizer::getInstance(); |
|
149 | + $ele = new XoopsFormPassword($title, $config[$i]->getVar('conf_name'), 50, 255, $myts->htmlspecialchars($config[$i]->getConfValueForOutput())); |
|
150 | + break; |
|
151 | + case 'textbox': |
|
152 | + default: |
|
153 | + (method_exists('MyTextSanitizer', 'sGetInstance') and $myts =& MyTextSanitizer::sGetInstance()) || $myts =& MyTextSanitizer::getInstance(); |
|
154 | + $ele = new XoopsFormText($title, $config[$i]->getVar('conf_name'), 50, 255, $myts->htmlspecialchars($config[$i]->getConfValueForOutput())); |
|
155 | + break; |
|
156 | 156 | } |
157 | 157 | $hidden = new XoopsFormHidden('conf_ids[]', $config[$i]->getVar('conf_id')); |
158 | 158 | $ele_tray = new XoopsFormElementTray($title4tray, '') ; |
@@ -156,5 +156,4 @@ |
||
156 | 156 | <br /> |
157 | 157 | \n" ; |
158 | 158 | |
159 | - return $form; |
|
160 | -} |
|
159 | + return $form |
|
161 | 160 | \ No newline at end of file |
@@ -268,4 +268,4 @@ |
||
268 | 268 | $xoopsTpl->assign('xoops_showcblock', 0); |
269 | 269 | } |
270 | 270 | |
271 | - $xoopsTpl->xoops_setCaching(0); |
|
271 | + $xoopsTpl->xoops_setCaching |
|
272 | 272 | \ No newline at end of file |