function erzeugenBC($root, $menu0, $links0, $menu1 = "", $links1 = "", $menu2 = "", $links2 = "", $menu3 = "", $links3 = "")
{
    $anfang = "href=\"" . $root . "/backoffice/";
    $link = "<a class=\"breadcrumps_link\" " . $anfang . $links0 . "\">" . getUebersetzung($menu0) . "</a>";
    if ($menu1 != "") {
        if ($links1 == "") {
            $link = $link . " " . "<a class=\"breadcrumps_link\">" . getUebersetzung($menu1) . "</a>";
        } else {
            $link = $link . " " . "<a class=\"breadcrumps_link\" " . $anfang . $links1 . "\">" . getUebersetzung($menu1) . "</a>";
        }
        if ($menu2 != "") {
            if ($links2 == "") {
                $link = $link . " " . "<a class=\"breadcrumps_link\">" . getUebersetzung($menu2) . "</a>";
            } else {
                $link = $link . " " . "<a class=\"breadcrumps_link\" " . $anfang . $links2 . "\">" . getUebersetzung($menu2) . "</a>";
            }
            if ($menu3 != "") {
                if ($links3 == "") {
                    $link = $link . " " . "<a class=\"breadcrumps_link\">" . getUebersetzung($menu3) . "</a>";
                } else {
                    $link = $link . " " . "<a class=\"breadcrumps_link\" " . $anfang . $links3 . "\">" . getUebersetzung($menu3) . "</a>";
                }
            }
        }
    }
    return $link;
}
function sendMessage($gast_id, $art)
{
    global $link;
    global $unterkunft_id;
    global $root;
    global $sprache;
    include_once $root . "/include/gastFunctions.php";
    include_once $root . "/include/propertiesFunctions.php";
    include_once $root . "/include/mail.inc.php";
    include_once $root . "/include/uebersetzer.php";
    include_once $root . "/include/unterkunftFunctions.php";
    $speech = getGuestSprache($gast_id, $link);
    $gastName = getGuestNachname($gast_id, $link);
    $an = getGuestEmail($gast_id, $link);
    $von = getUnterkunftEmail($unterkunft_id, $link);
    $subject = getUebersetzungUnterkunft(getMessageSubject($unterkunft_id, $art, $link), $speech, $unterkunft_id, $link);
    $anr = getUebersetzungUnterkunft(getMessageAnrede($unterkunft_id, $art, $link), $speech, $unterkunft_id, $link);
    $message = $anr . " " . $gastName . "!\n\n";
    $bod = getUebersetzungUnterkunft(getMessageBody($unterkunft_id, $art, $link), $speech, $unterkunft_id, $link);
    $message .= $bod . "\n\n";
    $unt = getUebersetzungUnterkunft(getMessageUnterschrift($unterkunft_id, $art, $link), $speech, $unterkunft_id, $link);
    $message .= $unt;
    //mail absenden:
    sendMail($von, $an, $subject, $message);
    if (getPropertyValue(MAIL_KOPIE_AN_VERMIETER_ABLEHNUNG, $unterkunft_id, $link) == "true") {
        $message = getUebersetzung("Folgende Nachricht wurde an ihren Gast versendet", $sprache, $link) . ":\n\n" . $message;
        sendMail($von, $von, $subject, $message);
    }
}
}
$res = getActivtedSprachenOfVermieter($gastro_id);
while ($d = $res->FetchNextObject()) {
    $sprache_id = $d->SPRACHE_ID;
    $bezeichnung = false;
    if (isset($_POST["bezeichnung_" . $sprache_id])) {
        $bezeichnung = $_POST["bezeichnung_" . $sprache_id];
    }
    $beschreibung = false;
    if (isset($_POST["beschreibung_" . $sprache_id])) {
        $beschreibung = $_POST["beschreibung_" . $sprache_id];
    }
    if ($standardsprache == $sprache_id && ($bezeichnung == "" || $bezeichnung == false)) {
        $fehler = true;
        $nachricht = getUebersetzung("Bitte geben sie die Bezeichnung ihrer Standardsprache ein!");
        $nachricht .= " (" . getUebersetzung(getBezeichnungOfSpracheID($sprache_id)) . ")";
        include_once "./tischAnlegen.php";
        exit;
    }
    if ($standardsprache == $sprache_id) {
        $defaultBezeichnung = $bezeichnung;
    }
    if ($standardsprache == $sprache_id) {
        $defaultBeschreibung = $beschreibung;
    }
    //assoziatives array aufbauen mit sprache als schluessel
    if ($beschreibung != false) {
        $uebers_bes[$sprache_id] = $beschreibung;
    }
    if ($bezeichnung != false) {
        $uebers_bez[$sprache_id] = $bezeichnung;
if (isset($_POST["raum_id"])) {
    $raum_id = $_POST["raum_id"];
    $anzahl = count($raum_id);
}
if ($anzahl < 1) {
    $fehler = true;
    $nachricht = getUebersetzung("Es wurde kein Raum zum Löschen ausgewählt.");
    include_once "./index.php";
    exit;
}
if (DEMO == true) {
    //im demo modus darf nicht das letzte mo gel�scht werden:
    $anzahl = getAnzahlVorhandeneRaeume($gastro_id);
    if ($anzahl <= 1) {
        $fehler = true;
        $nachricht = getUebersetzung("Im Demo-Modus kann der letzte Raum nicht gelöscht werden.");
        include_once "./index.php";
        exit;
    }
}
for ($i = 0; $i < $anzahl; $i++) {
    deleteRaum($raum_id[$i]);
}
//ende for
$info = true;
if ($anzahl > 1) {
    $nachricht = "Die Räume wurden samt seinen Tischen und Reservierungen aus der Datenbank gelöscht";
} else {
    $nachricht = "Der Raum wurde samt seinen Tischen und Reservierungen aus der Datenbank gelöscht";
}
include_once "./index.php";
    exit;
}
include_once $root . "/webinterface/templates/bodyStart.inc.php";
setVermieterEigenschaftenWert(STANDARDSPRACHE, $standard, $vermieter_id);
?>

<p class="<?php 
echo STANDARD_SCHRIFT_BOLD;
?>
"><?php 
echo getUebersetzung("Ändern der angezeigten Sprachen");
?>
.</p>

	<table  border="0" cellpadding="0" cellspacing="3" class="<?php 
echo FREI;
?>
">
	  <tr>
		<td><?php 
echo getUebersetzung("Die angezeigten Sprachen wurden erfolgreich geändert!");
?>
</td>
	  </tr>
	</table>

<br/>
<?php 
//-----buttons um zurück zum menue zu gelangen:
showSubmitButtonWithForm("../index.php", getUebersetzung("zurück"));
include_once $root . "/webinterface/templates/footer.inc.php";
                $message .= $unterschrift;
                break;
            }
        }
        ?>
