fscrap(); show_planet(); fleet_info(); break; case "pscrap": pscrap(); show_planet(); build(); break; case "oscrap": oscrap(); show_planet(); build(); break; case "print_ship_info": print_ship_info_prod($prod_id); break; case "print_building_info": print_building_info($prod_id); break; case "fprio": change_fprio($_REQUEST["pid"], $_REQUEST["prod_id"], $_REQUEST["time"], $_REQUEST["change"]); show_planet(); fleet_info(); break; default: list_planets(); break; } // ENDE include "../spaceregentsinc/footer.inc.php";
$new_mission = $new_mission . "<option value=\"0\">Defend this planet<option value=\"1\">Attack this planet" . $transport . $invade . "</select>"; $behaviour = "<select name=\"behaviour\">\n"; if ($fleet[$i][0]["behaviour"] == 0) { $behaviour = $behaviour . "<option selected value=\"0\">Evasive"; $behaviour = $behaviour . "<option value=\"1\">Aggressive"; } else { $behaviour = $behaviour . "<option value=\"0\">Evasive"; $behaviour = $behaviour . "<option selected value=\"1\">Aggressive"; } $behaviour = $behaviour . "</select>"; if ($light == "") { $light = "0"; } if ($medium == "") { $medium = "0"; } if ($heavy == "") { $heavy = "0"; } echo "<form action=\"" . $PHP_SELF . "\" method=post>"; table_text(array(($k += 1) . "<input type=hidden name=\"fid\" value=\"" . $fleet[$i][0]["fid"] . "\"", $light, $medium, $heavy, $mission, $new_mission, $behaviour, $eta, "<input type=hidden name=\"act\" value=\"newmission\"><input type=hidden name=\"pid\" value=\"" . $pid . "\"><input type=submit value=\"Execute\""), "center", "", "", "text"); echo "</form>"; } table_end(); } switch ($act) { default: $bewohnbar = show_planet(); } // ENDE include "../spaceregentsinc/footer.inc.php";