Changeset 5398
- Timestamp:
- 12/10/07 13:43:31 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/trunk/amp_conf/htdocs/admin/components.class.php
r5275 r5398 60 60 } 61 61 62 function delguielem($section, $elemname) { 63 switch ($section) { 64 case '_top': 65 foreach ($this->_guielems_top as $index1 => $elements) { 66 foreach ($elements as $index2 => $element) { 67 if ($element->_elemname == $elemname) { 68 unset($this->_guielems_top[$index1][$index2]); 69 return true; 70 } 71 } 72 } 73 break; 74 case '_bottom': 75 foreach ($this->_guielems_bottom as $index1 => $elements) { 76 foreach ($elements as $index2 => $element) { 77 if ($element->_elemname == $elemname) { 78 unset($this->_guielems_bottom[$index1][$index2]); 79 return true; 80 } 81 } 82 } 83 break; 84 default: 85 if (isset($this->_guielems_middle[$section])) { 86 foreach ($this->_guielems_middle[$section] as $index1 => $elements) { 87 foreach ($elements as $index2 => $element) { 88 if ($element->_elemname == $elemname) { 89 unset($this->_guielems_bottom[$index1][$index2]); 90 return true; 91 } 92 } 93 } 94 } 95 } 96 return false; 97 } 98 62 99 function addjsfunc($function, $jstext, $sortorder = 5) { 63 100 if ( $sortorder < 0 || $sortorder > 9 ) { … … 275 312 $htmlout .= "\t<tr>\n"; 276 313 $htmlout .= "\t\t<td colspan=\"2\">"; 277 $htmlout .= "<h5> <br>" . _($section) . "</h5><hr>";314 $htmlout .= "<h5>" . _($section) . "</h5><hr>"; 278 315 $htmlout .= "</td>\n"; 279 316 $htmlout .= "\t</tr>\n"; … … 295 332 $htmlout .= "\t<tr>\n"; 296 333 $htmlout .= "\t\t<td colspan=\"2\">"; 297 $htmlout .= " ";298 334 $htmlout .= "</td>\n"; 299 335 $htmlout .= "\t</tr>\n"; … … 316 352 $htmlout .= "\t<tr>\n"; 317 353 $htmlout .= "\t\t<td colspan=\"2\">"; 318 $htmlout .= "< br><br><h6>";354 $htmlout .= "<h6>"; 319 355 $htmlout .= "<input name=\"Submit\" type=\"submit\" value=\""._("Submit")."\">"; 320 356 $htmlout .= "</h6>";