<option><?php 
        echo getUebersetzung("E-Mail an:") . " " . $gastName . " (" . $an . ") ... ";
        echo getUebersetzung("erfolgreich gesendet") . " ...<br/>";
        ?>
</option><?php 
        //mail($an, $subject, $message, "From: $von\nReply-To: $von\nX-Mailer: PHP/" . phpversion());
        include_once $root . "/include/mail.inc.php";
        sendMail($von, $an, $subject, $message);
    }
    ?>
	  	</select></td>
    </tr>
  </table>
  <br/>
	<table class="frei">
	  <tr>
		<td><?php 
    echo getUebersetzung("Die E-Mails wurden erfolgreich versendet");
    ?>
!</td>
	  </tr>
	</table>
   <br/>
<?php 
}
include_once $root . "/backoffice/templates/footer.inc.php";
    $fehler = true;
    $nachricht = getUebersetzung("Bitte geben sie den Nachnamen ein!" . $_POST["nachname"]);
    include_once "./index.php";
    exit;
}
include_once $root . "/include/mieterFunctions.inc.php";
include_once $root . "/backoffice/templates/components.inc.php";
$anrede = $_POST["anrede"];
$vorname = $_POST["vorname"];
$nachname = $_POST["nachname"];
$strasse = $_POST["strasse"];
$plz = $_POST["plz"];
$ort = $_POST["ort"];
$land = $_POST["country"];
$email = $_POST["email"];
$tel = $_POST["tel"];
$tel2 = $_POST["tel2"];
$fax = $_POST["fax"];
$url = $_POST["url"];
$speech = $_POST["speech"];
$firma = $_POST["firma"];
$bezeichnung = $_POST["bezeichnung"];
$beschreibung = $_POST["beschreibung"];
$bezeichnungAll = "";
foreach ($bezeichnung as $jede) {
    $bezeichnungAll = $bezeichnungAll . $jede . ",";
}
$mieter_id = insertMieter($gastro_id, $anrede, $vorname, $nachname, $strasse, $plz, $ort, $land, $email, $tel, $tel2, $fax, $url, $firma, $speech, $beschreibung, $bezeichnungAll);
$info = true;
$nachricht = getUebersetzung("Der Gast ") . $vorname . " " . $nachname . getUebersetzung(" wurde erfolgreich angelegt");
include_once "./index.php";
        ?>
