$root = "../../.."; $ueberschrift = "Tisch bearbeiten"; $unterschrift = "Anlegen"; /* date: 23.9.05 author: christian osterrieder alpstein-austria */ //header einfuegen: include_once $root . "/backoffice/templates/header.inc.php"; include_once $root . "/templates/constants.inc.php"; //andere funktionen importieren: include_once $root . "/include/mietobjektFunctions.inc.php"; include_once $root . "/include/vermieterFunctions.inc.php"; include_once $root . "/include/bildFunctions.inc.php"; $standardsprache = getGastroProperty(STANDARDSPRACHE, $gastro_id); if ($standardsprache == false || $standardsprache == "") { $standardsprache = "en"; } if (!(isset($fehler) && $fehler != true)) { $maximaleBelegung = 2; $minimaleBelegung = 1; $status = TISCH_BUCHBAR; } $raum_id = $_POST["raum_id"]; if (isset($_POST["minimaleBelegung"])) { $minimaleBelegung = $_POST["minimaleBelegung"]; } if (isset($_POST["maximaleBelegung"])) { $maximaleBelegung = $_POST["maximaleBelegung"]; }
if ($bezeichnung != false) { $uebers_bez[$sprache_id] = $bezeichnung; } } //uebersetzungen durchfuehren: foreach ($uebers_bez as $sprache_id => $bezeichnung) { setUebersetzungVermieter($bezeichnung, $defaultBezeichnung, $sprache_id); } foreach ($uebers_bes as $sprache_id => $beschreibung) { setUebersetzungVermieter($beschreibung, $defaultBeschreibung, $sprache_id); } //bild bearbeiten und hochladen: $bild = $_FILES['bild']['tmp_name']; //bild in groesse anpassen und speichern: $maxBreite = getGastroProperty(MAX_BILDBREITE_RAUM, $gastro_id); $maxHoehe = getGastroProperty(MAX_BILDHOEHE_RAUM, $gastro_id); //create the image from JPEG file $img = new hft_image($_FILES['bild']['tmp_name']); $origWidth = $img->image_original_width; $origHeight = $img->image_original_height; if ($origWidth < $maxBreite) { $maxBreite = $origWidth; } if ($origHeight < $maxHoehe) { $maxHoehe = $origHeight; } //keep X to Y ratio //so there will be no geometrical distortions: $img->resize($maxBreite, $maxHoehe, "-"); //save the resized image to file //commented to save server load
?> ><?php echo $min; ?> </option> <?php } ?> </select> </td> <td width=20> </td> <td><?php echo getUebersetzung("bis"); ?> :</td> <td><select name="bisStunde" id="bisStunde"><?php $dauer_default = getGastroProperty(RESERVIERUNGSDAUER, $gastro_id); if (isset($_POST["bisStunde"])) { $bisStunde = $_POST["bisStunde"]; $bisMinute = $_POST["bisMinute"]; $dauer = ($bisStunde - $vonStunde) * 60 + $bisMinute - $vonMinute; if ($dauer - $dauer_default < 0) { $dauerStunde = (int) ($dauer_default / 60); $dauerMinute = $dauer_default - $dauerStunde * 60; $bisStunde = $vonStunde + $dauerStunde; $bisMinute = $vonMinute + $dauerMinute; if ($bisStunde >= 24) { $bisStunde = 23; $bisMinute = 59; } else { if ($bisStunde == 23 && $bisMinute >= 60) { $bisMinute = 59;
?> ][2]=<?php echo $hoehe; ?> ; <?php $i++; } ?> var raum = document.position.raum_id.value; var breite = <?php echo getGastroProperty(MAX_BILDBREITE_RAUM, $gastro_id); ?> ; var hoehe = <?php echo getGastroProperty(MAX_BILDHOEHE_RAUM, $gastro_id); ?> ; for (var i =0; i<raeume.length; i++){ if (raeume[i][0] == raum){ breite = raeume[i][1]; hoehe = raeume[i][2]; break; } } Adresse = Adresse+"?raum_id="+raum; TischPos = window.open(Adresse, "Tisch positionieren", "width=breite,height='hoehe',scrollbars=yes"); TischPos.focus(); } </script> <?php
</td> </tr> </table> </td> <td> <!-- rechte seite mit bild von raum --> <!-- bild ausgeben --> <div name="raum" id="raum" style="height:<?php echo $bildhoehe; ?> px;overflow:hidden;"> <?php //dann die tische anzeigen die bereits gesetzt sind oder noch zu setzen sind: $res = getTische($raum_id); $zindex = 7; define("SPACE_MINUTE", getGastroProperty(RESERVIERUNGSDAUER, $gastro_id)); $vonMinute = $minute - SPACE_MINUTE; $vonStunde = $stunde; $vonTag = $tag; $vonMonat = $monat; $vonJahr = $jahr; $bisMinute = $minute + SPACE_MINUTE; $bisStunde = $stunde; $bisTag = $tag; $bisMonat = $monat; $bisJahr = $jahr; if ($vonMinute < 0) { $vonMinute = 60 - $vonMinute; $vonStunde--; } if ($vonStunde < 0) {
$root = "../.."; $ueberschrift = "Design bearbeiten"; $unterschrift = "Ändern der Symbole für freie und belegte Tische"; /** @date: 31.07.2007 @author: coster alpstein-austria */ //header einfuegen: include_once $root . "/backoffice/templates/header.inc.php"; include_once $root . "/backoffice/templates/breadcrumps.inc.php"; $breadcrumps = erzeugenBC($root, "Design", "designBearbeiten/index.php", $unterschrift, "designBearbeiten/freiBelegtTisch.php"); include_once $root . "/backoffice/templates/bodyStart.inc.php"; include_once $root . "/backoffice/templates/components.inc.php"; include_once $root . "/include/bildFunctions.inc.php"; $breite = getGastroProperty(MAX_BILDBREITE_BELEGT_FREI, $gastro_id); $hoehe = getGastroProperty(MAX_BILDHOEHE_BELEGT_FREI, $gastro_id); $freiPic = getBildWithMarker(SYMBOL_TABLE_FREE); $belegtPic = getBildWithMarker(SYMBOL_TABLE_OCCUPIED); $width_pic_frei = getBildBreite($freiPic); $height_pic_frei = getBildHoehe($freiPic); $width_pic_occu = getBildBreite($belegtPic); $height_pic_occu = getBildHoehe($belegtPic); ?> <h2><?php echo getUebersetzung($unterschrift); ?> </h2> <br/> <table> <form action="./freiBelegtAendern.php" method="post" target="_self" enctype="multipart/form-data">
?> </td> <td><input name="url" type="text" id="url" value="<?php echo $url; ?> "></td> </tr> <tr> <td><?php echo getUebersetzung("Bevorzugte Sprache"); ?> </td> <td><select name="speech" id="speech"> <?php //sprachen des belegungsplanes anzeigen: $stdSpr = getGastroProperty(STANDARDSPRACHE, $gastro_id); $res = getSprachen($gastro_id); while ($d = $res->FetchNextObject()) { $spr = $d->SPRACHE_ID; $bezeichnungSpr = getBezeichnungOfSpracheID($spr); ?> <option value="<?php echo $spr; ?> " <?php if ($stdSpr == $spr) { echo "selected"; } ?> ><?php echo getUebersetzung($bezeichnungSpr);
<?php $root = "../.."; $ueberschrift = "Raum bearbeiten"; /* date: 4.10.05 author: christian osterrieder alpstein-austria */ //header einfuegen: include_once $root . "/backoffice/templates/header.inc.php"; include_once $root . "/backoffice/templates/bodyStart.inc.php"; include_once $root . "/backoffice/templates/components.inc.php"; if (!(isset($fehler) && $fehler != true)) { //standardwerte setzen: $maxHoehe = getGastroProperty(BILDER_HEIGHT, $gastro_id); $maxBreite = getGastroProperty(BILDER_WIDTH, $gastro_id); } ?> <form action="./bilderHochladenDurchfuehren.php" method="post" name="bilderHochladen" target="_self" enctype="multipart/form-data"> <table border="0" cellpadding="0" cellspacing="3"> <tr> <td colspan="2"><p class="standardschrift"><?php echo getUebersetzung("Bilder für Mietobjekt hochladen"); ?> <br/> <span><?php echo getUebersetzung("Bitte füllen Sie die untenstehenden Felder aus."); ?>
<?php $root = "../../.."; $ueberschrift = "Diverse Einstellungen"; /* date: 26.9.05 author: christian osterrieder alpstein-austria */ //header einfuegen: include_once $root . "/backoffice/templates/header.inc.php"; include_once $root . "/backoffice/templates/bodyStart.inc.php"; include_once $root . "/backoffice/templates/components.inc.php"; $sucheAktiv = getGastroProperty(SUCHFUNKTION_AKTIV, $gastro_id); if ($sucheAktiv == "true") { $sucheAktiv = true; } else { $sucheAktiv = false; } ?> <p class="standardschrift"><?php echo getUebersetzung("Einstellungen zur Suche nach Mietobjekten"); ?> .</p> <table> <form action="./aendern.php" method="post" target="_self"> <tr> <td> <?php echo getUebersetzung("Suchfunktion aktivieren"); ?> <td>
<?php if (!(isset($fehler) && $fehler == true)) { $belegungsplanActive = getGastroProperty(BELEGUNGSPLAN_BILDER_ACTIV, $gastro_id); if ($belegungsplanActive != "true") { $belegungsplanActive = false; } else { $belegungsplanActive = true; } $suchergebnisseActive = getGastroProperty(SUCHERGEBNISSE_BILDER_ACTIV, $gastro_id); if ($suchergebnisseActive != "true") { $suchergebnisseActive = false; } else { $suchergebnisseActive = true; } $width = getGastroProperty(MAX_BILDBREITE_RAUM, $gastro_id); $height = getGastroProperty(MAX_BILDHOEHE_RAUM, $gastro_id); } ?> <tr> <td><?php echo getUebersetzung("Maximale Höhe Ihrer Raumbilder"); ?> </td> <td> <input name="width" type="text" id="width" value="<?php echo $width; ?> " size="5" maxlength="5"/> <?php echo getUebersetzung("Pixel");
/** * @author:coster * date:25.6.2007 * fuegt eine neue reservierung fuer einen tisch ein * * */ function insertReservation($tisch_id, $gast_id, $anzahlPersonen, $vonMinute, $vonStunde, $vonTag, $vonMonat, $vonJahr, $status) { global $db; global $root; include_once $root . "/include/datumFunctions.inc.php"; include_once $root . "/include/vermieterFunctions.inc.php"; include_once $root . "/include/mietobjektFunctions.inc.php"; //echo("min: ".$vonMinute." std: ".$vonStunde." tag: ".$vonTag." mnt: ".$vonMonat." jhr:".$vonJahr); //erzeuge bis datum: $gastro_id = getGastroOfRaum(getRaumOfTisch($tisch_id)); $reservierungsdauer = getGastroProperty(RESERVIERUNGSDAUER, $gastro_id); //int mktime ( [int $Stunde [, int $Minute [, int $Sekunde [, int $Monat [, int $Tag [, int $Jahr [, int $is_dst]]]]]]] ) $timeBis = mktime($vonStunde, $vonMinute + $reservierungsdauer, 0, $vonMonat, $vonTag, $vonJahr); $bisMinute = date("i", $timeBis); $bisStunde = date("H", $timeBis); $bisTag = date("d", $timeBis); $bisMonat = date("m", $timeBis); $bisJahr = date("Y", $timeBis); //echo("min: ".$bisMinute." std: ".$bisStunde." tag: ".$bisTag." mnt: ".$bisMonat." jhr:".$bisJahr); exit; $von = constructMySqlTimestamp($vonMinute, $vonStunde, $vonTag, $vonMonat, $vonJahr); $bis = constructMySqlTimestamp($bisMinute, $bisStunde, $bisTag, $bisMonat, $bisJahr); //daten eintragen: $query = "insert into \n\t\t\t\tBOOKLINE_RESERVIERUNG\n\t\t\t\t(TISCH_ID,GAST_ID,VON,BIS,Status,ANZAHL_PERSONEN)\n\t\t\t\tVALUES\t\t\t\t\n\t\t\t\t('{$tisch_id}','{$gast_id}','{$von}','{$bis}','{$status}','{$anzahlPersonen}')\n\t\t \t "; $res = $db->Execute($query); if (!$res) { print $db->ErrorMsg(); return false; } return $db->Insert_ID(); }
<td> <input name="<?php echo $ans . "_anzeigen"; ?> " type="checkbox" value="true" <?php if ($ans == JAHRESUEBERSICHT && getGastroProperty(JAHRESUEBERSICHT_ANZEIGEN, $gastro_id) == "true") { echo "checked=\"checked\""; } else { if ($ans == MONATSUEBERSICHT && getGastroProperty(MONATSUEBERSICHT_ANZEIGEN, $gastro_id) == "true") { echo "checked=\"checked\""; } else { if ($ans == WOCHENANSICHT && getGastroProperty(WOCHENANSICHT_ANZEIGEN, $gastro_id) == "true") { echo "checked=\"checked\""; } else { if ($ans == TAGESANSICHT && getGastroProperty(TAGESANSICHT_ANZEIGEN, $gastro_id) == "true") { echo "checked=\"checked\""; } } } } ?> > </td> <td> <input type="radio" name="standard" value="<?php echo $ans; ?> " <?php if ($standardansicht == $ans) {
$nachricht = getUebersetzung($message); $fehler = true; include_once "./index.php"; exit; } $standardFehler = false; if ($standard == JAHRESUEBERSICHT && getGastroProperty(JAHRESUEBERSICHT_ANZEIGEN, $gastro_id) != "true") { $standardFehler = true; } else { if ($standard == MONATSUEBERSICHT && getGastroProperty(MONATSUEBERSICHT_ANZEIGEN, $gastro_id) != "true") { $standardFehler = true; } else { if ($standard == WOCHENANSICHT && getGastroProperty(WOCHENANSICHT_ANZEIGEN, $gastro_id) != "true") { $standardFehler = true; } else { if ($standard == TAGESANSICHT && getGastroProperty(TAGESANSICHT_ANZEIGEN, $gastro_id) != "true") { $standardFehler = true; } } } } if ($standardFehler === true) { $message = "Die Standardansicht muss auch angezeigt werden."; $nachricht = getUebersetzung($message); $fehler = true; include_once "./index.php"; exit; } include_once $root . "/backoffice/templates/bodyStart.inc.php"; //zuerst alle alten eintraege löschen: setGastroProperty(STANDARDANSICHT, $standard, $gastro_id);
/** * author: coster * date: 20.9.05 * setzt einen wert in den eigenschaften des vermieters (aus konstanten entnehmen) * */ function setGastroProperty($bezeichnung, $wert, $gastro_id) { global $db; $temp = getGastroProperty($bezeichnung, $gastro_id); if (empty($temp)) { $query = "INSERT INTO \n\t\t BOOKLINE_GASTRO_PROPERTIES\n\t\t (BEZEICHNUNG,GASTRO_ID,WERT)\n\t\t VALUES\n\t\t ('{$bezeichnung}','{$gastro_id}','{$wert}')\n\t\t "; } else { $query = "UPDATE \n\t\t BOOKLINE_GASTRO_PROPERTIES\n\t\t SET\n\t\t WERT = '{$wert}'\n\t\t where\n\t\t GASTRO_ID = '{$gastro_id}'\n\t\t and\n\t\t BEZEICHNUNG = '{$bezeichnung}'\n\t\t "; } $res = $db->Execute($query); if (!$res) { print $db->ErrorMsg(); return false; } else { return true; } }