function show_possible_vessels_on_planet($anomaly_id)
{
    assert(is_numeric($anomaly_id));
    $anomaly = anomaly_get_anomaly($anomaly_id);
    // No construction possible when we don't have the right buildings...
    if (!planet_has_vesselbuilding_capability($anomaly_id)) {
        print_subtitle("Planet " . $anomaly['name'] . " has no vessel construction capability.");
        create_submenu(array("Planet view" => "anomaly.php?cmd=" . encrypt_get_vars("show") . "&aid=" . encrypt_get_vars($anomaly_id), "Surface view" => "surface.php?cmd=" . encrypt_get_vars("show") . "&aid=" . encrypt_get_vars($anomaly_id)));
        return;
    }
    print_subtitle("Vessel construction on planet " . $anomaly['name']);
    $user = user_get_user($anomaly['user_id']);
    $result = sql_query("SELECT * FROM g_ores WHERE planet_id=" . $anomaly_id);
    $ores = sql_fetchrow($result);
    $result = sql_query("SELECT * FROM s_vessels ORDER BY id");
    while ($vessel = sql_fetchrow($result)) {
        $cannot_build = true;
        // Can we build it?
        if ($vessel['build_level'] <= $user['vessel_level']) {
            $cannot_build = false;
        }
        if ($cannot_build == false) {
            vessel_show_type_details($vessel['id'], $anomaly_id, $anomaly['user_id'], $ores['stock_ores']);
        }
    }
}
// Session Identification
session_identification();
print_header();
print_title("Buildings & Inventions", "All buildings, vessels and inventions currently known in the game are shown on this page. Only the details of the items you already discovered are available.");
$cmd = input_check("show", "uid", 0, "showvid", "vid", 0, "showbid", "bid", 0, "showiid", "iid", 0);
if ($cmd == "show") {
    if ($uid == "") {
        $uid = user_ourself();
    }
    print_disoveries($uid);
}
if ($cmd == "showbid") {
    building_show_details($bid, 0, 0, "");
}
if ($cmd == "showvid") {
    vessel_show_type_details($vid, 0, 0, "");
}
if ($cmd == "showiid") {
    invention_show_details($iid, 0, 0, "");
}
print_footer();
exit;
// ============================================================================================
//
//
// Description:
//
//
// Parameters:
//
//