/** * * * @param $appname * @param $file * @param $file2 */ function display_section($nav, $items) { section_start($nav['text'], $GLOBALS['phpgw']->common->image($nav['image'][0], $nav['image'][1])); foreach ($items as $item) { section_item($item['url'], $item['text']); } section_end(); }
function display_section($appname, $file, $file2 = False) { if ($file2) { $file = $file2; } section_start($appname, $GLOBALS['phpgw']->common->image($appname, array('navbar', $appname))); while (list($text, $url) = each($file)) { section_item($url, lang($text)); } section_end(); }
function display_section($appname, $file, $file2 = False) { if ($file2) { $file = $file2; } if (is_array($file)) { section_start($appname, $GLOBALS['phpgw']->common->image($appname, array('navbar', $appname, 'nonav'))); while (list($text, $url) = each($file)) { // If user doesn't have application configuration access, then don't show the configuration links if (strpos($url, 'admin.uiconfig') === False || !$GLOBALS['phpgw']->acl->check('site_config_access', 1, 'admin')) { section_item($url, lang($text)); } } section_end(); } }