enabled top menu support

This commit is contained in:
Jerry Ruhe 2007-01-13 04:15:30 +00:00
parent 81f08a87ea
commit 0e9567af69
3 changed files with 136 additions and 100 deletions

View File

@ -31,5 +31,36 @@ class jerryr_framework extends idots_framework
} }
function topmenu() function topmenu()
{}
{
$this->tplsav2->menuitems = array();
$this->tplsav2->menuinfoitems = array();
$this->apps = $this->_get_navbar_apps();
$this->_add_topmenu_item('home');
/*if($GLOBALS['egw_info']['user']['apps']['manual'])
{
$this->_add_topmenu_item('manual');
}
*/
if($GLOBALS['egw_info']['user']['apps']['preferences'])
{
$this->_add_topmenu_item('preferences');
}
$this->_add_topmenu_item('about',lang('About %1',$GLOBALS['egw_info']['apps'][$GLOBALS['egw_info']['flags']['currentapp']]['title']));
$this->_add_topmenu_item('logout');
$this->tplsav2->assign('info_icons',$this->topmenu_icon_arr);
$this->_add_topmenu_info_item($this->_user_time_info());
$this->_add_topmenu_info_item($this->_current_users());
$this->_add_topmenu_info_item($this->_get_quick_add());
$this->tplsav2->display('topmenu.tpl.php');
}
} }

View File

@ -1,90 +1,103 @@
<?php <?php
/**************************************************************************\ /**************************************************************************\
* eGroupWare - Preferences * * eGroupWare - Preferences *
* http://www.eGroupWare.org * * http://www.eGroupWare.org *
* -------------------------------------------- * * -------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it * * This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the * * under the terms of the GNU General Public License as published by the *
* Free Software Foundation; either version 2 of the License, or (at your * * Free Software Foundation; either version 2 of the License, or (at your *
* option) any later version. * * option) any later version. *
\**************************************************************************/ \**************************************************************************/
/* $Id$ */ /* $Id$ */
$start_and_logout_icons = array( $top_menu = array(
'yes' => lang('yes'), 'topmenu' => lang('Show as Topmenu'),
'no' => lang('no') 'sidebox' => lang('Show in sidebox')
); );
$click_or_onmouseover = array( $yes_no = array(
'click' => lang('Click'), 'yes' => lang('yes'),
'onmouseover' => lang('On Mouse Over') 'no' => lang('no')
); );
$click_or_onmouseover = array(
'click' => lang('Click'),
'onmouseover' => lang('On Mouse Over')
);
$GLOBALS['settings'] = array( $GLOBALS['settings'] = array(
'prefssection' => array( 'prefssection' => array(
'type' => 'section', 'type' => 'section',
'title' => 'Preferences for the jerry template set', 'title' => 'Preferences for the jerryr template set',
'xmlrpc' => False, 'xmlrpc' => False,
'admin' => False 'admin' => False
), ),
'start_and_logout_icons' => array( 'show_general_menu' => array(
'type' => 'select', 'type' => 'select',
'label' => 'Show home and logout button in main application bar?', 'label' => 'How to show the general eGroupWare menu ?',
'name' => 'start_and_logout_icons', 'name' => 'show_general_menu',
'values' => $start_and_logout_icons, 'values' => $top_menu,
'help' => 'When you say yes the home and logout buttons are presented as applications in the main top applcation bar.', 'help' => 'Where and how will the egroupware links like preferences, about and logout be displayed.',
'xmlrpc' => False, 'xmlrpc' => False,
'admin' => False 'admin' => False
), ),
'max_icons' => array( 'start_and_logout_icons' => array(
'type' => 'input', 'type' => 'select',
'label' => 'Max number of icons in navbar', 'label' => 'Show home and logout button in main application bar?',
'name' => 'max_icons', 'name' => 'start_and_logout_icons',
'help' => 'How many icons should be shown in the navbar (top of the page). Additional icons go into a kind of pulldown menu, callable by the icon on the far right side of the navbar.', 'values' => $yes_no,
'default' => '', 'help' => 'When you say yes the home and logout buttons are presented as applications in the main top applcation bar.',
'size' => 3, 'xmlrpc' => False,
'xmlrpc' => False, 'admin' => False
'admin' => False ),
), 'max_icons' => array(
'auto_hide_sidebox' => array( 'type' => 'input',
'type' => 'check', 'label' => 'Max number of icons in navbar',
'label' => 'Autohide Sidebox menu\'s', 'name' => 'max_icons',
'name' => 'auto_hide_sidebox', 'help' => 'How many icons should be shown in the navbar (top of the page). Additional icons go into a kind of pulldown menu, callable by the icon on the far right side of the navbar.',
'help' => 'Automatically hide the Sidebox menu\'s?', 'default' => '',
'xmlrpc' => False, 'size' => 3,
'admin' => False 'xmlrpc' => False,
), 'admin' => False
'click_or_onmouseover' => array( ),
'type' => 'select', 'auto_hide_sidebox' => array(
'label' => 'Click or Mouse Over to show menus', 'type' => 'check',
'name' => 'click_or_onmouseover', 'label' => 'Autohide Sidebox menu\'s',
'values' => $click_or_onmouseover, 'name' => 'auto_hide_sidebox',
'help' => 'Click or Mouse Over to show menus?', 'help' => 'Automatically hide the Sidebox menu\'s?',
'xmlrpc' => False, 'xmlrpc' => False,
'admin' => False 'admin' => False
), ),
'disable_slider_effects' => array( 'click_or_onmouseover' => array(
'type' => 'check', 'type' => 'select',
'label' => 'Disable slider effects', 'label' => 'Click or Mouse Over to show menus',
'name' => 'disable_slider_effects', 'name' => 'click_or_onmouseover',
'help' => 'Disable the animated slider effects when showing or hiding menus in the page? Opera and Konqueror users will probably must want this.', 'values' => $click_or_onmouseover,
'xmlrpc' => False, 'help' => 'Click or Mouse Over to show menus?',
'admin' => False 'xmlrpc' => False,
), 'admin' => False
'disable_pngfix' => array( ),
'type' => 'check', 'disable_slider_effects' => array(
'label' => 'Disable Internet Explorer png-image-bugfix', 'type' => 'check',
'name' => 'disable_pngfix', 'label' => 'Disable slider effects',
'help' => 'Disable the execution a bugfixscript for Internet Explorer 5.5 and higher to show transparency in PNG-images?', 'name' => 'disable_slider_effects',
'xmlrpc' => False, 'help' => 'Disable the animated slider effects when showing or hiding menus in the page? Opera and Konqueror users will probably must want this.',
'admin' => False 'xmlrpc' => False,
), 'admin' => False
'show_generation_time' => array( ),
'type' => 'check', 'disable_pngfix' => array(
'label' => 'Show page generation time', 'type' => 'check',
'name' => 'show_generation_time', 'label' => 'Disable Internet Explorer png-image-bugfix',
'help' => 'Show page generation time on the bottom of the page?', 'name' => 'disable_pngfix',
'xmlrpc' => False, 'help' => 'Disable the execution a bugfixscript for Internet Explorer 5.5 and higher to show transparency in PNG-images?',
'admin' => False 'xmlrpc' => False,
) 'admin' => False
); ),
'show_generation_time' => array(
'type' => 'check',
'label' => 'Show page generation time',
'name' => 'show_generation_time',
'help' => 'Show page generation time on the bottom of the page?',
'xmlrpc' => False,
'admin' => False
)
);

