예제 #1
0
}
if (!is_blank($tpl_wiki_link)) {
    print_bracket_link($tpl_wiki_link, lang_get('wiki'), false, 'wiki');
}
foreach ($tpl_links as $t_plugin => $t_hooks) {
    foreach ($t_hooks as $t_hook) {
        if (is_array($t_hook)) {
            foreach ($t_hook as $t_label => $t_href) {
                if (is_numeric($t_label)) {
                    print_bracket_link_prepared($t_href);
                } else {
                    print_bracket_link($t_href, $t_label);
                }
            }
        } else {
            print_bracket_link_prepared($t_hook);
        }
    }
}
echo '</span></td>';
# prev/next links
if ($t_bugslist) {
    echo '<td class="center prev-next-links"><span class="small">';
    $t_bugslist = explode(',', $t_bugslist);
    $t_index = array_search($f_bug_id, $t_bugslist);
    if (false !== $t_index) {
        if (isset($t_bugslist[$t_index - 1])) {
            print_bracket_link('view.php?id=' . $t_bugslist[$t_index - 1], '&lt;&lt;', false, 'previous-bug');
        }
        if (isset($t_bugslist[$t_index + 1])) {
            print_bracket_link('view.php?id=' . $t_bugslist[$t_index + 1], '&gt;&gt;', false, 'next-bug');
예제 #2
0
# -- Print and Export links --
echo '&#160;';
print_bracket_link('print_all_bug_page.php', lang_get('print_all_bug_page_link'));
echo '&#160;';
print_bracket_link('csv_export.php', lang_get('csv_export'));
echo '&#160;';
print_bracket_link('excel_xml_export.php', lang_get('excel_export'));
$t_event_menu_options = $t_links = event_signal('EVENT_MENU_FILTER');
foreach ($t_event_menu_options as $t_plugin => $t_plugin_menu_options) {
    foreach ($t_plugin_menu_options as $t_callback => $t_callback_menu_options) {
        if (!is_array($t_callback_menu_options)) {
            $t_callback_menu_options = array($t_callback_menu_options);
        }
        foreach ($t_callback_menu_options as $t_menu_option) {
            if ($t_menu_option) {
                print_bracket_link_prepared($t_menu_option);
            }
        }
    }
}
?>
 </span>

		<span class="floatright small"><?php 
# -- Page number links --
$f_filter = gpc_get_int('filter', 0);
print_page_links('view_all_bug_page.php', 1, $t_page_count, (int) $f_page_number, $f_filter);
?>
 </span>
	</td>
</tr>
예제 #3
0
/**
 * Print the menu for the manage configuration section
 * @param string $p_page specifies the current page name so it's link can be disabled
 * @return null
 */
function print_manage_config_menu($p_page = '')
{
    $t_configuration_report = 'adm_config_report.php';
    $t_permissions_summary_report = 'adm_permissions_report.php';
    $t_manage_work_threshold = 'manage_config_work_threshold_page.php';
    $t_manage_email = 'manage_config_email_page.php';
    $t_manage_workflow = 'manage_config_workflow_page.php';
    $t_manage_columns = 'manage_config_columns_page.php';
    switch ($p_page) {
        case $t_configuration_report:
            $t_configuration_report = '';
            break;
        case $t_permissions_summary_report:
            $t_permissions_summary_report = '';
            break;
        case $t_manage_work_threshold:
            $t_manage_work_threshold = '';
            break;
        case $t_manage_email:
            $t_manage_email = '';
            break;
        case $t_manage_workflow:
            $t_manage_workflow = '';
            break;
        case $t_manage_columns:
            $t_manage_columns = '';
            break;
    }
    echo '<br /><div align="center">';
    if (access_has_project_level(config_get('view_configuration_threshold'))) {
        print_bracket_link(helper_mantis_url($t_configuration_report), lang_get_defaulted('configuration_report'));
        print_bracket_link(helper_mantis_url($t_permissions_summary_report), lang_get('permissions_summary_report'));
        print_bracket_link(helper_mantis_url($t_manage_work_threshold), lang_get('manage_threshold_config'));
        print_bracket_link(helper_mantis_url($t_manage_workflow), lang_get('manage_workflow_config'));
        print_bracket_link(helper_mantis_url($t_manage_email), lang_get('manage_email_config'));
        print_bracket_link($t_manage_columns, lang_get('manage_columns_config'));
    }
    # Plugin / Event added options
    $t_event_menu_options = event_signal('EVENT_MENU_MANAGE_CONFIG');
    $t_menu_options = array();
    foreach ($t_event_menu_options as $t_plugin => $t_plugin_menu_options) {
        foreach ($t_plugin_menu_options as $t_callback => $t_callback_menu_options) {
            if (is_array($t_callback_menu_options)) {
                $t_menu_options = array_merge($t_menu_options, $t_callback_menu_options);
            } else {
                if (!is_null($t_callback_menu_options)) {
                    $t_menu_options[] = $t_callback_menu_options;
                }
            }
        }
    }
    // Plugins menu items
    foreach ($t_menu_options as $t_menu_item) {
        print_bracket_link_prepared($t_menu_item);
    }
    echo '</div>';
}