');"
											class="<?php 
        echo BUTTON;
        ?>
" 
						  					onMouseOver="this.className='<?php 
        echo BUTTON_HOVER;
        ?>
';"
				       						onMouseOut="this.className='<?php 
        echo BUTTON;
        ?>
';"											
											value="<?php 
        echo getUebersetzung("reservieren");
        ?>
" />										
									</td>
								</tr>
								<?php 
    }
    ?>
	
							</table>
							
						</div>
					<?php 
}
?>
	</body>
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.");
}
 </td>
    <td><input name="tel2" type="text" id="tel2" value="<?php 
echo $tel2;
?>
" size="50"></td>
  </tr>
  <tr>
    <td><?php 
echo getUebersetzung("Faxnummer");
?>
 </td>
    <td><input name="fax" type="text" id="fax" value="<?php 
echo $fax;
?>
" size="50"></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><input type="submit" name="Submit" class="button" id="retour" value="<?php 
echo getUebersetzung("Ändern");
?>
"></td>
    <td>&nbsp;</td>
  </tr>
</table>
</form>
<?php 
include_once $root . "/backoffice/templates/footer.inc.php";
$nachname = $_POST["nachname"];
$strasse = $_POST["strasse"];
$plz = $_POST["plz"];
$ort = $_POST["ort"];
$land = $_POST["country"];
$email = $_POST["email"];
$tel = $_POST["tel"];
$tel2 = $_POST["tel2"];
$fax = $_POST["fax"];
$speech = $_POST["speech"];
$url = $_POST["url"];
$mieter_id = $_POST["mieter_id"];
$index = $_POST["index"];
$firma = $_POST["firma"];
$bezeichnung = $_POST["bezeichnung"];
$beschreibung = $_POST["beschreibung"];
$bezeichnungAll = "";
foreach ($bezeichnung as $jede) {
    $bezeichnungAll = $bezeichnungAll . $jede . ",";
}
include_once $root . "/include/mieterFunctions.inc.php";
if (!updateMieter($mieter_id, $anrede, $vorname, $nachname, $strasse, $plz, $ort, $land, $email, $tel, $tel2, $fax, $url, $firma, $speech, $bezeichnungAll, $beschreibung)) {
    $fehler = true;
    $nachricht = getUebersetzung("Die Änderung des Gastes ist gescheitert!");
    include_once "./index.php";
} else {
    $info = true;
    $nachricht = getUebersetzung("Die Daten des Gastes wurden erfolgreich geändert!");
    $_POST["root"] = $root;
    include_once $root . "/backoffice/mieterBearbeiten/mieterListe/index.php";
}
        $vonJahr = $datumVAr[2];
        $bisTag = $datumBAr[0];
        $bisMonat = $datumBAr[1];
        $bisJahr = $datumBAr[2];
        if (isDatumEarlier($vonTag, $vonMonat, $vonJahr, $bisTag, $bisMonat, $bisJahr) == FALSE) {
            $fehler = true;
            $nachricht = "Das gewählte Datum ist nicht korrekt.";
            $nachricht = getUebersetzung($nachricht, $sprache, $link);
            include_once "./preis.php";
            exit;
        }
        $datumVon = parseDateFormular($vonTag, $vonMonat, $vonJahr);
        $datumBis = parseDateFormular($bisTag, $bisMonat, $bisJahr);
        //wurde ein zimmer ausgewählt:
        if (!isset($_POST["zimmer_" . $preis_id]) || empty($_POST["zimmer_" . $preis_id]) || count($_POST["zimmer_" . $preis_id]) < 1) {
            $fehler = true;
            $nachricht = "Es muss mindestens ein Mietobjekt ausgewählt werden.";
            $nachricht = getUebersetzung($nachricht, $sprache, $link);
            include_once "./preis.php";
            exit;
        }
        $zimmer_id_neu = $_POST["zimmer_" . $preis_id];
        //preis speichern:
        changePrice($preis_id, $zimmer_id_neu, $datumVon, $datumBis, $preis, "Euro", false, $link);
    }
    //ende alle möglichen preise durchlaufen
    $nachricht = "Die Preise wurden erfolgreich geändert.";
    $nachricht = getUebersetzung($nachricht, $sprache, $link);
    include_once "./preis.php";
    exit;
}
						<option value="<?php 
    echo $d->RAUM_ID;
    ?>