View File

@ -5,7 +5,7 @@
new ypSlideOutMenu("menu1", "down", 45, 5, 188, 300,'right'); new ypSlideOutMenu("menu1", "down", 45, 5, 188, 300,'right');
</script> </script>
<div id="divLogo"><a href="{logo_url}" target="_blank"><img src="{logo_file}" border="0" title="{logo_title}" alt="eGroupWare"/></a></div> <div style="position:relative"><div id="divLogo"><a href="{logo_url}" target="_blank"><img src="{logo_file}" border="0" title="{logo_title}" alt="eGroupWare"/></a></div></div>
<div id="menu1Container"> <div id="menu1Container">
<div id="menu1Content" class="menuOneBox"> <div id="menu1Content" class="menuOneBox">
@ -68,18 +68,10 @@
</div> </div>
<div id="divStatusBar"><table width="100%" cellspacing="0" cellpadding="0" border="0"><tr> <div id="divStatusBar"><table width="100%" cellspacing="0" cellpadding="0" border="0"><tr>
<td align="left" width="33%"> <td width="33%" align="left" id="user_info">{user_info}</td>
<table cellpadding=0 cellspacing=0> <td align="center" id="admin_info">{current_users}</td>
<tr> <td width="33%" align="right" id="quick_add">{quick_add}</td>
<td class="userinfolt"></td> </tr></table></div>
<td id="user_info" class="userinfomid">{user_info}</td>
<td class="userinfort"></td>
</tr>
</table>
</td>
<td align="center" id="admin_info">{current_users}</td>
<td width="33%" align="right" id="quick_add">{quick_add}</td>
</tr></table></div>
<!-- END navbar_header --> <!-- END navbar_header -->