<script type="text/javascript"> function addRoom(Room) { var Eintrag = document.createElement("option"); Eintrag.text = Room; Eintrag.value = Room; var FolgendeOption = null; if (document.all) FolgendeOption = document.getElementById("roomcategory").length; document.getElementById("roomcategory").add(Eintrag, FolgendeOption); }
function addFood(Food) { var Eintrag = document.createElement("option"); Eintrag.text = Food; Eintrag.value = Food; var FolgendeOption = null; if (document.all) FolgendeOption = document.getElementById("selectfood").length; document.getElementById("selectfood").add(Eintrag, FolgendeOption); }
function changeRoom(hotel) { var hotelname=document.getElementById("hotel").value; while (document.getElementById("roomcategory").length>0) { document.getElementById("roomcategory").remove(0); } if (hotelname=="Hotel Ambassador") { addRoom("Einzelzimmer"); addRoom("Doppelzimmer"); document.getElementById("roomcategory").value="Einzelzimmer"; } else if (hotelname=="Hotel Porto Azzurro") { addRoom("Einzelzimmer"); addRoom("Doppelzimmer"); addRoom("2er Appartment"); addRoom("3er Appartment"); addRoom("4er Appartment"); document.getElementById("roomcategory").value="Einzelzimmer"; } else { addRoom("Comfort Einzelzimmer"); addRoom("Comfort Doppelzimmer"); addRoom("Deluxe Doppelzimmer"); addRoom("Deluxe 3er Zimmer"); addRoom("Deluxe 4er Zimmer"); addRoom("Prestige Doppelzimmer"); addRoom("Prestige 3er Zimmer"); addRoom("Prestige 4er Zimmer"); document.getElementById("roomcategory").value="Comfort Einzelzimmer"; } //alert(document.getElementById("roomcategory").length); selectview();
}
function selectview() { var hotelname=document.getElementById("hotel").value; var roomcat=document.getElementById("roomcategory").value; if (hotelname=="Hotel Porto Azzurro") { document.getElementById("seaview").value="Nein"; document.getElementById("seaview").disabled=1; } else if (((roomcat=="Prestige Doppelzimmer")||(roomcat=="Prestige 3er Zimmer")||(roomcat=="Prestige 4er Zimmer"))) { document.getElementById("seaview").value="Ja"; document.getElementById("seaview").disabled=1; } else { document.getElementById("seaview").value="Nein"; document.getElementById("seaview").disabled=0; } selectfood(); }
function selectfood() { var roomcat=document.getElementById("roomcategory").value; while (document.getElementById("selectfood").length>0) { document.getElementById("selectfood").remove(0); } if ((roomcat=="2er Appartment")||(roomcat=="3er Appartment")||(roomcat=="4er Appartment")) { addFood("Frühstück"); addFood("Halbpension"); addFood("Selbstverpflegung"); document.getElementById("selectfood").value="Frühstück"; } else { addFood("Frühstück"); addFood("Halbpension"); document.getElementById("selectfood").value="Frühstück"; } } </script> <style type="text/css"> <!-- .Stil1 { font-size: 36px; color: #000066; font-weight: bold; } --> </style>
<form name="Buchung" method="post" action="german.php?site=buchung/sendbooking"> <table width="750" height="464" border="1" align="left" cellpadding="1" cellspacing="1" id="bookingtable"> <tr> <tdcolspan="2"><p class="Stil1">Buchungsformular</p></td> </tr> <tr>
<td colspan="2"> <p><input type="radio" name="bookoroffer" value="Angebot" checked>Bitte erstellen sie uns ein unverbindliches Angebot</p> <p><input type="radio" name="bookoroffer" value="Buchung">Wir möchten fest buchen </p> </td> </tr> <tr> <td width="60%"><table width="100%"><tr><td width="30%">Name:</td><td><input type="text" name="name" maxlength="30" size="30"></td></tr></table></td>
<td width="40%"><table width="100%"><tr><td width="30%">Telefon:</td><td><input type="text" name="phone" maxlength="30" size="30"></td></tr></table></td> </tr> <tr> <td><table width="100%"><tr><td width="30%">Vorname:</td><td><input type="text" name="firstname" maxlength="30" size="30"></td></tr></table></td> <td><table width="100%"><tr><td width="30%">E-Mail:</td><td><input type="text" name="email" maxlength="40" size="40"></td></tr></table></td> </tr> <tr>
<td><table width="100%"><tr><td width="30%">Straße:</td><td><input type="text" name="street" maxlength="30" size="30"></td></tr></table></td> <td><table width="100%"><tr><td width="30%">PLZ/Ort:</td><td><input type="text" name="plz" maxlength="30" size="30"></td></tr></table></td> </tr> <tr><td colspan="2"><table width="100%"><tr><td width="40%">Ankunftsdatum:</td><td><input type="text" name="firstdate" maxlength="10" size="10"></td></tr></table></td></tr> <tr><td colspan="2"><table width="100%"><tr><td width="40%">Abreisedatum:</td><td><input type="text" name="lastdate" maxlength="10" size="10"></td></tr></table></td></tr> <tr><td colspan="2"><table width="100%"><tr><td width="40%">Anzahl der Reisenden:</td><td><input type="text" name="numofpersons" maxlength="3" size="3"></td></tr></table></td></tr>
<tr><td colspan="2"><table width="100%"><tr><td width="40%">Hotel:</td><td> <select name="hotel" size="1" id="hotel" onchange="changeRoom()"> <option value="Hotel Ambassador" selected>Hotel Ambassador</option> <option value="Hotel Porto Azzurro">Hotel Porto Azzurro</option> <option value="Maritim Antonine Hotel & Spa ">Maritim Antonine Hotel & Spa </option> </select>
</td></tr></table></td></tr> <tr><td colspan="2"><table width="100%"><tr><td width="40%">Zimmerkategorie:</td><td> <select name="roomcategory" size="1" id="roomcategory" onChange="selectview()"> <option value="Einzelzimmer" selected>Einzelzimmer</option> <option value="Doppelzimmer">Doppelzimmer</option> </select> </td></tr></table></td></tr>
<tr><td colspan="2"><table width="100%"><tr><td width="40%">Zimmer mit Meerblick:</td><td> <select name="seaview" size="1" id="seaview"> <option value="Ja">Ja</option> <option selected value="Nein">Nein</option> </select> </td></tr></table></td></tr> <tr><td colspan="2"><table width="100%"><tr><td width="40%">Verpflegung:</td><td>
<select name="selectfood" size="1" id="selectfood"> <option value="Frühstück">Frühstück</option> <option value="Halbpansion">Halbpension</option> </select> </td></tr></table></td></tr> <tr><td colspan="2"><table width="100%"><tr><td width="40%">Anzahl der gewünschten Tauchgänge 1. Person:</td><td><input type="text" name="firstnumofdive" maxlength="2" size="2"></td></tr></table></td></tr>
<tr><td colspan="2"><table width="100%"><tr><td width="40%">Anzahl der gewünschten Tauchgänge 2. Person:</td><td><input type="text" name="secondnumofdive" maxlength="2" size="2"></td></tr></table></td></tr> <tr><td colspan="2"><table width="100%"><tr><td width="40%">Tauchpaket 1. Person:</td><td> <select name="firstcourse" size="1" id="firstcourse"> <option selected></option> <option>Schnuppertauchen</option> <option>CMAS* OWD</option> <option>CMAS** AOWD</option>
</select> </td></tr></table></td></tr> <tr><td colspan="2"><table width="100%"><tr><td width="40%">Tauchpaket 2. Person:</td><td> <select name="secondcourse" size="1" id="secondcourse"> <option selected></option> <option>Schnuppertauchen</option> <option>CMAS* OWD</option>
<option>CMAS** AOWD</option> </select> </td></tr></table></td></tr> <tr><td colspan="2"><table width="100%"><tr><td width="40%">Bemerkungen:</td><td> <textarea name="comment" cols="50" rows="8" id="comment"></textarea> </td></tr></table></td></tr>
<tr>
<td> Dies ist ein Spamschutz, bitte die Aufgabe lösen: <img src="captcha.php"> </td> <td><input type="text" name="sicherheitscode" size="5"></td></tr>
<tr> <td colspan="2"> <table width="100" border="0" align="right"> <tr> <td><div align="right">
<input type="submit" name="submit" value="Buchung abschicken"> </div></td> </tr> </table></td></tr> </table> </form>
|