fhiiqm/form/raum_form.inc.php
changeset 23 a382de56a8e4
parent 14 32203b8f40ee
child 24 15f33315f045
equal deleted inserted replaced
22:aae5b0ecc47b 23:a382de56a8e4
    82                     }
    82                     }
    83             }
    83             }
    84             ?>
    84             ?>
    85             </select>
    85             </select>
    86         </td>
    86         </td>
       
    87     <tr>
       
    88         <td>Reinigungs-Typ</td>
       
    89         <td><select name="raum[reityp]">
       
    90             <?php 
       
    91                 if ($raum['reityp'] == -1) $select = " selected "; else $select = "";
       
    92                 echo "<option $select value=\"-1\"></option>\n";
       
    93                 $sql = "SELECT reinigung_typ_ID, reinigung_typ_bez FROM fhiiqm.Reinigung_Typ ORDER BY 1";
       
    94                 if ($result = $dbc->queryObjectArray($sql))
       
    95                 {
       
    96                     foreach ($result as $row)
       
    97                     {
       
    98                         if ($row->reinigung_typ_ID == $raum['reityp'])
       
    99     					   echo "<option selected value=\"$row->reinigung_typ_ID\">$row->reinigung_typ_ID: $row->reinigung_typ_bez</option>\n";
       
   100     				    else
       
   101     					   echo "<option value=\"$row->reinigung_typ_ID\">$row->reinigung_typ_ID: $row->reinigung_typ_bez</option>\n";
       
   102                     }
       
   103             }
       
   104             ?>
       
   105             </select>
       
   106         </td>
    87     </tr>
   107     </tr>
    88     <tr>
   108     <tr>
    89         <td>Raum-Fl&auml;che (m<sup>2</sup>)</td>
   109         <td>Raum-Fl&auml;che (m<sup>2</sup>)</td>
    90         <td><input name="raum[rflae]" type="text" size="10" maxlength="10" value="<?php echo $raum['rflae']; ?>"/>
   110         <td><input name="raum[rflae]" type="text" size="10" maxlength="10" value="<?php echo $raum['rflae']; ?>"/>
    91         </td>
   111         </td>