[geeklog-cvs] Geeklog-1.x/public_html/admin configuration.php, 1.3, 1.4

Blaine Lang blaine at qs1489.pair.com
Sun Jan 13 16:47:17 EST 2008


Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin
In directory qs1489.pair.com:/tmp/cvs-serv34314

Modified Files:
	configuration.php 
Log Message:
Changes to support using a leftblock menu for the configmanager menu.
Note: I will clean this up if this approach is accepted as the final solution.

Index: configuration.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/configuration.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** configuration.php	30 Dec 2007 00:11:40 -0000	1.3
--- configuration.php	13 Jan 2008 21:47:15 -0000	1.4
***************
*** 39,42 ****
--- 39,73 ----
  $config =& config::get_instance();
  
+ 
+ function configmanager_menu() {
+     global $config,$conf_group,$LANG_configsubgroups;
+ 
+     $retval = COM_startBlock( 'Config Sections', '', 'blockheader.thtml');
+ 
+     $groups = $config->_get_groups();
+     if (count($groups) > 0) {
+         foreach ($groups as $group) {
+             $group_display = ucwords($group);
+             $retval .= "<div><a href=\"#\" onclick='open_group(\"$group\")'>$group_display</a></div>";
+         }
+     }
+     $retval .= COM_endBlock('blockfooter.thtml');
+ 
+     $subgroup_title = ucwords($conf_group);
+     $retval .= COM_startBlock( $subgroup_title, '', 'blockheader.thtml');
+ 
+     $groups = $config->get_sgroups($conf_group);
+     if (count($groups) > 0) {
+         foreach ($groups as $group) {
+             $group_display =  $LANG_configsubgroups[$conf_group][$group];
+             $retval .= "<div><a href=\"#\" onclick='open_subgroup(\"$conf_group\",\"$group\")'>$group_display</a></div>";
+         }
+     }
+     $retval .= COM_endBlock('blockfooter.thtml');
+ 
+     return $retval;
+ 
+ }
+ 
  if (array_key_exists('set_action', $_POST)){
      if (SEC_inGroup('Root')) {




More information about the geeklog-cvs mailing list