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"])) { echo getMieterFax($gast_id); exit; } if (isset($_GET["email"])) { echo getEmailOfMieter($gast_id); exit; }
} ?> " /></td> </tr> <tr> <td><?php echo getUebersetzung("Ort"); ?> </td> <td><input name="ort" type="text" id="ort" value="<?php if ($mieter_id == NEUER_MIETER) { echo ""; } else { if ($mieter_id != -1) { echo getMieterOrt($mieter_id); } } ?> " /></td> </tr> <tr> <td><?php echo getUebersetzung("E-Mail-Adresse"); ?> </td> <td><input name="email" type="text" id="email" 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; ?> "> </td> <?php for ($l = 0; $l < $anzahlRes; $l++) { ?> <td width="5" class="<?php echo BELEGT; ?> "> </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; ?> "> </td> <?php } for ($z = 0; $z < $anzahlResOnDayI; $z++) { ?> <td width="5" class="<?php echo BELEGT; ?> "> </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; ?> "> </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 }
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; ?> "> </td> <?php for ($l = 0; $l < $anzahlRes; $l++) { ?> <td width="5" class="<?php echo BELEGT; ?> "> </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 } }
author: christian osterrieder alpstein-austria */ //header einfuegen: include_once $root . "/backoffice/templates/header.inc.php"; include_once $root . "/backoffice/templates/breadcrumps.inc.php"; $breadcrumps = erzeugenBC($root, "Gäste", "mieterBearbeiten/index.php", $unterschrift, "mieterBearbeiten/mieterAnlegen/index.php"); include_once $root . "/backoffice/templates/bodyStart.inc.php"; include_once $root . "/include/mieterFunctions.inc.php"; include_once $root . "/backoffice/templates/components.inc.php"; if (isset($mieter_id)) { $anrede = getMieterAnrede($mieter_id); $vorname = getMieterVorname($mieter_id); $nachname = getNachnameOfMieter($mieter_id); $strasse = getMieterStrasse($mieter_id); $plz = getMieterPlz($mieter_id); $ort = getMieterOrt($mieter_id); $land = getMieterLand($mieter_id); $email = getEmailOfMieter($mieter_id); $tel = getMieterTel($mieter_id); $tel2 = getMieterTel2($mieter_id); $fax = getMieterFax($mieter_id); $url = getMieterUrl($mieter_id); $firma = getMieterFirma($mieter_id); $bezeichnung = getMieterBezeichnung($mieter_id); $beschreibung = getMieterBeschreibung($mieter_id); } else { $anrede = ""; $vorname = ""; $nachname = ""; $strasse = ""; $plz = "";