Пример #1
0
</h2>
    <tr>
      <td colspan="2"><?php 
    echo getUebersetzung("Bitte wählen Sie die zu löschenden Tische aus");
    ?>
. 
          <?php 
    echo getUebersetzung("Sie können mehrere Tische zugleich auswählen und " . "löschen indem Sie die [STRG]-Taste gedröt halten und auf die " . "Bezeichnung klicken");
    ?>
.</td>      
    </tr>
    <tr>
      <td>      	
      	  <select name="tisch_id[]" size="10" id="tisch_id" multiple="multiple">
          <?php 
    $res = getAllTische($gastro_id);
    $first = true;
    while ($d = $res->FetchNextObject()) {
        $ziArt = getUebersetzungGastro($d->TISCHNUMMER, $sprache, $gastro_id);
        $raumId = getRaumOfTisch($d->TISCHNUMMER);
        $raum = getRaumBezeichnung($raumId);
        $raum = getUebersetzungGastro($raum, $sprache, $gastro_id);
        $temp = getUebersetzung("Raum") . ": " . $raum . "/" . getUebersetzung("Tisch") . ": " . $ziArt;
        ?>
				<option value="<?php 
        echo $d->TISCHNUMMER;
        ?>
" <?php 
        if ($first) {
            ?>
						selected="selected"
Пример #2
0
function blockieren($tag, $monate, $jahr, $gastro_id)
{
    $typ = BE_TYP_DATUM_VON_BIS;
    $datum = $tag . "/" . $monate . "/" . $jahr;
    $datumVon = constructMySqlTimestampFromDatePicker($datum, 0, 0);
    $datumBis = constructMySqlTimestampFromDatePicker($datum, 59, 23);
    $res = getAllTische($gastro_id);
    while ($d = $res->FetchNextObject()) {
        $tisch_id = $d->TISCHNUMMER;
        insertBuchungseinschraenkungVonBis($tisch_id, $datumVon, $datumBis, $typ);
    }
    return getUebersetzung("Die Reservierungen für den aktuellen Tag wurden erfolgreich blockiert.");
}
include_once $root . "/include/sessionFunctions.inc.php";
include_once $root . "/include/reservierungFunctions.inc.php";
include_once $root . "/include/mieterFunctions.inc.php";
include_once $root . "/include/mietobjektFunctions.inc.php";
include_once $root . "/include/datumFunctions.inc.php";
require_once $root . '/include/fpdf153/fpdf.php';
include_once $root . "/include/uebersetzer.inc.php";
include_once $root . "/include/bildFunctions.inc.php";
include_once $root . "/include/cssFunctions.inc.php";
$choice_date = $_POST["date1"];
$tag = substr($choice_date, 0, 2);
$monate = substr($choice_date, 3, 2);
$jahr = substr($choice_date, 6, 4);
$sprache = getSessionWert(SPRACHE);
$gastro_id = getSessionWert(GASTRO_ID);
$tischs = getAllTische($gastro_id);
$anzahlRes = 0;
while ($tisch = $tischs->FetchNextObject()) {
    $anzahlRes += countReservierungIDs($tisch->TISCHNUMMER, 0, 0, $tag, $monate, $jahr, 59, 23, $tag, $monate, $jahr);
}
if ($choice_date == null && hasVermieterReservations($gastro_id, STATUS_BELEGT)) {
    $anzahlRes = 1;
}
if ($anzahlRes <= 0) {
    $fehler = true;
    $nachricht = "Keine Reservierung an diesem Zeitram vorhanden";
    include_once "./index.php";
} else {
    $res = getTableCards();
    $tableCardId = $res->fields["TISCHKARTE_ID"];
    if (isset($tableCardId)) {