· 7 years ago · Feb 28, 2019, 11:24 PM
1<?php
2 // Many functions and code lines are included from the file functions.php
3 $num=0; require 'functions.php'; // constants
4 $num=6; require 'functions.php'; // function to work with files
5 $num=10; require 'functions.php'; // to get hotel_name (function)
6 $url="";
7 if (isset($_POST["HTTP_REFERER"])) {
8 $url=$_POST["HTTP_REFERER"];
9 $num=1;
10 } else {
11 if (!isset($_SERVER["HTTP_REFERER"])) {
12 $error="Unable to get HTTP_REFERER link";
13 $num=0;
14 } else {
15 $url=$_SERVER["HTTP_REFERER"];
16 $num=1;
17 }
18 }
19 if ($num==1) { // url is selected
20 $num=1; require 'functions.php'; // mysql connect
21 }
22 if ($num==1) { // connected to mysql successfully
23 $num=2; require 'functions.php'; // Check if database exists + select that database
24 }
25 if ($num==1) { // Database exists, and is selected
26 $link_name=name_hotel($url);
27 $sql="SELECT * from ".$table_name[3]." WHERE LOWER(Link)=LOWER('".$link_name."')";
28 if (!($result=mysql_query($sql))) {
29 $error=mysql_error(); // Query failed
30 $num=0;
31 } else $num=1;
32 }
33 if ($num==1) {
34 $row=mysql_fetch_array($result);
35 if (empty($row)) {
36 $error="The hotel name couldn't be found in database";
37 $num=0;
38 } else $num=1;
39 }
40 if ($num==1) { // Hotel name has been found in database, we read it's Id and get data for that Id - 1. worksheet
41 $id=$row[0];
42 $operator=$row[1];
43 $hotel_name=$row[2]; // Overwrite lower case hotel name taken from url location
44 $type=$row[8];
45 $place=$row[9];
46 $category=$row[10];
47 $sql="SELECT * from ".$table_name[1]." WHERE Id=".$id."";
48 if (!($result=mysql_query($sql))) {
49 $error=mysql_error(); // Query failed
50 $num=0;
51 } else $num=1;
52 }
53 if ($num==1) {
54 $row=mysql_fetch_array($result);
55 if (empty($row)) {
56 $error="There is no formular data for this hotel yet";
57 $num=0;
58 } else $num=1;
59 }
60 if ($num==1) { // Data from worksheet 1 is ready too
61 $brojac=1;
62 $anreise[$brojac]=$row[1];
63 $abreise[$brojac]=$row[2];
64 $price[$brojac]=$row[3];
65 $double[$brojac]=$row[4];
66 $single[$brojac]=$row[5];
67 while ($row=mysql_fetch_array($result)) {
68 $brojac++;
69 $anreise[$brojac]=$row[1];
70 $abreise[$brojac]=$row[2];
71 $price[$brojac]=$row[3];
72 $double[$brojac]=$row[4];
73 $single[$brojac]=$row[5];
74 }
75 }
76
77 if ($num==1) { // Now for worksheet 2
78 $sql="SELECT * from ".$table_name[2]." WHERE Id=".$id."";
79 if (!($result=mysql_query($sql))) {
80 $error=mysql_error(); // Query failed
81 $num=0;
82 } else $num=1;
83 }
84 if ($num==1) {
85 $row=mysql_fetch_array($result);
86 if (empty($row)) {
87 $error="There is no Abfahrtsort data for this hotel yet";
88 $num=0;
89 } else $num=1;
90 }
91 if ($num==1) { // Data from worksheet 2 is ready too - we can get all we need for our formulars
92 $brojac2=1;
93 $city[$brojac2]=$row[1];
94 $price2[$brojac2]=$row[2];
95 while ($row=mysql_fetch_array($result)) {
96 $brojac2++;
97 $city[$brojac2]=$row[1];
98 $price2[$brojac2]=$row[2];
99 }
100 }
101 if ($num==1) {
102 // We get all POST variables
103 if (isset($_POST["submit"]) && strlen($_POST["submit"])>0) $p_submit=$_POST["submit"]; else $p_submit="";
104
105 if (isset($_POST["reisezeitraum"]) && strlen($_POST["reisezeitraum"])>0) {
106 $p_reisezeitraum=$_POST["reisezeitraum"];
107 $ok=false;
108 for ($i=1; $i<=$brojac; $i++) {
109 if ($p_reisezeitraum==$anreise[$i].'-'.$abreise[$i].':'.$price[$i].':'.$single[$i].':'.$double[$i]) {
110 $ok=true;
111 break;
112 }
113 }
114 if ($ok==true) { // has been found in database
115 $duzina=strlen($p_reisezeitraum);
116 $broj=0; $zeitprice=""; $single_=""; $double_="";
117 for ($i=0; $i<$duzina; $i++) {
118 if ($p_reisezeitraum[$i]==':') {$broj++; continue;}
119 if ($broj==1) {
120 $zeitprice=$zeitprice.$p_reisezeitraum[$i];
121 }
122 if ($broj==2) {
123 $single_=$single_.$p_reisezeitraum[$i];
124 }
125 if ($broj==3) {
126 $double_=$double_.$p_reisezeitraum[$i];
127 }
128 }
129 $single_=intval($single_);
130 $double_=intval($double_);
131 $zeitprice=intval($zeitprice);
132 $dopelprice=$double_;
133 $einzelprice=$single_;
134 } else {
135 $p_reisezeitraum="";
136 $zeitprice=0;
137 $dopelprice=0;
138 $einzelprice=0;
139 if ($user_error=="") $user_error="Bitte den Reisezeitraum angeben";
140 }
141 } else {
142 $p_reisezeitraum=""; // it is not submitted
143 $zeitprice=0;
144 $dopelprice=0;
145 $einzelprice=0;
146 if ($p_submit=="senden") { // it has to be submitted
147 if ($user_error=="") $user_error="Bitte den Reisezeitraum angeben";
148 }
149 }
150
151 if (isset($_POST["abfahrtsort"]) && strlen($_POST["abfahrtsort"])>0) {
152 $p_abfahrtsort=$_POST["abfahrtsort"];
153 $ok=false;
154 for ($i=1; $i<=$brojac2; $i++) {
155 if ($p_abfahrtsort==$city[$i].':'.$price2[$i]) {
156 $ok=true;
157 break;
158 }
159 }
160 if ($ok==true) { // has been found in database
161 $duzina=strlen($p_abfahrtsort);
162 $broj=0; $ortprice="";
163 for ($i=0; $i<$duzina; $i++) {
164 if ($p_abfahrtsort[$i]==':') {$broj++; continue;}
165 if ($broj==1) {
166 $ortprice=$ortprice.$p_abfahrtsort[$i];
167 }
168 }
169 $ortprice=intval($ortprice);
170 } else {
171 $p_abfahrtsort="";
172 $ortprice=0;
173 if ($user_error=="") $user_error="Bitte den Abfahrtsort angeben";
174 }
175 } else {
176 $p_abfahrtsort=""; // it is not submitted
177 $ortprice=0;
178 if ($p_submit=="senden") { // it has to be submitted
179 if ($user_error=="") $user_error="Bitte den Abfahrtsort angeben";
180 }
181 }
182
183 if (isset($_POST["vorname"]) && strlen($_POST["vorname"])>0) {
184 $p_vorname=$_POST["vorname"];
185 } else {
186 $p_vorname="";
187 if ($p_submit=="senden") { // it has to be submitted
188 if ($user_error=="") $user_error="Bitte den Vornamen des Hauptanmelders angeben";
189 }
190 }
191
192 if (isset($_POST["nachname"]) && strlen($_POST["nachname"])>0) {
193 $p_nachname=$_POST["nachname"];
194 } else {
195 $p_nachname="";
196 if ($p_submit=="senden") { // it has to be submitted
197 if ($user_error=="") $user_error="Bitte den Nachnamen des Hauptanmelders angeben";
198 }
199 }
200
201 if (isset($_POST["gebdatum"]) && strlen($_POST["gebdatum"])>0) $p_gebdatum=$_POST["gebdatum"]; else $p_gebdatum="";
202
203 if (isset($_POST["email"]) && strlen($_POST["email"])>0) {
204 $p_email=$_POST["email"];
205 } else {
206 $p_email="";
207 if ($p_submit=="senden") { // it has to be submitted
208 if ($user_error=="") $user_error="Wir brauchen für Rückfragen die Email des Hauptanmelders. Bitte gib diese an";
209 }
210 }
211
212 if (isset($_POST["telefon"]) && strlen($_POST["telefon"])>0) {
213 $p_telefon=$_POST["telefon"];
214 } else {
215 $p_telefon="";
216 if ($p_submit=="senden") { // it has to be submitted
217 if ($user_error=="") $user_error="Wir brauchen für Rückfragen die Telefonnr. des Hauptanmelders. Bitte gib diese an";
218 }
219 }
220
221 if (isset($_POST["strasse"]) && strlen($_POST["strasse"])>0) $p_strasse=$_POST["strasse"]; else $p_strasse="";
222 if (isset($_POST["ort"]) && strlen($_POST["ort"])>0) $p_ort=$_POST["ort"]; else $p_ort="";
223
224 if (isset($_POST["teilnehmer"]) && strlen($_POST["teilnehmer"])>0) {
225 $p_teilnehmer=$_POST["teilnehmer"];
226 if (ord($p_teilnehmer[0])>=49 && ord($p_teilnehmer[0])<=57 && strlen($p_teilnehmer)==1) {
227 $tot_persons1=intval($p_teilnehmer);
228 $tot_persons2=intval($p_teilnehmer);
229 } else { // he made a typing mistake
230 $p_teilnehmer="";
231 $tot_persons1=0;
232 $tot_persons2=0;
233 if ($user_error=="") $user_error="Bitte geben Sie die Anzahl der Teilnehmer (1 - 9)";
234 }
235 } else {
236 $p_teilnehmer="";
237 $tot_persons1=0;
238 $tot_persons2=0;
239 if ($p_submit=="senden") { // it has to be submitted
240 if ($user_error=="") $user_error="Bitte geben Sie die Anzahl der Teilnehmer (1 - 9)";
241 }
242 }
243
244
245 if (isset($_POST["radio1"]) && strlen($_POST["radio1"])>0) $p_radio1=$_POST["radio1"]; else $p_radio1="";
246
247 if (isset($_POST["persmbz"]) && strlen($_POST["persmbz"])>0) {
248 $p_persmbz=$_POST["persmbz"];
249 if (ord($p_persmbz[0])>=49 && ord($p_persmbz[0])<=57 && strlen($p_persmbz)==1) {
250 $br_obicnih=intval($p_persmbz);
251 } else { // he made a typing mistake
252 $p_persmbz="";
253 $br_obicnih=0;
254 if ($user_error=="") $user_error="Bitte geben Sie die Anzahl der Personen im 3er/4er Zimmer (1 - 9)";
255 }
256 } else {
257 $p_persmbz="";
258 $br_obicnih=0;
259 }
260
261 if (isset($_POST["persdz"]) && strlen($_POST["persdz"])>0) {
262 $p_persdz=$_POST["persdz"];
263 if (ord($p_persdz[0])>=49 && ord($p_persdz[0])<=57 && strlen($p_persdz)==1) {
264 $dop_persons=intval($p_persdz);
265 } else { // he made a typing mistake
266 $p_persdz="";
267 $dop_persons=0;
268 if ($user_error=="") $user_error="Bitte geben Sie die Anzahl der Personen im Doppelzimmer (1 - 9)";
269 }
270 } else {
271 $p_persdz="";
272 $dop_persons=0;
273 }
274
275 if (isset($_POST["persez"]) && strlen($_POST["persez"])>0) {
276 $p_persez=$_POST["persez"];
277 if (ord($p_persez[0])>=49 && ord($p_persez[0])<=57 && strlen($p_persez)==1) {
278 $ein_persons=intval($p_persez);
279 } else { // he made a typing mistake
280 $p_persez="";
281 $ein_persons=0;
282 if ($user_error=="") $user_error="Bitte geben Sie die Anzahl der Personen im Einzelzimmer (1 - 9)";
283 }
284 } else {
285 $p_persez="";
286 $ein_persons=0;
287 }
288
289 if ($p_submit=="senden" && $tot_persons1>$br_obicnih+$dopelprice+$einzelprice) { // equation must fit
290 if ($user_error=="") $user_error="Du hast ein Fehler in der Zimmeraufteilung";
291 }
292
293 if (isset($_POST["name-02"]) && strlen($_POST["name-02"])>0) $p_name_02=$_POST["name-02"]; else $p_name_02="";
294 if (isset($_POST["gebdatum-02"]) && strlen($_POST["gebdatum-02"])>0) $p_gebdatum_02=$_POST["gebdatum-02"]; else $p_gebdatum_02="";
295 if (isset($_POST["email-02"]) && strlen($_POST["email-02"])>0) $p_email_02=$_POST["email-02"]; else $p_email_02="";
296
297 if (isset($_POST["name-03"]) && strlen($_POST["name-03"])>0) $p_name_03=$_POST["name-03"]; else $p_name_03="";
298 if (isset($_POST["gebdatum-03"]) && strlen($_POST["gebdatum-03"])>0) $p_gebdatum_03=$_POST["gebdatum-03"]; else $p_gebdatum_03="";
299 if (isset($_POST["email-03"]) && strlen($_POST["email-03"])>0) $p_email_03=$_POST["email-03"]; else $p_email_03="";
300
301 if (isset($_POST["name-04"]) && strlen($_POST["name-04"])>0) $p_name_04=$_POST["name-04"]; else $p_name_04="";
302 if (isset($_POST["gebdatum-04"]) && strlen($_POST["gebdatum-04"])>0) $p_gebdatum_04=$_POST["gebdatum-04"]; else $p_gebdatum_04="";
303 if (isset($_POST["email-04"]) && strlen($_POST["email-04"])>0) $p_email_04=$_POST["email-04"]; else $p_email_04="";
304
305 if (isset($_POST["name-05"]) && strlen($_POST["name-05"])>0) $p_name_05=$_POST["name-05"]; else $p_name_05="";
306 if (isset($_POST["gebdatum-05"]) && strlen($_POST["gebdatum-05"])>0) $p_gebdatum_05=$_POST["gebdatum-05"]; else $p_gebdatum_05="";
307 if (isset($_POST["email-05"]) && strlen($_POST["email-05"])>0) $p_email_05=$_POST["email-05"]; else $p_email_05="";
308
309 if (isset($_POST["name-06"]) && strlen($_POST["name-06"])>0) $p_name_06=$_POST["name-06"]; else $p_name_06="";
310 if (isset($_POST["gebdatum-06"]) && strlen($_POST["gebdatum-06"])>0) $p_gebdatum_06=$_POST["gebdatum-06"]; else $p_gebdatum_06="";
311 if (isset($_POST["email-06"]) && strlen($_POST["email-06"])>0) $p_email_06=$_POST["email-06"]; else $p_email_06="";
312
313 if (isset($_POST["name-07"]) && strlen($_POST["name-07"])>0) $p_name_07=$_POST["name-07"]; else $p_name_07="";
314 if (isset($_POST["gebdatum-07"]) && strlen($_POST["gebdatum-07"])>0) $p_gebdatum_07=$_POST["gebdatum-07"]; else $p_gebdatum_07="";
315 if (isset($_POST["email-07"]) && strlen($_POST["email-07"])>0) $p_email_07=$_POST["email-07"]; else $p_email_07="";
316
317 if (isset($_POST["name-08"]) && strlen($_POST["name-08"])>0) $p_name_08=$_POST["name-08"]; else $p_name_08="";
318 if (isset($_POST["gebdatum-08"]) && strlen($_POST["gebdatum-08"])>0) $p_gebdatum_08=$_POST["gebdatum-08"]; else $p_gebdatum_08="";
319 if (isset($_POST["email-08"]) && strlen($_POST["email-08"])>0) $p_email_08=$_POST["email-08"]; else $p_email_08="";
320
321 if (isset($_POST["name-09"]) && strlen($_POST["name-09"])>0) $p_name_09=$_POST["name-09"]; else $p_name_09="";
322 if (isset($_POST["gebdatum-09"]) && strlen($_POST["gebdatum-09"])>0) $p_gebdatum_09=$_POST["gebdatum-09"]; else $p_gebdatum_09="";
323 if (isset($_POST["email-09"]) && strlen($_POST["email-09"])>0) $p_email_09=$_POST["email-09"]; else $p_email_09="";
324
325 if (isset($_POST["name-10"]) && strlen($_POST["name-10"])>0) $p_name_10=$_POST["name-10"]; else $p_name_10="";
326 if (isset($_POST["gebdatum-10"]) && strlen($_POST["gebdatum-10"])>0) $p_gebdatum_10=$_POST["gebdatum-10"]; else $p_gebdatum_10="";
327 if (isset($_POST["email-10"]) && strlen($_POST["email-10"])>0) $p_email_10=$_POST["email-10"]; else $p_email_10="";
328
329 if (isset($_POST["agb"]) && strlen($_POST["agb"])>0) {
330 $p_agb=$_POST["agb"];
331 } else {
332 $p_agb="";
333 if ($p_submit=="senden") { // it has to be submitted
334 if ($user_error=="") $user_error="Bitte bestätige das Lesen der AGB";
335 }
336 }
337
338 if ($p_submit=="senden" && $user_error=="") { // prov: success,error // data is ready to be sent to database
339 $sql="SELECT * FROM ".$table_name[0];
340 $result=mysql_query($sql);
341 if (!$result) { // No table exists
342 $sql = "CREATE TABLE ".$table_name[0]." (id int, s_id text, s_operator text, s_hotel_name text, s_type text, s_place text, s_category text, s_reisezeitraum text, s_abfahrtsort text, s_vorname text, s_nachname text, s_gebdatum text, s_email text, s_telefon text, s_strasse text, s_ort text, s_teilnehmer text, s_radio1 text, s_persmbz text, s_persdz text, s_persez text,
343 s_name_02 text, s_name_03 text, s_name_04 text, s_name_05 text, s_name_06 text, s_name_07 text, s_name_08 text, s_name_09 text, s_name_10 text,
344 s_gebdatum_02 text, s_gebdatum_03 text, s_gebdatum_04 text, s_gebdatum_05 text, s_gebdatum_06 text, s_gebdatum_07 text, s_gebdatum_08 text, s_gebdatum_09 text, s_gebdatum_10 text,
345 s_email_02 text, s_email_03 text, s_email_04 text, s_email_05 text, s_email_06 text, s_email_07 text, s_email_08 text, s_email_09 text, s_email_10 text)";
346 if (!mysql_query($sql,$link)) {
347 $num=0;
348 $error="Couldn't create table ".$table_name[0];
349 }
350 }
351 if ($num==1) {
352 $br_spam=0;
353 if (!($fs = fopen("spam_protect.txt", "r"))) { // open file for reading
354 $error="Can't read from the file";
355 $num=0;
356 }
357 }
358 if ($num==1) { // file opened for reading
359 if (flock($fs,LOCK_SH)) {
360 $broj_redove=0;
361 while ($povrat=fgets($fs)) {
362 if ($povrat==$datum.' '.$ip." ".$url."\n") $br_spam++;
363 if (strlen($povrat)>4){
364 $brojcanik=0; $k=0; $datum2="";
365 while ($brojcanik<1) {
366 if(mb_substr($povrat, $k, 1)==' ') {$k++; $brojcanik++;} else { $datum2=$datum2.mb_substr($povrat, $k, 1);$k++;}
367 }
368 }
369 if ($datum2==$datum) {
370 $red[$broj_redove]=$povrat;
371 $broj_redove++;
372 }
373 }
374 if ($br_spam>0) {
375 $error="Please, come back tomorrow <br>(we are preventing spam)";
376 $num=0;
377 }
378 flock ($fs, LOCK_UN); }
379 fclose($fs);
380 if (!fajlovi("spam_protect.txt","w",'')) { // reset of the file
381 $error="Can't write to the file";
382 $num=0;
383 } else { // rewriting of the file spam_protect.txt - only todays dates stay
384 for ($i=0; $i<$broj_redove; $i++) {
385 if (!fajlovi("spam_protect.txt","a",$red[$i])) {
386 $error="Can't write to the file";
387 $num=0;
388 break;
389 }
390 }
391 }
392 }
393 if ($num==1) { // table does exists here
394 $result = mysql_query("SELECT * FROM ".$table_name[0], $link); // we choose table and get all fields from it
395 $num_rows = mysql_num_rows($result);
396 $num_rows++;
397 $sql="INSERT INTO ".$table_name[0]." (id, s_id, s_operator, s_hotel_name, s_type, s_place, s_category, s_reisezeitraum, s_abfahrtsort, s_vorname, s_nachname, s_gebdatum, s_email, s_telefon, s_strasse, s_ort, s_teilnehmer, s_radio1, s_persmbz, s_persdz, s_persez,
398 s_name_02, s_name_03, s_name_04, s_name_05, s_name_06, s_name_07, s_name_08, s_name_09, s_name_10,
399 s_gebdatum_02, s_gebdatum_03, s_gebdatum_04, s_gebdatum_05, s_gebdatum_06, s_gebdatum_07, s_gebdatum_08, s_gebdatum_09, s_gebdatum_10,
400 s_email_02, s_email_03, s_email_04, s_email_05, s_email_06, s_email_07, s_email_08, s_email_09, s_email_10)
401 VALUES ($num_rows, \"$id\", \"$operator\", \"$hotel_name\", \"$type\", \"$place\", \"$category\", \"$p_reisezeitraum\", \"$p_abfahrtsort\", \"$p_vorname\", \"$p_nachname\", \"$p_gebdatum\", \"$p_email\", \"$p_telefon\", \"$p_strasse\", \"$p_ort\", \"$p_teilnehmer\", \"$p_radio1\", \"$p_persmbz\", \"$p_persdz\", \"$p_persez\",
402 \"$p_name_02\", \"$p_name_03\", \"$p_name_04\", \"$p_name_05\", \"$p_name_06\", \"$p_name_07\", \"$p_name_08\", \"$p_name_09\", \"$p_name_10\",
403 \"$p_gebdatum_02\", \"$p_gebdatum_03\", \"$p_gebdatum_04\", \"$p_gebdatum_05\", \"$p_gebdatum_06\", \"$p_gebdatum_07\", \"$p_gebdatum_08\", \"$p_gebdatum_09\", \"$p_gebdatum_10\",
404 \"$p_email_02\", \"$p_email_03\", \"$p_email_04\", \"$p_email_05\", \"$p_email_06\", \"$p_email_07\", \"$p_email_08\", \"$p_email_09\", \"$p_email_10\")";
405 if (!mysql_query($sql,$link)) {
406 $num=0;
407 $error="Couldn't insert data into database table. <br>System message: ".mysql_error();
408 }
409 }
410 if ($num==1) {
411 if (fajlovi("spam_protect.txt","a",$datum.' '.$ip." ".$url."\n")) {
412 $num=1; // one post of data in one day from one IP is enough!
413 } else {
414 $error="Can't write to the file";
415 $num=0;
416 }
417 $success="Vielen Dank!<br>Eure Buchung wurde entgegengenommen und wird gerade bearbeitet.";
418 // Here goes mail notification!
419 $new_mail=fajlovi("email.txt","r","");
420 $to = $new_mail;
421 $from = "buchung_script";
422 $subject = "Notification";
423 $message = "Jemand hat eine neue Form gesendet. Id=".$num_rows." Date=".date("d-m-Y H:i:s")." Hier: ".$url;
424
425 $headers="";
426 $headers .= "Reply-To: ".$from." <".$from."@server11.web4a.de>\r\n";
427 $headers .= "Return-Path: ".$from." <".$from."@server11.web4a.de>\r\n";
428 $headers .= "From: ".$from." <".$from."@server11.web4a.de>\r\n";
429 $headers .= "Organization: My Organization\r\n";
430 $headers .= "Content-Type: text/plain\r\n";
431 $headers .= "X-Mailer: PHP/".phpversion();
432
433 mail($to, $subject, $message, $headers);
434 }
435 }
436 }
437?>
438<html>
439<head>
440<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
441<title>Reisebuchung</title>
442<meta name="robots" content="noindex">
443<link href="trav-12.css" rel="stylesheet" type="text/css" />
444<script type="text/javascript">
445
446function load() {
447 document.getElementById('whole_content').style.display="block";
448 var code='<center>';
449 code=code+'<table>';
450 code=code+'';
451 code=code+'<tr><td>Grundpreis:</td><td width="210" align="right" nowrap><span id="tot_persons1">0</span> Pers * <span id="zeitprice">0</span> € = <span id="tot_zeitprice">0</span>€</td></tr>';
452 code=code+'<tr><td>Abfahrtsortzuschlag:</td><td align="right" nowrap><span id="tot_persons2">0</span> Pers * <span id="ortprice">0</span> € = <span id="tot_ortprice">0</span>€</td></tr>';
453 code=code+'<tr><td>Doppelzimmerzuschlag:</td><td align="right" nowrap><span id="dop_persons">0</span> Pers * <span id="dopelprice">0</span> € = <span id="tot_dopelprice">0</span>€</td></tr>';
454 code=code+'<tr><td>Einzelzimmerzuschlag:</td><td align="right" nowrap><span id="ein_persons">0</span> Pers * <span id="einzelprice">0</span> € = <span id="tot_einzelprice">0</span>€</td></tr>';
455 code=code+'<tr><td colspan=2><hr width="100%" color="black"></td></tr>';
456 code=code+'<tr><td>Gesamtpreis:</td><td align="right" nowrap><span id="totalprice">0</span> €</td></tr>';
457 code=code+'</table>';
458 code=code+'</center>';
459 document.getElementById("Reisepreis").innerHTML=code;
460}
461
462function single_double() {
463 vrijednost=document.Formular.reisezeitraum.value;
464 if (vrijednost=="") {
465 document.getElementById("zuschlag1").innerHTML="";
466 document.getElementById("zuschlag2").innerHTML="";
467 zeitprice_=0; tot_zeitpreis_=0;
468 tot_ortprice_=parseInt(document.getElementById("tot_ortprice").innerHTML);
469 dopelprice_=0; tot_dopelprice_=0;
470 einzelprice_=0; tot_einzelprice_=0;
471
472 document.getElementById("totalprice").innerHTML=tot_zeitprice_+tot_ortprice_+tot_dopelprice_+tot_einzelprice_;
473 document.getElementById("zeitprice").innerHTML=zeitprice_;
474 document.getElementById("tot_zeitprice").innerHTML=tot_zeitprice_;
475 document.getElementById("dopelprice").innerHTML=dopelprice_;
476 document.getElementById("tot_dopelprice").innerHTML=tot_dopelprice_;
477 document.getElementById("einzelprice").innerHTML=einzelprice_;
478 document.getElementById("tot_einzelprice").innerHTML=tot_einzelprice_;
479
480 } else {
481 duzina=vrijednost.length;
482 brojac=0; zeitprice_=""; single_=""; double_="";
483 for (i=0; i<duzina; i++) {
484 if (vrijednost.charAt(i)==':') {brojac++; continue;}
485 if (brojac==1) {
486 zeitprice_=zeitprice_+vrijednost.charAt(i);
487 }
488 if (brojac==2) {
489 single_=single_+vrijednost.charAt(i);
490 }
491 if (brojac==3) {
492 double_=double_+vrijednost.charAt(i);
493 }
494 }
495 single_=parseInt(single_);
496 double_=parseInt(double_);
497
498 zeitprice_=parseInt(zeitprice_);
499 tot_persons1_=parseInt(document.getElementById("tot_persons1").innerHTML);
500 tot_zeitprice_=tot_persons1_*zeitprice_;
501
502 tot_ortprice_=parseInt(document.getElementById("tot_ortprice").innerHTML);
503
504 dopelprice_=double_;
505 dop_persons_=parseInt(document.getElementById("dop_persons").innerHTML);
506 tot_dopelprice_=dop_persons_*dopelprice_;
507
508 einzelprice_=single_;
509 ein_persons_=parseInt(document.getElementById("ein_persons").innerHTML);
510 tot_einzelprice_=ein_persons_*einzelprice_;
511
512 document.getElementById("totalprice").innerHTML=tot_zeitprice_+tot_ortprice_+tot_dopelprice_+tot_einzelprice_;
513 document.getElementById("zeitprice").innerHTML=zeitprice_;
514 document.getElementById("tot_zeitprice").innerHTML=tot_zeitprice_;
515 document.getElementById("dopelprice").innerHTML=dopelprice_;
516 document.getElementById("tot_dopelprice").innerHTML=tot_dopelprice_;
517 document.getElementById("einzelprice").innerHTML=einzelprice_;
518 document.getElementById("tot_einzelprice").innerHTML=tot_einzelprice_;
519
520 document.getElementById("zuschlag1").innerHTML='von + € '+double_+',"';
521 document.getElementById("zuschlag2").innerHTML='von + € '+single_+',"';
522 }
523}
524
525function changeort() {
526 vrijednost=document.Formular.abfahrtsort.value;
527 if (vrijednost=="") {
528 tot_zeitprice_=parseInt(document.getElementById("tot_zeitprice").innerHTML);
529 ortprice_=0; tot_ortprice_=0;
530 tot_dopelprice_=parseInt(document.getElementById("tot_dopelprice").innerHTML);
531 tot_einzelprice_=parseInt(document.getElementById("tot_einzelprice").innerHTML);
532 document.getElementById("totalprice").innerHTML=tot_zeitprice_+tot_ortprice_+tot_dopelprice_+tot_einzelprice_;
533 document.getElementById("ortprice").innerHTML=ortprice_;
534 document.getElementById("tot_ortprice").innerHTML=tot_ortprice_;
535 } else {
536 duzina=vrijednost.length;
537 brojac=0;
538 ortprice_="";
539 for (i=0; i<duzina; i++) {
540 if (vrijednost.charAt(i)==':') {brojac++; continue;}
541 if (brojac==1) {
542 ortprice_=ortprice_+vrijednost.charAt(i);
543 }
544 }
545 tot_zeitprice_=parseInt(document.getElementById("tot_zeitprice").innerHTML);
546
547 ortprice_=parseInt(ortprice_);
548 tot_persons2_=parseInt(document.getElementById("tot_persons2").innerHTML);
549 tot_ortprice_=tot_persons2_*ortprice_;
550
551 tot_dopelprice_=parseInt(document.getElementById("tot_dopelprice").innerHTML);
552 tot_einzelprice_=parseInt(document.getElementById("tot_einzelprice").innerHTML);
553
554 document.getElementById("totalprice").innerHTML=tot_zeitprice_+tot_ortprice_+tot_dopelprice_+tot_einzelprice_;
555 document.getElementById("ortprice").innerHTML=ortprice_;
556 document.getElementById("tot_ortprice").innerHTML=tot_ortprice_;
557 }
558}
559
560function zimmer_34() {
561 if ((isNaN(document.Formular.persmbz.value)==true && document.Formular.persmbz.value.length!=0) || document.Formular.persmbz.value>9 || (document.Formular.persmbz.value<1 && document.Formular.persmbz.value.length!=0) || document.Formular.persmbz.value.length>1) {
562 alert("Bitte geben Sie die Nummer (1 - 9)");
563 document.Formular.persmbz.value="";
564 document.Formular.persmbz.focus();
565 return false;
566 }
567}
568
569function zimmerdoppel() {
570 if ((isNaN(document.Formular.persdz.value)==true && document.Formular.persdz.value.length!=0) || document.Formular.persdz.value>9 || (document.Formular.persdz.value<1 && document.Formular.persdz.value.length!=0) || document.Formular.persdz.value.length>1) {
571 alert("Bitte geben Sie die Nummer (1 - 9)");
572 document.Formular.persdz.value="";
573 document.Formular.persdz.focus();
574 return false;
575 }
576 vrijednost=document.Formular.persdz.value;
577 if (vrijednost=="") {
578 tot_zeitprice_=parseInt(document.getElementById("tot_zeitprice").innerHTML);
579 tot_ortprice_=parseInt(document.getElementById("tot_ortprice").innerHTML);
580
581 dop_persons_=0;
582 tot_dopelprice_=0;
583
584 tot_einzelprice_=parseInt(document.getElementById("tot_einzelprice").innerHTML);
585
586 document.getElementById("totalprice").innerHTML=tot_zeitprice_+tot_ortprice_+tot_dopelprice_+tot_einzelprice_;
587 document.getElementById("dop_persons").innerHTML=dop_persons_;
588 document.getElementById("tot_dopelprice").innerHTML=tot_dopelprice_;
589
590 } else {
591 tot_zeitprice_=parseInt(document.getElementById("tot_zeitprice").innerHTML);
592 tot_ortprice_=parseInt(document.getElementById("tot_ortprice").innerHTML);
593
594 dopelprice_=parseInt(document.getElementById("dopelprice").innerHTML);
595 dop_persons_=parseInt(vrijednost);
596 tot_dopelprice_=dop_persons_*dopelprice_;
597
598 tot_einzelprice_=parseInt(document.getElementById("tot_einzelprice").innerHTML);
599
600 document.getElementById("totalprice").innerHTML=tot_zeitprice_+tot_ortprice_+tot_dopelprice_+tot_einzelprice_;
601 document.getElementById("dop_persons").innerHTML=dop_persons_;
602 document.getElementById("tot_dopelprice").innerHTML=tot_dopelprice_;
603 }
604}
605
606function zimmereinzel() {
607 if ((isNaN(document.Formular.persez.value)==true && document.Formular.persez.value.length!=0) || document.Formular.persez.value>9 || (document.Formular.persez.value<1 && document.Formular.persez.value.length!=0) || document.Formular.persez.value.length>1) {
608 alert("Bitte geben Sie die Nummer (1 - 9)");
609 document.Formular.persez.value="";
610 document.Formular.persez.focus();
611 return false;
612 }
613 vrijednost=document.Formular.persez.value;
614 if (vrijednost=="") {
615 tot_zeitprice_=parseInt(document.getElementById("tot_zeitprice").innerHTML);
616 tot_ortprice_=parseInt(document.getElementById("tot_ortprice").innerHTML);
617 tot_dopelprice_=parseInt(document.getElementById("tot_dopelprice").innerHTML);
618
619 ein_persons_=0;
620 tot_einzelprice_=0;
621
622 document.getElementById("totalprice").innerHTML=tot_zeitprice_+tot_ortprice_+tot_dopelprice_+tot_einzelprice_;
623 document.getElementById("ein_persons").innerHTML=ein_persons_;
624 document.getElementById("tot_einzelprice").innerHTML=tot_einzelprice_;
625
626 } else {
627 tot_zeitprice_=parseInt(document.getElementById("tot_zeitprice").innerHTML);
628 tot_ortprice_=parseInt(document.getElementById("tot_ortprice").innerHTML);
629 tot_dopelprice_=parseInt(document.getElementById("tot_dopelprice").innerHTML);
630
631 einzelprice_=parseInt(document.getElementById("einzelprice").innerHTML);
632 ein_persons_=parseInt(vrijednost);
633 tot_einzelprice_=ein_persons_*einzelprice_;
634
635 document.getElementById("totalprice").innerHTML=tot_zeitprice_+tot_ortprice_+tot_dopelprice_+tot_einzelprice_;
636 document.getElementById("ein_persons").innerHTML=ein_persons_;
637 document.getElementById("tot_einzelprice").innerHTML=tot_einzelprice_;
638 }
639}
640
641function chkFormular () {
642 if (document.Formular.reisezeitraum.value=="") {
643 alert("Bitte den Reisezeitraum angeben");
644 document.Formular.reisezeitraum.focus();
645 return false;
646 }
647 if (document.Formular.abfahrtsort.value=="") {
648 alert("Bitte den Abfahrtsort angeben");
649 document.Formular.abfahrtsort.focus();
650 return false;
651 }
652 if (document.Formular.vorname.value == "") {
653 alert("Bitte den Vornamen des Hauptanmelders angeben");
654 document.Formular.vorname.focus();
655 return false;
656 }
657 if (document.Formular.nachname.value == "") {
658 alert("Bitte den Nachnamen des Hauptanmelders angeben");
659 document.Formular.nachname.focus();
660 return false;
661 }
662 if (document.Formular.email.value == "") {
663 alert("Wir brauchen f\u00FCr R\u00FCckfragen die Email des Hauptanmelders. Bitte gib diese an");
664 document.Formular.email.focus();
665 return false;
666 }
667 if (document.Formular.telefon.value == "") {
668 alert("Wir brauchen f\u00FCr R\u00FCckfragen die Telefonnr. des Hauptanmelders. Bitte gib diese an");
669 document.Formular.telefon.focus();
670 return false;
671 }
672 if (isNaN(document.Formular.teilnehmer.value) == true || document.Formular.teilnehmer.value>9 || document.Formular.teilnehmer.value<1 || document.Formular.teilnehmer.value.length>1) {
673 alert("Bitte geben Sie die Anzahl der Teilnehmer (1 - 9)");
674 document.Formular.teilnehmer.focus();
675 return false;
676 }
677 if (document.Formular.agb.checked == false) {
678 alert("Bitte best\u00E4tige das Lesen der AGB");
679 document.Formular.agb.focus();
680 return false;
681 }
682
683 if (document.Formular.teilnehmer.value.length==0) ukupno=0; else ukupno=parseInt(document.Formular.teilnehmer.value);
684 if (document.Formular.persmbz.value.length==0) prvi=0; else prvi=parseInt(document.Formular.persmbz.value);
685 if (document.Formular.persdz.value.length==0) drugi=0; else drugi=parseInt(document.Formular.persdz.value);
686 if (document.Formular.persez.value.length==0) treci=0; else treci=parseInt(document.Formular.persez.value);
687 if (ukupno>prvi+drugi+treci) {
688 alert("Du hast ein Fehler in der Zimmeraufteilung");
689 return false;
690 }
691}
692
693function new_teilnehmer() {
694 if ((isNaN(document.Formular.teilnehmer.value)==true && document.Formular.teilnehmer.value.length!=0) || document.Formular.teilnehmer.value>9 || (document.Formular.teilnehmer.value<1 && document.Formular.teilnehmer.value.length!=0) || document.Formular.teilnehmer.value.length>1) {
695 alert("Bitte geben Sie die Anzahl der Teilnehmer (1 - 9)");
696 document.Formular.teilnehmer.value="";
697 document.Formular.teilnehmer.focus();
698
699 for (var i=1; i<=9; i=i+1) {
700 if (i==9) dod="10";
701 else {
702 int_dod=i+1;
703 dod="0"+int_dod.toString();
704 }
705 document.getElementById('TeilShow-'+dod).style.display="none";
706 }
707
708 old_scroll=parent.getScrollingPosition();
709 parent.doIframe();
710 parent.window.scroll(0,old_scroll[1]);
711
712 return false;
713 }
714 vrijednost=document.Formular.teilnehmer.value;
715 if (vrijednost=="") {
716 tot_persons1_=0;
717 tot_zeitprice_=0;
718
719 tot_persons2_=0;
720 tot_ortprice_=0;
721
722 tot_dopelprice_=parseInt(document.getElementById("tot_dopelprice").innerHTML);
723 tot_einzelprice_=parseInt(document.getElementById("tot_einzelprice").innerHTML);
724
725 document.getElementById("totalprice").innerHTML=tot_zeitprice_+tot_ortprice_+tot_dopelprice_+tot_einzelprice_;
726 document.getElementById("tot_persons1").innerHTML=tot_persons1_;
727 document.getElementById("tot_zeitprice").innerHTML=tot_zeitprice_;
728 document.getElementById("tot_persons2").innerHTML=tot_persons2_;
729 document.getElementById("tot_ortprice").innerHTML=tot_ortprice_;
730
731 } else {
732 zeitprice_=parseInt(document.getElementById("zeitprice").innerHTML);
733 tot_persons1_=parseInt(vrijednost);
734 tot_zeitprice_=tot_persons1_*zeitprice_;
735
736 ortprice_=parseInt(document.getElementById("ortprice").innerHTML);
737 tot_persons2_=tot_persons1_;
738 tot_ortprice_=tot_persons2_*ortprice_;
739
740 tot_dopelprice_=parseInt(document.getElementById("tot_dopelprice").innerHTML);
741 tot_einzelprice_=parseInt(document.getElementById("tot_einzelprice").innerHTML);
742
743 document.getElementById("totalprice").innerHTML=tot_zeitprice_+tot_ortprice_+tot_dopelprice_+tot_einzelprice_;
744 document.getElementById("tot_persons1").innerHTML=tot_persons1_;
745 document.getElementById("tot_zeitprice").innerHTML=tot_zeitprice_;
746 document.getElementById("tot_persons2").innerHTML=tot_persons2_;
747 document.getElementById("tot_ortprice").innerHTML=tot_ortprice_;
748 }
749
750 for (var i=1; i<=9; i=i+1) {
751 if (i==9) dod="10";
752 else {
753 int_dod=i+1;
754 dod="0"+int_dod.toString();
755 }
756 if (i<=parseInt(vrijednost)) document.getElementById('TeilShow-'+dod).style.display="block";
757 else document.getElementById('TeilShow-'+dod).style.display="none";
758 }
759
760 old_scroll=parent.getScrollingPosition();
761 parent.doIframe();
762 parent.window.scroll(0,old_scroll[1]);
763}
764
765function wopen(url, name, w, h)
766{
767 // Fudge factors for window decoration space.
768 // In my tests these work well on all platforms & browsers.
769 w += 32;
770 h += 96;
771 var win = window.open(url,
772 name,
773 'width=' + w + ', height=' + h + ', ' +
774 'location=no, menubar=no, ' +
775 'status=no, toolbar=no, scrollbars=no, resizable=no');
776 win.resizeTo(w, h);
777 win.focus();
778}
779</script>
780
781<style type="text/css">
782<!--
783
784button {
785 border:none;
786 text-indent:-999em;
787 background:url('bilder/buchen-button-001.gif');
788 height: 50px;
789 width: 300px;
790 cursor:pointer;
791}
792
793#box-buchung-001 {
794 width: 495px;
795 padding: 15px;
796 background-color: #E8E9EA;
797 border: 1px solid #999;
798 font-size: 14px;
799}
800
801#box-buchung-002 {
802 width: 495px;
803 padding: 15px;
804 background-color: #FFF;
805 border-top-width: 1px;
806 border-right-width: 1px;
807 border-bottom-width: 1px;
808 border-left-width: 1px;
809 border-top-style: none;
810 border-right-style: solid;
811 border-bottom-style: solid;
812 border-left-style: solid;
813 border-top-color: #999;
814 border-right-color: #999;
815 border-bottom-color: #999;
816 border-left-color: #999;
817 font-size: 14px;
818 }
819
820.form-001 {
821 width: 265px;
822 border: 1px solid #999;
823 height: 22px;
824 font-size: 16px;
825 padding-top: 3px;
826 padding-right: 3px;
827 padding-bottom: 3px;
828 padding-left: 8px;
829 }
830
831.form-002 {
832 width: 280px;
833 border: 1px solid #999;
834 height: 35px;
835 font-size: 16px;
836 padding-top: 3px;
837 padding-right: 3px;
838 padding-bottom: 3px;
839 padding-left: 8px;
840 }
841
842.form-003 {
843 width: 85px;
844 border: 1px solid #999;
845 height: 26px;
846 font-size: 18px;
847 padding: 3px;
848 text-align: center;
849 }
850
851.form-004 {
852 width: 170px;
853 border: 1px solid #999;
854 height: 26px;
855 font-size: 16px;
856 padding: 3px;
857 }
858
859.form-005 {
860 width: 100px;
861 border: 1px solid #999;
862 height: 26px;
863 font-size: 16px;
864 padding: 3px;
865 }
866
867#box-agb-001 {
868 height: 20px;
869 width:460px;
870 padding: 10px;
871 -moz-border-radius: 10px;
872 border-radius: 10px;
873 background-color: #E6EFC2;
874 border: 1px solid #cccccc;
875 margin-left: 5px;
876}
877
878#zimmerbox-001 {
879 width: 475px;
880 padding: 7px;
881 color: #000;
882 border: 1px solid #999;
883 background-color: #E8E9EA;
884 vertical-align: middle;
885}
886
887#zimmerbox-002 {
888 width: 475px;
889 padding: 7px;
890 color: #000;
891 background-color: #E8E9EA;
892 border-top-width: 1px;
893 border-right-width: 1px;
894 border-bottom-width: 1px;
895 border-left-width: 1px;
896 border-top-style: none;
897 border-right-style: solid;
898 border-bottom-style: solid;
899 border-left-style: solid;
900 border-top-color: #999;
901 border-right-color: #999;
902 border-bottom-color: #999;
903 border-left-color: #999;
904 display: inline-block;
905}
906
907.zimmerform {
908 width: 60px;
909 border: 1px solid #CCC;
910 height: 25px;
911 font-size: 18px;
912 padding: 3px;
913 margin-top: 3px;
914 margin-right: 10px;
915 margin-bottom: 3px;
916 margin-left: 10px;
917 text-align: center;
918 }
919
920#zimmerfont {
921
922}
923
924#list-haken li{
925 font-size: 17px;
926 margin-left: 0px;
927 margin-top: 10px;
928}
929.form-0021 { width: 285px;
930 border: 1px solid #CCC;
931 height: 35px;
932 padding: 3px;
933 font-size: 16px;
934}
935
936.form-0022 {
937 width: 203px;
938 border: 1px solid #999;
939 font-size: 16px;
940 padding: 3px;
941 height: 26px;
942 text-align: center;
943 }
944
945.form-0023 {
946 width: 270px;
947 border: 1px solid #999;
948 font-size: 16px;
949 padding: 3px;
950 height: 26px;
951 }
952-->
953</style>
954</head>
955<body style="margin: 0; padding: 0;" background="bgcolor.jpg" BGCOLOR="#FFFFFF" onload="load();">
956<noscript>
957<?php
958 print('<script type="text/javascript">parent.window.scroll(0,0);</script>');
959 print("<font style=\"font-size:23px;\"><br></font>");
960 print('<center><font face="Arial" size="2" color="#cc0000"><b>ERROR MESSAGE:</b><br><br>You must have Javascript ENABLED for booking formular to appear!</font></center>');
961 print("</body></html>");
962?>
963</noscript>
964
965<div id="whole_content" style="display:none;"> <!-- Will appear after load() if javascript enabled! -->
966<?php
967 if (strlen($error)>0) {
968 print('<script type="text/javascript">parent.window.scroll(0,0);</script>');
969 print("<font style=\"font-size:23px;\"><br></font>");
970 print('<center><font face="Arial" size="2" color="#cc0000"><b>ERROR MESSAGE:</b><br><br>'.$error.'!</font></center>');
971 print("</body></html>");
972 exit;
973 } else if (strlen($success)>0) {
974 print('<script type="text/javascript">parent.window.scroll(0,0);</script>');
975 print("<font style=\"font-size:23px;\"><br></font>");
976 print('<center><font face="Arial" size="3" color="#0000cc"><b>MESSAGE:</b> '.$success.'</font></center>');
977 print("</body></html>");
978 exit;
979 }
980?>
981
982<form action="buchung.php" method="post" enctype="multipart/form-data" name="Formular" id="Formular" onsubmit="return chkFormular()" STYLE="margin: 0px; padding: 0px;">
983 <table border="0" cellpadding="0" cellspacing="0"><tr>
984 <td width="576" align="left">
985 <font style="font-size:12px;"><br><br></font>
986 <div id="box-buchung-001">
987 <table width="480" border="0" cellspacing="0" cellpadding="0">
988 <tr>
989 <td><h4>Eure Reisebuchung:</h4>
990 <br>
991 <strong>Reise: </strong> <?php print($type); ?>reise nach <strong><?php print($place); ?><br>
992 <br>
993 Hotel:</strong> <strong><?php print($hotel_name); ?></strong> - (Kategorie (<?php print($category); ?>/4)) <br /></td>
994 </tr>
995 </table>
996 </div>
997
998 <input type="hidden" name="HTTP_REFERER" id="HTTP_REFERER" value="<?php print($url); ?>"/>
999
1000 <div id="box-buchung-002">
1001 <table width="485" border="0" cellspacing="0" cellpadding="5"><tr>
1002 <td width="180" valign="top">Reisezeitraum:<font color="red">*</font><br>
1003 <font size="1" color="#999999">Preis pro Person</font>
1004 </td>
1005 <td width="285" align="right">
1006 <select name="reisezeitraum" id="reisezeitraum" class="form-0021" onblur='single_double()' onchange="single_double()">
1007 <?php
1008 if (strlen($p_submit)>0 && strlen($p_reisezeitraum)>0) {
1009 print('<option value="">Bitte wählen...</option>');
1010 } else print('<option value="" selected="selected">Bitte wählen...</option>');
1011 ?>
1012 <?php
1013 for ($i=1; $i<=$brojac; $i++) {
1014 print('<optgroup label="'.$anreise[$i].'">'."\n");
1015 $start_date=$anreise[$i];
1016 while ($anreise[$i]==$start_date) {
1017 if (strlen($p_submit)>0 && $p_reisezeitraum==$anreise[$i].'-'.$abreise[$i].':'.$price[$i].':'.$single[$i].':'.$double[$i]) {
1018 print('<option value="'.$anreise[$i].'-'.$abreise[$i].':'.$price[$i].':'.$single[$i].':'.$double[$i].'" selected="selected">'.$anreise[$i].' - '.$abreise[$i].' : '.$price[$i].' €</option>'."\n");
1019 } else print('<option value="'.$anreise[$i].'-'.$abreise[$i].':'.$price[$i].':'.$single[$i].':'.$double[$i].'">'.$anreise[$i].' - '.$abreise[$i].' : '.$price[$i].' €</option>'."\n");
1020 $i++;
1021 }
1022 $i=$i-1;
1023 print('</optgroup>');
1024 }
1025 ?>
1026 </select>
1027 </td>
1028 </tr>
1029 <tr>
1030 <td valign="top">Abfahrtsort:<font color="red">*</font><br />
1031 <font size="1" color="#999999">ggf mit Abfahrtsortzuschlag </font>
1032 </td>
1033 <td align="right">
1034 <select class="form-0021" id="abfahrtsort" name="abfahrtsort" onblur='changeort()' onchange="changeort()">
1035 <?php
1036 if (strlen($p_submit)>0 && strlen($p_abfahrtsort)>0) {
1037 print('<option value="">Bitte wählen...</option>');
1038 } else print('<option value="" selected="selected">Bitte wählen...</option>');
1039 ?>
1040 <?php
1041 for ($i=1; $i<=$brojac2; $i++) {
1042 if (strlen($p_submit)>0 && $p_abfahrtsort==$city[$i].':'.$price2[$i]) {
1043 print('<option value="'.$city[$i].':'.$price2[$i].'" selected="selected">'.$city[$i].' : '.$price2[$i].' €</option>'."\n");
1044 } else
1045 print('<option value="'.$city[$i].':'.$price2[$i].'">'.$city[$i].' : '.$price2[$i].' €</option>'."\n");
1046 }
1047 ?>
1048 </select>
1049 </td>
1050 </tr>
1051 </table>
1052 </div>
1053 <div id="box-buchung-002">
1054 <table width="485" border="0" cellspacing="0" cellpadding="5">
1055 <tr>
1056 <td colspan="2" valign="middle" ><h4>Daten Hauptanmelder:</h4><br />
1057 </td>
1058 </tr>
1059 <tr>
1060 <td width="143" valign="top">Vorname:<font color="red">*</font></td>
1061 <td width="322" align="right">
1062 <?php
1063 if (strlen($p_submit)>0 && strlen($p_vorname)>0) {
1064 print('<input name="vorname" type="text" class="form-001" id="vorname" value="'.$p_vorname.'"/>');
1065 } else print('<input name="vorname" type="text" class="form-001" id="vorname" />');
1066 ?>
1067
1068 </td>
1069 </tr>
1070 <tr>
1071 <td valign="top">Nachname:<font color="red">*</font></td>
1072 <td align="right">
1073 <?php
1074 if (strlen($p_submit)>0 && strlen($p_nachname)>0) {
1075 print('<input name="nachname" type="text" class="form-001" id="nachname" value="'.$p_nachname.'"/>');
1076 } else print('<input name="nachname" type="text" class="form-001" id="nachname" />');
1077 ?>
1078 </td>
1079 </tr>
1080 <tr>
1081 <td valign="top">Geburtsdatum:</td>
1082 <td align="right">
1083 <?php
1084 if (strlen($p_submit)>0 && strlen($p_gebdatum)>0) {
1085 print('<input name="gebdatum" type="text" class="form-001" id="gebdatum" value="'.$p_gebdatum.'"/>');
1086 } else print('<input name="gebdatum" type="text" class="form-001" id="gebdatum" />');
1087 ?>
1088 </td>
1089 </tr>
1090 <tr>
1091 <td valign="top">Email:<font color="red">*</font></td>
1092 <td align="right">
1093 <?php
1094 if (strlen($p_submit)>0 && strlen($p_email)>0) {
1095 print('<div><input name="email" type="text" class="form-001" id="email" value="'.$p_email.'"></div>');
1096 } else print('<div><input name="email" type="text" class="form-001" id="email"></div>');
1097 ?>
1098 <font size="1" color="#999999">An diese Email werden Eure Unterlagen verschickt</font>
1099 </td>
1100 </tr>
1101 <tr>
1102 <td valign="top">Telefonnr:<font color="red">*</font></td>
1103 <td align="right">
1104 <?php
1105 if (strlen($p_submit)>0 && strlen($p_telefon)>0) {
1106 print('<div><input name="telefon" type="text" class="form-001" id="telefon" value="'.$p_telefon.'"></div>');
1107 } else print('<div><input name="telefon" type="text" class="form-001" id="telefon"></div>');
1108 ?>
1109 <font size="1" color="#999999">Für evtl. Rückfragen</font>
1110 </td>
1111 </tr>
1112 <tr>
1113 <td valign="top">Strasse, Haus-Nr.</td>
1114 <td align="right">
1115 <?php
1116 if (strlen($p_submit)>0 && strlen($p_strasse)>0) {
1117 print('<input name="strasse" type="text" class="form-001" id="strasse" value="'.$p_strasse.'"/>');
1118 } else print('<input name="strasse" type="text" class="form-001" id="strasse" />');
1119 ?>
1120 </td>
1121 </tr>
1122 <tr>
1123 <td valign="top">PLZ, Ort: </td>
1124 <td align="right">
1125 <?php
1126 if (strlen($p_submit)>0 && strlen($p_ort)>0) {
1127 print('<input name="ort" type="text" class="form-001" id="ort" value="'.$p_ort.'"/>');
1128 } else print('<input name="ort" type="text" class="form-001" id="ort" />');
1129 ?>
1130 </td>
1131 </tr>
1132 </table>
1133 </div>
1134 <div id="box-buchung-002">
1135 <table width="485" border="0" cellspacing="0" cellpadding="5">
1136 <tr>
1137 <td colspan="2" valign="middle" ><h4>Angaben Reisende:</h4><br />
1138 </td>
1139 </tr>
1140 <tr>
1141 <td width="291" valign="top">Anzahl der Reiseteilnehmer:<font color="red">*</font></td>
1142 <td width="174" align="right">
1143 <?php
1144 if (strlen($p_submit)>0 && strlen($p_teilnehmer)>0) {
1145 print('<input name="teilnehmer" type="text" class="form-003" id="teilnehmer" onblur="new_teilnehmer()" value="'.$p_teilnehmer.'"/>');
1146 } else print('<input name="teilnehmer" type="text" class="form-003" id="teilnehmer" onblur="new_teilnehmer()" />');
1147 ?>
1148 </td>
1149 </tr>
1150 <tr>
1151 <td valign="top">Hauptanmelder reist selbst mit:</td>
1152 <td align="right">
1153 <?php
1154 if (strlen($p_submit)>0 && $p_radio1=="ja") {
1155 print('<input type="radio" name="radio1" id="radio" value="ja" checked="checked"/>');
1156 } else print('<input type="radio" name="radio1" id="radio" value="ja"/>');
1157 ?>
1158 Ja
1159 <?php
1160 if (strlen($p_submit)>0 && $p_radio1=="nein") {
1161 print('<input type="radio" name="radio1" id="radio" value="nein" checked="checked"/>');
1162 } else print('<input type="radio" name="radio1" id="radio" value="nein" />');
1163 ?>
1164 Nein
1165 </td>
1166 </tr>
1167 </table>
1168 </div>
1169 </td>
1170 </tr>
1171 </table>
1172
1173<!-- Teilnehmer part starts here! -->
1174 <div id="TeilShow-02" style="display:none;">
1175 <font style="font-size: 5px;"><br></font>
1176 <table border="0" cellpadding="0" cellspacing="0">
1177 <tr>
1178 <td>
1179 <div id="box-buchung-001" style="border-top-style: solid;">
1180 <table width="100%" border="0" cellspacing="0" cellpadding="0">
1181 <tr>
1182 <td valign="middle" ><font style="font-size: 20px;">Teilnehmer 1:</font>
1183 </td>
1184 </tr>
1185 </table>
1186 <font size=1><br></font>
1187 <table width="100%" border="0" cellspacing="0" cellpadding="0">
1188 <tr>
1189 <td>
1190 Vorname
1191 </td>
1192 <td>
1193 Nachname
1194 </td>
1195 <td>
1196 Geb.datum
1197 </td>
1198 </tr>
1199 <tr>
1200 <td>
1201 <?php
1202 if (strlen($p_submit)>0 && strlen($p_vorname_02)>0) {
1203 print('<input id="name-02" name="vorname-02" class="form-004" value="'.$p_vorname_02.'"/>');
1204 } else print('<input id="name-02" name="vorname-02" class="form-004"/>');
1205 ?>
1206 </td>
1207 <td>
1208 <?php
1209 if (strlen($p_submit)>0 && strlen($p_name_02)>0) {
1210 print('<input id="name-02" name="name-02" class="form-004" value="'.$p_name_02.'"/>');
1211 } else print('<input id="name-02" name="name-02" class="form-004"/>');
1212 ?>
1213 </td>
1214 <td>
1215 <?php
1216 if (strlen($p_submit)>0 && strlen($p_gebdatum_02)>0) {
1217 print('<input id="gebdatum-02" name="gebdatum-02" class="form-005" value="'.$p_gebdatum_02.'"/>');
1218 } else print('<input id="gebdatum-02" name="gebdatum-02" class="form-005"/>');
1219 ?>
1220 </td>
1221 </tr>
1222 </table>
1223 <font size=1><br></font>
1224 <table width="100%" border="0" cellspacing="0" cellpadding="0">
1225 <tr>
1226 <td>
1227 Email
1228 </td>
1229 <td>
1230 Zimmerverteilung
1231 </td>
1232 </tr>
1233 <tr>
1234 <td>
1235 <?php
1236 if (strlen($p_submit)>0 && strlen($p_email_02)>0) {
1237 print('<input id="email-02" name="email-02" class="form-0022" value="'.$p_email_02.'"/>');
1238 } else print('<input id="email-02" name="email-02" class="form-0022"/>');
1239 ?>
1240 </td>
1241 <td>
1242 <select name="verteilung-02" id="verteilung-02" class="form-0023" onblur='' onchange="">
1243 <?php
1244 if (strlen($p_submit)>0 && $p_verteilung_02=="3er_4er") {
1245 print('<option value="3er_4er" selected="selected">3er/4er Bettzimmer</option>');
1246 } else print('<option value="3er_4er">3er/4er Bettzimmer</option>');
1247 if (strlen($p_submit)>0 && $p_verteilung_02=="dopel") {
1248 print('<option value="doppel" selected="selected">Doppelzimmer</option>');
1249 } else print('<option value="doppel">Doppelzimmer</option>');
1250 if (strlen($p_submit)>0 && $p_verteilung_02=="einzel") {
1251 print('<option value="einzel" selected="selected">Einzelzimmer</option>');
1252 } else print('<option value="einzel">Einzelzimmer</option>');
1253 ?>
1254 </select>
1255 </td>
1256 </table>
1257 <font style="font-size: 10px;"><br></font>
1258 Zusätzliche Optionen <br>
1259 <font style="font-size: 5px;"><br></font>
1260 <?php
1261 $brojac3=2;
1262 $p_zusat[2][1]="Yes";
1263 $p_zusat[2][2]="Yes";
1264 $p_zusat_name[1]="Neshto1";
1265 $p_zusat_name[2]="Neshto2";
1266 $p_zusat_price[1]="Cijena1";
1267 $p_zusat_price[2]="Cijena2";
1268 for ($i=1; $i<=$brojac3; $i++) {
1269 if (strlen($p_submit)>0 && strlen($p_zusat[2][$i])>0) {
1270 print('<input type="checkbox" name="zusat'.$i.'" id="zusat'.$i.'" value="Yes" checked="checked"> '.$p_zusat_name[$i].' ('.$p_zusat_price[$i].' €)<br>');
1271 } else print('<input type="checkbox" name="zusat'.$i.'" id="zusat'.$i.'" value="Yes"> '.$p_zusat_name[$i].' ('.$p_zusat_price[$i].' €)<br>');
1272 }
1273
1274 ?>
1275 </div>
1276 <div id="box-buchung-002" name="TeilPreis-02" style="display:none;">
1277 </div>
1278 </td>
1279 </tr>
1280 </table>
1281 </div>
1282
1283 <div id="TeilShow-03" style="display:none;">
1284 <font style="font-size: 5px;"><br></font>
1285 <table border="0" cellpadding="0" cellspacing="0">
1286 <tr>
1287 <td>
1288 <div id="box-buchung-001" style="border-top-style: solid;">
1289 <table width="100%" border="0" cellspacing="0" cellpadding="0">
1290 <tr>
1291 <td valign="middle" ><font style="font-size: 20px;">Teilnehmer 2:</font>
1292 </td>
1293 </tr>
1294 </table>
1295 <font size=1><br></font>
1296 <table width="100%" border="0" cellspacing="0" cellpadding="0">
1297 <tr>
1298 <td>
1299 Vorname
1300 </td>
1301 <td>
1302 Nachname
1303 </td>
1304 <td>
1305 Geb.datum
1306 </td>
1307 </tr>
1308 <tr>
1309 <td>
1310 <?php
1311 if (strlen($p_submit)>0 && strlen($p_vorname_03)>0) {
1312 print('<input id="name-03" name="vorname-03" class="form-004" value="'.$p_vorname_03.'"/>');
1313 } else print('<input id="name-03" name="vorname-03" class="form-004"/>');
1314 ?>
1315 </td>
1316 <td>
1317 <?php
1318 if (strlen($p_submit)>0 && strlen($p_name_03)>0) {
1319 print('<input id="name-03" name="name-03" class="form-004" value="'.$p_name_03.'"/>');
1320 } else print('<input id="name-03" name="name-03" class="form-004"/>');
1321 ?>
1322 </td>
1323 <td>
1324 <?php
1325 if (strlen($p_submit)>0 && strlen($p_gebdatum_03)>0) {
1326 print('<input id="gebdatum-03" name="gebdatum-03" class="form-005" value="'.$p_gebdatum_03.'"/>');
1327 } else print('<input id="gebdatum-03" name="gebdatum-03" class="form-005"/>');
1328 ?>
1329 </td>
1330 </tr>
1331 </table>
1332 <font size=1><br></font>
1333 <table width="100%" border="0" cellspacing="0" cellpadding="0">
1334 <tr>
1335 <td>
1336 Email
1337 </td>
1338 <td>
1339 Zimmerverteilung
1340 </td>
1341 </tr>
1342 <tr>
1343 <td>
1344 <?php
1345 if (strlen($p_submit)>0 && strlen($p_email_03)>0) {
1346 print('<input id="email-03" name="email-03" class="form-0022" value="'.$p_email_03.'"/>');
1347 } else print('<input id="email-03" name="email-03" class="form-0022"/>');
1348 ?>
1349 </td>
1350 <td>
1351 <select name="verteilung-03" id="verteilung-03" class="form-0023" onblur='' onchange="">
1352 <?php
1353 if (strlen($p_submit)>0 && $p_verteilung_03=="3er_4er") {
1354 print('<option value="3er_4er" selected="selected">3er/4er Bettzimmer</option>');
1355 } else print('<option value="3er_4er">3er/4er Bettzimmer</option>');
1356 if (strlen($p_submit)>0 && $p_verteilung_03=="dopel") {
1357 print('<option value="doppel" selected="selected">Doppelzimmer</option>');
1358 } else print('<option value="doppel">Doppelzimmer</option>');
1359 if (strlen($p_submit)>0 && $p_verteilung_03=="einzel") {
1360 print('<option value="einzel" selected="selected">Einzelzimmer</option>');
1361 } else print('<option value="einzel">Einzelzimmer</option>');
1362 ?>
1363 </select>
1364 </td>
1365 </table>
1366 <font style="font-size: 10px;"><br></font>
1367 Zusätzliche Optionen <br>
1368 <font style="font-size: 5px;"><br></font>
1369 <?php
1370 $brojac3=2;
1371 $p_zusat[3][1]="Yes";
1372 $p_zusat[3][2]="Yes";
1373 $p_zusat_name[1]="Neshto1";
1374 $p_zusat_name[2]="Neshto2";
1375 $p_zusat_price[1]="Cijena1";
1376 $p_zusat_price[2]="Cijena2";
1377 for ($i=1; $i<=$brojac3; $i++) {
1378 if (strlen($p_submit)>0 && strlen($p_zusat[3][$i])>0) {
1379 print('<input type="checkbox" name="zusat'.$i.'" id="zusat'.$i.'" value="Yes" checked="checked"> '.$p_zusat_name[$i].' ('.$p_zusat_price[$i].' €)<br>');
1380 } else print('<input type="checkbox" name="zusat'.$i.'" id="zusat'.$i.'" value="Yes"> '.$p_zusat_name[$i].' ('.$p_zusat_price[$i].' €)<br>');
1381 }
1382
1383 ?>
1384 </div>
1385 <div id="box-buchung-002" name="TeilPreis-03" style="display:none;">
1386 </div>
1387 </td>
1388 </tr>
1389 </table>
1390 </div>
1391
1392 <div id="TeilShow-04" style="display:none;">
1393 <font style="font-size: 5px;"><br></font>
1394 <table border="0" cellpadding="0" cellspacing="0">
1395 <tr>
1396 <td>
1397 <div id="box-buchung-001" style="border-top-style: solid;">
1398 <table width="100%" border="0" cellspacing="0" cellpadding="0">
1399 <tr>
1400 <td valign="middle" ><font style="font-size: 20px;">Teilnehmer 3:</font>
1401 </td>
1402 </tr>
1403 </table>
1404 <font size=1><br></font>
1405 <table width="100%" border="0" cellspacing="0" cellpadding="0">
1406 <tr>
1407 <td>
1408 Vorname
1409 </td>
1410 <td>
1411 Nachname
1412 </td>
1413 <td>
1414 Geb.datum
1415 </td>
1416 </tr>
1417 <tr>
1418 <td>
1419 <?php
1420 if (strlen($p_submit)>0 && strlen($p_vorname_04)>0) {
1421 print('<input id="name-04" name="vorname-04" class="form-004" value="'.$p_vorname_04.'"/>');
1422 } else print('<input id="name-04" name="vorname-04" class="form-004"/>');
1423 ?>
1424 </td>
1425 <td>
1426 <?php
1427 if (strlen($p_submit)>0 && strlen($p_name_04)>0) {
1428 print('<input id="name-04" name="name-04" class="form-004" value="'.$p_name_04.'"/>');
1429 } else print('<input id="name-04" name="name-04" class="form-004"/>');
1430 ?>
1431 </td>
1432 <td>
1433 <?php
1434 if (strlen($p_submit)>0 && strlen($p_gebdatum_04)>0) {
1435 print('<input id="gebdatum-04" name="gebdatum-04" class="form-005" value="'.$p_gebdatum_04.'"/>');
1436 } else print('<input id="gebdatum-04" name="gebdatum-04" class="form-005"/>');
1437 ?>
1438 </td>
1439 </tr>
1440 </table>
1441 <font size=1><br></font>
1442 <table width="100%" border="0" cellspacing="0" cellpadding="0">
1443 <tr>
1444 <td>
1445 Email
1446 </td>
1447 <td>
1448 Zimmerverteilung
1449 </td>
1450 </tr>
1451 <tr>
1452 <td>
1453 <?php
1454 if (strlen($p_submit)>0 && strlen($p_email_04)>0) {
1455 print('<input id="email-04" name="email-04" class="form-0022" value="'.$p_email_04.'"/>');
1456 } else print('<input id="email-04" name="email-04" class="form-0022"/>');
1457 ?>
1458 </td>
1459 <td>
1460 <select name="verteilung-04" id="verteilung-04" class="form-0023" onblur='' onchange="">
1461 <?php
1462 if (strlen($p_submit)>0 && $p_verteilung_04=="3er_4er") {
1463 print('<option value="3er_4er" selected="selected">3er/4er Bettzimmer</option>');
1464 } else print('<option value="3er_4er">3er/4er Bettzimmer</option>');
1465 if (strlen($p_submit)>0 && $p_verteilung_04=="dopel") {
1466 print('<option value="doppel" selected="selected">Doppelzimmer</option>');
1467 } else print('<option value="doppel">Doppelzimmer</option>');
1468 if (strlen($p_submit)>0 && $p_verteilung_04=="einzel") {
1469 print('<option value="einzel" selected="selected">Einzelzimmer</option>');
1470 } else print('<option value="einzel">Einzelzimmer</option>');
1471 ?>
1472 </select>
1473 </td>
1474 </table>
1475 <font style="font-size: 10px;"><br></font>
1476 Zusätzliche Optionen <br>
1477 <font style="font-size: 5px;"><br></font>
1478 <?php
1479 $brojac3=2;
1480 $p_zusat[4][1]="Yes";
1481 $p_zusat[4][2]="Yes";
1482 $p_zusat_name[1]="Neshto1";
1483 $p_zusat_name[2]="Neshto2";
1484 $p_zusat_price[1]="Cijena1";
1485 $p_zusat_price[2]="Cijena2";
1486 for ($i=1; $i<=$brojac3; $i++) {
1487 if (strlen($p_submit)>0 && strlen($p_zusat[4][$i])>0) {
1488 print('<input type="checkbox" name="zusat'.$i.'" id="zusat'.$i.'" value="Yes" checked="checked"> '.$p_zusat_name[$i].' ('.$p_zusat_price[$i].' €)<br>');
1489 } else print('<input type="checkbox" name="zusat'.$i.'" id="zusat'.$i.'" value="Yes"> '.$p_zusat_name[$i].' ('.$p_zusat_price[$i].' €)<br>');
1490 }
1491
1492 ?>
1493 </div>
1494 <div id="box-buchung-002" name="TeilPreis-04" style="display:none;">
1495 </div>
1496 </td>
1497 </tr>
1498 </table>
1499 </div>
1500
1501 <div id="TeilShow-05" style="display:none;">
1502 <font style="font-size: 5px;"><br></font>
1503 <table border="0" cellpadding="0" cellspacing="0">
1504 <tr>
1505 <td>
1506 <div id="box-buchung-001" style="border-top-style: solid;">
1507 <table width="100%" border="0" cellspacing="0" cellpadding="0">
1508 <tr>
1509 <td valign="middle" ><font style="font-size: 20px;">Teilnehmer 4:</font>
1510 </td>
1511 </tr>
1512 </table>
1513 <font size=1><br></font>
1514 <table width="100%" border="0" cellspacing="0" cellpadding="0">
1515 <tr>
1516 <td>
1517 Vorname
1518 </td>
1519 <td>
1520 Nachname
1521 </td>
1522 <td>
1523 Geb.datum
1524 </td>
1525 </tr>
1526 <tr>
1527 <td>
1528 <?php
1529 if (strlen($p_submit)>0 && strlen($p_vorname_05)>0) {
1530 print('<input id="name-05" name="vorname-05" class="form-004" value="'.$p_vorname_05.'"/>');
1531 } else print('<input id="name-05" name="vorname-05" class="form-004"/>');
1532 ?>
1533 </td>
1534 <td>
1535 <?php
1536 if (strlen($p_submit)>0 && strlen($p_name_05)>0) {
1537 print('<input id="name-05" name="name-05" class="form-004" value="'.$p_name_05.'"/>');
1538 } else print('<input id="name-05" name="name-05" class="form-004"/>');
1539 ?>
1540 </td>
1541 <td>
1542 <?php
1543 if (strlen($p_submit)>0 && strlen($p_gebdatum_05)>0) {
1544 print('<input id="gebdatum-05" name="gebdatum-05" class="form-005" value="'.$p_gebdatum_05.'"/>');
1545 } else print('<input id="gebdatum-05" name="gebdatum-05" class="form-005"/>');
1546 ?>
1547 </td>
1548 </tr>
1549 </table>
1550 <font size=1><br></font>
1551 <table width="100%" border="0" cellspacing="0" cellpadding="0">
1552 <tr>
1553 <td>
1554 Email
1555 </td>
1556 <td>
1557 Zimmerverteilung
1558 </td>
1559 </tr>
1560 <tr>
1561 <td>
1562 <?php
1563 if (strlen($p_submit)>0 && strlen($p_email_05)>0) {
1564 print('<input id="email-05" name="email-05" class="form-0022" value="'.$p_email_05.'"/>');
1565 } else print('<input id="email-05" name="email-05" class="form-0022"/>');
1566 ?>
1567 </td>
1568 <td>
1569 <select name="verteilung-05" id="verteilung-05" class="form-0023" onblur='' onchange="">
1570 <?php
1571 if (strlen($p_submit)>0 && $p_verteilung_05=="3er_4er") {
1572 print('<option value="3er_4er" selected="selected">3er/4er Bettzimmer</option>');
1573 } else print('<option value="3er_4er">3er/4er Bettzimmer</option>');
1574 if (strlen($p_submit)>0 && $p_verteilung_05=="dopel") {
1575 print('<option value="doppel" selected="selected">Doppelzimmer</option>');
1576 } else print('<option value="doppel">Doppelzimmer</option>');
1577 if (strlen($p_submit)>0 && $p_verteilung_05=="einzel") {
1578 print('<option value="einzel" selected="selected">Einzelzimmer</option>');
1579 } else print('<option value="einzel">Einzelzimmer</option>');
1580 ?>
1581 </select>
1582 </td>
1583 </table>
1584 <font style="font-size: 10px;"><br></font>
1585 Zusätzliche Optionen <br>
1586 <font style="font-size: 5px;"><br></font>
1587 <?php
1588 $brojac3=2;
1589 $p_zusat[5][1]="Yes";
1590 $p_zusat[5][2]="Yes";
1591 $p_zusat_name[1]="Neshto1";
1592 $p_zusat_name[2]="Neshto2";
1593 $p_zusat_price[1]="Cijena1";
1594 $p_zusat_price[2]="Cijena2";
1595 for ($i=1; $i<=$brojac3; $i++) {
1596 if (strlen($p_submit)>0 && strlen($p_zusat[5][$i])>0) {
1597 print('<input type="checkbox" name="zusat'.$i.'" id="zusat'.$i.'" value="Yes" checked="checked"> '.$p_zusat_name[$i].' ('.$p_zusat_price[$i].' €)<br>');
1598 } else print('<input type="checkbox" name="zusat'.$i.'" id="zusat'.$i.'" value="Yes"> '.$p_zusat_name[$i].' ('.$p_zusat_price[$i].' €)<br>');
1599 }
1600
1601 ?>
1602 </div>
1603 <div id="box-buchung-002" name="TeilPreis-05" style="display:none;">
1604 </div>
1605 </td>
1606 </tr>
1607 </table>
1608 </div>
1609
1610 <div id="TeilShow-06" style="display:none;">
1611 <font style="font-size: 5px;"><br></font>
1612 <table border="0" cellpadding="0" cellspacing="0">
1613 <tr>
1614 <td>
1615 <div id="box-buchung-001" style="border-top-style: solid;">
1616 <table width="100%" border="0" cellspacing="0" cellpadding="0">
1617 <tr>
1618 <td valign="middle" ><font style="font-size: 20px;">Teilnehmer 5:</font>
1619 </td>
1620 </tr>
1621 </table>
1622 <font size=1><br></font>
1623 <table width="100%" border="0" cellspacing="0" cellpadding="0">
1624 <tr>
1625 <td>
1626 Vorname
1627 </td>
1628 <td>
1629 Nachname
1630 </td>
1631 <td>
1632 Geb.datum
1633 </td>
1634 </tr>
1635 <tr>
1636 <td>
1637 <?php
1638 if (strlen($p_submit)>0 && strlen($p_vorname_06)>0) {
1639 print('<input id="name-06" name="vorname-06" class="form-004" value="'.$p_vorname_06.'"/>');
1640 } else print('<input id="name-06" name="vorname-06" class="form-004"/>');
1641 ?>
1642 </td>
1643 <td>
1644 <?php
1645 if (strlen($p_submit)>0 && strlen($p_name_06)>0) {
1646 print('<input id="name-06" name="name-06" class="form-004" value="'.$p_name_06.'"/>');
1647 } else print('<input id="name-06" name="name-06" class="form-004"/>');
1648 ?>
1649 </td>
1650 <td>
1651 <?php
1652 if (strlen($p_submit)>0 && strlen($p_gebdatum_06)>0) {
1653 print('<input id="gebdatum-06" name="gebdatum-06" class="form-005" value="'.$p_gebdatum_06.'"/>');
1654 } else print('<input id="gebdatum-06" name="gebdatum-06" class="form-005"/>');
1655 ?>
1656 </td>
1657 </tr>
1658 </table>
1659 <font size=1><br></font>
1660 <table width="100%" border="0" cellspacing="0" cellpadding="0">
1661 <tr>
1662 <td>
1663 Email
1664 </td>
1665 <td>
1666 Zimmerverteilung
1667 </td>
1668 </tr>
1669 <tr>
1670 <td>
1671 <?php
1672 if (strlen($p_submit)>0 && strlen($p_email_06)>0) {
1673 print('<input id="email-06" name="email-06" class="form-0022" value="'.$p_email_06.'"/>');
1674 } else print('<input id="email-06" name="email-06" class="form-0022"/>');
1675 ?>
1676 </td>
1677 <td>
1678 <select name="verteilung-06" id="verteilung-06" class="form-0023" onblur='' onchange="">
1679 <?php
1680 if (strlen($p_submit)>0 && $p_verteilung_06=="3er_4er") {
1681 print('<option value="3er_4er" selected="selected">3er/4er Bettzimmer</option>');
1682 } else print('<option value="3er_4er">3er/4er Bettzimmer</option>');
1683 if (strlen($p_submit)>0 && $p_verteilung_06=="dopel") {
1684 print('<option value="doppel" selected="selected">Doppelzimmer</option>');
1685 } else print('<option value="doppel">Doppelzimmer</option>');
1686 if (strlen($p_submit)>0 && $p_verteilung_06=="einzel") {
1687 print('<option value="einzel" selected="selected">Einzelzimmer</option>');
1688 } else print('<option value="einzel">Einzelzimmer</option>');
1689 ?>
1690 </select>
1691 </td>
1692 </table>
1693 <font style="font-size: 10px;"><br></font>
1694 Zusätzliche Optionen <br>
1695 <font style="font-size: 5px;"><br></font>
1696 <?php
1697 $brojac3=2;
1698 $p_zusat[6][1]="Yes";
1699 $p_zusat[6][2]="Yes";
1700 $p_zusat_name[1]="Neshto1";
1701 $p_zusat_name[2]="Neshto2";
1702 $p_zusat_price[1]="Cijena1";
1703 $p_zusat_price[2]="Cijena2";
1704 for ($i=1; $i<=$brojac3; $i++) {
1705 if (strlen($p_submit)>0 && strlen($p_zusat[6][$i])>0) {
1706 print('<input type="checkbox" name="zusat'.$i.'" id="zusat'.$i.'" value="Yes" checked="checked"> '.$p_zusat_name[$i].' ('.$p_zusat_price[$i].' €)<br>');
1707 } else print('<input type="checkbox" name="zusat'.$i.'" id="zusat'.$i.'" value="Yes"> '.$p_zusat_name[$i].' ('.$p_zusat_price[$i].' €)<br>');
1708 }
1709
1710 ?>
1711 </div>
1712 <div id="box-buchung-002" name="TeilPreis-06" style="display:none;">
1713 </div>
1714 </td>
1715 </tr>
1716 </table>
1717 </div>
1718
1719 <div id="TeilShow-07" style="display:none;">
1720 <font style="font-size: 5px;"><br></font>
1721 <table border="0" cellpadding="0" cellspacing="0">
1722 <tr>
1723 <td>
1724 <div id="box-buchung-001" style="border-top-style: solid;">
1725 <table width="100%" border="0" cellspacing="0" cellpadding="0">
1726 <tr>
1727 <td valign="middle" ><font style="font-size: 20px;">Teilnehmer 6:</font>
1728 </td>
1729 </tr>
1730 </table>
1731 <font size=1><br></font>
1732 <table width="100%" border="0" cellspacing="0" cellpadding="0">
1733 <tr>
1734 <td>
1735 Vorname
1736 </td>
1737 <td>
1738 Nachname
1739 </td>
1740 <td>
1741 Geb.datum
1742 </td>
1743 </tr>
1744 <tr>
1745 <td>
1746 <?php
1747 if (strlen($p_submit)>0 && strlen($p_vorname_07)>0) {
1748 print('<input id="name-07" name="vorname-07" class="form-004" value="'.$p_vorname_07.'"/>');
1749 } else print('<input id="name-07" name="vorname-07" class="form-004"/>');
1750 ?>
1751 </td>
1752 <td>
1753 <?php
1754 if (strlen($p_submit)>0 && strlen($p_name_07)>0) {
1755 print('<input id="name-07" name="name-07" class="form-004" value="'.$p_name_07.'"/>');
1756 } else print('<input id="name-07" name="name-07" class="form-004"/>');
1757 ?>
1758 </td>
1759 <td>
1760 <?php
1761 if (strlen($p_submit)>0 && strlen($p_gebdatum_07)>0) {
1762 print('<input id="gebdatum-07" name="gebdatum-07" class="form-005" value="'.$p_gebdatum_07.'"/>');
1763 } else print('<input id="gebdatum-07" name="gebdatum-07" class="form-005"/>');
1764 ?>
1765 </td>
1766 </tr>
1767 </table>
1768 <font size=1><br></font>
1769 <table width="100%" border="0" cellspacing="0" cellpadding="0">
1770 <tr>
1771 <td>
1772 Email
1773 </td>
1774 <td>
1775 Zimmerverteilung
1776 </td>
1777 </tr>
1778 <tr>
1779 <td>
1780 <?php
1781 if (strlen($p_submit)>0 && strlen($p_email_07)>0) {
1782 print('<input id="email-07" name="email-07" class="form-0022" value="'.$p_email_07.'"/>');
1783 } else print('<input id="email-07" name="email-07" class="form-0022"/>');
1784 ?>
1785 </td>
1786 <td>
1787 <select name="verteilung-07" id="verteilung-07" class="form-0023" onblur='' onchange="">
1788 <?php
1789 if (strlen($p_submit)>0 && $p_verteilung_07=="3er_4er") {
1790 print('<option value="3er_4er" selected="selected">3er/4er Bettzimmer</option>');
1791 } else print('<option value="3er_4er">3er/4er Bettzimmer</option>');
1792 if (strlen($p_submit)>0 && $p_verteilung_07=="dopel") {
1793 print('<option value="doppel" selected="selected">Doppelzimmer</option>');
1794 } else print('<option value="doppel">Doppelzimmer</option>');
1795 if (strlen($p_submit)>0 && $p_verteilung_07=="einzel") {
1796 print('<option value="einzel" selected="selected">Einzelzimmer</option>');
1797 } else print('<option value="einzel">Einzelzimmer</option>');
1798 ?>
1799 </select>
1800 </td>
1801 </table>
1802 <font style="font-size: 10px;"><br></font>
1803 Zusätzliche Optionen <br>
1804 <font style="font-size: 5px;"><br></font>
1805 <?php
1806 $brojac3=2;
1807 $p_zusat[7][1]="Yes";
1808 $p_zusat[7][2]="Yes";
1809 $p_zusat_name[1]="Neshto1";
1810 $p_zusat_name[2]="Neshto2";
1811 $p_zusat_price[1]="Cijena1";
1812 $p_zusat_price[2]="Cijena2";
1813 for ($i=1; $i<=$brojac3; $i++) {
1814 if (strlen($p_submit)>0 && strlen($p_zusat[7][$i])>0) {
1815 print('<input type="checkbox" name="zusat'.$i.'" id="zusat'.$i.'" value="Yes" checked="checked"> '.$p_zusat_name[$i].' ('.$p_zusat_price[$i].' €)<br>');
1816 } else print('<input type="checkbox" name="zusat'.$i.'" id="zusat'.$i.'" value="Yes"> '.$p_zusat_name[$i].' ('.$p_zusat_price[$i].' €)<br>');
1817 }
1818
1819 ?>
1820 </div>
1821 <div id="box-buchung-002" name="TeilPreis-07" style="display:none;">
1822 </div>
1823 </td>
1824 </tr>
1825 </table>
1826 </div>
1827
1828 <div id="TeilShow-08" style="display:none;">
1829 <font style="font-size: 5px;"><br></font>
1830 <table border="0" cellpadding="0" cellspacing="0">
1831 <tr>
1832 <td>
1833 <div id="box-buchung-001" style="border-top-style: solid;">
1834 <table width="100%" border="0" cellspacing="0" cellpadding="0">
1835 <tr>
1836 <td valign="middle" ><font style="font-size: 20px;">Teilnehmer 7:</font>
1837 </td>
1838 </tr>
1839 </table>
1840 <font size=1><br></font>
1841 <table width="100%" border="0" cellspacing="0" cellpadding="0">
1842 <tr>
1843 <td>
1844 Vorname
1845 </td>
1846 <td>
1847 Nachname
1848 </td>
1849 <td>
1850 Geb.datum
1851 </td>
1852 </tr>
1853 <tr>
1854 <td>
1855 <?php
1856 if (strlen($p_submit)>0 && strlen($p_vorname_08)>0) {
1857 print('<input id="name-08" name="vorname-08" class="form-004" value="'.$p_vorname_08.'"/>');
1858 } else print('<input id="name-08" name="vorname-08" class="form-004"/>');
1859 ?>
1860 </td>
1861 <td>
1862 <?php
1863 if (strlen($p_submit)>0 && strlen($p_name_08)>0) {
1864 print('<input id="name-08" name="name-08" class="form-004" value="'.$p_name_08.'"/>');
1865 } else print('<input id="name-08" name="name-08" class="form-004"/>');
1866 ?>
1867 </td>
1868 <td>
1869 <?php
1870 if (strlen($p_submit)>0 && strlen($p_gebdatum_08)>0) {
1871 print('<input id="gebdatum-08" name="gebdatum-08" class="form-005" value="'.$p_gebdatum_08.'"/>');
1872 } else print('<input id="gebdatum-08" name="gebdatum-08" class="form-005"/>');
1873 ?>
1874 </td>
1875 </tr>
1876 </table>
1877 <font size=1><br></font>
1878 <table width="100%" border="0" cellspacing="0" cellpadding="0">
1879 <tr>
1880 <td>
1881 Email
1882 </td>
1883 <td>
1884 Zimmerverteilung
1885 </td>
1886 </tr>
1887 <tr>
1888 <td>
1889 <?php
1890 if (strlen($p_submit)>0 && strlen($p_email_08)>0) {
1891 print('<input id="email-08" name="email-08" class="form-0022" value="'.$p_email_08.'"/>');
1892 } else print('<input id="email-08" name="email-08" class="form-0022"/>');
1893 ?>
1894 </td>
1895 <td>
1896 <select name="verteilung-08" id="verteilung-08" class="form-0023" onblur='' onchange="">
1897 <?php
1898 if (strlen($p_submit)>0 && $p_verteilung_08=="3er_4er") {
1899 print('<option value="3er_4er" selected="selected">3er/4er Bettzimmer</option>');
1900 } else print('<option value="3er_4er">3er/4er Bettzimmer</option>');
1901 if (strlen($p_submit)>0 && $p_verteilung_08=="dopel") {
1902 print('<option value="doppel" selected="selected">Doppelzimmer</option>');
1903 } else print('<option value="doppel">Doppelzimmer</option>');
1904 if (strlen($p_submit)>0 && $p_verteilung_08=="einzel") {
1905 print('<option value="einzel" selected="selected">Einzelzimmer</option>');
1906 } else print('<option value="einzel">Einzelzimmer</option>');
1907 ?>
1908 </select>
1909 </td>
1910 </table>
1911 <font style="font-size: 10px;"><br></font>
1912 Zusätzliche Optionen <br>
1913 <font style="font-size: 5px;"><br></font>
1914 <?php
1915 $brojac3=2;
1916 $p_zusat[8][1]="Yes";
1917 $p_zusat[8][2]="Yes";
1918 $p_zusat_name[1]="Neshto1";
1919 $p_zusat_name[2]="Neshto2";
1920 $p_zusat_price[1]="Cijena1";
1921 $p_zusat_price[2]="Cijena2";
1922 for ($i=1; $i<=$brojac3; $i++) {
1923 if (strlen($p_submit)>0 && strlen($p_zusat[8][$i])>0) {
1924 print('<input type="checkbox" name="zusat'.$i.'" id="zusat'.$i.'" value="Yes" checked="checked"> '.$p_zusat_name[$i].' ('.$p_zusat_price[$i].' €)<br>');
1925 } else print('<input type="checkbox" name="zusat'.$i.'" id="zusat'.$i.'" value="Yes"> '.$p_zusat_name[$i].' ('.$p_zusat_price[$i].' €)<br>');
1926 }
1927
1928 ?>
1929 </div>
1930 <div id="box-buchung-002" name="TeilPreis-08" style="display:none;">
1931 </div>
1932 </td>
1933 </tr>
1934 </table>
1935 </div>
1936
1937 <div id="TeilShow-09" style="display:none;">
1938 <font style="font-size: 5px;"><br></font>
1939 <table border="0" cellpadding="0" cellspacing="0">
1940 <tr>
1941 <td>
1942 <div id="box-buchung-001" style="border-top-style: solid;">
1943 <table width="100%" border="0" cellspacing="0" cellpadding="0">
1944 <tr>
1945 <td valign="middle" ><font style="font-size: 20px;">Teilnehmer 8:</font>
1946 </td>
1947 </tr>
1948 </table>
1949 <font size=1><br></font>
1950 <table width="100%" border="0" cellspacing="0" cellpadding="0">
1951 <tr>
1952 <td>
1953 Vorname
1954 </td>
1955 <td>
1956 Nachname
1957 </td>
1958 <td>
1959 Geb.datum
1960 </td>
1961 </tr>
1962 <tr>
1963 <td>
1964 <?php
1965 if (strlen($p_submit)>0 && strlen($p_vorname_09)>0) {
1966 print('<input id="name-09" name="vorname-09" class="form-004" value="'.$p_vorname_09.'"/>');
1967 } else print('<input id="name-09" name="vorname-09" class="form-004"/>');
1968 ?>
1969 </td>
1970 <td>
1971 <?php
1972 if (strlen($p_submit)>0 && strlen($p_name_09)>0) {
1973 print('<input id="name-09" name="name-09" class="form-004" value="'.$p_name_09.'"/>');
1974 } else print('<input id="name-09" name="name-09" class="form-004"/>');
1975 ?>
1976 </td>
1977 <td>
1978 <?php
1979 if (strlen($p_submit)>0 && strlen($p_gebdatum_09)>0) {
1980 print('<input id="gebdatum-09" name="gebdatum-09" class="form-005" value="'.$p_gebdatum_09.'"/>');
1981 } else print('<input id="gebdatum-09" name="gebdatum-09" class="form-005"/>');
1982 ?>
1983 </td>
1984 </tr>
1985 </table>
1986 <font size=1><br></font>
1987 <table width="100%" border="0" cellspacing="0" cellpadding="0">
1988 <tr>
1989 <td>
1990 Email
1991 </td>
1992 <td>
1993 Zimmerverteilung
1994 </td>
1995 </tr>
1996 <tr>
1997 <td>
1998 <?php
1999 if (strlen($p_submit)>0 && strlen($p_email_09)>0) {
2000 print('<input id="email-09" name="email-09" class="form-0022" value="'.$p_email_09.'"/>');
2001 } else print('<input id="email-09" name="email-09" class="form-0022"/>');
2002 ?>
2003 </td>
2004 <td>
2005 <select name="verteilung-09" id="verteilung-09" class="form-0023" onblur='' onchange="">
2006 <?php
2007 if (strlen($p_submit)>0 && $p_verteilung_09=="3er_4er") {
2008 print('<option value="3er_4er" selected="selected">3er/4er Bettzimmer</option>');
2009 } else print('<option value="3er_4er">3er/4er Bettzimmer</option>');
2010 if (strlen($p_submit)>0 && $p_verteilung_09=="dopel") {
2011 print('<option value="doppel" selected="selected">Doppelzimmer</option>');
2012 } else print('<option value="doppel">Doppelzimmer</option>');
2013 if (strlen($p_submit)>0 && $p_verteilung_09=="einzel") {
2014 print('<option value="einzel" selected="selected">Einzelzimmer</option>');
2015 } else print('<option value="einzel">Einzelzimmer</option>');
2016 ?>
2017 </select>
2018 </td>
2019 </table>
2020 <font style="font-size: 10px;"><br></font>
2021 Zusätzliche Optionen <br>
2022 <font style="font-size: 5px;"><br></font>
2023 <?php
2024 $brojac3=2;
2025 $p_zusat[9][1]="Yes";
2026 $p_zusat[9][2]="Yes";
2027 $p_zusat_name[1]="Neshto1";
2028 $p_zusat_name[2]="Neshto2";
2029 $p_zusat_price[1]="Cijena1";
2030 $p_zusat_price[2]="Cijena2";
2031 for ($i=1; $i<=$brojac3; $i++) {
2032 if (strlen($p_submit)>0 && strlen($p_zusat[9][$i])>0) {
2033 print('<input type="checkbox" name="zusat'.$i.'" id="zusat'.$i.'" value="Yes" checked="checked"> '.$p_zusat_name[$i].' ('.$p_zusat_price[$i].' €)<br>');
2034 } else print('<input type="checkbox" name="zusat'.$i.'" id="zusat'.$i.'" value="Yes"> '.$p_zusat_name[$i].' ('.$p_zusat_price[$i].' €)<br>');
2035 }
2036
2037 ?>
2038 </div>
2039 <div id="box-buchung-002" name="TeilPreis-09" style="display:none;">
2040 </div>
2041 </td>
2042 </tr>
2043 </table>
2044 </div>
2045
2046 <div id="TeilShow-10" style="display:none;">
2047 <font style="font-size: 5px;"><br></font>
2048 <table border="0" cellpadding="0" cellspacing="0">
2049 <tr>
2050 <td>
2051 <div id="box-buchung-001" style="border-top-style: solid;">
2052 <table width="100%" border="0" cellspacing="0" cellpadding="0">
2053 <tr>
2054 <td valign="middle" ><font style="font-size: 20px;">Teilnehmer 9:</font>
2055 </td>
2056 </tr>
2057 </table>
2058 <font size=1><br></font>
2059 <table width="100%" border="0" cellspacing="0" cellpadding="0">
2060 <tr>
2061 <td>
2062 Vorname
2063 </td>
2064 <td>
2065 Nachname
2066 </td>
2067 <td>
2068 Geb.datum
2069 </td>
2070 </tr>
2071 <tr>
2072 <td>
2073 <?php
2074 if (strlen($p_submit)>0 && strlen($p_vorname_10)>0) {
2075 print('<input id="name-10" name="vorname-10" class="form-004" value="'.$p_vorname_10.'"/>');
2076 } else print('<input id="name-10" name="vorname-10" class="form-004"/>');
2077 ?>
2078 </td>
2079 <td>
2080 <?php
2081 if (strlen($p_submit)>0 && strlen($p_name_10)>0) {
2082 print('<input id="name-10" name="name-10" class="form-004" value="'.$p_name_10.'"/>');
2083 } else print('<input id="name-10" name="name-10" class="form-004"/>');
2084 ?>
2085 </td>
2086 <td>
2087 <?php
2088 if (strlen($p_submit)>0 && strlen($p_gebdatum_10)>0) {
2089 print('<input id="gebdatum-10" name="gebdatum-10" class="form-005" value="'.$p_gebdatum_10.'"/>');
2090 } else print('<input id="gebdatum-10" name="gebdatum-10" class="form-005"/>');
2091 ?>
2092 </td>
2093 </tr>
2094 </table>
2095 <font size=1><br></font>
2096 <table width="100%" border="0" cellspacing="0" cellpadding="0">
2097 <tr>
2098 <td>
2099 Email
2100 </td>
2101 <td>
2102 Zimmerverteilung
2103 </td>
2104 </tr>
2105 <tr>
2106 <td>
2107 <?php
2108 if (strlen($p_submit)>0 && strlen($p_email_10)>0) {
2109 print('<input id="email-10" name="email-10" class="form-0022" value="'.$p_email_10.'"/>');
2110 } else print('<input id="email-10" name="email-10" class="form-0022"/>');
2111 ?>
2112 </td>
2113 <td>
2114 <select name="verteilung-10" id="verteilung-10" class="form-0023" onblur='' onchange="">
2115 <?php
2116 if (strlen($p_submit)>0 && $p_verteilung_10=="3er_4er") {
2117 print('<option value="3er_4er" selected="selected">3er/4er Bettzimmer</option>');
2118 } else print('<option value="3er_4er">3er/4er Bettzimmer</option>');
2119 if (strlen($p_submit)>0 && $p_verteilung_10=="dopel") {
2120 print('<option value="doppel" selected="selected">Doppelzimmer</option>');
2121 } else print('<option value="doppel">Doppelzimmer</option>');
2122 if (strlen($p_submit)>0 && $p_verteilung_10=="einzel") {
2123 print('<option value="einzel" selected="selected">Einzelzimmer</option>');
2124 } else print('<option value="einzel">Einzelzimmer</option>');
2125 ?>
2126 </select>
2127 </td>
2128 </table>
2129 <font style="font-size: 10px;"><br></font>
2130 Zusätzliche Optionen <br>
2131 <font style="font-size: 5px;"><br></font>
2132 <?php
2133 $brojac3=2;
2134 $p_zusat[10][1]="Yes";
2135 $p_zusat[10][2]="Yes";
2136 $p_zusat_name[1]="Neshto1";
2137 $p_zusat_name[2]="Neshto2";
2138 $p_zusat_price[1]="Cijena1";
2139 $p_zusat_price[2]="Cijena2";
2140 for ($i=1; $i<=$brojac3; $i++) {
2141 if (strlen($p_submit)>0 && strlen($p_zusat[10][$i])>0) {
2142 print('<input type="checkbox" name="zusat'.$i.'" id="zusat'.$i.'" value="Yes" checked="checked"> '.$p_zusat_name[$i].' ('.$p_zusat_price[$i].' €)<br>');
2143 } else print('<input type="checkbox" name="zusat'.$i.'" id="zusat'.$i.'" value="Yes"> '.$p_zusat_name[$i].' ('.$p_zusat_price[$i].' €)<br>');
2144 }
2145
2146 ?>
2147 </div>
2148 <div id="box-buchung-002" name="TeilPreis-10" style="display:none;">
2149 </div>
2150 </td>
2151 </tr>
2152 </table>
2153 </div>
2154 <div id="Reisepreis"></div>
2155<!-- Teilnehmer part stops here! -->
2156
2157 <font style="font-size: 5px;"><br></font>
2158 <table border="0" cellpadding="0" cellspacing="0">
2159 <tr>
2160 <td>
2161 <div id="box-buchung-002" style="border-top-style: solid;">
2162 <div id="box-agb-001">
2163 <label for="agb">
2164 <?php
2165 if (strlen($p_submit)>0 && strlen($p_agb)>0) {
2166 print('<input type="checkbox" name="agb" id="agb" value="Yes" checked="checked"/>');
2167 } else print('<input type="checkbox" name="agb" id="agb" value="Yes"/>');
2168 ?>
2169 <font color="red">*</font>
2170 </label>
2171 Ich habe die <a href="veranstalter/agb/bd-agb-popup.html" rel='iframe' target="popup" onClick="wopen('veranstalter/agb/bd-agb-popup.html', 'popup', 640, 480); return false;"><span class="typo-14-blue" >Veranstalter-AGB</span></a> gelesen und akzeptiert.
2172 </div>
2173 </div>
2174 </td>
2175 </tr>
2176 </table>
2177 <font style="font-size:12px;"><br></font>
2178 <center> <button name="submit" type="submit" value="senden">Abschicken</button><br>
2179 <font style="font-size:12px;"><br></font>
2180 <?php
2181 if ($user_error!="") {
2182 print('<font face="Arial" size="2" color="#cc0000"><b>ERROR MESSAGE:</b><br>');
2183 print($user_error);
2184 print('</font>');
2185 }
2186 ?>
2187 </center>
2188</form>
2189
2190</div>
2191</body>
2192
2193</html>