예제 #1
0
    echo getUebersetzung("Ein Gast kann nur gelöscht werden, falls es keine " . "anderen Reservierungen für diesen Gast gibt.");
    ?>
</li>
	        	<li><?php 
    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");
 //create a new pdf object:
 $pageOrientation = getTableCardProperty(TC_PAGE_ORIENTATION, $tableCardId);
 $measureUnit = getTableCardProperty(TC_MEASURE_UNIT, $tableCardId);
 $dimension = getTableCardProperty(TC_DIMENSION, $tableCardId);
 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);
             }
         }