forked from extern/egroupware
enabled top menu support
This commit is contained in:
parent
81f08a87ea
commit
0e9567af69
@ -31,5 +31,36 @@ class jerryr_framework extends idots_framework
|
||||
}
|
||||
|
||||
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');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -1,90 +1,103 @@
|
||||
<?php
|
||||
/**************************************************************************\
|
||||
* eGroupWare - Preferences *
|
||||
* http://www.eGroupWare.org *
|
||||
* -------------------------------------------- *
|
||||
* 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 *
|
||||
* Free Software Foundation; either version 2 of the License, or (at your *
|
||||
* option) any later version. *
|
||||
\**************************************************************************/
|
||||
/**************************************************************************\
|
||||
* eGroupWare - Preferences *
|
||||
* http://www.eGroupWare.org *
|
||||
* -------------------------------------------- *
|
||||
* 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 *
|
||||
* Free Software Foundation; either version 2 of the License, or (at your *
|
||||
* option) any later version. *
|
||||
\**************************************************************************/
|
||||
|
||||
/* $Id$ */
|
||||
/* $Id$ */
|
||||
|
||||
$start_and_logout_icons = array(
|
||||
'yes' => lang('yes'),
|
||||
'no' => lang('no')
|
||||
);
|
||||
$click_or_onmouseover = array(
|
||||
'click' => lang('Click'),
|
||||
'onmouseover' => lang('On Mouse Over')
|
||||
);
|
||||
$top_menu = array(
|
||||
'topmenu' => lang('Show as Topmenu'),
|
||||
'sidebox' => lang('Show in sidebox')
|
||||
);
|
||||
$yes_no = array(
|
||||
'yes' => lang('yes'),
|
||||
'no' => lang('no')
|
||||
);
|
||||
$click_or_onmouseover = array(
|
||||
'click' => lang('Click'),
|
||||
'onmouseover' => lang('On Mouse Over')
|
||||
);
|
||||
|
||||
$GLOBALS['settings'] = array(
|
||||
'prefssection' => array(
|
||||
'type' => 'section',
|
||||
'title' => 'Preferences for the jerry template set',
|
||||
'xmlrpc' => False,
|
||||
'admin' => False
|
||||
),
|
||||
'start_and_logout_icons' => array(
|
||||
'type' => 'select',
|
||||
'label' => 'Show home and logout button in main application bar?',
|
||||
'name' => 'start_and_logout_icons',
|
||||
'values' => $start_and_logout_icons,
|
||||
'help' => 'When you say yes the home and logout buttons are presented as applications in the main top applcation bar.',
|
||||
'xmlrpc' => False,
|
||||
'admin' => False
|
||||
),
|
||||
'max_icons' => array(
|
||||
'type' => 'input',
|
||||
'label' => 'Max number of icons in navbar',
|
||||
'name' => 'max_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.',
|
||||
'default' => '',
|
||||
'size' => 3,
|
||||
'xmlrpc' => False,
|
||||
'admin' => False
|
||||
),
|
||||
'auto_hide_sidebox' => array(
|
||||
'type' => 'check',
|
||||
'label' => 'Autohide Sidebox menu\'s',
|
||||
'name' => 'auto_hide_sidebox',
|
||||
'help' => 'Automatically hide the Sidebox menu\'s?',
|
||||
'xmlrpc' => False,
|
||||
'admin' => False
|
||||
),
|
||||
'click_or_onmouseover' => array(
|
||||
'type' => 'select',
|
||||
'label' => 'Click or Mouse Over to show menus',
|
||||
'name' => 'click_or_onmouseover',
|
||||
'values' => $click_or_onmouseover,
|
||||
'help' => 'Click or Mouse Over to show menus?',
|
||||
'xmlrpc' => False,
|
||||
'admin' => False
|
||||
),
|
||||
'disable_slider_effects' => array(
|
||||
'type' => 'check',
|
||||
'label' => 'Disable slider effects',
|
||||
'name' => 'disable_slider_effects',
|
||||
'help' => 'Disable the animated slider effects when showing or hiding menus in the page? Opera and Konqueror users will probably must want this.',
|
||||
'xmlrpc' => False,
|
||||
'admin' => False
|
||||
),
|
||||
'disable_pngfix' => array(
|
||||
'type' => 'check',
|
||||
'label' => 'Disable Internet Explorer png-image-bugfix',
|
||||
'name' => 'disable_pngfix',
|
||||
'help' => 'Disable the execution a bugfixscript for Internet Explorer 5.5 and higher to show transparency in PNG-images?',
|
||||
'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
|
||||
)
|
||||
);
|
||||
$GLOBALS['settings'] = array(
|
||||
'prefssection' => array(
|
||||
'type' => 'section',
|
||||
'title' => 'Preferences for the jerryr template set',
|
||||
'xmlrpc' => False,
|
||||
'admin' => False
|
||||
),
|
||||
'show_general_menu' => array(
|
||||
'type' => 'select',
|
||||
'label' => 'How to show the general eGroupWare menu ?',
|
||||
'name' => 'show_general_menu',
|
||||
'values' => $top_menu,
|
||||
'help' => 'Where and how will the egroupware links like preferences, about and logout be displayed.',
|
||||
'xmlrpc' => False,
|
||||
'admin' => False
|
||||
),
|
||||
'start_and_logout_icons' => array(
|
||||
'type' => 'select',
|
||||
'label' => 'Show home and logout button in main application bar?',
|
||||
'name' => 'start_and_logout_icons',
|
||||
'values' => $yes_no,
|
||||
'help' => 'When you say yes the home and logout buttons are presented as applications in the main top applcation bar.',
|
||||
'xmlrpc' => False,
|
||||
'admin' => False
|
||||
),
|
||||
'max_icons' => array(
|
||||
'type' => 'input',
|
||||
'label' => 'Max number of icons in navbar',
|
||||
'name' => 'max_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.',
|
||||
'default' => '',
|
||||
'size' => 3,
|
||||
'xmlrpc' => False,
|
||||
'admin' => False
|
||||
),
|
||||
'auto_hide_sidebox' => array(
|
||||
'type' => 'check',
|
||||
'label' => 'Autohide Sidebox menu\'s',
|
||||
'name' => 'auto_hide_sidebox',
|
||||
'help' => 'Automatically hide the Sidebox menu\'s?',
|
||||
'xmlrpc' => False,
|
||||
'admin' => False
|
||||
),
|
||||
'click_or_onmouseover' => array(
|
||||
'type' => 'select',
|
||||
'label' => 'Click or Mouse Over to show menus',
|
||||
'name' => 'click_or_onmouseover',
|
||||
'values' => $click_or_onmouseover,
|
||||
'help' => 'Click or Mouse Over to show menus?',
|
||||
'xmlrpc' => False,
|
||||
'admin' => False
|
||||
),
|
||||
'disable_slider_effects' => array(
|
||||
'type' => 'check',
|
||||
'label' => 'Disable slider effects',
|
||||
'name' => 'disable_slider_effects',
|
||||
'help' => 'Disable the animated slider effects when showing or hiding menus in the page? Opera and Konqueror users will probably must want this.',
|
||||
'xmlrpc' => False,
|
||||
'admin' => False
|
||||
),
|
||||
'disable_pngfix' => array(
|
||||
'type' => 'check',
|
||||
'label' => 'Disable Internet Explorer png-image-bugfix',
|
||||
'name' => 'disable_pngfix',
|
||||
'help' => 'Disable the execution a bugfixscript for Internet Explorer 5.5 and higher to show transparency in PNG-images?',
|
||||
'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
|
||||
)
|
||||
);
|
||||
|
@ -5,7 +5,7 @@
|
||||
new ypSlideOutMenu("menu1", "down", 45, 5, 188, 300,'right');
|
||||
</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="menu1Content" class="menuOneBox">
|
||||
@ -68,18 +68,10 @@
|
||||
|
||||
</div>
|
||||
<div id="divStatusBar"><table width="100%" cellspacing="0" cellpadding="0" border="0"><tr>
|
||||
<td align="left" width="33%">
|
||||
<table cellpadding=0 cellspacing=0>
|
||||
<tr>
|
||||
<td class="userinfolt"></td>
|
||||
<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>
|
||||
<td width="33%" align="left" id="user_info">{user_info}</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 -->
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user