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;
}
Пример #2
0
echo getUebersetzung("Datum/Uhrzeit");
?>
</td>
			<td><?php 
echo getUebersetzung("Tisch");
?>
</td>
		  </tr>
			<!-- ausgeben der reservierungen: -->
			<?php 
$res = getReservationsOfMieter($gast_id);
while ($d = $res->FetchNextObject()) {
    //variablen auslesen:
    $tisch_id = $d->TISCH_ID;
    $raum_id = getRaumOfTisch($tisch_id);
    $bezeichnung = getRaumBezeichnung($raum_id) . " " . $tisch_id;
    $datumVon = getFormatedDateFromBooklineDate($d->VON);
    ?>
		              <tr>
		                <td><?php 
    echo $datumVon;
    ?>
</td>
		                <td><?php 
    echo $bezeichnung;
    ?>
</td>
		  			  </tr>
				<?php 
}
//ende while
	date: 23.9.05
	author: christian osterrieder alpstein-austria						
*/
//header einfuegen:
include_once $root . "/backoffice/templates/header.inc.php";
//andere funktionen importieren:
include_once $root . "/include/mietobjektFunctions.inc.php";
include_once $root . "/include/bildFunctions.inc.php";
include_once $root . "/include/vermieterFunctions.inc.php";
$standardsprache = getGastroProperty(STANDARDSPRACHE, $gastro_id);
if ($standardsprache == false || $standardsprache == "") {
    $standardsprache = "en";
}
$raum_id = $_POST["raum_id"];
if (!isset($fehler) || $fehler != true) {
    $bez_mietobj = getRaumBezeichnung($raum_id);
    $bes_mietobj = getRaumBeschreibung($raum_id);
} else {
    $bez_mietobj = $defaultBezeichnung;
    $bes_mietobj = $defaultBeschreibung;
}
include_once $root . "/backoffice/templates/breadcrumps.inc.php";
$breadcrumps = erzeugenBC($root, "Raum", "raumBearbeiten/index.php", $unterschrift, "raumBearbeiten/raumAendern/index.php", $bez_mietobj, "");
include_once $root . "/backoffice/templates/bodyStart.inc.php";
?>
<h2><?php 
echo getUebersetzung("Raum ändern");
?>
</h2>
<form action="./raumAendernDurchfuehren.php" method="post" 
	name="raumAendernDurchfuehren" target="_self" enctype="multipart/form-data">
//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
$img->output_resized($_FILES['bild']['tmp_name']);
//file-upload war erfolgreich:
$pfad = $_FILES['bild']['tmp_name'];
	//mietobjekt speichern:
$bild_id = setBild($pfad,"Tischbild Tisch".$defaultBezeichnung,
			  $img->image_resized_width,$img->image_resized_height,
			  $fileExtension);
*/
//mietobjekt speichern:
setTisch($raum_id, $defaultBezeichnung, $defaultBeschreibung, $minimaleBelegung, $maximaleBelegung, $status, null, $gruppenname);
$anzahlVorhandenerMietobjekte = getAnzahlVorhandeneTische($gastro_id);
$info = true;
$nachricht = "Der Tisch im Raum " . getRaumBezeichnung($raum_id) . " wurde erfolgreich hinzugefügt.";
include_once "./index.php";
Пример #5
0
. 
          <?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"
						<?php 
            $first = false;
        }
        ?>
					><?php 
Пример #6
0
		  				</div>
		  			</th>
		  		</tr>
		  		<tr>
		  			<td colspan="4">
		  				<hr/> 
		  			</td>	  					  					  					  			
	  			</tr>			  		
				 <?php 