" <?php 
    if ($first) {
        ?>
								selected="selected"	<?php 
        $first = false;
    }
    ?>
							><?php 
    echo $ziArt;
    ?>
</option>	<?php 
}
//ende while
?>
		           </select>
	    	</td>
	    </tr>
	    <tr>
	      <td><input name="zimmerAnlegenButton" type="submit" id="zimmerAnlegenButton" 
	      	class="button" value="<?php 
echo getUebersetzung("Anlegen");
?>
"></td>
	    </tr>	       
	</table>
</form>
<?php 
include_once $root . "/backoffice/templates/footer.inc.php";
/**
 * @author: coster
 * @date: 30.9.06
 * listet alle zimmer auf und erzeugt die tabellenzeilen 
 * */
function showAllRooms($month, $year, $unterkunft_id, $link, $saAktiviert, $sprache)
{
    $zimmerart = getUebersetzungUnterkunft(getZimmerart_EZ($unterkunft_id, $link), $sprache, $unterkunft_id, $link);
    $attResult = false;
    if (getPropertyValue(SHOW_ZIMMER_ATTRIBUTE_GESAMTUEBERSICHT, $unterkunft_id, $link) == "true") {
        $attResult = getAttributes();
    }
    ?>

	<table border="0" cellspacing="0" cellpadding="0" class="tableColor">
		<tr>
			<td></td>
			<?php 
    //ausgeben von leeren spalten wenn zusaetzlich attribute da sind:
    if ($attResult != false) {
        for ($i = 0; $i < mysqli_num_rows($attResult); $i++) {
            ?>
<td></td><?php 
        }
    }
    //ausgeben der tage in namen:
    $anzahlTageMo = getNumberOfDays($month, $year);
    for ($i = 1; $i <= $anzahlTageMo; $i++) {
        $tagName = getDayName($i, $month, $year);
        ?>
				<td align="center"><?php 
        echo getUebersetzung($tagName, $sprache, $link);
        ?>
</td>
			<?php 
    }
    ?>
		</tr>	
		<tr>
			<td><?php 
    echo $zimmerart;
    ?>
&nbsp;</td>
			<?php 
    //ausgeben der spaltenüberschriften wenn zusaetzlich attribute da sind:
    if ($attResult != false) {
        while ($d = mysqli_fetch_array($attResult)) {
            $bezeichnung = $d["Bezeichnung"];
            ?>
<td align="center"><?php 
            echo $bezeichnung;
            ?>
&nbsp;</td><?php 
        }
    }
    //ausgeben der tage in ziffern:
    $anzahlTageMo = getNumberOfDays($month, $year);
    for ($i = 1; $i <= $anzahlTageMo; $i++) {
        ?>
				<td align="center"><?php 
        echo $i;
        ?>
</td>
			<?php 
    }
    ?>
		</tr>
      <?php 
    $res = getZimmer($unterkunft_id, $link);
    while ($d = mysqli_fetch_array($res)) {
        $zimmer_id = $d["PK_ID"];
        $zimmer_value = $d["Zimmernr"];
        ?>
		  <tr> 
			<td align="center">
				<?php 
        echo getUebersetzungUnterkunft($zimmer_value, $sprache, $unterkunft_id, $link);
        ?>
			</td>
			<?php 
        //ausgeben der spaltenwerte wenn zusaetzlich attribute da sind:
        if ($attResult != false) {
            $attResult = getAttributes();
            while ($d = mysqli_fetch_array($attResult)) {
                $attribut_id = $d["PK_ID"];
                $wert = getAttributValue($attribut_id, $zimmer_id);
                ?>
<td align="center"><?php 
                echo $wert;
                ?>
</td><?php 
            }
        }
        for ($i = 1; $i <= $anzahlTageMo; $i++) {
            ?>
				<td width="20"
					<?php 
            $statusString = getStatusString($zimmer_id, $i, $month, $year, $saAktiviert, $link);
            ?>
 
					class="<?php 
            echo $statusString;
            ?>
">
					<?php 
            printResAdmin($zimmer_id, $i, $month, $year, $saAktiviert, $link);
            ?>
				</td>
			<?php 
        }
        ?>
		  </tr>
	  <?php 
    }
    ?>
	</table>
	
<?php 
}
">
        <input name="monat" type="hidden" id="monat" value="<?php 
