fhiiqm/form/raum_form.inc.php
changeset 23 a382de56a8e4
parent 14 32203b8f40ee
child 24 15f33315f045
--- a/fhiiqm/form/raum_form.inc.php	Thu Jan 12 11:41:22 2012 +0100
+++ b/fhiiqm/form/raum_form.inc.php	Mon Feb 06 13:44:00 2012 +0100
@@ -84,6 +84,26 @@
             ?>
             </select>
         </td>
+    <tr>
+        <td>Reinigungs-Typ</td>
+        <td><select name="raum[reityp]">
+            <?php 
+                if ($raum['reityp'] == -1) $select = " selected "; else $select = "";
+                echo "<option $select value=\"-1\"></option>\n";
+                $sql = "SELECT reinigung_typ_ID, reinigung_typ_bez FROM fhiiqm.Reinigung_Typ ORDER BY 1";
+                if ($result = $dbc->queryObjectArray($sql))
+                {
+                    foreach ($result as $row)
+                    {
+                        if ($row->reinigung_typ_ID == $raum['reityp'])
+    					   echo "<option selected value=\"$row->reinigung_typ_ID\">$row->reinigung_typ_ID: $row->reinigung_typ_bez</option>\n";
+    				    else
+    					   echo "<option value=\"$row->reinigung_typ_ID\">$row->reinigung_typ_ID: $row->reinigung_typ_bez</option>\n";
+                    }
+            }
+            ?>
+            </select>
+        </td>
     </tr>
     <tr>
         <td>Raum-Fl&auml;che (m<sup>2</sup>)</td>