function createPage($pdf, $d, $sprache, $gastro_id, $date, $cellWidth, $cellHigh)
{
    $gast_id = $d->GAST_ID;
    $gast = getMieterVorname($gast_id) . " " . getNachnameOfMieter($gast_id);
    $pdf->Cell($cellWidth, $cellHigh, $gast, "LR");
    $tisch_id = $d->TISCH_ID;
    $raum_id = getRaumOfTisch($tisch_id);
    $position = getRaumBezeichnung($raum_id) . "/" . getUebersetzungGastro("Tisch", $sprache, $gastro_id) . " " . $tisch_id;
    $position = utf8_decode($position);
    $pdf->Cell($cellWidth, $cellHigh, $position, "LR");
    $zeitraum = getYearFromBooklineDate($date) . "-" . getMonthFromBooklineDate($date) . "-" . getDayFromBooklineDate($date) . " " . getHourFromBooklineDate($date) . ":" . " " . getMinuteFromBooklineDate($date) . " " . getUebersetzungGastro("bis", $sprache, $gastro_id) . " ";
    $pdf->Cell($cellWidth, $cellHigh, $zeitraum, "LR", 1);
    return $pdf;
}
    $info = true;
    $nachricht = getUebersetzung("Ihre automatische E-Mail-Antwort wurde erfolgreich verändert.");
    include_once "./index.php";
    exit;
} else {
    include_once $root . "/backoffice/templates/bodyStart.inc.php";
    ?>
	<table>
	   <tr>
  		<td><select name="mieter[]" size="10">
		<?php 
    //emails versenden:
    $von = getVermieterEmail($gastro_id);
    foreach ($mieter as $mieter_id) {
        $speech = getSpracheOfMieter($mieter_id);
        $gastName = getNachnameOfMieter($mieter_id);
        $an = getEmailOfMieter($mieter_id);
        $res = getActivtedSprachenOfVermieter($gastro_id);
        while ($d = $res->FetchNextObject()) {
            $sprache_id = $d->SPRACHE_ID;
            $bezeichnung = $d->BEZEICHNUNG;
            if ($speech == $sprache_id) {
                $subject = $subjectArray[$sprache_id];
                $anrede = $anredeArray[$sprache_id];
                $message = $anrede . " " . $gastName . "!\n\n";
                $body = $textArray[$sprache_id];
                $message .= $body . "\n\n";
                $unterschrift = $unterschriftArray[$sprache_id];
                $message .= $unterschrift;
                break;
            }
    exit;
}
if ($gast_id == "neuerMieter") {
    echo "";
    exit;
}
if (isset($_GET["anrede"])) {
    echo getMieterAnrede($gast_id);
    exit;
}
if (isset($_GET["vorname"])) {
    echo getMieterVorname($gast_id);
    exit;
}
if (isset($_GET["nachname"])) {
    echo getNachnameOfMieter($gast_id);
    exit;
}
if (isset($_GET["firma"])) {
    echo getMieterFirma($gast_id);
    exit;
}
if (isset($_GET["ort"])) {
    echo getMieterOrt($gast_id);
    exit;
}
if (isset($_GET["tel"])) {
    echo getMieterTel($gast_id);
    exit;
}
if (isset($_GET["fax"])) {
}
?>
" />*</td>
	</tr>
	<tr> 
		<td><?php 
echo getUebersetzung("Nachname");
?>
</td>
		<td><input name="nachname" type="text" id="nachname"
	            		value="<?php 
if ($mieter_id == NEUER_MIETER) {
    echo "";
} else {
    if ($mieter_id != -1) {
        echo getNachnameOfMieter($mieter_id);
    }
}
?>
" />*</td>
	</tr>
	<tr> 
		<td><?php 
echo getUebersetzung("Firma");
?>
</td>
		<td><input name="firma" type="text" id="firma"
	            		value="<?php 
if ($mieter_id == NEUER_MIETER) {
    echo "";
} else {
/**
 * author:coster
 * date:21.10.05
 * zeigt ein einzelnes monat für das webinterface in einer tabelle
 * */
function showWeek($day, $month, $year, $vermieter_id, $mietobjekt_id, $modus)
{
    global $root;
    global $ansicht;
    //anzahl der tage des monats:
    $anzahlTage = getNumberOfDaysOfMonth($month, $year);
    include_once $root . "/include/reservierungFunctions.inc.php";
    include_once $root . "/include/mieterFunctions.inc.php";
    $lastDayOfWeek = getLastDayOfWeek($day, $month, $year);
    $lastDayMonth = $month;
    $lastDayYear = $year;
    if ($lastDayOfWeek < $day) {
        $lastDayMonth++;
    }
    if ($lastDayMonth > 12) {
        $lastDayMonth = 1;
        $lastDayYear++;
    }
    $firstDayOfWeek = getFirstDayOfWeek($day, $month, $year);
    $firstDayMonth = $month;
    $firstDayYear = $year;
    if ($firstDayOfWeek > $day) {
        $firstDayMonth--;
    }
    if ($firstDayMonth < 1) {
        $firstDayMonth = 12;
        $firstDayYear--;
    }
    ?>
			<table border="0" width="100%" cellspacing="1" cellpadding="0" class="<?php 
    echo TABLE_COLOR;
    ?>
">
			<?php 
    $status = getStatus($mietobjekt_id, 0, 0, $day, $month, $year, 59, 23, $day, $month, $year);
    if (isset($status) && sizeof($status) >= 1) {
        $statusString = BELEGT;
    } else {
        $statusString = FREI;
    }
    $mieter_id = -1;
    ?>
					<tr class="<?php 
    echo TABLE_COLOR;
    ?>
"> 
						<!-- wochentag anzeigen -->
						<td class="<?php 
    echo TABLE_COLOR;
    ?>
" valign="left" class="<?php 
    echo TABLE_STANDARD;
    ?>
">
							<?php 
    echo getUebersetzung("Woche") . " ";
    echo getUebersetzung("von") . " ";
    echo getUebersetzung(getDayName($firstDayOfWeek, $firstDayMonth, $firstDayYear));
    ?>
				 		</td>
						<!-- datum anzeigen -->
						<td class="<?php 
    echo TABLE_COLOR;
    ?>
" valign="left" class="<?php 
    echo TABLE_STANDARD;
    ?>
">
							<?php 
    echo $firstDayOfWeek . ".";
    echo $firstDayMonth . ".";
    echo $firstDayYear;
    ?>
						</td>	
						<td class="<?php 
    echo TABLE_COLOR;
    ?>
" valign="left" class="<?php 
    echo TABLE_STANDARD;
    ?>
">
							<?php 
    echo getUebersetzung("bis") . " ";
    echo getUebersetzung(getDayName($lastDayOfWeek, $lastDayMonth, $lastDayYear));
    ?>
				 		</td>
						<!-- datum anzeigen -->
						<td class="<?php 
    echo TABLE_COLOR;
    ?>
" valign="left" class="<?php 
    echo TABLE_STANDARD;
    ?>
">
							<?php 
    echo $lastDayOfWeek . ".";
    echo $lastDayMonth . ".";
    echo $lastDayYear;
    ?>
						</td>							
						<!-- grafische reservierung anzeigen -->
						<td class="<?php 
    echo TABLE_COLOR;
    ?>
" class="<?php 
    echo TABLE_STANDARD;
    ?>
">
							<?php 
    //wie viele reservierungen sind in dieser Woche?
    $resIds = getReservierungIDs($mietobjekt_id, 0, 0, $firstDayOfWeek, $firstDayMonth, $firstDayYear, 59, 23, $lastDayOfWeek, $lastDayMonth, $lastDayYear);
    $anzahlRes = mysqli_num_rows($resIds);
    ?>
					
						  <table cellpadding="0" cellspacing="0" border="0">
						    <tr>
						    	<td width="5" class="<?php 
    echo FREI;
    ?>
">&nbsp;</td>
							    <?php 
    for ($l = 0; $l < $anzahlRes; $l++) {
        ?>
							      <td width="5" class="<?php 
        echo BELEGT;
        ?>
">&nbsp;</td>
							    <?php 
    }
    ?>
						    </tr>
						  </table>
						</td>
					</tr>
			</table>
			<br/>	
			<table cellpadding="0" cellspacing="1" border="0" class="<?php 
    echo TABLE;
    ?>
" width="100%">
			<tr>
				<th>Tag</th>
				<th>Datum</th>
				<th></th>
				<th></th>
				<th></th>
				<th></th>
			</tr>		
			<?php 
    //anzeige der einzelnen wochentage:
    for ($iz = $firstDayOfWeek; $iz < $firstDayOfWeek + 7; $iz++) {
        $i_month = $firstDayMonth;
        $i_year = $firstDayYear;
        $i_day = $iz;
        if ($i_day > getNumberOfDaysOfMonth($firstDayMonth, $firstDayYear)) {
            $i_month++;
            $i_day = $iz - getNumberOfDaysOfMonth($firstDayMonth, $firstDayYear);
        }
        if ($i_month > 12) {
            $i_year++;
        }
        $anzahlResOnDayI = countReservierungIDs($mietobjekt_id, 0, 0, $i_day, $i_month, $i_year, 59, 23, $i_day, $i_month, $i_year);
        if ($anzahlResOnDayI > 0) {
            $resIds = getReservierungIDs($mietobjekt_id, 0, 0, $i_day, $i_month, $i_year, 59, 23, $i_day, $i_month, $i_year);
            while ($d = mysqli_fetch_array($resIds)) {
                $reservierungs_id = $d["RESERVIERUNG_ID"];
                $mieter_id = getMieterIdOfReservierung($reservierungs_id);
                $mietdauer = getNumberOfDaysOfReservation($reservierungs_id);
                $isFirstDay = isFirstDayOfReservation($reservierungs_id, $i_day, $i_month, $i_year);
                $isLastDay = isLastDayOfReservation($reservierungs_id, $i_day, $i_month, $i_year);
                $timeVon = getTimeVonOfReservierung($reservierungs_id);
                $timeBis = getTimeBisOfReservierung($reservierungs_id);
                $allDay = false;
                if ($mietdauer > 1 && !$isFirstDay && !$isLastDay) {
                    $allDay = true;
                } else {
                    if ($timeVon == "00:00" && $timeBis == "24:00") {
                        $allDay = true;
                    }
                }
                ?>
						<form action="./mieterInfos/index.php" method="post" name="form<?php 
                echo $day;
                ?>
" target="_self">
						<input type="hidden" name="mietobjekt_id" value="<?php 
                echo $mietobjekt_id;
                ?>
" />
						<input type="hidden" name="monat" value="<?php 
                echo $month;
                ?>
" />
						<input type="hidden" name="jahr" value="<?php 
                echo $year;
                ?>
" />
						<input type="hidden" name="tag" value="<?php 
                echo $day;
                ?>
" />
						<input type="hidden" name="ansicht" value="<?php 
                echo $ansicht;
                ?>
" />
						<tr>
							<!-- wochentag anzeigen -->
							<td class="<?php 
                echo TABLE_STANDARD;
                ?>
" valign="left" class="<?php 
                echo TABLE_STANDARD;
                ?>
">
								<?php 
                echo getUebersetzung(getDayName($i_day, $i_month, $i_year));
                ?>
					 		</td>
							<!-- datum anzeigen -->
							<td class="<?php 
                echo TABLE_STANDARD;
                ?>
" valign="left" class="<?php 
                echo TABLE_STANDARD;
                ?>
">
								<?php 
                echo $i_day . ".";
                echo $i_month . ".";
                echo $i_year;
                ?>
							</td>	
							<!-- grafische reservierung anzeigen -->
							<td class="<?php 
                echo TABLE_STANDARD;
                ?>
">				
							  <table cellpadding="0" cellspacing="0" border="0">
							    <tr>
							    	<?php 
                if (!$allDay) {
                    ?>
							    	<td width="5" class="<?php 
                    echo FREI;
                    ?>
">&nbsp;</td>
								    <?php 
                }
                for ($z = 0; $z < $anzahlResOnDayI; $z++) {
                    ?>
								      <td width="5" class="<?php 
                    echo BELEGT;
                    ?>
">&nbsp;</td>
								    <?php 
                }
                ?>
							    </tr>
							  </table>
							</td>
							<!-- text -->
							<?php 
                if ($modus == MODUS_WEBINTERFACE) {
                    ?>
							<td class="<?php 
                    echo TABLE_STANDARD;
                    ?>
">
								<input name="mieter_id" type="hidden" value="<?php 
                    echo $mieter_id;
                    ?>
">						  
								 <?php 
                    //gast-namen ausgeben:
                    if ($mieter_id != ANONYMER_MIETER_ID) {
                        echo getNachnameOfMieter($mieter_id);
                        echo ", ";
                        echo getMieterOrt($mieter_id);
                    } else {
                        echo getUebersetzung("anonymer Mieter");
                    }
                    ?>
							</td>
							<?php 
                } else {
                    if ($modus == MODUS_BELEGUNGSPLAN) {
                        ?>
							<td class="<?php 
                        echo TABLE_STANDARD;
                        ?>
">
								<?php 
                        echo getUebersetzung("reserviert");
                        ?>
							</td>
							<?php 
                    }
                }
                if ($modus == MODUS_BELEGUNGSPLAN && $mieter_id != ANONYMER_MIETER_ID) {
                    ?>
							<td class="<?php 
                    echo TABLE_STANDARD;
                    ?>
">
							<?php 
                } else {
                    ?>
							<td class="<?php 
                    echo TABLE_STANDARD;
                    ?>
" colspan="2">
							<?php 
                }
                //zeit ausgeben:
                //wenn mietdauer mehr als 3 tage, braucht nur bei
                //tag 1 und tag 3 die zeit ausgegeben werden:
                if ($mietdauer >= 2) {
                    if ($isFirstDay) {
                        echo $timeVon . " - 24:00 " . getUebersetzung("Uhr");
                    } else {
                        if ($isLastDay) {
                            echo "00:00 - " . $timeBis . " " . getUebersetzung("Uhr");
                        } else {
                            ?>
										00:00 - 24:00 <?php 
                            echo getUebersetzung("Uhr");
                            ?>
										<?php 
                        }
                    }
                }
                ?>
							</td>
							<?php 
                if ($modus == MODUS_WEBINTERFACE) {
                    ?>
							<td class="<?php 
                    echo TABLE_STANDARD;
                    ?>
">
								<?php 
                    //button für mieter infos  ausgeben:
                    if ($mieter_id != ANONYMER_MIETER_ID) {
                        ?>
								<input type="submit" name="Submit" class="<?php 
                        echo BUTTON;
                        ?>
" 
									onMouseOver="this.className='<?php 
                        echo BUTTON_HOVER;
                        ?>
';"
			   						onMouseOut="this.className='<?php 
                        echo BUTTON;
                        ?>
';" 
			   						value="<?php 
                        echo getUebersetzung("Mieter-Info");
                        ?>
"/>
		   						<?php 
                    }
                    ?>
							</td>
							<?php 
                }
                //ende wenn modus webinterface
                ?>
						</tr>
						</form>	
						<?php 
            }
            ?>
				
					<?php 
        } else {
            ?>
							<tr>
								<!-- wochentag anzeigen -->
								<td class="<?php 
            echo TABLE_STANDARD;
            ?>
" valign="left" class="<?php 
            echo TABLE_STANDARD;
            ?>
">
									<?php 
            echo getUebersetzung(getDayName($i_day, $i_month, $i_year));
            ?>
						 		</td>					 		
								<!-- datum anzeigen -->
								<td valign="left" class="<?php 
            echo TABLE_STANDARD;
            ?>
" class="<?php 
            echo TABLE_STANDARD;
            ?>
">
									<?php 
            echo $i_day . ".";
            echo $i_month . ".";
            echo $i_year;
            ?>
								</td>	
								<!-- grafische reservierung anzeigen -->
								<td class="<?php 
            echo TABLE_STANDARD;
            ?>
">				
								  <table cellpadding="0" cellspacing="0" border="0">
								    <tr>
								    	<td width="5" class="<?php 
            echo FREI;
            ?>
">&nbsp;</td>
								    </tr>
								  </table>
								</td>
								<td colspan="3" class="<?php 
            echo TABLE_STANDARD;
            ?>
"><?php 
            echo getUebersetzung("Keine Reservierung an diesem Tag vorhanden");
            ?>
.</td>	
							</tr>
						<?php 
        }
        //ende anzahl reservierungen < 0
    }
    //ende for alle tage der woche
    ?>
	
			</table>
<?php 
}
    $message .= $unt;
}
?>
<table border="0" cellpadding="0" cellspacing="3" class="<?php 
echo TABLE_STANDARD;
?>
">
  <tr>
    <td><p class="<?php 
echo FREI;
?>
"><?php 
echo getUebersetzung("Die Reservierungsanfrage");
?>
        <?php 
echo getMieterVorname($mieter_id) . " " . getNachnameOfMieter($mieter_id);
?>
        <br/>
        <?php 
echo getUebersetzung("von");
?>
 <?php 
echo $vonDatum;
?>
<br/>
        <?php 
echo getUebersetzung("bis");
?>
 <?php 
echo $bisDatum;
?>
Ejemplo n.º 7
0
    echo getUebersetzung("Falls ein Gast in einer Anfrage mehrere" . " Tische reserviert hat, ist für jeden Tisch einzeln" . " die Anfrage zu bearbeiten.");
    ?>
</li>
	        </ul>
     
    </td>
  </tr>
</table>
<hr/>	
  <?php 
    //sodala, nun alle reservierungen mit status=1 auslesen, wenn
    $res = getReservationsOfVermieter($gastro_id, STATUS_RESERVIERT);
    while ($d = $res->FetchNextObject()) {
        $reservierungs_id = $d->RESERVIERUNG_ID;
        $mieter_id = $d->GAST_ID;
        $mieter = getMieterVorname($mieter_id) . " " . getNachnameOfMieter($mieter_id) . ", " . getMieterOrt($mieter_id);
        $date = getDatumVonOfReservierung($reservierungs_id);
        $zeitraum = getYearFromBooklineDate($date) . "-" . getMonthFromBooklineDate($date) . "-" . getDayFromBooklineDate($date) . " " . getHourFromBooklineDate($date) . ":" . getMinuteFromBooklineDate($date);
        $tisch_id = $d->TISCH_ID;
        $raum_id = getRaumOfTisch($tisch_id);
        $mietobjekt = getRaumBezeichnung($raum_id) . " " . $tisch_id;
        ?>
<table>
  <tr></tr><tr></tr>
        <tr>
          <td><span><?php 
        echo getUebersetzung("Reservierungsanfrage von");
        ?>
:</span> <?php 
        echo $mieter;
        ?>
/**
 * author:coster
 * date:21.10.05
 * zeigt einen einzelnen tag 
 * */
function showDay($day, $month, $year, $vermieter_id, $mietobjekt_id, $modus)
{
    global $root;
    //anzahl der tage des monats:
    $anzahlTage = getNumberOfDaysOfMonth($month, $year);
    include_once $root . "/include/reservierungFunctions.inc.php";
    include_once $root . "/include/mieterFunctions.inc.php";
    include_once $root . "/templates/constants.inc.php";
    $ansicht = TAGESANSICHT;
    ?>
			<table border="0" width="100%" cellspacing="1" cellpadding="0" class="<?php 
    echo TABLE_COLOR;
    ?>
">
			<?php 
    $status = getStatus($mietobjekt_id, 0, 0, $day, $month, $year, 59, 23, $day, $month, $year);
    if (isset($status) && sizeof($status) >= 1) {
        $statusString = BELEGT;
    } else {
        $statusString = FREI;
    }
    $mieter_id = -1;
    ?>
					<tr class="<?php 
    echo TABLE_COLOR;
    ?>
"> 
						<!-- wochentag anzeigen -->
						<td class="<?php 
    echo TABLE_COLOR;
    ?>
" valign="middle">
							<?php 
    echo getUebersetzung(getDayName($day, $month, $year));
    ?>
				 		</td>
						<!-- datum anzeigen -->
						<td class="<?php 
    echo TABLE_COLOR;
    ?>
" valign="middle">
							<?php 
    echo $day . ".";
    echo $month . ".";
    echo $year;
    ?>
						</td>	
						<!-- grafische reservierung anzeigen -->
						<td class="<?php 
    echo TABLE_COLOR;
    ?>
">
							<?php 
    //wie viele reservierungen sind an diesem tag?
    $resIds = getReservierungIDs($mietobjekt_id, 0, 0, $day, $month, $year, 59, 23, $day, $month, $year);
    $anzahlRes = mysqli_num_rows($resIds);
    ?>
					
						  <table cellpadding="0" cellspacing="0" border="0">
						    <tr>
						    	<td width="5" class="<?php 
    echo FREI;
    ?>
">&nbsp;</td>
							    <?php 
    for ($l = 0; $l < $anzahlRes; $l++) {
        ?>
							      <td width="5" class="<?php 
        echo BELEGT;
        ?>
">&nbsp;</td>
							    <?php 
    }
    ?>
						    </tr>
						  </table>
						</td>
					</tr>
			</table>
			<br/>
			<?php 
    if ($anzahlRes > 0) {
        ?>
					<table cellpadding="3" cellspacing="0" border="0" class="<?php 
        echo TABLE;
        ?>
">
						<?php 
        while ($d = mysqli_fetch_array($resIds)) {
            $reservierungs_id = $d["RESERVIERUNG_ID"];
            $mieter_id = getMieterIdOfReservierung($reservierungs_id);
            $mietdauer = getNumberOfDaysOfReservation($reservierungs_id);
            $isFirstDay = isFirstDayOfReservation($reservierungs_id, $day, $month, $year);
            $isLastDay = isLastDayOfReservation($reservierungs_id, $day, $month, $year);
            $timeVon = getTimeVonOfReservierung($reservierungs_id);
            $timeBis = getTimeBisOfReservierung($reservierungs_id);
            ?>
						<form action="./mieterInfos/index.php" method="post" name="form<?php 
            echo $day;
            ?>
" target="_self">
						<input type="hidden" name="mietobjekt_id" value="<?php 
            echo $mietobjekt_id;
            ?>
" />
						<input type="hidden" name="monat" value="<?php 
            echo $month;
            ?>
" />
						<input type="hidden" name="jahr" value="<?php 
            echo $year;
            ?>
" />
						<input type="hidden" name="tag" value="<?php 
            echo $day;
            ?>
" />
						<input type="hidden" name="ansicht" value="<?php 
            echo $ansicht;
            ?>
" />
						<tr>
							<?php 
            if ($modus == MODUS_WEBINTERFACE) {
                ?>
							<td>
								<input name="mieter_id" type="hidden" value="<?php 
                echo $mieter_id;
                ?>
">						  
								 <?php 
                //gast-namen ausgeben:
                if ($mieter_id != ANONYMER_MIETER_ID) {
                    echo getNachnameOfMieter($mieter_id);
                    echo ", ";
                    echo getMieterOrt($mieter_id);
                } else {
                    echo getUebersetzung("anonymer Mieter");
                }
                ?>
							</td>
							<?php 
            } else {
                if ($modus == MODUS_BELEGUNGSPLAN) {
                    ?>
								<td>
									<?php 
                    echo getUebersetzung("reserviert");
                    ?>
								</td>
							<?php 
                }
            }
            ?>
							<td>
								<?php 
            //zeit ausgeben:
            //wenn mietdauer mehr als 3 tage, braucht nur bei
            //tag 1 und tag 3 die zeit ausgegeben werden:
            if ($mietdauer >= 2) {
                if ($isFirstDay) {
                    echo $timeVon . " - 24:00 " . getUebersetzung("Uhr");
                } else {
                    if ($isLastDay) {
                        echo "00:00 - " . $timeBis . " " . getUebersetzung("Uhr");
                    } else {
                        ?>
										00:00 - 24:00 <?php 
                        echo getUebersetzung("Uhr");
                        ?>
										<?php 
                    }
                }
            } else {
                echo getTimeVonOfReservierung($reservierungs_id) . " - " . getTimeBisOfReservierung($reservierungs_id);
            }
            //ende else
            ?>
							</td>
							<td>
								<?php 
            //button für mieter infos  ausgeben:
            if ($mieter_id != ANONYMER_MIETER_ID && $modus == MODUS_WEBINTERFACE) {
                ?>
								<input type="submit" name="Submit" class="<?php 
                echo BUTTON;
                ?>
" 
									onMouseOver="this.className='<?php 
                echo BUTTON_HOVER;
                ?>
';"
			   						onMouseOut="this.className='<?php 
                echo BUTTON;
                ?>
';" 
			   						value="<?php 
                echo getUebersetzung("Mieter-Info");
                ?>
"/>
		   						<?php 
            }
            ?>
							</td>
						</tr>
						</form>	
						<?php 
        }
        ?>
					</table>
					<?php 
    } else {
        ?>
						<table cellpadding="3" class="<?php 
        echo TABLE_COLOR;
        ?>
">
							<tr>
								<td><?php 
        echo getUebersetzung("Keine Reservierung an diesem Tag vorhanden");
        ?>
.</td>
							</tr>
						</table>
						<?php 
    }
}
     if ($dimension == TC_CUSTOM_FORMAT) {
         $size = array();
         $size[] = $y;
         $size[] = $x;
     } else {
         $size = $dimension;
     }
     //create the pdf with constructor:
     $pdf = new FPDF($pageOrientation, $measureUnit, $size);
     if ($showName || $showTime) {
         //get the confirmed booking
         $res = getReservationsOfVermieter($gastro_id, STATUS_BELEGT);
         while ($d = $res->FetchNextObject()) {
             $reservierungs_id = $d->RESERVIERUNG_ID;
             $gast_id = $d->GAST_ID;
             $gast = getMieterVorname($gast_id) . " " . getNachnameOfMieter($gast_id);
             $date = getDatumVonOfReservierung($reservierungs_id);
             $year = getYearFromBooklineDate($date);
             $month = getMonthFromBooklineDate($date);
             $day = getDayFromBooklineDate($date);
             if ($choice_date == null) {
                 createPage($pdf, $root . $temp_url, getUebersetzungGastro("Zeit", $sprache, $gastro_id) . ": " . $year . "-" . $month . "-" . $day . " " . getHourFromBooklineDate($date) . ":" . getMinuteFromBooklineDate($date) . " " . getUebersetzungGastro("bis", $sprache, $gastro_id) . " ", getUebersetzungGastro("Name", $sprache, $gastro_id) . ": " . $gast, $headingText, $fontText, $fontTextStyle, $fontTextSize, $fontHeading, $fontHeadingStyle, $fontHeadingSize, $root, $x, $y);
             } else {
                 if ($choice_date == $day . "/" . $month . "/" . $year) {
                     createPage($pdf, $root . $temp_url, getUebersetzungGastro("Zeit", $sprache, $gastro_id) . ": " . $year . "-" . $month . "-" . $day . " " . getHourFromBooklineDate($date) . ":" . getMinuteFromBooklineDate($date) . " " . getUebersetzungGastro("bis", $sprache, $gastro_id) . " ", getUebersetzungGastro("Name", $sprache, $gastro_id) . ": " . $gast, $headingText, $fontText, $fontTextStyle, $fontTextSize, $fontHeading, $fontHeadingStyle, $fontHeadingSize, $root, $x, $y);
                 }
             }
         }
     }
     $pdf->Output();
 }
function showInfo($reservierungs_id)
{
    $gast_id = getMieterIdOfReservierung($reservierungs_id);
    if ($gast_id != ANONYMER_GAST_ID) {
        $gastName = getNachnameOfMieter($gast_id);
    } else {
        $gastName = getUebersetzung("anonymer Gast");
    }
    return $gastName . ' ' . getTimeVonOfReservierung($reservierungs_id) . " - " . getTimeBisOfReservierung($reservierungs_id);
}
					  		<?php 
            echo getUebersetzung("Folgende Reservierungen werden gelöscht");
            ?>
:
					  	</td>
					  </tr>						 
				<?php 
        }
        $first = false;
        $res_id = $d["RESERVIERUNG_ID"];
        $mie_id = getMieterIdFromReservierung($res_id);
        $datumV = getDatumVonOfReservierung($res_id);
        $datumV = parseMySqlTimestamp($datumV, false, false, true, true, true);
        $datumB = getDatumBisOfReservierung($res_id);
        $datumB = parseMySqlTimestamp($datumB, false, false, true, true, true);
        $gast_nn = getNachnameOfMieter($mie_id);
        ?>
				<tr>
					<td class="<?php 
        echo STANDARD_SCHRIFT;
        ?>
">
					<?php 
        echo getUebersetzung("Reservierung von") . " " . $datumV . " " . getUebersetzung("bis") . " " . $datumB . ", " . getUebersetzung("Mieter") . ": " . $gast_nn;
        ?>
					</td>
				</tr>
			<?php 
    }
    //ende while reservierungen anzeigen
    ?>