echo $mon;
?>
">
        <input name="ansicht" type="hidden" id="ansicht" value="<?php 
echo TAGESANSICHT;
?>
">
        <input name="jahr" type="hidden" id="jahr" value="<?php 
echo $jah;
?>
">
        <input name="weiter" type="submit" class="<?php 
echo BUTTON;
?>
" onMouseOver="this.className='<?php 
echo BUTTON_HOVER;
?>
';"
       		onMouseOut="this.className='<?php 
echo BUTTON;
?>
';" 
       		id="weiter" value="<?php 
echo getUebersetzung("einen Tag weiter");
?>
">
      </form></td>
  </tr> 
</table>
	  <tr height="30">
	    <td><a href="<?php 
echo $root;
?>
/backoffice/divEinstellungen/buchung/index.php"><?php 
echo getUebersetzung("Reservierungen");
?>
</a></td>
    	<td> - </td>
	    <td><?php 
echo getUebersetzung("Reservierungen nur zu bestimmten Zeiten erlauben, Dauer einer Reservierung festlegen");
?>
.</td>
	  </tr>
	  <tr height="30">
	    <td><a href="<?php 
echo $root;
?>
/backoffice/divEinstellungen/register/index.php"><?php 
echo getUebersetzung("Registerierung");
?>
</a></td>
    	<td> - </td>
	    <td><?php 
echo getUebersetzung("Registrieren Sie Bookline um den vollen Funktionsumfang nutzen zu können");
?>
.</td>
	  </tr>
</table>
<?php 
include_once $root . "/backoffice/templates/footer.inc.php";
</td>
    	</tr>
    	<tr>
    		<td> <?php 
    while ($d = $res->FetchNextObject()) {
        echo $d->CLASSNAME;
        if ($res->CurrentRow() != $res->RowCount()) {
            echo ", ";
        }
    }
    ?>
			</td>
		</tr>
		<tr>
    		<td><?php 
    echo getUebersetzung("Beispiel: ");
    ?>
			</td>
		</tr> <?php 
    $res = getAllStylesFromVermieter($gastro_id);
    while ($d = $res->FetchNextObject()) {
        ?>
		<tr>
  			<td colspan="2"><?php 
        echo "<B>" . $d->CLASSNAME . "</B>" . "{" . $d->WERT . "}";
        ?>
  			</td>
    	</tr> 
		<?php 
    }
}

    //Getting months
        var monthsArray=[];

        <?php 