$typ = BE_TYP_DATUM_VON_BIS;
$res = getTischeWithBuchungseinschraenkungen($gastro_id, $typ);
$alleArr = array();
while ($d = $res->FetchNextObject()) {
    $tisch_id = $d->TISCHNUMMER;
    $raum_id = getRaumOfTisch($tisch_id);
    $raum_tisch = getRaumBezeichnung($raum_id) . "/" . $tisch_id;
    $res2 = getBuchungseinschraenkungenOfTisch($tisch_id, $typ);
    while ($r = $res2->FetchNextObject()) {
        $einschraenkungs_id = $r->RESERVIERUNGSEINSCHRAENKUNG_ID;
        $einschrVon = $r->VON;
        $einschrVon = getFormatedDateFromBooklineDate($einschrVon);
        $einschrBis = $r->BIS;
        $einschrBis = getFormatedDateFromBooklineDate($einschrBis);
        $einschr_id = $r->RESERVIERUNGSEINSCHRAENKUNG_ID;
        $alle = "false";
        //pruefe array mit einschraenkungen fuer alle tische
        //ob die einschraenkung bereits angezeigt wurde.
        for ($i = 0; $i < count($alleArr); $i++) {
            if ($alleArr[$i]['einschrVon'] == $einschrVon && $alleArr[$i]['einschrBis'] == $einschrBis) {
                continue 2;
            }
Пример #7
0
    </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;
        ?>
</td>
        </tr>
        <tr>
          <td><span><?php 
        echo getUebersetzung("Datum/Uhrzeit");
+DOM.getY("positionieren"));
	        }
	    }
	} ();
	
	function tischPos(x,y,element){
		DOM.setX(element,x+DOM.getX("positionieren"));
		DOM.setY(element,y+DOM.getY("positionieren"));
	}
	
	YAHOO.util.Event.addListener(window, "load", YAHOO.example.DDApp.init);
    
</script>
<?php 
include_once $root . "/backoffice/templates/breadcrumps.inc.php";
$breadcrumps = erzeugenBC($root, "Tisch", "tischBearbeiten/index.php", $unterschrift, "tischBearbeiten/tischPositionieren/index.php", getRaumBezeichnung($raum_id), "");
include_once $root . "/backoffice/templates/bodyStart.inc.php";
?>
<div name="positionieren" id="positionieren" style="height:<?php 
echo $bildhoehe;
?>
;">	<?php 
//dann die tische anzeigen die bereits gesetzt sind oder noch zu setzen sind:
$res = getTische($raum_id);
$zindex = 7;
while ($d = $res->FetchNextObject()) {
    $id = $d->TISCHNUMMER;
    if (!($id == $tisch_id)) {
        $lefts = getLeftPosOfTisch($id);
        $tops = getTopPosOfTisch($id);
        $wi = getWidthOfTisch($id);
Пример #9
0
	     }
		 else{
	     	return true;
		 }
	}	

</script>

<?php 
$datepickerDatum = $_POST["datum"];
$tag = getTagFromDatePicker($datepickerDatum);
$monat = getMonatFromDatePicker($datepickerDatum);
$jahr = getJahrFromDatePicker($datepickerDatum);
$tisch_ids = $_POST["tisch_ids"];
$raum_id = $_POST["raum_id"];
$raumBezeichnung = getRaumBezeichnung($raum_id);
$minute = $_POST["minute"];
$stunde = $_POST["stunde"];
$personen = $_POST["personen"];
$datum = $jahr . "-" . $monat . "-" . $tag . " " . $stunde . ":" . $minute;
include_once $root . "/templates/bodyStart.inc.php";
?>
<form action="./send.php" method="post" name="adresseForm" target="_self" id="adresseForm" onSubmit="return chkFormular();">
<table border="0" cellpadding="0" cellspacing="3" class="<?php 
echo TABLE_COLOR;
?>
">
  <tr>
    <td colspan="2">
		<?php 
echo getUebersetzung("Tischreservierung für");
?>
!</td>
    </tr>
    <tr>
		<td colspan="2"><?php 
$anzahl = count($raum_id);
for ($i = 0; $i < $anzahl; $i++) {
    $temp = $raum_id[$i];
    ?>
 
  				<input type="checkbox" name="raum_id[]" value="<?php 
    echo $raum_id[$i];
    ?>
" checked="checked">
           		<?php 
    echo getUebersetzungGastro(getRaumBezeichnung($temp), $sprache, $gastro_id);
    ?>
           		<br/>       
               <?php 
}
//ende for
?>
  
			 <?php 
