mirror of
https://gitlab.com/harald.mueller/aktuelle.kurse.git
synced 2024-11-24 10:41:56 +01:00
78 lines
1.6 KiB
PHP
78 lines
1.6 KiB
PHP
|
<?php
|
||
|
|
||
|
/*************************************************/
|
||
|
/** Author: Matthias von Orelli **/
|
||
|
/** Datum: Maerz 2008 **/
|
||
|
/** Version: 1.0 **/
|
||
|
/** Funktion: Selektive Auswahl **/
|
||
|
/** von Grafiken **/
|
||
|
/** Applikation: Anzeigen von Kontinent **/
|
||
|
/*************************************************/
|
||
|
?>
|
||
|
|
||
|
|
||
|
<html>
|
||
|
<body bgcolor=white
|
||
|
|
||
|
<title>PHP: Show marked Continents</title>
|
||
|
|
||
|
<hr><h1>Show Continent</h1></hr>
|
||
|
<input onClick="location.href='Worldkarte.php'" type="button" value="Home" >
|
||
|
<br>
|
||
|
<hr></hr>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<?PHP
|
||
|
|
||
|
// Initialisieren von Variablen
|
||
|
$HTML="";
|
||
|
$Kontinent = $_GET["Kontinent"];
|
||
|
|
||
|
// Ueberpruefung des ausgewaehlten Kontinents
|
||
|
if (isset($Kontinent))
|
||
|
{
|
||
|
echo ("Kontinent: ". $Kontinent);
|
||
|
|
||
|
// Dynamische Generierung der Detail Karte
|
||
|
$HTML="<form>";
|
||
|
|
||
|
switch ($Kontinent)
|
||
|
{
|
||
|
case "USA":
|
||
|
$HTML = $HTML . "<IMG SRC='./usa.gif'";
|
||
|
break;
|
||
|
case "EUROPE":
|
||
|
$HTML = $HTML . "<IMG SRC='./europe.gif'";
|
||
|
break;
|
||
|
case "JAPAN":
|
||
|
$HTML = $HTML . "<IMG SRC='./japan.gif'";
|
||
|
break;
|
||
|
default:
|
||
|
}
|
||
|
$HTML = $HTML . "</IMG>" . "</form>";
|
||
|
echo($HTML);
|
||
|
|
||
|
}
|
||
|
|
||
|
?>
|
||
|
|
||
|
<form action="" method="GET">
|
||
|
<IMG SRC="./world.gif"
|
||
|
USEMAP="#World" border=1 ALT="World Karte ist here">
|
||
|
|
||
|
<MAP NAME="World">
|
||
|
<AREA SHAPE="RECT" COORDS="38,49,157,127" HREF="./Worldkarte.php?Kontinent=USA">
|
||
|
<AREA SHAPE="RECT" COORDS="233,14,317,91" HREF="./Worldkarte.php?Kontinent=EUROPE">
|
||
|
<AREA SHAPE="RECT" COORDS="480,58,522,105" HREF="./Worldkarte.php?Kontinent=JAPAN">
|
||
|
</MAP>
|
||
|
|
||
|
</IMG>
|
||
|
|
||
|
</form>
|
||
|
|
||
|
|
||
|
</body>
|
||
|
</html>
|