@@ -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 |
@@ -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 |
@@ -1085,8 +1085,4 @@ |
||
| 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 |
@@ -1085,8 +1085,4 @@ |
||
| 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 |
@@ -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 |
@@ -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 |
@@ -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 |
@@ -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 |
@@ -49,9 +49,4 @@ |
||
| 49 | 49 | >>>>>>> feature/intval |
| 50 | 50 | if ($count <= 0) { |
| 51 | 51 | include_once XOOPS_TRUST_PATH.'/libs/altsys/include/tpls_functions.php' ; |
| 52 | - tplsadmin_import_data($xoopsConfig['template_set'], $file, implode('', file($file_path)), $mtime) ; |
|
| 53 | - } |
|
| 54 | - } |
|
| 55 | - } |
|
| 56 | - } |
|
| 57 | -} |
|
| 52 | + tplsadmin_import_data($xoopsConfig['template_set'], $file, implode('', file($file_path)), $mtime |
|
| 58 | 53 | \ No newline at end of file |
@@ -49,9 +49,4 @@ |
||
| 49 | 49 | >>>>>>> feature/intval |
| 50 | 50 | if ($count <= 0) { |
| 51 | 51 | include_once XOOPS_TRUST_PATH.'/libs/altsys/include/tpls_functions.php' ; |
| 52 | - tplsadmin_import_data($xoopsConfig['template_set'], $file, implode('', file($file_path)), $mtime) ; |
|
| 53 | - } |
|
| 54 | - } |
|
| 55 | - } |
|
| 56 | - } |
|
| 57 | -} |
|
| 52 | + tplsadmin_import_data($xoopsConfig['template_set'], $file, implode('', file($file_path)), $mtime |
|
| 58 | 53 | \ No newline at end of file |
@@ -20,8 +20,4 @@ |
||
| 20 | 20 | >>>>>>> feature/intval |
| 21 | 21 | if ($count <= 0) { |
| 22 | 22 | include_once XOOPS_TRUST_PATH.'/libs/altsys/include/tpls_functions.php' ; |
| 23 | - tplsadmin_import_data($xoopsConfig['template_set'], $file, implode('', file($file_path)), $mtime) ; |
|
| 24 | - } |
|
| 25 | - } |
|
| 26 | - } |
|
| 27 | -} |
|
| 23 | + tplsadmin_import_data($xoopsConfig['template_set'], $file, implode('', file($file_path)), $mtime |
|
| 28 | 24 | \ No newline at end of file |
@@ -20,8 +20,4 @@ |
||
| 20 | 20 | >>>>>>> feature/intval |
| 21 | 21 | if ($count <= 0) { |
| 22 | 22 | include_once XOOPS_TRUST_PATH.'/libs/altsys/include/tpls_functions.php' ; |
| 23 | - tplsadmin_import_data($xoopsConfig['template_set'], $file, implode('', file($file_path)), $mtime) ; |
|
| 24 | - } |
|
| 25 | - } |
|
| 26 | - } |
|
| 27 | -} |
|
| 23 | + tplsadmin_import_data($xoopsConfig['template_set'], $file, implode('', file($file_path)), $mtime |
|
| 28 | 24 | \ No newline at end of file |
@@ -251,6 +251,7 @@ |
||
| 251 | 251 | |
| 252 | 252 | /** |
| 253 | 253 | * Constructor |
| 254 | + * @param string $name |
|
| 254 | 255 | */ |
| 255 | 256 | public function __construct($caption, $name, $groupId, $values = null) |
| 256 | 257 | { |
@@ -359,7 +359,7 @@ discard block |
||
| 359 | 359 | public function _renderOptionTree(&$tree, $option, $prefix, $parentIds = array()) |
| 360 | 360 | { |
| 361 | 361 | $tree .= $prefix."<input type=\"checkbox\" name=\"".$this->getName() . '[groups][' . $this->_groupId . '][' . $option['id'] . "]\" id=\"" . $this->getName() . '[groups][' . $this->_groupId . '][' |
| 362 | - . $option['id'] . "]\" onclick=\""; |
|
| 362 | + . $option['id'] . "]\" onclick=\""; |
|
| 363 | 363 | // If there are parent elements, add javascript that will |
| 364 | 364 | // make them selecteded when this element is checked to make |
| 365 | 365 | // sure permissions to parent items are added as well. |
@@ -380,7 +380,7 @@ discard block |
||
| 380 | 380 | $tree .= ' checked="checked"'; |
| 381 | 381 | } |
| 382 | 382 | $tree .= ' />' . $option['name'] . "<input type=\"hidden\" name=\"" . $this->getName() . '[parents][' . $option['id'] . "]\" value=\"" . implode(':', $parentIds) . "\" /><input type=\"hidden\" name=\"" . $this->getName() . '[itemname][' |
| 383 | - . $option['id'] . "]\" value=\"" . htmlspecialchars($option['name']) . "\" /><br />\n"; |
|
| 383 | + . $option['id'] . "]\" value=\"" . htmlspecialchars($option['name']) . "\" /><br />\n"; |
|
| 384 | 384 | if (isset($option['children'])) { |
| 385 | 385 | foreach ($option['children'] as $child) { |
| 386 | 386 | array_push($parentIds, $option['id']); |
@@ -398,14 +398,4 @@ |
||
| 398 | 398 | <select name='copy_to[{$tplset4disp}]'> |
| 399 | 399 | ".str_replace('<option value=\''.$tplset4disp.'\'>'.$tplset4disp.'</option>', '', $tplset_options)." |
| 400 | 400 | </select> |
| 401 | - <input name='copy_do[{$tplset4disp}]' type='submit' value='"._MYTPLSADMIN_BTN_COPY."' onclick='return altsys_mytpladmin_check_copy_submit(\""._MYTPLSADMIN_CNF_COPY_SELECTED_TEMPLATES."\", \"{$tplset4disp}_\", true);' /> |
|
| 402 | - </td>\n" ; |
|
| 403 | - } |
|
| 404 | - |
|
| 405 | -echo " </tr>\n" ; |
|
| 406 | - |
|
| 407 | - |
|
| 408 | -echo '</table></form>'; |
|
| 409 | -// end of table & form |
|
| 410 | - |
|
| 411 | -xoops_cp_footer() ; |
|
| 401 | + <input name='copy_do[{$tplset4disp}]' type='submit' value='"._MYTPLSADMIN_BTN_COPY."' onclick='return altsys_mytpladmin_check_copy_submit(\""._MYTPLSADMIN_CNF_COPY_SELECTED_TEMPLATES."\", \"{$tplset4disp} |
|
| 412 | 402 | \ No newline at end of file |
@@ -398,14 +398,4 @@ |
||
| 398 | 398 | <select name='copy_to[{$tplset4disp}]'> |
| 399 | 399 | ".str_replace('<option value=\''.$tplset4disp.'\'>'.$tplset4disp.'</option>', '', $tplset_options)." |
| 400 | 400 | </select> |
| 401 | - <input name='copy_do[{$tplset4disp}]' type='submit' value='"._MYTPLSADMIN_BTN_COPY."' onclick='return altsys_mytpladmin_check_copy_submit(\""._MYTPLSADMIN_CNF_COPY_SELECTED_TEMPLATES."\", \"{$tplset4disp}_\", true);' /> |
|
| 402 | - </td>\n" ; |
|
| 403 | - } |
|
| 404 | - |
|
| 405 | -echo " </tr>\n" ; |
|
| 406 | - |
|
| 407 | - |
|
| 408 | -echo '</table></form>'; |
|
| 409 | -// end of table & form |
|
| 410 | - |
|
| 411 | -xoops_cp_footer() ; |
|
| 401 | + <input name='copy_do[{$tplset4disp}]' type='submit' value='"._MYTPLSADMIN_BTN_COPY."' onclick='return altsys_mytpladmin_check_copy_submit(\""._MYTPLSADMIN_CNF_COPY_SELECTED_TEMPLATES."\", \"{$tplset4disp} |
|
| 412 | 402 | \ No newline at end of file |
@@ -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 |
@@ -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 |