echo getUebersetzung("Nur die hier selektierten Räume werden gelöscht.");
?>
 	
      		<br/>	         
       		<input name="weiter" type="submit" class="button" id="weiter" value="<?php 
echo getUebersetzung("weiter");
?>
function showDayDetail($ansicht, $tag, $monate, $jahr, $raum_id, $gastro_id, $modus)
{
    global $root;
    include_once $root . "/include/reservierungFunctions.inc.php";
    include_once $root . "/include/mieterFunctions.inc.php";
    include_once $root . "/include/oeffnungszeitenFunktions.inc.php";
    ?>
	
	<table class="moduletable_reservierung" id="show">
		<tr>
		<th width=80 scope="col" onclick="javascript:newload(0, 0, 0, 0, 0, 0)"> &nbsp;<?php 
    echo getRaumBezeichnung($raum_id);
    ?>
&nbsp; </th>
	  	<?php 
    $time = getOeffnungszeit(1)->FetchNextObject();
    $timeVon = 7;
    $timeBis = 23;
    $lang = $timeBis - $timeVon + 2;
    for ($i = $timeVon; $i <= $timeBis; $i++) {
        ?>
	  		 <th scope="col" colspan="2" onclick="javascript:newload(0, 0, 0, 0, 0, 0)">
	  		 	<?php 
        echo $i;
        ?>
</th><?php 
    }
    ?>
  		</tr> <?php 
    //get tables to the room:
    $res = getTische($raum_id);
    while ($d = $res->FetchNextObject()) {
        ?>
  		<tr>
    		<td align="middle" scope="row" onclick="javascript:newload(0, 0, 0, 0, 0, 0)" > &nbsp;
    		<?php 
        echo getUebersetzung("Tisch") . " " . ($tisch_id = $d->TISCHNUMMER);
        ?>
</td><?php 
        for ($i = $timeVon; $i <= $timeBis + 0.5; $i = $i + 0.5) {
            $colspan = 1;
            $vonStunde = (int) $i;
            $vonMinute = ($i - $vonStunde) * 60;
            $isFree = true;
            if (isBlock($raum_id, $tisch_id, $vonMinute, $vonStunde, $tag, $monate, $jahr, $vonMinute + 29, $vonStunde, $tag, $monate, $jahr)) {
                ?>
<td id="<?php 
                echo getID("2", $tisch_id, $vonStunde, $vonMinute);
                ?>
" scope="col" colspan="<?php 
                echo $colspan;
                ?>
" class="block"
			 				onclick="javascript:newload(2, 0, 0, 0, 0, 0)" >
					</td> <?php 
                $isFree = false;
            } else {
                $status = getStatus($tisch_id, $vonMinute, $vonStunde, $tag, $monate, $jahr, $vonMinute + 29, $vonStunde, $tag, $monate, $jahr);
                if (isset($status) && sizeof($status) >= 1) {
                    $statusString = BELEGT;
                    $resId = getReservierungID($tisch_id, $vonMinute + 15, $vonStunde, $tag, $monate, $jahr);
                    $colspan = getDurationOfReservierung($resId) / 0.5;
                    if ($colspan > 0) {
                        $isFree = false;
                        $i = $i + $colspan / 2 - 0.5;
                        ?>
<td id="<?php 
                        echo getID("1", $tisch_id, $vonStunde, $vonMinute + 15);
                        ?>
" title="<?php 
                        echo showInfo($resId);
                        ?>
" scope="col" colspan="<?php 
                        echo $colspan;
                        ?>
" class="<?php 
                        echo $statusString;
                        ?>
"
				 				onclick="javascript:newload(this.id, <?php 
                        echo $gastro_id;
                        ?>
, <?php 
                        echo $raum_id;
                        ?>
, <?php 
                        echo $tag;
                        ?>
, <?php 
                        echo $monate;
                        ?>
, <?php 
                        echo $jahr;
                        ?>
)" >
							</td> <?php 
                    } else {
                        $isFree = true;
                    }
                }
                if ($isFree) {
                    $statusString = FREI;
                    ?>
<td id="<?php 
                    echo getID("0", $tisch_id, $vonStunde, $vonMinute);
                    ?>
" scope="col" colspan="<?php 
                    echo $colspan;
                    ?>
" class="<?php 
                    echo $statusString;
                    ?>
"
								onclick="javascript:newload(this.id, <?php 
                    echo $gastro_id;
                    ?>
, <?php 
                    echo $raum_id;
                    ?>
, <?php 
                    echo $tag;
                    ?>
, <?php 
                    echo $monate;
                    ?>
, <?php 
                    echo $jahr;
                    ?>
)" >
							
						</td><?php 
                }
                ?>
	<?php 
            }
        }
        ?>
  		<?php 
    }
    ?>
