fhiiqm/form/ma_fkt_form.inc.php
changeset 9 f3ee378f9631
parent 7 d2fe4fb36670
child 10 f538f73ebc37
equal deleted inserted replaced
8:908abe8cec4d 9:f3ee378f9631
    23         <tr><td>Mitarbeiter *</td>
    23         <tr><td>Mitarbeiter *</td>
    24             <td valign="top"><input class="long20" type="text" name="fkt[persknr]" id="persknr" value="<?php echo $fkt['persknr']; ?>"/>
    24             <td valign="top"><input class="long20" type="text" name="fkt[persknr]" id="persknr" value="<?php echo $fkt['persknr']; ?>"/>
    25             </td>
    25             </td>
    26         </tr>
    26         </tr>
    27         <tr><td>Funktion *</td>
    27         <tr><td>Funktion *</td>
    28             <td valign="top"><input class="long20" type="text" name="fkt[func]" id="func" value="<?php echo $fkt['func']; ?>"/>
    28             <td valign="top">
       
    29                 <!--<input class="long20" type="text" name="fkt[func]" id="func" value="<?php echo $fkt['func']; ?>"/> -->
       
    30                 <select name="fkt[func]">
       
    31                 <?php 
       
    32                     $sql = "SELECT fkt_bez, fkt_ID FROM `fhiiqm`.`Funktion` ORDER BY 1";
       
    33                     if ($result = $dbc->queryObjectArray($sql))
       
    34                     {
       
    35                         foreach ($result as $row)
       
    36                         {
       
    37                             if ($row->fkt_ID == $fkt['func'])
       
    38         					   echo "<option selected value=\"$row->fkt_ID\">$row->fkt_bez</option>\n";
       
    39         				    else
       
    40         					   echo "<option value=\"$row->fkt_ID\">$row->fkt_bez</option>\n";
       
    41                         }
       
    42                 }
       
    43                 ?>
       
    44                 </select>            
    29             </td>
    45             </td>
    30         </tr>
    46         </tr>
    31         <tr><td>Geltungsbereich</td>
    47         <tr><td>Geltungsbereich</td>
    32             <td valign="top"><input class="long20" type="text" name="fkt[ber]" id="ber" maxlength="50" value="<?php echo $fkt['ber']; ?>"/>
    48             <td valign="top"><input class="long20" type="text" name="fkt[ber]" id="ber" maxlength="50" value="<?php echo $fkt['ber']; ?>"/>
    33             </td>
    49             </td>