[geeklog-cvs] Geeklog-1.x/system/classes config.class.php,1.8,1.9
Blaine Lang
blaine at qs1489.pair.com
Sat Dec 29 15:49:41 EST 2007
- Previous message (by thread): [geeklog-cvs] Geeklog-1.x/public_html/layout/professional droplinemenu.css, NONE, 1.1
- Next message (by thread): [geeklog-cvs] Geeklog-1.x/public_html/layout/professional/images/droplinemenu black_0.gif, NONE, 1.1 black_0a.gif, NONE, 1.1 black_1.gif, NONE, 1.1 black_1a.gif, NONE, 1.1 blue_0.gif, NONE, 1.1 blue_1.gif, NONE, 1.1 blue_1a.gif, NONE, 1.1 fade.gif, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/geeklog/Geeklog-1.x/system/classes
In directory qs1489.pair.com:/tmp/cvs-serv52789
Modified Files:
config.class.php
Log Message:
Config Manager Menu enhancement to use a dropline CSS based menu.
Index: config.class.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/system/classes/config.class.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** config.class.php 9 Dec 2007 21:16:43 -0000 1.8
--- config.class.php 29 Dec 2007 20:49:39 -0000 1.9
***************
*** 319,353 ****
* the "Changes" message box.
*/
! function get_ui($sg=0, $change_result=null)
{
global $_CONF,$LANG_coreconfigsubgroups;
if (!SEC_inGroup('Root'))
return config::_UI_perm_denied();
$t = new Template($_CONF['path_layout'] . 'admin/config');
! $t->set_file('main','configuration.thtml');
$t->set_var( 'xhtml', XHTML );
$t->set_var('site_url',$_CONF['site_url']);
$t->set_var('open_group', $this->ref);
! $t->set_block('main','group-selector','groups');
$groups = config::_get_groups();
! if (count($groups) > 1) {
foreach ($groups as $group) {
$t->set_var("select_id", ($group === $this->ref ? 'id="current"' : ''));
$t->set_var("group_select_value", $group);
$t->set_var("group_display", ucwords($group));
! $t->parse("groups", "group-selector", true);
}
} else {
$t->set_var('hide_groupselection','none');
}
! $subgroups = $this->get_sgroups();
! $t->set_block('main','subgroup-selector','navbar');
! foreach ($subgroups as $sgroup) {
! $t->set_var('select_id', ($sg === $sgroup ? 'id="current"' : ''));
! $t->set_var('subgroup_name', $sgroup);
! $t->set_var("subgroup_display_name",
! $LANG_coreconfigsubgroups[$sgroup]);
! $t->parse("navbar", "subgroup-selector", true);
! }
$t->set_var('open_sg', $sg);
$t->set_block('main','fieldset','sg_contents');
--- 319,360 ----
* the "Changes" message box.
*/
! function get_ui($sg='0', $change_result=null)
{
global $_CONF,$LANG_coreconfigsubgroups;
+
if (!SEC_inGroup('Root'))
return config::_UI_perm_denied();
+
+ if (!isset($sg)) $sg = '0';
$t = new Template($_CONF['path_layout'] . 'admin/config');
! $t->set_file(array('main' => 'configuration.thtml','menugroup' => 'menu_element.thtml'));
!
$t->set_var( 'xhtml', XHTML );
$t->set_var('site_url',$_CONF['site_url']);
$t->set_var('open_group', $this->ref);
!
$groups = config::_get_groups();
!
! if (count($groups) > 0) {
foreach ($groups as $group) {
$t->set_var("select_id", ($group === $this->ref ? 'id="current"' : ''));
$t->set_var("group_select_value", $group);
$t->set_var("group_display", ucwords($group));
! $subgroups = $this->get_sgroups();
! $t->set_block('menugroup','subgroup-selector','subgroups');
! foreach ($subgroups as $sgroup) {
! $t->set_var('select_id', ($sg === $sgroup ? 'id="current"' : ''));
! $t->set_var('subgroup_name', $sgroup);
! $t->set_var("subgroup_display_name",
! $LANG_coreconfigsubgroups[$sgroup]);
! $t->parse('subgroups', "subgroup-selector", true);
! }
! $t->parse("menu_elements", "menugroup", true);
!
}
} else {
$t->set_var('hide_groupselection','none');
}
!
$t->set_var('open_sg', $sg);
$t->set_block('main','fieldset','sg_contents');
***************
*** 367,373 ****
}
! // Output the result.
! $display = COM_siteHeader('none');
! $display .= COM_startBlock('Configuration Manager');
if ($change_result != null AND $change_result !== array() ) {
$t->set_var('change_block',config::_UI_get_change_block($change_result));
--- 374,380 ----
}
! // Output the result and add the required CSS for the dropline menu
! $cssfile = '<link rel="stylesheet" type="text/css" href="'.$_CONF['layout_url'] .'/droplinemenu.css" ' . XHTML .'>' . LB;
! $display = COM_siteHeader('none','Configuration Manager',$cssfile);
if ($change_result != null AND $change_result !== array() ) {
$t->set_var('change_block',config::_UI_get_change_block($change_result));
***************
*** 376,380 ****
}
$display .= $t->finish($t->parse("OUTPUT", "main"));
- $display .= COM_endBlock();
$display .= COM_siteFooter(false);
return $display;
--- 383,386 ----
- Previous message (by thread): [geeklog-cvs] Geeklog-1.x/public_html/layout/professional droplinemenu.css, NONE, 1.1
- Next message (by thread): [geeklog-cvs] Geeklog-1.x/public_html/layout/professional/images/droplinemenu black_0.gif, NONE, 1.1 black_0a.gif, NONE, 1.1 black_1.gif, NONE, 1.1 black_1a.gif, NONE, 1.1 blue_0.gif, NONE, 1.1 blue_1.gif, NONE, 1.1 blue_1a.gif, NONE, 1.1 fade.gif, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the geeklog-cvs
mailing list