function print_admin_menu($p_add_space = true)
{
    global $g_logout, $g_admin_index_files, $g_admin_change_password, $g_admin_manage_notes, $g_admin_manage_users, $s_logout_link, $s_index_files, $s_change_password, $s_manage_notes, $s_manage_users, $g_user_home_page;
    $queue_count = note_queue_count();
    echo '<div class="menu">.: ';
    echo "<a title=\"Go to your home page\" href=\"{$g_user_home_page}\">Home</a> :: ";
    #if ( access_check_action( ACTION_PAGES_MANAGE ) ) {
    #	echo "<a title=\"Add or remove pages\" href=\"$g_admin_index_files\">$s_index_files</a> :: ";
    #}
    if (access_check_action(ACTION_NOTES_MODERATE)) {
        echo "<a title=\"Moderate notes\" href=\"{$g_admin_manage_notes}\">{$s_manage_notes}</a> [{$queue_count}] :: ";
    }
    if (access_check_action(ACTION_USERS_MANAGE)) {
        echo "<a title=\"View/edit user information\" href=\"{$g_admin_manage_users}\">{$s_manage_users}</a> :: ";
    }
    $row = user_get_info(user_where_current());
    extract($row, EXTR_PREFIX_ALL, 'v');
    if (1 == $v_protected) {
        $t_action = ACTION_USERS_EDIT_OWN_PROTECTED;
    } else {
        $t_action = ACTION_USERS_EDIT_OWN;
    }
    if (access_check_action($t_action)) {
        echo "<a title=\"Change your own password\" href=\"{$g_admin_change_password}\">{$s_change_password}</a> :: ";
    }
    echo <<<EOT
\t\t<a title="Logout from phpWebNotes" href="{$g_logout}">{$s_logout_link}</a> :.
\t\t</div>
EOT;
}
if (!isset($f_action)) {
    $f_action = 'none';
}
if ($f_action == 'accept') {
    note_accept($f_id);
}
if ($f_action == 'decline') {
    note_decline($f_id);
}
$result = note_queue();
$row = db_fetch_array($result);
if ($row) {
    extract($row, EXTR_PREFIX_ALL, "v");
    $v_note = string_edit($v_note);
}
$queue_count = note_queue_count();
print_html_top();
print_head_top();
print_title($g_window_title);
print_css($g_css_inc_file);
print_head_bottom();
print_body_top();
print_header($g_page_title);
print_top_page($g_top_page_inc);
print_admin_menu();
# @@@@ The HTML below needs cleanup
?>
	<br />
	<table bgcolor="<?php 
echo $g_table_border_color;
?>