</tr>
  		<div id="panel1">
			<div id="panel1_hd" class="hd"></div>
			<div id="panel1_bd" class="bd" style="height:0px">
			</div>
		</div>
  </table>
  <table  width="100%">
  <tr> 
    <td> 
      <?php 
    $newTag1 = $tag - 1;
    $mon = $monate;
    $jah = $jahr;
    if ($newTag1 < 1) {
        $newTag1 = getNumberOfDaysOfMonth($mon - 1, $jahr);
        $mon = $mon - 1;
    }
    if ($mon < 1) {
        $mon = 12;
        $jah = $jah - 1;
    }
    ?>
      <form action="./index.php" method="post" name="tagZurueck" target="_self" id="monatZurueck">
        <div align="right">           
          <input name="raum_id" type="hidden" id="raum_id" value="<?php 
    echo $raum_id;
    ?>
">
          <input name="tag" type="hidden" id="tag" value="<?php 
    echo $newTag1;
    ?>
">
          <input name="monat" type="hidden" id="monat" value="<?php 
    echo $mon;
    ?>
">
          <input name="ansicht" type="hidden" id="monat" value="<?php 
    echo TAGESANSICHT;
    ?>
">
          <input name="jahr" type="hidden" id="jahr" value="<?php 
    echo $jah;
    ?>
">
          <input name="zurueck" type="submit"  class="button"
       		id="zurueck" value="<?php 
    echo getUebersetzung("einen Tag zurück");
    ?>
">
        </div>
      </form>
	</td>
    <td> 
		<div  align="middle"> 
      	<?php 
    echo getFullDayName($tag, $monate, $jahr) . ", " . $tag . "." . $monate . "." . $jahr;
    ?>
        </div>
	</td>
    <td> 
      <?php 
    $newTag2 = $tag + 1;
    $mon = $monate;
    $jah = $jahr;
    if ($newTag2 > getNumberOfDaysOfMonth($monate, $jahr)) {
        $mon = $mon + 1;
        $newTag2 = 1;
    }
    if ($mon > 12) {
        $mon = 1;
        $jah = $jah + 1;
    }
    ?>
      <form action="./index.php" method="post" name="tagWeiter" target="_self" id="monatWeiter">
        <input name="raum_id" type="hidden" id="raum_id" value="<?php 
    echo $raum_id;
    ?>
">
        <input name="tag" type="hidden" id="tag" value="<?php 
    echo $newTag2;
    ?>
">
        <input name="monat" type="hidden" id="monat" value="<?php 
    echo $mon;
    ?>
">
        <input name="ansicht" type="hidden" id="monat" value="<?php 
    echo TAGESANSICHT;
    ?>
">
        <input name="jahr" type="hidden" id="jahr" value="<?php 
    echo $jah;
    ?>
">
        <input name="weiter" type="submit"  class="button"
       		id="weiter" value="<?php 
    echo getUebersetzung("einen Tag weiter");
    ?>
">
      </form></td>
  </tr>   
</table>
 <?php 
}