} else {
            if ($field->isDateField()) {
                $cug_section = 'ArtifactDateField';
            } else {
                if ($field->isTextArea()) {
                    $cug_section = 'ArtifactTextField';
                }
            }
        }
    }
}
// Display the customized help frame at the top with info for this specific field
if (isset($field_info) && $field_info) {
    // Show the artifact field info in the top frame
    help_header($Language->getText('help_browse_tracker_query_field', 'art_search_criteria'));
    print '<TABLE class="contenttable" cellpadding="0" cellspacing="0" border="0">' . "\n";
    print '<TR><TD width="20%">' . $Language->getText('help_browse_bug_query_field', 'field_name') . ':</TD><TD><B>' . $field->getLabel() . "</B></TD>\n";
    print '<TR><TD width="20%">' . $Language->getText('help_browse_bug_query_field', 'field_type') . ':</TD><TD><B>' . $field->getLabelFieldType() . "</B></TD>\n";
    print "</TABLE>\n";
    print '<hr><u>' . $Language->getText('help_browse_bug_query_field', 'description') . '</u>:<I>' . $field->getDescription() . '</I>' . "\n";
    help_footer();
} else {
    // send the frameset: at top we want the artifact description and
    // the relevant user guide section at the bottom
    echo '
    <HTML>
    <FRAMESET rows="30%,70%">
    <FRAME src="?helpid=' . $helpid . '&field_info=1" frameborder="0">
    <FRAME src="/help/show_help.php?section=ArtifactBrowsing.html#' . $cug_section . '" frameborder="0">
    </FRAMESET></HTML>';
}
示例#2
0
//
// Codendi
// Copyright (c) Xerox Corporation, Codendi Team, 2001-2009. All rights reserved
// http://www.codendi.com
//
// $Id:
//
//	Originally written by Stephane Bouhet 2002, Codendi Team, Xerox
//
require_once 'pre.php';
$lang = $current_user->getShortLocale();
// Retrieve the user language if not guest
// TODO
// if section param not given then defaults to index.html
if (!isset($section)) {
    $section = "index.html";
}
$help_url = get_server_url() . '/doc/' . $lang . "/user-guide/" . $section;
// Check if the file exist - Don't use fopen because it doesn't
// understand the https protocol
$cl = apache_lookup_uri($help_url);
if ($cl->status == 200) {
    // The file exists. Fine! Redirect to the help page
    header("location: " . $help_url);
} else {
    // Display error message ...
    echo help_header($Language->getText('help_show_help', 'page_not_found', $GLOBALS['sys_name']));
    echo $Language->getText('help_show_help', 'page_not_available', array($section, $GLOBALS['sys_email_admin'], $GLOBALS['sys_name']));
    echo help_footer();
}