for ($i = 1; $i <= 12; $i++) {
    ?>
        monthsArray[<?php 
    echo $i - 1;
    ?>
]={"monthIndex": <?php 
    echo $i;
    ?>
 ,"month": "<?php 
    echo getUebersetzung(parseMonthName($i, "de"), $sprache, $link);
    ?>
" };
        <?php 
}
?>

        $scope.months = monthsArray;
        $scope.month = new Date().getMonth()+1;

        $scope.monthChanged=function () {
            $scope.monat_left = $scope.month;
            $scope.monat_right = $scope.month;
            var FormData = {
            'month' : $scope.month,
            'year' : $scope.year,
    ?>
      <form action="./gesamtuebersicht.php" method="post" name="monatWeiter" target="_self" id="monatWeiter">        
        <input name="monat" type="hidden" id="monat" value="<?php 
    if ($mo > 12) {
        $mo = 1;
        $ja += 1;
    }
    echo $mo;
    ?>
">
        <input name="jahr" type="hidden" id="jahr" value="<?php 
    echo $ja;
    ?>
">
        <input name="weiter" type="submit" class="btn btn-primary" onClick="updateLeft(<?php 
    echo $mo . "," . $ja . "," . $zimmer_id;
    ?>
,1);" id="weiter" 
	   value="<?php 
    echo getUebersetzung("einen Monat weiter", $sprache, $link);
    ?>
">
      </form>
      <?php 
}
?>
     </td>
  </tr>  
</table>
</body>
</html>
/**
 * 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;
    ?>
">&nbsp;</td>
							    <?php 
    for ($l = 0; $l < $anzahlRes; $l++) {
        ?>
							      <td width="5" class="<?php 
        echo BELEGT;
        ?>
">&nbsp;</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;
                    ?>
">&nbsp;</td>
								    <?php 
                }
                for ($z = 0; $z < $anzahlResOnDayI; $z++) {
                    ?>
								      <td width="5" class="<?php 
                    echo BELEGT;
                    ?>
">&nbsp;</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;
            ?>
">&nbsp;</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 
}
        <td><span class="<?php 
echo STANDARDSCHRIFT;
?>
">000000</span></td>
        <td bgcolor="#000000">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
</table>
<br/>
<table border="0" cellspacing="3" cellpadding="0">
  <tr>
    <td>
	<form action="./index.php" method="post" name="form1" target="_self">
        <input type="submit" name="Submit3" value="<?php 
echo getUebersetzung("zur�ck");
?>
" class="<?php 
echo BUTTON;
?>
" 
			onMouseOver="this.className='<?php 
echo BUTTON_HOVER;
?>
';"
       		onMouseOut="this.className='<?php 
echo BUTTON;
?>
';">
      </form>
    </td>
	  <select name="minute"  id="minute">
		<?php 
for ($l = 0; $l < 60; $l++) {
    if ($l < 10) {
        $l = "0" . $l;
    }
    ?>
		<option value="<?php 
    echo $l;
    ?>
"<?php 
    if ($l == $minute) {
        echo " selected=\"selected\"";
    }
    ?>
><?php 
    echo $l;
    ?>
</option>
		<?php 
}
?>
	  </select> <span class="<?php 
echo STANDARD_SCHRIFT;
?>
">
		<?php 
echo getUebersetzung("Uhr");
?>
</span></td>
</tr>
	<tr height="30">
		<td><a href="<?php 
echo $root;
?>
/backoffice/designBearbeiten/stylesHochladen.php"><?php 
echo getUebersetzung("Stylesheet hochladen");
?>
</a></td>
    	<td> - </td>
		<td><?php 
echo getUebersetzung("Kann auch eine externe Stylesheet Datei verwendet werden.");
?>
</td>
	</tr>
	<tr height="30">
		<td><a href="<?php 
echo $root;
?>
/backoffice/designBearbeiten/farbtabelle.php"><?php 
echo getUebersetzung("Farbtabelle anzeigen");
?>
</a></td>
    	<td> - </td>
		<td><?php 
echo getUebersetzung("Zeigt eine Tabelle mit Farbcodes an, die im Design verwendet werden können");
?>
</td>
	</tr>
</table>
<?php 
include_once $root . "/backoffice/templates/footer.inc.php";
$res = getActivtedSprachenOfVermieter($gastro_id);
while ($d = $res->FetchNextObject()) {
    $bezeichnung = $d->BEZEICHNUNG;
    $spracheID = $d->SPRACHE_ID;
    ?>
  
			<option value="<?php 
    echo $spracheID;
    ?>
"><?php 
    echo getUebersetzung($bezeichnung);
    ?>
</option>
			<?php 
}
?>
 
	  	</input>
	  </td>
  </tr> 
  <tr>
    <td>
 	 <?php 
showSubmitButton(getUebersetzung("Ändern"));
?>
	</td>
  </tr>
</form>
</table>
<?php 
include_once $root . "/backoffice/templates/footer.inc.php";
/templates/calendarDateInput.inc.php?root=<?php 
echo $root;
?>
">
	/***********************************************
	* Jason's Date Input Calendar- By Jason Moon http://www.jasonmoon.net/
	* Script featured on and available at http://www.dynamicdrive.com
	* Keep this notice intact for use.
	***********************************************/	
</script>
<table>	  	
  <tr>
	<form action="./kartenDrucken.php" method="post" target="_self"> 	
	    <td><script>DateInput('date1', false, 'DD/MM/YYYY','<?php 
echo $startdatumDP;
?>
')</script></td>
	  	<td><?php 
showSubmitButton(getUebersetzung("drucken"));
?>
</td>	  	
	  	<td><?php 
echo getUebersetzung("Tischkarten für das ausgewählte Datum drucken");
?>
	</td> 
  	</form> 	
  </tr> 
</table>

<?php 
include_once $root . "/backoffice/templates/footer.inc.php";
setStandardSprache($unterkunft_id, $sprache, $link);
setStandardSpracheBelegungsplan($unterkunft_id, $sprache, $link);
//anonymen gast anlegen:
//der bekommt die id = 1
insertGuestWithID(1, $unterkunft_id, " ", "Anonym", "Anonymous", "no street address", "no post code", "no city", "no land", "no e-mail", "no tel", "no fax", "anonymous guest", "en", $link);
//die standard-framegroessen setzen:
//zuerst mal einen eintrag in den einstellungen machen:
$query = "REPLACE INTO \n\t\t\t  Rezervi_Einstellungen_Neu\n\t\t\t  (FK_Unterkunft_ID)\n\t\t\t  VALUES\t\t\t\t  \n\t\t\t  ('{$unterkunft_id}')\n\t\t\t ";
$res = mysqli_query($link, $query);
setFramesizeRightBP($unterkunft_id, "", "*", $link);
setFramesizeLeftBP($unterkunft_id, "280", "px", $link);
setFramesizeLeftWI($unterkunft_id, "280", "px", $link);
setFramesizeRightWI($unterkunft_id, "", "*", $link);
//speichert der default Values in der properties tabelle:
setDefaultValues($unterkunft_id, $link);
if (!$fail) {
    $fehler = false;
    $unterkunft = true;
    $antwort = $antwort . "Anlegen der Unterkunft erfolgreich durchgeführt.";
} else {
    $fehler = true;
    $unterkunft = false;
    $antwort .= getUebersetzung("Installationsfehler.", $sprache, $link) . "<br/>";
    $antwort .= getUebersetzung("Überprüfen Sie die Zugangsdaten in conf/rdbmsConfig.php und die Version Ihrer MySQL Datenbank.", $sprache, $link) . "<br/>";
    $antwort .= getUebersetzung("Ansonsten wenden sie sich bitte per E-Mail an utilo.eu - wir helfen ihnen gerne weiter!", $sprache, $link) . "<br/>";
}
?>
 
</body>
</html>
    }
    ?>
    <tr class="table"> 
      <td colspan="2">
        <input name="Submit" type="submit" id="Submit" class="button200pxA" onMouseOver="this.className='button200pxB';"
       onMouseOut="this.className='button200pxA';" value="<?php 
    echo getUebersetzung("Bild hochladen", $sprache, $link);
    ?>
"></td>
    </tr>
  </table>
</form>
<br/>
<?php 
    //-----buttons um zurück zu gelangen:
    showSubmitButtonWithForm("./index.php", getUebersetzung("zurück", $sprache, $link));
    ?>
<br/>
<?php 
    //-----buttons um zurück zum menue zu gelangen:
    showSubmitButtonWithForm("../inhalt.php", getUebersetzung("Hauptmenü", $sprache, $link));
    ?>
<p></td> </tr> </table> </p>  
<?php 
} else {
    echo getUebersetzung("Bitte Browser schließen und neu anmelden - Passwortprüfung fehlgeschlagen!", $sprache, $link);
}
?>
   
 <?php 
