Einchecken des Online-Codes

This commit is contained in:
2017-05-07 14:37:49 +00:00
parent 9c1d71cea6
commit 85cc95c574
635 changed files with 76260 additions and 0 deletions

202
inhalte/gewerbe/bp.php Normal file
View File

@@ -0,0 +1,202 @@
<?php
$a = true;
$b = true;
$filter = "(O_TYP = \"Büro\" OR O_TYP = \"Praxis\") AND Aktiv = 1 ";
if (!isset($_GET[obj])) {
if (isset($_POST['formaction'])) {
if (("" == $_POST['Zvon']) AND ("" == $_POST['Zbis'])) {
}
elseif (("" !== $_POST['Zvon']) AND ("" == $_POST['Zbis'])) {
$filter = $filter. "AND Zimmer >= ".$_POST['Zvon']." ";
$zimmer = "mehr als ".$_POST['Zvon']." Zimmer";
}
elseif (("" == $_POST['Zvon']) AND ("" !== $_POST['Zbis'])) {
$filter = $filter. "AND Zimmer <= ".$_POST['Zbis']." ";
$zimmer = "bis ".$_POST['Zbis']." Zimmer";
}
else {
$filter = $filter. "AND Zimmer BETWEEN ".$_POST['Zvon']." AND ".$_POST['Zbis']." ";
$zimmer = $_POST['Zvon']." bis ".$_POST['Zbis']." Zimmer";
}
if (("" == $_POST['Wvon']) AND ("" == $_POST['Wbis'])) {
}
elseif (("" !== $_POST['Wvon']) AND ("" == $_POST['Wbis'])) {
$filter = $filter. "AND WohnF >= ".$_POST['Wvon']." ";
$wohn = "mehr als ".$_POST['Wvon']." m&sup2;";
}
elseif (("" == $_POST['Wvon']) AND ("" !== $_POST['Wbis'])) {
$filter = $filter. "AND WohnF <= ".$_POST['Wbis']." ";
$wohn = "bis ".$_POST['Wbis']." m&sup2;";
}
else {
$filter = $filter. "AND WohnF BETWEEN ".$_POST['Wvon']." AND ".$_POST['Wbis']." ";
$wohn = $_POST['Wvon']." bis ".$_POST['Wbis']." m&sup2;";
}
if (("" == $_POST['Kvon']) AND ("" == $_POST['Kbis'])) {
}
elseif (("" !== $_POST['Kvon']) AND ("" == $_POST['Kbis'])) {
$filter = $filter. "AND Mkalt >= ".$_POST['Kvon']." ";
$kalt = "mehr als ".$_POST['Kvon']." EUR";
}
elseif (("" == $_POST['Kvon']) AND ("" !== $_POST['Kbis'])) {
$filter = $filter. "AND Mkalt <= ".$_POST['Kbis']." ";
$kalt = "bis ".$_POST['Kbis']." EUR";
}
else {
$filter = $filter. "AND Mkalt BETWEEN ".$_POST['Kvon']." AND ".$_POST['Kbis']." ";
$kalt = $_POST['Kvon']." bis ".$_POST['Kbis']." EUR";
}
}
echo "<h1>Büros und Praxen</h1>\n";
$sql = 'SELECT ID, O_TYP, V_TYP, Count, Kurz, Zimmer, WohnF, Ort, Mkalt, Garage, StellPl, Terrasse, Balkon, Garten FROM objekte WHERE '.$filter.' ORDER BY ID ASC';
$result = $db->query($sql);
$anzahl = $result->num_rows;
echo "<form class=\"suche\" action=\"index.php?section=gewerbe&amp;t=bp\" method=\"post\">\n";
echo "<table>\n";
echo " <colgroup>\n";
echo " <col width=\"97px\" />\n";
echo " <col width=\"80px\" />\n";
echo " <col width=\"37px\" />\n";
echo " <col width=\"80px\" />\n";
echo " <col width=\"154px\" />\n";
echo " <col width=\"234px\" />\n";
echo " </colgroup>\n";
echo " <tr>\n";
echo " <th colspan=\"5\">Suchkriterien</th>\n";
if (1 !== $anzahl) {
echo " <th>$anzahl Objekte im Angebot</th>\n";
}
else {
echo " <th>$anzahl Objekt im Angebot</th>\n";
}
echo " </tr>\n";
echo " <tr>\n";
echo " <td>Zimmer:</td>\n";
echo " <td><input type=\"text\" name=\"Zvon\" size=\"4\" /></td>\n";
echo " <td>bis</td>\n";
echo " <td><input type=\"text\" name=\"Zbis\" size=\"4\" /></td>\n";
echo " <td></td>\n";
if (isset($_POST['formaction'])) {
echo " <td>mit folgenden Kriterien:</td>\n";
}
echo " </tr>\n";
echo " <tr>\n";
echo " <td>Nutzfläche:</td>\n";
echo " <td><input type=\"text\" name=\"Wvon\" size=\"4\" /></td>\n";
echo " <td>bis</td>\n";
echo " <td><input type=\"text\" name=\"Wbis\" size=\"4\" /></td>\n";
echo " <td>m&sup2;</td>\n";
echo " <td>$zimmer</td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td colspan=\"5\"><input type=\"submit\" name=\"formaction\" value=\"Suchen\" /></td>\n";
echo " <td>$wohn</td>\n";
echo " </tr>\n";
echo "</table>\n";
echo "<br />\n";
echo "</form>\n";
echo "<br />\n";
echo "<table class=\"overview\">\n";
echo " <colgroup>\n";
echo " <col span=\"6\" width=\"117\" />\n";
echo " </colgroup>\n";
echo " <tr>\n";
echo " <th style=\"-moz-border-radius-topleft: 3px; -moz-border-radius-bottomleft: 3px; -khtml-border-radius-topleft: 3px; -khtml-border-radius-bottomleft: 3px;\" >&nbsp;</th>\n";
echo " <th>Zimmer</th>\n";
echo " <th>Nutzfläche</th>\n";
echo " <th>Kaltmiete /<br />Kaufpreis</th>\n";
echo " <th style=\"-moz-border-radius-topright: 3px; -moz-border-radius-bottomright: 3px; -khtml-border-radius-topright: 3px; -khtml-border-radius-bottomright: 3px;\" colspan=\"2\">Ausstattung</th>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td colspan=\"6\"><hr class=\"noDisplay\" /> &nbsp;</td>\n";
echo " <tr>\n";
while ($nt = $result->fetch_assoc()) {
// var_dump($nt);
echo "<br />\n";
if ('Kauf' == $nt['V_TYP']) {
$form = "<form action=\"index.php?section=gewerbe&t=bpk&obj=".$nt['ID']."\" method=\"post\">\n";
}
else {
$form = "<form action=\"index.php?section=gewerbe&t=bpm&obj=".$nt['ID']."\" method=\"post\">\n";
}
echo $form;
echo "<input type=\"hidden\" name=\"ID\" value=\"".$nt['ID']."\" />\n";
echo "<input type=\"hidden\" name=\"Count\" value=\"".$nt['Count']."\" />\n";
echo " <tr>\n";
echo " <td rowspan=\"4\"><input type=\"image\" value=\"Zum Objekt\" src=\"img/objekte/".$nt['ID']."_1.jpg\" width=\"80px\" height=\"60px\" /></td>\n";
echo " <td colspan=\"3\"><input class=\"overview\" type=\"submit\" value=\"".$nt['Kurz']."\" /></td>\n";
echo " <tr>\n";
if ('1' == $nt[Balkon]) {
echo " <td><img src=\"img/balkon.png\" alt=\"Balkon\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
if ('1' == $nt[Terrasse]) {
echo " <td><img src=\"img/terrasse.png\" alt=\"Terrasse\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
echo " </tr>\n";
echo " <tr>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td>$nt[Zimmer]</td>\n";
echo " <td>$nt[WohnF] m&sup2;</td>\n";
echo " <td>$nt[Mkalt] &euro;</td>\n";
if ('1' == $nt[Garten]) {
echo " <td><img src=\"img/garten.png\" alt=\"Garten\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
if ('1' == $nt[Garage]) {
echo " <td><img src=\"img/garage.png\" alt=\"Garage\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
echo " </tr>\n";
echo " <tr>\n";
echo " <td colspan=\"2\">$nt[Ort]</td>\n";
if ('Kauf' ==$nt['V_TYP']) {
echo " <td class=\"highlighted\">Kauf</td>\n";
}
else {
echo " <td class=\"highlighted\">Miete</td>\n";
}
if ('1' == $nt[StellPl]) {
echo " <td><img src=\"img/ebk.png\" alt=\"Balkon\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
echo " </tr>\n";
echo " <tr>\n";
echo " <td colspan=\"6\"><hr /></td>\n";
echo " </tr>\n";
echo "</form>\n";
}
echo "</table>\n";
} else {
if (isset($_POST['ID'])) {
echo "bin da";
$Zaehler = (int)($_POST['Count']) + 1;
$sqlu = "UPDATE objekte SET Count = \"".$Zaehler."\" WHERE ID = \"".$_POST['ID']."\";";
$stmtu = $db->prepare($sqlu);
if ($stmtu) {
if ($stmtu->execute()) {
}
}
unset($_POST);
}
include "inhalte/gewerbe/bpobj.php";
}
?>

331
inhalte/gewerbe/bpobj.php Normal file
View File

@@ -0,0 +1,331 @@
<?php
$a = true;
$b = true;
$sql1="SELECT * FROM objekte WHERE ID = '$_GET[obj]' ";
$result1 = $db->query($sql1);
$nt1 = $result1->fetch_assoc();
if ("0" !== $nt1['TID']) {
$sql2="SELECT ID, Vorname, Nachname, Telefon, EMail FROM Team WHERE ID = ".$nt1['TID']." ";
}
else {
$sql2="SELECT Firma AS Vorname, Telefon, EMail FROM Firma WHERE ID = 2 ";
}
$result2 = $db->query($sql2);
$nt2 = $result2->fetch_assoc();
echo "<h2 align=\"right\"><span style=\"float:left;\">$nt1[Kurz]</span>Objekt-Nr: $nt1[ID]</h2>\n";
if (isset($_GET['f'])) {
$pic = "img/objekte/".$_GET['obj']."_".$_GET['f'].".jpg";
}
?>
<table class="uebersicht">
<colgroup>
<col width="120" />
<col width="80" />
<col width="120" />
<col width="150" />
<col width="150" />
<col width="80" />
</colgroup>
<tr>
<td colspan="6"><hr style="margin-top: 0px; margin-left: -5px; margin-right: -5px;"/></td>
</tr>
<tr>
<th colspan="4">Übersicht</th>
<th colspan="2">Kontakt</th>
</tr>
<tr>
<td>Zimmer:</td><td><?php echo $nt1[Zimmer]; ?></td>
<?php
if ('1' == $nt1[Balkon]) {
echo " <td><img src=\"img/balkon.png\" alt=\"Balkon\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
if ('1' == $nt1[Terrasse]) {
echo " <td><img src=\"img/terrasse.png\" alt=\"Terrasse\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
?>
<?php echo "<td>$nt2[Vorname] $nt2[Nachname] </td><td rowspan=\"3\">\n";
if ("0" !== $nt1[TID]) {
echo "<img src=\"img/team/$nt2[ID].jpg\" width=\"80px\"></td>\n";
}
?>
</tr>
<tr>
<td>Nutzfl&auml;che:</td><td><?php echo $nt1[WohnF]; ?> m&sup2;</td>
<?php
if ('1' == $nt1[Garten]) {
echo " <td><img src=\"img/garten.png\" alt=\"Garten\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
if ('1' == $nt1[Garage]) {
echo " <td><img src=\"img/garage.png\" alt=\"Garage\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
?>
<td><?php echo $nt2[Telefon]; ?></td>
</tr>
<tr>
<td>Kaltmiete:</td><td><?php echo $nt1[Mkalt]; ?> &euro;</td>
<?php
if ('1' == $nt1[StellPl]) {
echo " <td><img src=\"img/ebk.png\" alt=\"Balkon\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
?>
<td></td>
<td><?php echo $nt2[EMail]; ?></td>
</tr>
<tr>
<td colspan="6"><hr style="margin-bottom: 0px; margin-left: -5px; margin-right: -5px;"/></td>
</tr>
</table><br />
<table class="foto">
<colgroup>
<col width="440px" />
<col span="2" width="130px" />
</colgroup>
<tr>
<?php
for ($i = 1; $i <= 8; $i++) {
$file = "img/objekte/".$_GET['obj']."_".$i.".jpg";
if (("1" == $i) AND (isset($_GET['f']))) {
echo "<td rowspan=\"4\"><img src=$pic /></td>\n";
}
if (file_exists($file)) {
if ("" == $pic) {
$pic = $file;
echo "<td rowspan=\"4\"><img src=$file /></td>\n";
}
echo "<td style=\"text-align:right;\"><a href=\"index.php?section=gewerbe&t=bpm&obj=".$_GET['obj']."&f=$i\"><img src=$file width=\"100px\" height=\"75px\" /></a></td> \n";
if (!$a) {
echo "</tr>\n<tr>\n";
}
$a = ($a xor $b);
$count++;
}
}
for ($count; $count <7; $count++) {
echo "<td>&nbsp</td>\n";
if (!$a) {
echo "</tr>\n<tr>\n";
}
$a = ($a xor $b);
}
?>
</tr>
</table><br />
<table class="expose">
<colgroup>
<col width="200" />
<col width="150" />
<col width="200" />
<col width="150" />
</colgroup>
<tr>
<th colspan="4">Beschreibung</th>
</tr>
<tr>
<td colspan="4"><?php echo nl2br($nt1[Beschreibung]); ?></td>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
<tr>
<th colspan="4">Kosten</th>
</tr>
<tr>
<td>Kaution:</td>
<td><?php echo $nt1[Kaution]; ?> &euro;</td>
<td>zzgl. Garage:</td>
<td><?php echo $nt1[GaraK]; ?> &euro;</td>
</tr>
<tr>
<td>Miete kalt:</td>
<td><?php echo $nt1[Mkalt]; ?> &euro;</td>
<td>zzgl. Stellplatz:</td>
<td><?php echo $nt1[StellK]; ?> &euro;</td>
</tr>
<tr>
<td>Miete warm:</td>
<td><?php echo $nt1[Mwarm]; ?> &euro;</td>
<td>Abl&ouml;se EBK:</td>
<td><?php echo $nt1[EBKK]; ?> &euro;</td>
</tr>
<tr>
<td>Nebenkosten:</td>
<td><?php echo $nt1[NebenK]; ?> &euro;</td>
<td>Sonstige Kosten:</td>
<td><?php echo $nt1[SonK]; ?> &euro;</td>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
<tr>
<th colspan="4">Auflagen</th>
</tr>
<tr>
<td colspan="4"><?php echo nl2br($nt1[Auflagen]); ?></td>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
<tr>
<th colspan="4">Ausstattung innen</th>
</tr>
<tr>
<?php
$a = true;
if ('1' == $nt1[EinbauK]) {
echo "<td>Einbauküche:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[Speise]) {
echo "<td>Speisekammer:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[BadeW]) {
echo "<td>Badewanne:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[DuschK]) {
echo "<td>Duschkabine:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[WCsep]) {
echo "<td>WC separat:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[WCbad]) {
echo "<td>WC im Bad:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[Abstell]) {
echo "<td>Abstellraum:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[DachB]) {
echo "<td>Dachboden:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[Keller]) {
echo "<td>Keller:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
}
?>
</tr>
<tr>
<td>Heizart:</td><td colspan="3"><?php echo $nt1[Heizart]; ?></td>
</tr>
<tr>
<td>Waschmaschine im:</td><td colspan="3"><?php echo $nt1[WaschOrt]; ?></td>
</tr>
<tr>
<td>TV-Anschluss:</td><td colspan="3"><?php echo $nt1[TV]; ?></td>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
<tr>
<th colspan="4">Ausstattung au&szlig;en</th>
</tr>
<tr>
<?php
$a = true;
if ('1' == $nt1[Garage]) {
echo "<td>Garage:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[StellPl]) {
echo "<td>Stellplatz:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[Terrasse]) {
echo "<td>Terrasse:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[Balkon]) {
echo "<td>Balkon:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[Garten]) {
echo "<td>Garten:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
}
?>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
<tr>
<th colspan="4">Ausstattung</th>
</tr>
<tr>
<td colspan="4"><?php echo nl2br($nt1[Ausstatt]); ?></td>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
<tr>
<th colspan="4">Sonstiges</th>
</tr>
<tr>
<td colspan="4"><?php echo nl2br($nt1[Sonst]); ?></td>
</tr>
</table><br />
<p><b>Provision: 2 Kaltmieten zuz&uuml;glich gesetzlicher MwSt.</b></p>

184
inhalte/gewerbe/ei.php Normal file
View File

@@ -0,0 +1,184 @@
<?php
$a = true;
$b = true;
$filter = "(O_TYP = \"Einzelhandel - Miete\" OR O_TYP = \"Einzelhandel - Kauf\" OR O_TYP = \"Industrie - Miete\" OR O_TYP = \"Industrie - Kauf\") AND Aktiv = 1 ";
if (!isset($_GET[obj])) {
if (isset($_POST['formaction'])) {
if (("" == $_POST['Zvon']) AND ("" == $_POST['Zbis'])) {
}
elseif (("" !== $_POST['Zvon']) AND ("" == $_POST['Zbis'])) {
$filter = $filter. "AND Zimmer >= ".$_POST['Zvon']." ";
$zimmer = "mehr als ".$_POST['Zvon']." Zimmer";
}
elseif (("" == $_POST['Zvon']) AND ("" !== $_POST['Zbis'])) {
$filter = $filter. "AND Zimmer <= ".$_POST['Zbis']." ";
$zimmer = "bis ".$_POST['Zbis']." Zimmer";
}
else {
$filter = $filter. "AND Zimmer BETWEEN ".$_POST['Zvon']." AND ".$_POST['Zbis']." ";
$zimmer = $_POST['Zvon']." bis ".$_POST['Zbis']." Zimmer";
}
if (("" == $_POST['Wvon']) AND ("" == $_POST['Wbis'])) {
}
elseif (("" !== $_POST['Wvon']) AND ("" == $_POST['Wbis'])) {
$filter = $filter. "AND WohnF >= ".$_POST['Wvon']." ";
$wohn = "mehr als ".$_POST['Wvon']." m&sup2;";
}
elseif (("" == $_POST['Wvon']) AND ("" !== $_POST['Wbis'])) {
$filter = $filter. "AND WohnF <= ".$_POST['Wbis']." ";
$wohn = "bis ".$_POST['Wbis']." m&sup2;";
}
else {
$filter = $filter. "AND WohnF BETWEEN ".$_POST['Wvon']." AND ".$_POST['Wbis']." ";
$wohn = $_POST['Wvon']." bis ".$_POST['Wbis']." m&sup2;";
}
if (("" == $_POST['Kvon']) AND ("" == $_POST['Kbis'])) {
}
elseif (("" !== $_POST['Kvon']) AND ("" == $_POST['Kbis'])) {
$filter = $filter. "AND Mkalt >= ".$_POST['Kvon']." ";
$kalt = "mehr als ".$_POST['Kvon']." EUR";
}
elseif (("" == $_POST['Kvon']) AND ("" !== $_POST['Kbis'])) {
$filter = $filter. "AND Mkalt <= ".$_POST['Kbis']." ";
$kalt = "bis ".$_POST['Kbis']." EUR";
}
else {
$filter = $filter. "AND Mkalt BETWEEN ".$_POST['Kvon']." AND ".$_POST['Kbis']." ";
$kalt = $_POST['Kvon']." bis ".$_POST['Kbis']." EUR";
}
}
echo "<h1>Einzelhandel und Industrie</h1>\n";
$sql = 'SELECT ID, O_TYP, Kurz, Zimmer, WohnF, Ort, Mkalt, Garage, StellPl, Terrasse, Balkon, Garten FROM objekte WHERE '.$filter.' ORDER BY ID ASC';
$result = $db->query($sql);
$anzahl = $result->num_rows;
echo "<form class=\"suche\" action=\"index.php?section=gewerbe&amp;t=ei\" method=\"post\">\n";
echo "<table>\n";
echo " <colgroup>\n";
echo " <col width=\"97px\" />\n";
echo " <col width=\"80px\" />\n";
echo " <col width=\"37px\" />\n";
echo " <col width=\"80px\" />\n";
echo " <col width=\"154px\" />\n";
echo " <col width=\"234px\" />\n";
echo " </colgroup>\n";
echo " <tr>\n";
echo " <th colspan=\"5\">Suchkriterien</th>\n";
if (1 !== $anzahl) {
echo " <th>$anzahl Objekte im Angebot</th>\n";
}
else {
echo " <th>$anzahl Objekt im Angebot</th>\n";
}
echo " </tr>\n";
echo " <tr>\n";
echo " <td>Zimmer:</td>\n";
echo " <td><input type=\"text\" name=\"Zvon\" size=\"4\" /></td>\n";
echo " <td>bis</td>\n";
echo " <td><input type=\"text\" name=\"Zbis\" size=\"4\" /></td>\n";
echo " <td></td>\n";
if (isset($_POST['formaction'])) {
echo " <td>mit folgenden Kriterien:</td>\n";
}
echo " </tr>\n";
echo " <tr>\n";
echo " <td>Nutzfläche:</td>\n";
echo " <td><input type=\"text\" name=\"Wvon\" size=\"4\" /></td>\n";
echo " <td>bis</td>\n";
echo " <td><input type=\"text\" name=\"Wbis\" size=\"4\" /></td>\n";
echo " <td>m&sup2;</td>\n";
echo " <td>$zimmer</td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td colspan=\"5\"><input type=\"submit\" name=\"formaction\" value=\"Suchen\" /></td>\n";
echo " <td>$wohn</td>\n";
echo " </tr>\n";
echo "</table>\n";
echo "<br />\n";
echo "</form>\n";
echo "<br />\n";
echo "<table class=\"overview\">\n";
echo " <colgroup>\n";
echo " <col span=\"6\" width=\"117\" />\n";
echo " </colgroup>\n";
echo " <tr>\n";
echo " <th style=\"-moz-border-radius-topleft: 3px; -moz-border-radius-bottomleft: 3px; -khtml-border-radius-topleft: 3px; -khtml-border-radius-bottomleft: 3px;\" >&nbsp;</th>\n";
echo " <th>Zimmer</th>\n";
echo " <th>Nutzfläche</th>\n";
echo " <th>Kaltmiete /<br />Kaufpreis</th>\n";
echo " <th style=\"-moz-border-radius-topright: 3px; -moz-border-radius-bottomright: 3px; -khtml-border-radius-topright: 3px; -khtml-border-radius-bottomright: 3px;\" colspan=\"2\">Ausstattung</th>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td colspan=\"6\"><hr class=\"noDisplay\" /> &nbsp;</td>\n";
echo " <tr>\n";
while ($nt = $result->fetch_assoc()) {
if (('Einzelhandel - Kauf' == $nt[O_TYP]) OR ('Industrie - Kauf' == $nt[O_TYP])) {
$link = "<a href=\"index.php?section=gewerbe&t=eik&obj=".$nt[ID]."\">";
}
else {
$link = "<a href=\"index.php?section=gewerbe&t=eim&obj=".$nt[ID]."\">";
}
echo " <tr>\n";
echo " <td rowspan=\"4\">$link<img src=\"img/objekte/$nt[ID]_1.jpg\" width=\"80px\" height=\"60\" /></a></td>\n";
echo " <td colspan=\"3\"><div style=\"width: 320px; height: 17px; overflow: hidden;\">$link<b>$nt[Kurz]</b></a></div></td>\n";
if ('1' == $nt[Balkon]) {
echo " <td><img src=\"img/balkon.png\" alt=\"Balkon\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
if ('1' == $nt[Terrasse]) {
echo " <td><img src=\"img/terrasse.png\" alt=\"Terrasse\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
echo " </tr>\n";
echo " <tr>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td>$nt[Zimmer]</td>\n";
echo " <td>$nt[WohnF] m&sup2;</td>\n";
echo " <td>$nt[Mkalt] &euro;</td>\n";
if ('1' == $nt[Garten]) {
echo " <td><img src=\"img/garten.png\" alt=\"Garten\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
if ('1' == $nt[Garage]) {
echo " <td><img src=\"img/garage.png\" alt=\"Garage\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
echo " </tr>\n";
echo " <tr>\n";
echo " <td colspan=\"2\">$nt[Ort]</td>\n";
if (('Einzelhandel - Kauf' == $nt[O_TYP]) OR ('Industrie - Kauf' == $nt[O_TYP])) {
echo " <td style=\"color:#00f;\">Kauf</td>\n";
}
else {
echo " <td style=\"color:#00f;\">Miete</td>\n";
}
if ('1' == $nt[StellPl]) {
echo " <td><img src=\"img/ebk.png\" alt=\"Balkon\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
echo " </tr>\n";
echo " <tr>\n";
echo " <td colspan=\"6\"><hr /></td>\n";
echo " </tr>\n";
}
echo "</table>\n";
} else {
include "inhalte/gewerbe/bpobj.php";
}
?>

331
inhalte/gewerbe/eiobj.php Normal file
View File

@@ -0,0 +1,331 @@
<?php
$a = true;
$b = true;
$sql1="SELECT * FROM objekte WHERE ID = '$_GET[obj]' ";
$result1 = $db->query($sql1);
$nt1 = $result1->fetch_assoc();
if ("0" !== $nt1['TID']) {
$sql2="SELECT ID, Vorname, Nachname, Telefon, EMail FROM Team WHERE ID = ".$nt1['TID']." ";
}
else {
$sql2="SELECT Firma AS Vorname, Telefon, EMail FROM Firma WHERE ID = 2 ";
}
$result2 = $db->query($sql2);
$nt2 = $result2->fetch_assoc();
echo "<h2 align=\"right\"><span style=\"float:left;\">$nt1[Kurz]</span>Objekt-Nr: $nt1[ID]</h2>\n";
if (isset($_GET['f'])) {
$pic = "img/objekte/".$_GET['obj']."_".$_GET['f'].".jpg";
}
?>
<table class="uebersicht">
<colgroup>
<col width="120" />
<col width="80" />
<col width="120" />
<col width="150" />
<col width="150" />
<col width="80" />
</colgroup>
<tr>
<td colspan="6"><hr style="margin-top: 0px; margin-left: -5px; margin-right: -5px;"/></td>
</tr>
<tr>
<th colspan="4">Übersicht</th>
<th colspan="2">Kontakt</th>
</tr>
<tr>
<td>Zimmer:</td><td><?php echo $nt1[Zimmer]; ?></td>
<?php
if ('1' == $nt1[Balkon]) {
echo " <td><img src=\"img/balkon.png\" alt=\"Balkon\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
if ('1' == $nt1[Terrasse]) {
echo " <td><img src=\"img/terrasse.png\" alt=\"Terrasse\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
?>
<?php echo "<td>$nt2[Vorname] $nt2[Nachname] </td><td rowspan=\"3\">\n";
if ("0" !== $nt1[TID]) {
echo "<img src=\"img/team/$nt2[ID].jpg\" width=\"80px\"></td>\n";
}
?>
</tr>
<tr>
<td>Nutzfl&auml;che:</td><td><?php echo $nt1[WohnF]; ?> m&sup2;</td>
<?php
if ('1' == $nt1[Garten]) {
echo " <td><img src=\"img/garten.png\" alt=\"Garten\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
if ('1' == $nt1[Garage]) {
echo " <td><img src=\"img/garage.png\" alt=\"Garage\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
?>
<td><?php echo $nt2[Telefon]; ?></td>
</tr>
<tr>
<td>Kaltmiete:</td><td><?php echo $nt1[Mkalt]; ?> &euro;</td>
<?php
if ('1' == $nt1[StellPl]) {
echo " <td><img src=\"img/ebk.png\" alt=\"Balkon\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
?>
<td></td>
<td><?php echo $nt2[EMail]; ?></td>
</tr>
<tr>
<td colspan="6"><hr style="margin-bottom: 0px; margin-left: -5px; margin-right: -5px;"/></td>
</tr>
</table><br />
<table class="foto">
<colgroup>
<col width="440px" />
<col span="2" width="130px" />
</colgroup>
<tr>
<?php
for ($i = 1; $i <= 8; $i++) {
$file = "img/objekte/".$_GET['obj']."_".$i.".jpg";
if (("1" == $i) AND (isset($_GET['f']))) {
echo "<td rowspan=\"4\"><img src=$pic /></td>\n";
}
if (file_exists($file)) {
if ("" == $pic) {
$pic = $file;
echo "<td rowspan=\"4\"><img src=$file /></td>\n";
}
echo "<td style=\"text-align:right;\"><a href=\"index.php?section=gewerbe&t=eim&obj=".$_GET['obj']."&f=$i\"><img src=$file width=\"100px\" height=\"75px\" /></a></td> \n";
if (!$a) {
echo "</tr>\n<tr>\n";
}
$a = ($a xor $b);
$count++;
}
}
for ($count; $count <7; $count++) {
echo "<td>&nbsp</td>\n";
if (!$a) {
echo "</tr>\n<tr>\n";
}
$a = ($a xor $b);
}
?>
</tr>
</table><br />
<table class="expose">
<colgroup>
<col width="200" />
<col width="150" />
<col width="200" />
<col width="150" />
</colgroup>
<tr>
<th colspan="4">Beschreibung</th>
</tr>
<tr>
<td colspan="4"><?php echo nl2br($nt1[Beschreibung]); ?></td>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
<tr>
<th colspan="4">Kosten</th>
</tr>
<tr>
<td>Kaution:</td>
<td><?php echo $nt1[Kaution]; ?></td>
<td>zzgl. Garage:</td>
<td><?php echo $nt1[GaraK]; ?> &euro;</td>
</tr>
<tr>
<td>Miete kalt:</td>
<td><?php echo $nt1[Mkalt]; ?> &euro;</td>
<td>zzgl. Stellplatz:</td>
<td><?php echo $nt1[StellK]; ?> &euro;</td>
</tr>
<tr>
<td>Miete warm:</td>
<td><?php echo $nt1[Mwarm]; ?> &euro;</td>
<td>Abl&ouml;se EBK:</td>
<td><?php echo $nt1[EBKK]; ?> &euro;</td>
</tr>
<tr>
<td>Nebenkosten:</td>
<td><?php echo $nt1[NebenK]; ?> &euro;</td>
<td>Sonstige Kosten:</td>
<td><?php echo $nt1[SonK]; ?> &euro;</td>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
<tr>
<th colspan="4">Auflagen</th>
</tr>
<tr>
<td colspan="4"><?php echo nl2br($nt1[Auflagen]); ?></td>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
<tr>
<th colspan="4">Ausstattung innen</th>
</tr>
<tr>
<?php
$a = true;
if ('1' == $nt1[EinbauK]) {
echo "<td>Einbauküche:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[Speise]) {
echo "<td>Speisekammer:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[BadeW]) {
echo "<td>Badewanne:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[DuschK]) {
echo "<td>Duschkabine:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[WCsep]) {
echo "<td>WC separat:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[WCbad]) {
echo "<td>WC im Bad:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[Abstell]) {
echo "<td>Abstellraum:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[DachB]) {
echo "<td>Dachboden:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[Keller]) {
echo "<td>Keller:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
}
?>
</tr>
<tr>
<td>Heizart:</td><td colspan="3"><?php echo $nt1[Heizart]; ?></td>
</tr>
<tr>
<td>Waschmaschine im:</td><td colspan="3"><?php echo $nt1[WaschOrt]; ?></td>
</tr>
<tr>
<td>TV-Anschluss:</td><td colspan="3"><?php echo $nt1[TV]; ?></td>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
<tr>
<th colspan="4">Ausstattung au&szlig;en</th>
</tr>
<tr>
<?php
$a = true;
if ('1' == $nt1[Garage]) {
echo "<td>Garage:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[StellPl]) {
echo "<td>Stellplatz:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[Terrasse]) {
echo "<td>Terrasse:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[Balkon]) {
echo "<td>Balkon:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[Garten]) {
echo "<td>Garten:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
}
?>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
<tr>
<th colspan="4">Ausstattung</th>
</tr>
<tr>
<td colspan="4"><?php echo nl2br($nt1[Ausstatt]); ?></td>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
<tr>
<th colspan="4">Sonstiges</th>
</tr>
<tr>
<td colspan="4"><?php echo nl2br($nt1[Sonst]); ?></td>
</tr>
</table><br />
<p><b>Provision: 2 Kaltmieten zuz&uuml;glich gesetzlicher MwSt.</b></p>

124
inhalte/gewerbe/gew_std.php Normal file
View File

@@ -0,0 +1,124 @@
<h1>Immobilien Gewerbe</h1>
<h2>Bitte wählen Sie die gewünschte Kategorie</h2>
<?php
$sqlr = 'SELECT Kurz FROM ObR WHERE Wert = "on" AND Sektion = "gewerbe";';
$resultr = $db->query($sqlr);
while ($ntr = $resultr->fetch_assoc()) {
if ("bp" == $ntr['Kurz']) {
$sql1 = 'SELECT ID FROM objekte WHERE (O_TYP = "Büro" OR O_TYP = "Praxis") AND Aktiv = 1 ORDER BY ID ASC';
$result1 = $db->query($sql1);
$anzahl1 = $result1->num_rows;
$nt1 = $result1->fetch_assoc();
echo "<a href=\"index.php?section=gewerbe&t=bp\" class=\"nounder\">\n";
echo "<div class=\"haupt\">\n";
echo "<table> \n";
echo " <colgroup>\n";
echo " <col width=\"100px\" />\n";
echo " <col width=\"320px\" />\n";
echo " </colgroup>\n";
echo " <tr>\n";
echo " <td rowspan=\"2\">\n";
$file = "img/objekte/".$nt1['ID']."_1.jpg";
if (file_exists($file)) {
echo "<img src=\"img/objekte/".$nt1['ID']."_1.jpg\" width=\"80px\" height=\"60px\" />\n";
}
echo "</td>\n";
echo " <td><h1>Büros / Praxen</h1></td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td><h2>Zur Zeit haben wir $anzahl1 Objekte</h2></td>\n";
echo " </tr>\n";
echo "</table>\n";
echo "</div>\n";
echo "</a>\n";
} elseif ("ei" == $ntr['Kurz']) {
$sql2 = 'SELECT ID FROM objekte WHERE (O_TYP = "Einzelhandel" OR O_TYP = "Industrie") AND Aktiv = 1 ORDER BY ID ASC';
$result2 = $db->query($sql2);
$anzahl2 = $result2->num_rows;
$nt2 = $result2->fetch_assoc();
echo "<a href=\"index.php?section=gewerbe&t=ei\" class=\"nounder\">\n";
echo "<div class=\"haupt\">\n";
echo "<table> \n";
echo " <colgroup>\n";
echo " <col width=\"100px\" />\n";
echo " <col width=\"320px\" />\n";
echo " </colgroup>\n";
echo " <tr>\n";
echo " <td rowspan=\"2\">\n";
$file = "img/objekte/".$nt2['ID']."_1.jpg";
if (file_exists($file)) {
echo "<img src=\"img/objekte/".$nt2['ID']."_1.jpg\" width=\"80px\" height=\"60px\" />\n";
}
echo "</td>\n";
echo " <td><h1>Einzelhandel / Industrie</h1></td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td><h2>Zur Zeit haben wir $anzahl2 Objekte</h2></td>\n";
echo " </tr>\n";
echo "</table>\n";
echo "</div>\n";
echo "</a>\n";
} elseif ("gh" == $ntr['Kurz']) {
$sql3 = 'SELECT ID FROM objekte WHERE (O_TYP = "Gastronomie" OR O_TYP = "Hotel") AND Aktiv = 1 ORDER BY ID ASC';
$result3 = $db->query($sql3);
$anzahl3 = $result3->num_rows;
$nt3 = $result3->fetch_assoc();
echo "<a href=\"index.php?section=gewerbe&t=gh\" class=\"nounder\">\n";
echo "<div class=\"haupt\">\n";
echo "<table> \n";
echo " <colgroup>\n";
echo " <col width=\"100px\" />\n";
echo " <col width=\"320px\" />\n";
echo " </colgroup>\n";
echo " <tr>\n";
echo " <td rowspan=\"2\">\n";
$file = "img/objekte/".$nt3['ID']."_1.jpg";
if (file_exists($file)) {
echo "<img src=\"img/objekte/".$nt3['ID']."_1.jpg\" width=\"80px\" height=\"60px\" />\n";
}
echo "</td>\n";
echo " <td><h1>Gastronomie / Hotels</h1></td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td><h2>Zur Zeit haben wir $anzahl3 Objekte</h2></td>\n";
echo " </tr>\n";
echo "</table>\n";
echo "</div>\n";
echo "</a>\n";
} elseif ("mf" == $ntr['Kurz']) {
$sql4 = 'SELECT ID FROM objekte WHERE O_TYP = "Multi" AND Aktiv = 1 ORDER BY ID ASC';
$result4 = $db->query($sql4);
$anzahl4 = $result4->num_rows;
$nt4 = $result4->fetch_assoc();
echo "<a href=\"index.php?section=gewerbe&t=mf\" class=\"nounder\">\n";
echo "<div class=\"haupt\">\n";
echo "<table> \n";
echo " <colgroup>\n";
echo " <col width=\"100px\" />\n";
echo " <col width=\"320px\" />\n";
echo " </colgroup>\n";
echo " <tr>\n";
echo " <td rowspan=\"2\">\n";
$file = "img/objekte/".$nt4['ID']."_1.jpg";
if (file_exists($file)) {
echo "<img src=\"img/objekte/".$nt4['ID']."_1.jpg\" width=\"80px\" height=\"60px\" />\n";
}
echo "</td>\n";
echo " <td><h1>Multifunktionsobjekte</h1></td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td><h2>Zur Zeit haben wir $anzahl4 Objekte</h2></td>\n";
echo " </tr>\n";
echo "</table>\n";
echo "</div>\n";
echo "</a>\n";
}
}
?>

184
inhalte/gewerbe/gh.php Normal file
View File

@@ -0,0 +1,184 @@
<?php
$a = true;
$b = true;
$filter = "(O_TYP = \"Gastronomie - Miete\" OR O_TYP = \"Gastronomie - Kauf\" OR O_TYP = \"Hotel - Miete\" OR O_TYP = \"Hotel - Kauf\") AND Aktiv = 1 ";
if (!isset($_GET[obj])) {
if (isset($_POST['formaction'])) {
if (("" == $_POST['Zvon']) AND ("" == $_POST['Zbis'])) {
}
elseif (("" !== $_POST['Zvon']) AND ("" == $_POST['Zbis'])) {
$filter = $filter. "AND Zimmer >= ".$_POST['Zvon']." ";
$zimmer = "mehr als ".$_POST['Zvon']." Zimmer";
}
elseif (("" == $_POST['Zvon']) AND ("" !== $_POST['Zbis'])) {
$filter = $filter. "AND Zimmer <= ".$_POST['Zbis']." ";
$zimmer = "bis ".$_POST['Zbis']." Zimmer";
}
else {
$filter = $filter. "AND Zimmer BETWEEN ".$_POST['Zvon']." AND ".$_POST['Zbis']." ";
$zimmer = $_POST['Zvon']." bis ".$_POST['Zbis']." Zimmer";
}
if (("" == $_POST['Wvon']) AND ("" == $_POST['Wbis'])) {
}
elseif (("" !== $_POST['Wvon']) AND ("" == $_POST['Wbis'])) {
$filter = $filter. "AND WohnF >= ".$_POST['Wvon']." ";
$wohn = "mehr als ".$_POST['Wvon']." m&sup2;";
}
elseif (("" == $_POST['Wvon']) AND ("" !== $_POST['Wbis'])) {
$filter = $filter. "AND WohnF <= ".$_POST['Wbis']." ";
$wohn = "bis ".$_POST['Wbis']." m&sup2;";
}
else {
$filter = $filter. "AND WohnF BETWEEN ".$_POST['Wvon']." AND ".$_POST['Wbis']." ";
$wohn = $_POST['Wvon']." bis ".$_POST['Wbis']." m&sup2;";
}
if (("" == $_POST['Kvon']) AND ("" == $_POST['Kbis'])) {
}
elseif (("" !== $_POST['Kvon']) AND ("" == $_POST['Kbis'])) {
$filter = $filter. "AND Mkalt >= ".$_POST['Kvon']." ";
$kalt = "mehr als ".$_POST['Kvon']." EUR";
}
elseif (("" == $_POST['Kvon']) AND ("" !== $_POST['Kbis'])) {
$filter = $filter. "AND Mkalt <= ".$_POST['Kbis']." ";
$kalt = "bis ".$_POST['Kbis']." EUR";
}
else {
$filter = $filter. "AND Mkalt BETWEEN ".$_POST['Kvon']." AND ".$_POST['Kbis']." ";
$kalt = $_POST['Kvon']." bis ".$_POST['Kbis']." EUR";
}
}
echo "<h1>Gastronomie und Hotels</h1>\n";
$sql = 'SELECT ID, O_TYP, Kurz, Zimmer, WohnF, Ort, Mkalt, Garage, StellPl, Terrasse, Balkon, Garten FROM objekte WHERE '.$filter.' ORDER BY ID ASC';
$result = $db->query($sql);
$anzahl = $result->num_rows;
echo "<form class=\"suche\" action=\"index.php?section=gewerbe&amp;t=gh\" method=\"post\">\n";
echo "<table>\n";
echo " <colgroup>\n";
echo " <col width=\"97px\" />\n";
echo " <col width=\"80px\" />\n";
echo " <col width=\"37px\" />\n";
echo " <col width=\"80px\" />\n";
echo " <col width=\"154px\" />\n";
echo " <col width=\"234px\" />\n";
echo " </colgroup>\n";
echo " <tr>\n";
echo " <th colspan=\"5\">Suchkriterien</th>\n";
if (1 !== $anzahl) {
echo " <th>$anzahl Objekte im Angebot</th>\n";
}
else {
echo " <th>$anzahl Objekt im Angebot</th>\n";
}
echo " </tr>\n";
echo " <tr>\n";
echo " <td>Zimmer:</td>\n";
echo " <td><input type=\"text\" name=\"Zvon\" size=\"4\" /></td>\n";
echo " <td>bis</td>\n";
echo " <td><input type=\"text\" name=\"Zbis\" size=\"4\" /></td>\n";
echo " <td></td>\n";
if (isset($_POST['formaction'])) {
echo " <td>mit folgenden Kriterien:</td>\n";
}
echo " </tr>\n";
echo " <tr>\n";
echo " <td>Nutzfläche:</td>\n";
echo " <td><input type=\"text\" name=\"Wvon\" size=\"4\" /></td>\n";
echo " <td>bis</td>\n";
echo " <td><input type=\"text\" name=\"Wbis\" size=\"4\" /></td>\n";
echo " <td>m&sup2;</td>\n";
echo " <td>$zimmer</td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td colspan=\"5\"><input type=\"submit\" name=\"formaction\" value=\"Suchen\" /></td>\n";
echo " <td>$wohn</td>\n";
echo " </tr>\n";
echo "</table>\n";
echo "<br />\n";
echo "</form>\n";
echo "<br />\n";
echo "<table class=\"overview\">\n";
echo " <colgroup>\n";
echo " <col span=\"6\" width=\"117\" />\n";
echo " </colgroup>\n";
echo " <tr>\n";
echo " <th style=\"-moz-border-radius-topleft: 3px; -moz-border-radius-bottomleft: 3px; -khtml-border-radius-topleft: 3px; -khtml-border-radius-bottomleft: 3px;\" >&nbsp;</th>\n";
echo " <th>Zimmer</th>\n";
echo " <th>Nutzfläche</th>\n";
echo " <th>Kaltmiete /<br />Kaufpreis</th>\n";
echo " <th style=\"-moz-border-radius-topright: 3px; -moz-border-radius-bottomright: 3px; -khtml-border-radius-topright: 3px; -khtml-border-radius-bottomright: 3px;\" colspan=\"2\">Ausstattung</th>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td colspan=\"6\"><hr class=\"noDisplay\" /> &nbsp;</td>\n";
echo " <tr>\n";
while ($nt = $result->fetch_assoc()) {
if (('Gastronomie - Kauf' == $nt[O_TYP]) OR ('Hotel - Kauf' == $nt[O_TYP])) {
$link = "<a href=\"index.php?section=gewerbe&t=ghk&obj=".$nt[ID]."\">";
}
else {
$link = "<a href=\"index.php?section=gewerbe&t=ghm&obj=".$nt[ID]."\">";
}
echo " <tr>\n";
echo " <td rowspan=\"4\">$link<img src=\"img/objekte/$nt[ID]_1.jpg\" width=\"80px\" height=\"60\" /></a></td>\n";
echo " <td colspan=\"3\"><div style=\"width: 320px; height: 17px; overflow: hidden;\">$link<b>$nt[Kurz]</b></a></div></td>\n";
if ('1' == $nt[Balkon]) {
echo " <td><img src=\"img/balkon.png\" alt=\"Balkon\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
if ('1' == $nt[Terrasse]) {
echo " <td><img src=\"img/terrasse.png\" alt=\"Terrasse\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
echo " </tr>\n";
echo " <tr>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td>$nt[Zimmer]</td>\n";
echo " <td>$nt[WohnF] m&sup2;</td>\n";
echo " <td>$nt[Mkalt] &euro;</td>\n";
if ('1' == $nt[Garten]) {
echo " <td><img src=\"img/garten.png\" alt=\"Garten\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
if ('1' == $nt[Garage]) {
echo " <td><img src=\"img/garage.png\" alt=\"Garage\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
echo " </tr>\n";
echo " <tr>\n";
echo " <td colspan=\"2\">$nt[Ort]</td>\n";
if (('Gastronomie - Kauf' == $nt[O_TYP]) OR ('Hotel - Kauf' == $nt[O_TYP])) {
echo " <td style=\"color:#00f;\">Kauf</td>\n";
}
else {
echo " <td style=\"color:#00f;\">Miete</td>\n";
}
if ('1' == $nt[StellPl]) {
echo " <td><img src=\"img/ebk.png\" alt=\"Balkon\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
echo " </tr>\n";
echo " <tr>\n";
echo " <td colspan=\"6\"><hr /></td>\n";
echo " </tr>\n";
}
echo "</table>\n";
} else {
include "inhalte/gewerbe/bpobj.php";
}
?>

331
inhalte/gewerbe/ghobj.php Normal file
View File

@@ -0,0 +1,331 @@
<?php
$a = true;
$b = true;
$sql1="SELECT * FROM objekte WHERE ID = '$_GET[obj]' ";
$result1 = $db->query($sql1);
$nt1 = $result1->fetch_assoc();
if ("0" !== $nt1['TID']) {
$sql2="SELECT ID, Vorname, Nachname, Telefon, EMail FROM Team WHERE ID = ".$nt1['TID']." ";
}
else {
$sql2="SELECT Firma AS Vorname, Telefon, EMail FROM Firma WHERE ID = 2 ";
}
$result2 = $db->query($sql2);
$nt2 = $result2->fetch_assoc();
echo "<h2 align=\"right\"><span style=\"float:left;\">$nt1[Kurz]</span>Objekt-Nr: $nt1[ID]</h2>\n";
if (isset($_GET['f'])) {
$pic = "img/objekte/".$_GET['obj']."_".$_GET['f'].".jpg";
}
?>
<table class="uebersicht">
<colgroup>
<col width="120" />
<col width="80" />
<col width="120" />
<col width="150" />
<col width="150" />
<col width="80" />
</colgroup>
<tr>
<td colspan="6"><hr style="margin-top: 0px; margin-left: -5px; margin-right: -5px;"/></td>
</tr>
<tr>
<th colspan="4">Übersicht</th>
<th colspan="2">Kontakt</th>
</tr>
<tr>
<td>Zimmer:</td><td><?php echo $nt1[Zimmer]; ?></td>
<?php
if ('1' == $nt1[Balkon]) {
echo " <td><img src=\"img/balkon.png\" alt=\"Balkon\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
if ('1' == $nt1[Terrasse]) {
echo " <td><img src=\"img/terrasse.png\" alt=\"Terrasse\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
?>
<?php echo "<td>$nt2[Vorname] $nt2[Nachname] </td><td rowspan=\"3\">\n";
if ("0" !== $nt1[TID]) {
echo "<img src=\"img/team/$nt2[ID].jpg\" width=\"80px\"></td>\n";
}
?>
</tr>
<tr>
<td>Nutzfl&auml;che:</td><td><?php echo $nt1[WohnF]; ?> m&sup2;</td>
<?php
if ('1' == $nt1[Garten]) {
echo " <td><img src=\"img/garten.png\" alt=\"Garten\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
if ('1' == $nt1[Garage]) {
echo " <td><img src=\"img/garage.png\" alt=\"Garage\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
?>
<td><?php echo $nt2[Telefon]; ?></td>
</tr>
<tr>
<td>Kaltmiete:</td><td><?php echo $nt1[Mkalt]; ?> &euro;</td>
<?php
if ('1' == $nt1[StellPl]) {
echo " <td><img src=\"img/ebk.png\" alt=\"Balkon\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
?>
<td></td>
<td><?php echo $nt2[EMail]; ?></td>
</tr>
<tr>
<td colspan="6"><hr style="margin-bottom: 0px; margin-left: -5px; margin-right: -5px;"/></td>
</tr>
</table><br />
<table class="foto">
<colgroup>
<col width="440px" />
<col span="2" width="130px" />
</colgroup>
<tr>
<?php
for ($i = 1; $i <= 8; $i++) {
$file = "img/objekte/".$_GET['obj']."_".$i.".jpg";
if (("1" == $i) AND (isset($_GET['f']))) {
echo "<td rowspan=\"4\"><img src=$pic /></td>\n";
}
if (file_exists($file)) {
if ("" == $pic) {
$pic = $file;
echo "<td rowspan=\"4\"><img src=$file /></td>\n";
}
echo "<td style=\"text-align:right;\"><a href=\"index.php?section=gewerbe&t=ghm&obj=".$_GET['obj']."&f=$i\"><img src=$file width=\"100px\" height=\"75px\" /></a></td> \n";
if (!$a) {
echo "</tr>\n<tr>\n";
}
$a = ($a xor $b);
$count++;
}
}
for ($count; $count <7; $count++) {
echo "<td>&nbsp</td>\n";
if (!$a) {
echo "</tr>\n<tr>\n";
}
$a = ($a xor $b);
}
?>
</tr>
</table><br />
<table class="expose">
<colgroup>
<col width="200" />
<col width="150" />
<col width="200" />
<col width="150" />
</colgroup>
<tr>
<th colspan="4">Beschreibung</th>
</tr>
<tr>
<td colspan="4"><?php echo nl2br($nt1[Beschreibung]); ?></td>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
<tr>
<th colspan="4">Kosten</th>
</tr>
<tr>
<td>Kaution:</td>
<td><?php echo $nt1[Kaution]; ?></td>
<td>zzgl. Garage:</td>
<td><?php echo $nt1[GaraK]; ?> &euro;</td>
</tr>
<tr>
<td>Miete kalt:</td>
<td><?php echo $nt1[Mkalt]; ?> &euro;</td>
<td>zzgl. Stellplatz:</td>
<td><?php echo $nt1[StellK]; ?> &euro;</td>
</tr>
<tr>
<td>Miete warm:</td>
<td><?php echo $nt1[Mwarm]; ?> &euro;</td>
<td>Abl&ouml;se EBK:</td>
<td><?php echo $nt1[EBKK]; ?> &euro;</td>
</tr>
<tr>
<td>Nebenkosten:</td>
<td><?php echo $nt1[NebenK]; ?> &euro;</td>
<td>Sonstige Kosten:</td>
<td><?php echo $nt1[SonK]; ?> &euro;</td>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
<tr>
<th colspan="4">Auflagen</th>
</tr>
<tr>
<td colspan="4"><?php echo nl2br($nt1[Auflagen]); ?></td>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
<tr>
<th colspan="4">Ausstattung innen</th>
</tr>
<tr>
<?php
$a = true;
if ('1' == $nt1[EinbauK]) {
echo "<td>Einbauküche:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[Speise]) {
echo "<td>Speisekammer:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[BadeW]) {
echo "<td>Badewanne:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[DuschK]) {
echo "<td>Duschkabine:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[WCsep]) {
echo "<td>WC separat:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[WCbad]) {
echo "<td>WC im Bad:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[Abstell]) {
echo "<td>Abstellraum:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[DachB]) {
echo "<td>Dachboden:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[Keller]) {
echo "<td>Keller:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
}
?>
</tr>
<tr>
<td>Heizart:</td><td colspan="3"><?php echo $nt1[Heizart]; ?></td>
</tr>
<tr>
<td>Waschmaschine im:</td><td colspan="3"><?php echo $nt1[WaschOrt]; ?></td>
</tr>
<tr>
<td>TV-Anschluss:</td><td colspan="3"><?php echo $nt1[TV]; ?></td>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
<tr>
<th colspan="4">Ausstattung au&szlig;en</th>
</tr>
<tr>
<?php
$a = true;
if ('1' == $nt1[Garage]) {
echo "<td>Garage:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[StellPl]) {
echo "<td>Stellplatz:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[Terrasse]) {
echo "<td>Terrasse:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[Balkon]) {
echo "<td>Balkon:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[Garten]) {
echo "<td>Garten:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
}
?>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
<tr>
<th colspan="4">Ausstattung</th>
</tr>
<tr>
<td colspan="4"><?php echo nl2br($nt1[Ausstatt]); ?></td>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
<tr>
<th colspan="4">Sonstiges</th>
</tr>
<tr>
<td colspan="4"><?php echo nl2br($nt1[Sonst]); ?></td>
</tr>
</table><br />
<p><b>Provision: 2 Kaltmieten zuz&uuml;glich gesetzlicher MwSt.</b></p>

357
inhalte/gewerbe/kauf.php Normal file
View File

@@ -0,0 +1,357 @@
<?php
$a = true;
$b = true;
$sql1="SELECT * FROM objekte WHERE ID = '" . $_GET['obj'] . "' ";
$result1 = $db->query($sql1);
$nt1 = $result1->fetch_assoc();
$sql2="SELECT Firma AS Vorname, Telefon, EMail FROM Firma WHERE ID = 2 ";
$result2 = $db->query($sql2);
$nt2 = $result2->fetch_assoc();
echo "<h2>" . $nt1['Kurz'] . "<br />Objekt-Nr: " . $nt1['ID'] . "</h2>\n";
echo "<h2 style=\"float:left;\">" . $nt1['Art'] . "</h2>";
echo "<span style=\"float: right;\">\n";
echo " <a style=\"height: 24px; line-height: 24px; float:right;\" href=\"index.php?section=gewerbe&topic=gkauf&obj=".$_GET['obj']."&pdf=create\" target=\"_blank\"><img style=\"float:right;margin-right:10px;\" src=\"img/small_pdf.png\" alt=\"Expose zum Objekt als PDF anzeigen\" title=\"Expose zum Objekt als PDF anzeigen\" /></a>\n";
echo " <a style=\"height: 24px; line-height: 24px;float:right;\" href=\"index.php?section=gewerbe&topic=gkauf&obj=".$_GET['obj']."&pdf=create\" target=\"_blank\">PDF-Expose --></a>\n";
echo "</span><br style=\"clear:both;\" />\n";
if (isset($_GET['f'])) {
$pic = "img/objekte/".$_GET['obj']."_".$_GET['f'].".jpg";
}
else
{
$pic = '';
}
?>
<table class="uebersicht">
<colgroup>
<col width="130" />
<col width="110" />
<col width="120" />
<col width="130" />
<col width="130" />
<col width="70" />
</colgroup>
<tr>
<td colspan="6"><hr style="margin-top: 0px; margin-left: -5px; margin-right: -5px;"/></td>
</tr>
<tr>
<th colspan="4">Übersicht</th>
<th colspan="2">Kontakt</th>
</tr>
<tr>
<td>Nutzfläche:</td><td colspan="3"><?php echo $nt1['WohnF']; ?> m&sup2;</td>
<td colspan="2"><?php echo fnc_getUsernameById ( $nt1['TID'], 'welcome' ); ?></td><td rowspan="3">
</tr>
<tr>
<td>Kaufpreis:</td><td colspan="3"><?php echo number_format ( $nt1['Mkalt'], 0, ',', '.' ); ?> &euro;</td>
<td colspan="2"><?php echo $nt2['Telefon']; ?></td>
</tr>
<tr>
<td></td><td colspan="3"></td>
<td colspan="2"><?php echo $nt2['EMail']; ?></td>
</tr>
<tr>
<td colspan="6"><hr style="margin-bottom: 0px; margin-left: -5px; margin-right: -5px;"/></td>
</tr>
</table><br />
<table class="foto">
<colgroup>
<col width="480px" />
<col span="2" width="110px" />
</colgroup>
<tr>
<?php
$count = 0;
for ( $i = 1; $i < 11; $i++ )
{
$file = "img/objekte/".$_GET['obj']."_".$i.".jpg";
if ( ( "1" == $i ) AND ( isset ( $_GET['f'] ) ) )
{
echo "<td rowspan=\"5\"><img id=\"showImg\" src=\"" . $pic . "?ts=" . date ( 'YmdHis' ) . "\" title=\"" .$nt1['Foto' . $i ] . "\" alt=\"" . $nt1[ 'Foto' . $i ] . "\" /></td>\n";
}
if ( file_exists ( $file ) )
{
if ( "" == $pic )
{
$pic = $file;
echo "<td rowspan=\"5\"><img id=\"showImg\" src=\"" . $file . "?ts=" . date ( 'YmdHis' ) . "\" title=\"" . $nt1['Foto' . $i ] . "\" alt=\"" . $nt1['Foto' . $i ] . "\" /></td>\n";
}
echo "<td style=\"text-align:right;\"><img style=\"cursor:pointer;\" onclick=\"document.getElementById('showImg').setAttribute('src' , this.getAttribute('src'));document.getElementById('showImg').setAttribute('title' , this.getAttribute('title'));\" src=\"" . $file . "?ts=" . date ( 'YmdHis' ) . "\" title=\"" . $nt1['Foto' . $i ] . "\" alt=\"" . $nt1['Foto' . $i ] . "\" width=\"100px\" height=\"75px\" /></td>\n";
if ( !$a )
{
echo "</tr>\n<tr>\n";
}
$a = ( $a xor $b );
$count++;
}
}
for ( $count; $count < 11; $count++ )
{
echo "<td>&nbsp</td>\n";
if ( !$a )
{
echo "</tr>\n<tr>\n";
}
$a = ( $a xor $b );
}
?>
</tr>
</table><br />
<table class="expose">
<colgroup>
<col width="200" />
<col width="150" />
<col width="200" />
<col width="150" />
</colgroup>
<tr>
<th colspan="4">Beschreibung</th>
</tr>
<tr>
<td colspan="4"><?php echo nl2br($nt1['OBeschreibung']); ?><br />&nbsp;<br /></td>
</tr>
<tr>
<?php
if ( 'keineAngabe' == $nt1['Zustand'] )
{
echo "<td colspan=\"2\"></td>";
}
else
{
echo "<td>Zustand:</td><td>" . $nt1['Zustand'] . "</td>";
}
if ( 'keineAngabe' == $nt1['Quali'] )
{
echo "<td colspan=\"2\"></td>";
}
else
{
echo "<td>Qualität der Ausstattung:</td><td>" . $nt1['Quali'] . "</td>";
}
?>
</tr>
<tr>
<td>Baujahr:</td><td><?php echo $nt1['Baujahr']; ?></td><td>Modernisiert:</td><td><?php echo $nt1['Modern']; ?></td>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
<tr>
<th colspan="4">Kosten</th>
</tr>
<?php
if ( '1' == $nt['ProvisionsPflichtig'] )
{
?>
<tr>
<td>Provision:</td>
<td colspan="3"><?php echo $nt1['Provision']; ?></td>
</tr>
<tr>
<td>Provisionshinweis:</td>
<td colspan="3"><?php echo $nt1['ProvisionsHinweis']; ?></td>
</tr>
<?php
}
?>
<tr>
<td>Kaufpreis:</td>
<td><?php echo number_format ( $nt1['Mkalt'], 0, ',', '.' ); ?> &euro;</td>
<td>zzgl. Stellplatz:</td>
<td><?php echo number_format ( $nt1['StellK'], 0, ',', '.' ); ?> &euro;</td>
</tr>
<tr>
<td>Nebenkosten:</td>
<td><?php echo number_format ( $nt1['NebenK'], 0, ',', '.' ); ?> &euro;</td>
<td>Sonstige Kosten:</td>
<td><?php echo number_format ( $nt1['SonK'], 0, ',', '.' ); ?> &euro;</td>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
<tr>
<th colspan="4">Lage</th>
</tr>
<tr>
<td>Fussweg öff. Verkehrsmitteln</td>
<td><?php echo $nt1['FusswegOeNV']; ?> Min.</td>
<td>Fahrzeit HBF</td>
<td><?php echo $nt1['FahrBHF']; ?> Min.</td>
</tr>
<tr>
<td>Fahrzeit BAB</td>
<td><?php echo $nt1['FahrBAB']; ?> Min.</td>
<td>Fahrzeit Flughafen</td>
<td><?php echo $nt1['Fahrflug']; ?> Min.<br />&nbsp;<br /></td>
</tr>
<tr>
<td colspan="4"> <?php echo nl2br( $nt1['Lage'] ); ?></td>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
<tr>
<th colspan="4">Ausstattung innen</th>
</tr>
<tr>
<?php
$a = true;
if ('1' == $nt1['EinbauK']) {
echo "<td>Einbauküche:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1['Speise']) {
echo "<td>Speisekammer:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1['BadeW']) {
echo "<td>Badewanne:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1['DuschK']) {
echo "<td>Duschkabine:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1['WCsep']) {
echo "<td>WC separat:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1['WCbad']) {
echo "<td>WC im Bad:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1['Abstell']) {
echo "<td>Abstellraum:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1['DachB']) {
echo "<td>Dachboden:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1['Keller']) {
echo "<td>Keller:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
}
?>
</tr>
<tr>
<td>Heizart:</td><td colspan="3"><?php echo $nt1['Heizart']; ?></td>
</tr>
<?php
if ( 'keineAngabe' != $nt1['EnerTyp'] )
{
?>
<tr>
<td>Energieausweistyp:</td><td colspan="3"><?php echo $nt1['EnerTyp']; ?></td>
</tr>
<tr>
<td>Verbrauchskennwert:</td><td colspan="3"><?php echo $nt1['EnerVKW']; ?></td>
</tr>
<tr>
<td>Warmwasser enthalten:</td><td colspan="3"><?php echo ( '1' == $nt1['EnerWWEnt'] ) ? "<img src=\"img/1.png\" alt=\"ja\" />" : "<img src=\"img/0.png\" alt=\"nein\" />"; ?></td>
</tr>
<?php
}
?>
<tr>
<td colspan="4">&nbsp;</td>
</tr>
<tr>
<th colspan="4">Ausstattung au&szlig;en</th>
</tr>
<tr>
<?php
$a = true;
if ('1' == $nt1['Garage']) {
echo "<td>Garage:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1['StellPl']) {
echo "<td>Stellplatz:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1['Terrasse']) {
echo "<td>Terrasse:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1['Balkon']) {
echo "<td>Balkon:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1['Garten']) {
echo "<td>Garten:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
}
?>
</tr>
<tr>
<th colspan="4">&nbsp;</th>
</tr>
<tr>
<th colspan="4">Ausstattung</th>
</tr>
<tr>
<td colspan="4"><?php echo nl2br($nt1['Ausstatt']); ?></td>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
<tr>
<th colspan="4">Auflagen</th>
</tr>
<tr>
<td colspan="4"><?php echo nl2br($nt1['Auflagen']); ?></td>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
<tr>
<th colspan="4">Sonstiges</th>
</tr>
<tr>
<td colspan="4"><?php echo nl2br($nt1['Sonstiges']); ?></td>
</tr>
</table><br />

184
inhalte/gewerbe/mf.php Normal file
View File

@@ -0,0 +1,184 @@
<?php
$a = true;
$b = true;
$filter = "(O_TYP = \"Multi - Miete\" OR O_TYP = \"Multi - Kauf\") AND Aktiv = 1 ";
if (!isset($_GET[obj])) {
if (isset($_POST['formaction'])) {
if (("" == $_POST['Zvon']) AND ("" == $_POST['Zbis'])) {
}
elseif (("" !== $_POST['Zvon']) AND ("" == $_POST['Zbis'])) {
$filter = $filter. "AND Zimmer >= ".$_POST['Zvon']." ";
$zimmer = "mehr als ".$_POST['Zvon']." Zimmer";
}
elseif (("" == $_POST['Zvon']) AND ("" !== $_POST['Zbis'])) {
$filter = $filter. "AND Zimmer <= ".$_POST['Zbis']." ";
$zimmer = "bis ".$_POST['Zbis']." Zimmer";
}
else {
$filter = $filter. "AND Zimmer BETWEEN ".$_POST['Zvon']." AND ".$_POST['Zbis']." ";
$zimmer = $_POST['Zvon']." bis ".$_POST['Zbis']." Zimmer";
}
if (("" == $_POST['Wvon']) AND ("" == $_POST['Wbis'])) {
}
elseif (("" !== $_POST['Wvon']) AND ("" == $_POST['Wbis'])) {
$filter = $filter. "AND WohnF >= ".$_POST['Wvon']." ";
$wohn = "mehr als ".$_POST['Wvon']." m&sup2;";
}
elseif (("" == $_POST['Wvon']) AND ("" !== $_POST['Wbis'])) {
$filter = $filter. "AND WohnF <= ".$_POST['Wbis']." ";
$wohn = "bis ".$_POST['Wbis']." m&sup2;";
}
else {
$filter = $filter. "AND WohnF BETWEEN ".$_POST['Wvon']." AND ".$_POST['Wbis']." ";
$wohn = $_POST['Wvon']." bis ".$_POST['Wbis']." m&sup2;";
}
if (("" == $_POST['Kvon']) AND ("" == $_POST['Kbis'])) {
}
elseif (("" !== $_POST['Kvon']) AND ("" == $_POST['Kbis'])) {
$filter = $filter. "AND Mkalt >= ".$_POST['Kvon']." ";
$kalt = "mehr als ".$_POST['Kvon']." EUR";
}
elseif (("" == $_POST['Kvon']) AND ("" !== $_POST['Kbis'])) {
$filter = $filter. "AND Mkalt <= ".$_POST['Kbis']." ";
$kalt = "bis ".$_POST['Kbis']." EUR";
}
else {
$filter = $filter. "AND Mkalt BETWEEN ".$_POST['Kvon']." AND ".$_POST['Kbis']." ";
$kalt = $_POST['Kvon']." bis ".$_POST['Kbis']." EUR";
}
}
echo "<h1>Multifunktionsobjekte</h1>\n";
$sql = 'SELECT ID, O_TYP, Kurz, Zimmer, WohnF, Ort, Mkalt, Garage, StellPl, Terrasse, Balkon, Garten FROM objekte WHERE '.$filter.' ORDER BY ID ASC';
$result = $db->query($sql);
$anzahl = $result->num_rows;
echo "<form class=\"suche\" action=\"index.php?section=gewerbe&amp;t=mf\" method=\"post\">\n";
echo "<table>\n";
echo " <colgroup>\n";
echo " <col width=\"97px\" />\n";
echo " <col width=\"80px\" />\n";
echo " <col width=\"37px\" />\n";
echo " <col width=\"80px\" />\n";
echo " <col width=\"154px\" />\n";
echo " <col width=\"234px\" />\n";
echo " </colgroup>\n";
echo " <tr>\n";
echo " <th colspan=\"5\">Suchkriterien</th>\n";
if (1 !== $anzahl) {
echo " <th>$anzahl Objekte im Angebot</th>\n";
}
else {
echo " <th>$anzahl Objekt im Angebot</th>\n";
}
echo " </tr>\n";
echo " <tr>\n";
echo " <td>Zimmer:</td>\n";
echo " <td><input type=\"text\" name=\"Zvon\" size=\"4\" /></td>\n";
echo " <td>bis</td>\n";
echo " <td><input type=\"text\" name=\"Zbis\" size=\"4\" /></td>\n";
echo " <td></td>\n";
if (isset($_POST['formaction'])) {
echo " <td>mit folgenden Kriterien:</td>\n";
}
echo " </tr>\n";
echo " <tr>\n";
echo " <td>Nutzfläche:</td>\n";
echo " <td><input type=\"text\" name=\"Wvon\" size=\"4\" /></td>\n";
echo " <td>bis</td>\n";
echo " <td><input type=\"text\" name=\"Wbis\" size=\"4\" /></td>\n";
echo " <td>m&sup2;</td>\n";
echo " <td>$zimmer</td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td colspan=\"5\"><input type=\"submit\" name=\"formaction\" value=\"Suchen\" /></td>\n";
echo " <td>$wohn</td>\n";
echo " </tr>\n";
echo "</table>\n";
echo "<br />\n";
echo "</form>\n";
echo "<br />\n";
echo "<table class=\"overview\">\n";
echo " <colgroup>\n";
echo " <col span=\"6\" width=\"117\" />\n";
echo " </colgroup>\n";
echo " <tr>\n";
echo " <th style=\"-moz-border-radius-topleft: 3px; -moz-border-radius-bottomleft: 3px; -khtml-border-radius-topleft: 3px; -khtml-border-radius-bottomleft: 3px;\" >&nbsp;</th>\n";
echo " <th>Zimmer</th>\n";
echo " <th>Nutzfläche</th>\n";
echo " <th>Kaltmiete /<br />Kaufpreis</th>\n";
echo " <th style=\"-moz-border-radius-topright: 3px; -moz-border-radius-bottomright: 3px; -khtml-border-radius-topright: 3px; -khtml-border-radius-bottomright: 3px;\" colspan=\"2\">Ausstattung</th>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td colspan=\"6\"><hr class=\"noDisplay\" /> &nbsp;</td>\n";
echo " <tr>\n";
while ($nt = $result->fetch_assoc()) {
if ('Multi - Kauf' == $nt[O_TYP]) {
$link = "<a href=\"index.php?section=gewerbe&t=mfk&obj=".$nt[ID]."\">";
}
else {
$link = "<a href=\"index.php?section=gewerbe&t=mfm&obj=".$nt[ID]."\">";
}
echo " <tr>\n";
echo " <td rowspan=\"4\">$link<img src=\"img/objekte/$nt[ID]_1.jpg\" width=\"80px\" height=\"60\" /></a></td>\n";
echo " <td colspan=\"3\"><div style=\"width: 320px; height: 17px; overflow: hidden;\">$link<b>$nt[Kurz]</b></a></div></td>\n";
if ('1' == $nt[Balkon]) {
echo " <td><img src=\"img/balkon.png\" alt=\"Balkon\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
if ('1' == $nt[Terrasse]) {
echo " <td><img src=\"img/terrasse.png\" alt=\"Terrasse\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
echo " </tr>\n";
echo " <tr>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td>$nt[Zimmer]</td>\n";
echo " <td>$nt[WohnF] m&sup2;</td>\n";
echo " <td>$nt[Mkalt] &euro;</td>\n";
if ('1' == $nt[Garten]) {
echo " <td><img src=\"img/garten.png\" alt=\"Garten\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
if ('1' == $nt[Garage]) {
echo " <td><img src=\"img/garage.png\" alt=\"Garage\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
echo " </tr>\n";
echo " <tr>\n";
echo " <td colspan=\"2\">$nt[Ort]</td>\n";
if ('Multi - Kauf' == $nt[O_TYP]) {
echo " <td style=\"color:#00f;\">Kauf</td>\n";
}
else {
echo " <td style=\"color:#00f;\">Miete</td>\n";
}
if ('1' == $nt[StellPl]) {
echo " <td><img src=\"img/ebk.png\" alt=\"Balkon\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
echo " </tr>\n";
echo " <tr>\n";
echo " <td colspan=\"6\"><hr /></td>\n";
echo " </tr>\n";
}
echo "</table>\n";
} else {
include "inhalte/gewerbe/bpobj.php";
}
?>

331
inhalte/gewerbe/mfobj.php Normal file
View File

@@ -0,0 +1,331 @@
<?php
$a = true;
$b = true;
$sql1="SELECT * FROM objekte WHERE ID = '$_GET[obj]' ";
$result1 = $db->query($sql1);
$nt1 = $result1->fetch_assoc();
if ("0" !== $nt1['TID']) {
$sql2="SELECT ID, Vorname, Nachname, Telefon, EMail FROM Team WHERE ID = ".$nt1['TID']." ";
}
else {
$sql2="SELECT Firma AS Vorname, Telefon, EMail FROM Firma WHERE ID = 2 ";
}
$result2 = $db->query($sql2);
$nt2 = $result2->fetch_assoc();
echo "<h2 align=\"right\"><span style=\"float:left;\">$nt1[Kurz]</span>Objekt-Nr: $nt1[ID]</h2>\n";
if (isset($_GET['f'])) {
$pic = "img/objekte/".$_GET['obj']."_".$_GET['f'].".jpg";
}
?>
<table class="uebersicht">
<colgroup>
<col width="120" />
<col width="80" />
<col width="120" />
<col width="150" />
<col width="150" />
<col width="80" />
</colgroup>
<tr>
<td colspan="6"><hr style="margin-top: 0px; margin-left: -5px; margin-right: -5px;"/></td>
</tr>
<tr>
<th colspan="4">Übersicht</th>
<th colspan="2">Kontakt</th>
</tr>
<tr>
<td>Zimmer:</td><td><?php echo $nt1[Zimmer]; ?></td>
<?php
if ('1' == $nt1[Balkon]) {
echo " <td><img src=\"img/balkon.png\" alt=\"Balkon\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
if ('1' == $nt1[Terrasse]) {
echo " <td><img src=\"img/terrasse.png\" alt=\"Terrasse\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
?>
<?php echo "<td>$nt2[Vorname] $nt2[Nachname] </td><td rowspan=\"3\">\n";
if ("0" !== $nt1[TID]) {
echo "<img src=\"img/team/$nt2[ID].jpg\" width=\"80px\"></td>\n";
}
?>
</tr>
<tr>
<td>Nutzfl&auml;che:</td><td><?php echo $nt1[WohnF]; ?> m&sup2;</td>
<?php
if ('1' == $nt1[Garten]) {
echo " <td><img src=\"img/garten.png\" alt=\"Garten\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
if ('1' == $nt1[Garage]) {
echo " <td><img src=\"img/garage.png\" alt=\"Garage\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
?>
<td><?php echo $nt2[Telefon]; ?></td>
</tr>
<tr>
<td>Kaltmiete:</td><td><?php echo $nt1[Mkalt]; ?> &euro;</td>
<?php
if ('1' == $nt1[StellPl]) {
echo " <td><img src=\"img/ebk.png\" alt=\"Balkon\" /></td>\n";
}
else {
echo "<td>&nbsp;</td>\n";
}
?>
<td></td>
<td><?php echo $nt2[EMail]; ?></td>
</tr>
<tr>
<td colspan="6"><hr style="margin-bottom: 0px; margin-left: -5px; margin-right: -5px;"/></td>
</tr>
</table><br />
<table class="foto">
<colgroup>
<col width="440px" />
<col span="2" width="130px" />
</colgroup>
<tr>
<?php
for ($i = 1; $i <= 8; $i++) {
$file = "img/objekte/".$_GET['obj']."_".$i.".jpg";
if (("1" == $i) AND (isset($_GET['f']))) {
echo "<td rowspan=\"4\"><img src=$pic /></td>\n";
}
if (file_exists($file)) {
if ("" == $pic) {
$pic = $file;
echo "<td rowspan=\"4\"><img src=$file /></td>\n";
}
echo "<td style=\"text-align:right;\"><a href=\"index.php?section=gewerbe&t=mfm&obj=".$_GET['obj']."&f=$i\"><img src=$file width=\"100px\" height=\"75px\" /></a></td> \n";
if (!$a) {
echo "</tr>\n<tr>\n";
}
$a = ($a xor $b);
$count++;
}
}
for ($count; $count <7; $count++) {
echo "<td>&nbsp</td>\n";
if (!$a) {
echo "</tr>\n<tr>\n";
}
$a = ($a xor $b);
}
?>
</tr>
</table><br />
<table class="expose">
<colgroup>
<col width="200" />
<col width="150" />
<col width="200" />
<col width="150" />
</colgroup>
<tr>
<th colspan="4">Beschreibung</th>
</tr>
<tr>
<td colspan="4"><?php echo nl2br($nt1[Beschreibung]); ?></td>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
<tr>
<th colspan="4">Kosten</th>
</tr>
<tr>
<td>Kaution:</td>
<td><?php echo $nt1[Kaution]; ?></td>
<td>zzgl. Garage:</td>
<td><?php echo $nt1[GaraK]; ?> &euro;</td>
</tr>
<tr>
<td>Miete kalt:</td>
<td><?php echo $nt1[Mkalt]; ?> &euro;</td>
<td>zzgl. Stellplatz:</td>
<td><?php echo $nt1[StellK]; ?> &euro;</td>
</tr>
<tr>
<td>Miete warm:</td>
<td><?php echo $nt1[Mwarm]; ?> &euro;</td>
<td>Abl&ouml;se EBK:</td>
<td><?php echo $nt1[EBKK]; ?> &euro;</td>
</tr>
<tr>
<td>Nebenkosten:</td>
<td><?php echo $nt1[NebenK]; ?> &euro;</td>
<td>Sonstige Kosten:</td>
<td><?php echo $nt1[SonK]; ?> &euro;</td>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
<tr>
<th colspan="4">Auflagen</th>
</tr>
<tr>
<td colspan="4"><?php echo nl2br($nt1[Auflagen]); ?></td>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
<tr>
<th colspan="4">Ausstattung innen</th>
</tr>
<tr>
<?php
$a = true;
if ('1' == $nt1[EinbauK]) {
echo "<td>Einbauküche:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[Speise]) {
echo "<td>Speisekammer:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[BadeW]) {
echo "<td>Badewanne:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[DuschK]) {
echo "<td>Duschkabine:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[WCsep]) {
echo "<td>WC separat:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[WCbad]) {
echo "<td>WC im Bad:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[Abstell]) {
echo "<td>Abstellraum:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[DachB]) {
echo "<td>Dachboden:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[Keller]) {
echo "<td>Keller:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
}
?>
</tr>
<tr>
<td>Heizart:</td><td colspan="3"><?php echo $nt1[Heizart]; ?></td>
</tr>
<tr>
<td>Waschmaschine im:</td><td colspan="3"><?php echo $nt1[WaschOrt]; ?></td>
</tr>
<tr>
<td>TV-Anschluss:</td><td colspan="3"><?php echo $nt1[TV]; ?></td>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
<tr>
<th colspan="4">Ausstattung au&szlig;en</th>
</tr>
<tr>
<?php
$a = true;
if ('1' == $nt1[Garage]) {
echo "<td>Garage:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[StellPl]) {
echo "<td>Stellplatz:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[Terrasse]) {
echo "<td>Terrasse:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[Balkon]) {
echo "<td>Balkon:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1[Garten]) {
echo "<td>Garten:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
}
?>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
<tr>
<th colspan="4">Ausstattung</th>
</tr>
<tr>
<td colspan="4"><?php echo nl2br($nt1[Ausstatt]); ?></td>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
<tr>
<th colspan="4">Sonstiges</th>
</tr>
<tr>
<td colspan="4"><?php echo nl2br($nt1[Sonst]); ?></td>
</tr>
</table><br />
<p><b>Provision: 2 Kaltmieten zuz&uuml;glich gesetzlicher MwSt.</b></p>

361
inhalte/gewerbe/miete.php Normal file
View File

@@ -0,0 +1,361 @@
<?php
$a = true;
$b = true;
$sql1="SELECT * FROM objekte WHERE ID = '" . $_GET['obj'] . "' ";
$result1 = $db->query($sql1);
$nt1 = $result1->fetch_assoc();
$sql2="SELECT Firma AS Vorname, Telefon, EMail FROM Firma WHERE ID = 2 ";
$result2 = $db->query($sql2);
$nt2 = $result2->fetch_assoc();
echo "<h2>" . $nt1['Kurz'] . "<br />Objekt-Nr: " . $nt1['ID'] . "</h2>\n";
echo "<h2 style=\"float:left;\">" . $nt1['Art'] . "</h2>";
echo "<span style=\"float: right;\">\n";
echo " <a style=\"height: 24px; line-height: 24px; float:right;\" href=\"index.php?section=gewerbe&topic=gmiete&obj=".$_GET['obj']."&pdf=create\" target=\"_blank\"><img style=\"float:right;margin-right:10px;\" src=\"img/small_pdf.png\" alt=\"Expose zum Objekt als PDF anzeigen\" title=\"Expose zum Objekt als PDF anzeigen\" /></a>\n";
echo " <a style=\"height: 24px; line-height: 24px;float:right;\" href=\"index.php?section=gewerbe&topic=gmiete&obj=".$_GET['obj']."&pdf=create\" target=\"_blank\">PDF-Expose --></a>\n";
echo "</span><br style=\"clear:both;\" />\n";
if (isset($_GET['f'])) {
$pic = "img/objekte/".$_GET['obj']."_".$_GET['f'].".jpg";
}
else
{
$pic = '';
}
?>
<table class="uebersicht">
<colgroup>
<col width="130" />
<col width="110" />
<col width="120" />
<col width="130" />
<col width="130" />
<col width="70" />
</colgroup>
<tr>
<td colspan="6"><hr style="margin-top: 0px; margin-left: -5px; margin-right: -5px;"/></td>
</tr>
<tr>
<th colspan="4">Übersicht</th>
<th colspan="2">Kontakt</th>
</tr>
<tr>
<td>Nutzfläche:</td><td colspan="3"><?php echo $nt1['WohnF']; ?> m&sup2;</td>
<td colspan="2"><?php echo fnc_getUsernameById ( $nt1['TID'], 'welcome' ); ?></td><td rowspan="3">
</tr>
<tr>
<td>Kaltmiete:</td><td colspan="3"><?php echo number_format ( $nt1['Mkalt'], 0, ',', '.' ); ?> &euro;</td>
<td colspan="2"><?php echo $nt2['Telefon']; ?></td>
</tr>
<tr>
<td>Nebenkosten:</td><td colspan="3"><?php echo $nt1['NebenK']; ?> &euro;</td>
<td colspan="2"><?php echo $nt2['EMail']; ?></td>
</tr>
<tr>
<td colspan="6"><hr style="margin-bottom: 0px; margin-left: -5px; margin-right: -5px;"/></td>
</tr>
</table><br />
<table class="foto">
<colgroup>
<col width="480px" />
<col span="2" width="110px" />
</colgroup>
<tr>
<?php
$count = 0;
for ( $i = 1; $i < 11; $i++ )
{
$file = "img/objekte/".$_GET['obj']."_".$i.".jpg";
if ( ( "1" == $i ) AND ( isset ( $_GET['f'] ) ) )
{
echo "<td rowspan=\"5\"><img id=\"showImg\" src=\"" . $pic . "?ts=" . date ( 'YmdHis' ) . "\" title=\"" .$nt1['Foto' . $i ] . "\" alt=\"" . $nt1[ 'Foto' . $i ] . "\" /></td>\n";
}
if ( file_exists ( $file ) )
{
if ( "" == $pic )
{
$pic = $file;
echo "<td rowspan=\"5\"><img id=\"showImg\" src=\"" . $file . "?ts=" . date ( 'YmdHis' ) . "\" title=\"" . $nt1['Foto' . $i ] . "\" alt=\"" . $nt1['Foto' . $i ] . "\" /></td>\n";
}
echo "<td style=\"text-align:right;\"><img style=\"cursor:pointer;\" onclick=\"document.getElementById('showImg').setAttribute('src' , this.getAttribute('src'));document.getElementById('showImg').setAttribute('title' , this.getAttribute('title'));\" src=\"" . $file . "?ts=" . date ( 'YmdHis' ) . "\" title=\"" . $nt1['Foto' . $i ] . "\" alt=\"" . $nt1['Foto' . $i ] . "\" width=\"100px\" height=\"75px\" /></td>\n";
if ( !$a )
{
echo "</tr>\n<tr>\n";
}
$a = ( $a xor $b );
$count++;
}
}
for ( $count; $count < 11; $count++ )
{
echo "<td>&nbsp</td>\n";
if ( !$a )
{
echo "</tr>\n<tr>\n";
}
$a = ( $a xor $b );
}
?>
</tr>
</table><br />
<table class="expose">
<colgroup>
<col width="200" />
<col width="150" />
<col width="200" />
<col width="150" />
</colgroup>
<tr>
<th colspan="4">Beschreibung</th>
</tr>
<tr>
<td colspan="4"><?php echo nl2br($nt1['OBeschreibung']); ?><br />&nbsp;<br /></td>
</tr>
<tr>
<?php
if ( 'keineAngabe' == $nt1['Zustand'] )
{
echo "<td colspan=\"2\"></td>";
}
else
{
echo "<td>Zustand:</td><td>" . $nt1['Zustand'] . "</td>";
}
if ( 'keineAngabe' == $nt1['Quali'] )
{
echo "<td colspan=\"2\"></td>";
}
else
{
echo "<td>Qualität der Ausstattung:</td><td>" . $nt1['Quali'] . "</td>";
}
?>
</tr>
<tr>
<td>Baujahr:</td><td><?php echo $nt1['Baujahr']; ?></td><td>Modernisiert:</td><td><?php echo $nt1['Modern']; ?></td>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
<tr>
<th colspan="4">Lage</th>
</tr>
<tr>
<td>Fussweg öff. Verkehrsmitteln</td>
<td><?php echo $nt1['FusswegOeNV']; ?> Min.</td>
<td>Fahrzeit HBF</td>
<td><?php echo $nt1['FahrBHF']; ?> Min.</td>
</tr>
<tr>
<td>Fahrzeit BAB</td>
<td><?php echo $nt1['FahrBAB']; ?> Min.</td>
<td>Fahrzeit Flughafen</td>
<td><?php echo $nt1['Fahrflug']; ?> Min.<br />&nbsp;<br /></td>
</tr>
<tr>
<td colspan="4"> <?php echo nl2br( $nt1['Lage'] ); ?></td>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
<tr>
<th colspan="4">Kosten</th>
</tr>
<?php
if ( '1' == $nt['ProvisionsPflichtig'] )
{
?>
<tr>
<td>Provision:</td>
<td colspan="3"><?php echo $nt1['Provision']; ?></td>
</tr>
<tr>
<td>Provisionshinweis:</td>
<td colspan="3"><?php echo $nt1['ProvisionsHinweis']; ?></td>
</tr>
<?php
}
?>
<tr>
<td>Kaution:</td>
<td colspan="3"><?php echo $nt1['Kaution']; ?></td>
</tr>
<tr>
<td>Miete kalt:</td>
<td><?php echo number_format ( $nt1['Mkalt'], 0, ',', '.' ); ?> &euro;</td>
<td>zzgl. Stellplatz:</td>
<td><?php echo number_format ( $nt1['StellK'], 0, ',', '.' ); ?> &euro;</td>
</tr>
<tr>
<td>Miete warm:</td>
<td><?php echo number_format ( $nt1['Mwarm'], 0, ',', '.' ); ?> &euro;</td>
<td>Nebenkosten:</td>
<td><?php echo number_format ( $nt1['NebenK'], 0, ',', '.' ); ?> &euro;</td>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
<tr>
<th colspan="4">Ausstattung innen</th>
</tr>
<tr>
<?php
$a = true;
if ('1' == $nt1['EinbauK']) {
echo "<td>Einbauküche:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1['Speise']) {
echo "<td>Speisekammer:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1['BadeW']) {
echo "<td>Badewanne:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1['DuschK']) {
echo "<td>Duschkabine:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1['WCsep']) {
echo "<td>WC separat:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1['WCbad']) {
echo "<td>WC im Bad:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1['Abstell']) {
echo "<td>Abstellraum:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1['DachB']) {
echo "<td>Dachboden:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1['Keller']) {
echo "<td>Keller:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
}
?>
</tr>
<tr>
<td>Heizart:</td><td colspan="3"><?php echo $nt1['Heizart']; ?></td>
</tr>
<?php
if ( 'keineAngabe' != $nt1['EnerTyp'] )
{
?>
<tr>
<td>Energieausweistyp:</td><td colspan="3"><?php echo $nt1['EnerTyp']; ?></td>
</tr>
<tr>
<td>Verbrauchskennwert:</td><td colspan="3"><?php echo $nt1['EnerVKW']; ?></td>
</tr>
<tr>
<td>Warmwasser enthalten:</td><td colspan="3"><?php echo ( '1' == $nt1['EnerWWEnt'] ) ? "<img src=\"img/1.png\" alt=\"ja\" />" : "<img src=\"img/0.png\" alt=\"nein\" />"; ?></td>
</tr>
<?php
}
?>
<tr>
<td colspan="4">&nbsp;</td>
</tr>
<tr>
<th colspan="4">Ausstattung au&szlig;en</th>
</tr>
<tr>
<?php
$a = true;
if ('1' == $nt1['Garage']) {
echo "<td>Garage:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1['StellPl']) {
echo "<td>Stellplatz:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1['Terrasse']) {
echo "<td>Terrasse:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1['Balkon']) {
echo "<td>Balkon:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
if ($a) {
echo "</tr>\n<tr>\n";
}
}
if ('1' == $nt1['Garten']) {
echo "<td>Garten:</td><td><img src=\"img/1.png\" alt=\"ja\" /></td> \n";
$a = ($a xor $b);
}
?>
</tr>
<tr>
<th colspan="4">&nbsp;</th>
</tr>
<tr>
<th colspan="4">Ausstattung</th>
</tr>
<tr>
<td colspan="4"><?php echo nl2br($nt1['Ausstatt']); ?></td>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
<tr>
<th colspan="4">Auflagen</th>
</tr>
<tr>
<td colspan="4"><?php echo nl2br($nt1['Auflagen']); ?></td>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
<tr>
<th colspan="4">Sonstiges</th>
</tr>
<tr>
<td colspan="4"><?php echo nl2br($nt1['Sonstiges']); ?></td>
</tr>
</table><br />