Пример #1
0
function build_alpha_summary_page($characters_used)
{
    global $alphabet;
    $filename = PROFILE_PATH . "profile_alpha.html";
    open_output_buffer();
    foreach ($alphabet as $character) {
        if (isset($characters_used[$character])) {
            echo "<a href=\"" . URL_BASE . PROFILE_URL . "profile_{$character}_1.html\">{$character}</a>&nbsp;";
            unset($characters_used[$character]);
        } else {
            echo "{$character} ";
        }
    }
    // Link to the 'Other' page if necessary.
    if (!empty($characters_used)) {
        echo "<a href=\"" . URL_BASE . PROFILE_URL . "profile_other_1.html\">Other</a>&nbsp;";
    }
    close_output_buffer($filename);
}
Пример #2
0
function build_alpha_summary_page($characters_used)
{
    print_debug_msg("Beginning to build alphabetical summary pages...");
    global $alphabet;
    $filename = PROFILE_PATH . "profile_alpha.html";
    open_output_buffer();
    foreach ($alphabet as $character) {
        if (isset($characters_used[$character])) {
            echo "<a href=\"" . secure_url_base() . PROFILE_URL . "profile_{$character}_1.html\">{$character}</a>&nbsp;";
            unset($characters_used[$character]);
        } else {
            echo "{$character} ";
        }
    }
    // Link to the 'Other' page if necessary.
    if (!empty($characters_used)) {
        echo "<a href=\"" . secure_url_base() . PROFILE_URL . "profile_other_1.html\">Other</a>&nbsp;";
    }
    close_output_buffer($filename);
}