include_once "../templates/end.php";
?>
<h2><?php 
echo getUebersetzung($unterschrift);
?>
</h2>
<p><?php 
echo getUebersetzung("Bitte beachten Sie, dass Design auf Standardwerte zurückgesetzt wird und das eigene Design gleichzeitig entfernt wird.");
?>
</p>
<table>
	<tr>
		<td>
		<form action="./standardWerte.php" method="post" name="standard" target="_self" id="raumLoeschen">	
			<input name="weiter" type="submit" class="button" id="weiter" value="<?php 
echo getUebersetzung("weiter");
?>
">		
		</form>
		</td>
		<td>
		<form action="./index.php" method="post" name="zurueck" target="_self" id="zurueck">
      	 	<input name="retour2" type="submit" class="button" id="retour2" value="<?php 
echo getUebersetzung("abbrechen");
?>
">
		</form>
		</td>
	</tr>
</table>
<?php 
include_once $root . "/backoffice/templates/footer.inc.php";
     		$height_pic= getBildHoehe($bild_id);
     	?>
     	<img src="<?php echo $root."/templates/picture.php?bilder_id=".$bild_id ?>" 
     		width="<?php echo $width_pic/$height_pic*200 ?>" 
     		height="<?php echo 200 ?>"/>
     </td>
   </tr>
   <?php
   } 	   
   <tr>
   	<td><?php echo getUebersetzung("Bild des Tisches") ?></td>
	    <td><input name="bild" type="file"/></td>
   </tr>  
*/
?>
 
     <tr> 
      <td colspan="2">
      	<input type="hidden" name="raum_id" value="<?php 
echo $raum_id;
?>
"/>
  		<input name="Submit" type="submit" id="Submit" class="button" value="<?php 
echo getUebersetzung("Speichern");
?>
"></td>
    </tr>
	</form> 
</table>
<?php 
include_once $root . "/backoffice/templates/footer.inc.php";
					</form>
				</td>
			</tr>
		</table>		
    </td>
	</tr>
</table>
<br/>
<table>
	<form action="<?php 
echo $root;
?>
/backoffice/mieterBearbeiten/mieterListe/export/csv.php" method="post" name="hauptmenue" id="hauptmenue">
  <tr>
    <td><select name="format" size="1" class="button">
      <option value="csv"><?php 
echo getUebersetzung("Text");
?>
 CSV</option>
    </select></td>
    <td><input name="exportieren" type="submit" class="button" 
			value="<?php 
echo getUebersetzung("exportieren");
?>
"></td>
    <td>&nbsp;</td>
  </tr>
 </form>
</table>
<?php 
include_once $root . "/backoffice/templates/footer.inc.php";