/** * * * @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(); } }
echo '<tr><td class="form-title width30">' . lang_get('status') . '</td>'; echo '<td class="form-title" >' . lang_get('comment') . '</td></tr>'; echo "\n"; echo $t_validation_result; echo '</table><br /><br />'; } # Initialization for 'reopened' label handling $t_resolved_status = config_get('bug_resolved_status_threshold'); $t_reopen_status = config_get('bug_reopen_status'); $t_reopen_label = MantisEnum::getLabel(lang_get('resolution_enum_string'), config_get('bug_reopen_resolution')); # display the graph as a matrix section_begin(lang_get('workflow')); foreach ($t_status_arr as $t_from_status => $t_from_label) { capability_row($t_from_status); } section_end(); # display the access levels required to move an issue echo "\n\n"; access_begin(lang_get('access_levels')); access_row(); access_end(); if ($g_can_change_flags) { echo '<div class="center">' . "\n"; echo '<input type="submit" class="button" value="' . lang_get('change_configuration') . '" />' . "\n"; echo '</div>' . "\n"; echo '</form>' . "\n"; if (0 < count($g_overrides)) { echo '<div class="form-container">'; echo '<div class="submit-button">' . "\n"; echo '<form id="mail_config_action" method="post" action="manage_config_revert.php">' . "\n"; echo '<fieldset>' . "\n";