equal
deleted
inserted
replaced
|
1 <?php |
|
2 |
|
3 /** |
|
4 * @author Bettina Schwarzer, Fritz-Haber-Institut |
|
5 * @copyright 07/2011 |
|
6 * |
|
7 * Anlisten Raum - INSERT/UPDATE-Daten |
|
8 */ |
|
9 |
|
10 echo "<table>\n"; |
|
11 echo "<tr><td>Raum-Nr: </td><td>" . $raum['rnum'] . "<td></td></tr>\n"; |
|
12 echo "<tr><td>Raum-Bezeichnung: </td><td>" . $raum['rbez'] . "<td></td></tr>\n"; |
|
13 // Gebaeude |
|
14 $sql = "SELECT geb_ID, geb_name FROM Haus |
|
15 WHERE geb_ID = '" . $raum['geb'] . "'"; |
|
16 if ($result = $dbc->queryObjectArray($sql)) |
|
17 { |
|
18 foreach ($result as $row) |
|
19 echo "<tr><td>Haus: </td><td>" . $row->geb_ID . " - " . $row->geb_name . "</td></tr>\n"; |
|
20 } |
|
21 // Raumtyp |
|
22 $sql = "SELECT raumtyp_ID, raumtyp_bez FROM Raum_Typ |
|
23 WHERE raumtyp_ID = '" . $raum['rtyp'] . "'"; |
|
24 if ($result = $dbc->queryObjectArray($sql)) |
|
25 { |
|
26 foreach ($result as $row) |
|
27 echo "<tr><td>Raumtyp: </td><td>" . $row->raumtyp_bez . "</td></tr>\n"; |
|
28 } |
|
29 if ($raum["rflae"] == "NULL") $raum["rflae"] = " "; |
|
30 echo "<tr><td>Raum-Fläche (m<sup>2</sup>): </td><td>" . str_replace(".",",",$raum['rflae']) . "<td></td></tr>\n"; |
|
31 if (file_exists("raeume/$rfile")) |
|
32 echo "<tr><td>Dateibezeichnung Raumplan: </td><td><a href='raeume/$rfile'>" . $rfile. "</a></td></tr>\n"; |
|
33 else |
|
34 echo "<tr><td>Dateibezeichnung Raumplan: </td><td>$rfile</td></tr>\n"; |
|
35 echo "</table>\n"; |
|
36 |
|
37 |
|
38 ?> |