fhiiqm/form/anlage_form.inc.php
changeset 20 5877137431e4
parent 19 33ee23fafd4d
child 21 97dba0fe820c
equal deleted inserted replaced
19:33ee23fafd4d 20:5877137431e4
    13     if (!$al["geb"]) $al["geb"]="A";
    13     if (!$al["geb"]) $al["geb"]="A";
    14 
    14 
    15 ?>
    15 ?>
    16 <div align="center">
    16 <div align="center">
    17 <table>
    17 <table>
    18 <tr><td class="bigger">Die Auswahl eines Anlagenverantwortlichen geschieht durch<br />Eingeben von mindesten 2 Zeichen in das Verantwortlicher-Feld.
    18 <tr><td class="bigger">Die Auswahl eines Anlagenverantwortlichen geschieht durch<br />Eingeben von mindesten 2 Zeichen in das 'Verantwortlicher'-Feld.
    19 </td></tr>
    19 </td></tr>
    20 <tr><td class="bigger"><div class="red">Achtung! </div>Umlaute wie '&auml;', '&uuml;', '&ouml;', '&szlig;' werden nicht gefunden, bitte benachbarte Zeichen eingeben.</td></tr>
    20 <tr><td class="bigger">Umlaute wie '&auml;', '&uuml;', '&ouml;', '&szlig;' werden nicht gefunden, bitte benachbarte Zeichen eingeben.</td></tr>
    21 <tr><td class="bigger">&nbsp;</td></tr>
    21 <tr><td class="bigger">&nbsp;</td></tr>
    22 </table>
    22 </table>
    23 </div>
    23 </div>
    24 <form action="<?php $_SERVER['PHP_SELF'] ?>" method="post" enctype="application/x-www-form-urlencoded" name="fanl"> 
    24 <form action="<?php $_SERVER['PHP_SELF'] ?>" method="post" enctype="application/x-www-form-urlencoded" name="fanl"> 
    25 <div align="center">
    25 <div align="center">
    49                     echo "<option $select value=\"-1\"></option>\n";
    49                     echo "<option $select value=\"-1\"></option>\n";
    50                     $sql = "SELECT al_kat_bez, al_kat_ID FROM `fhiiqm`.`A_Kategorie` ORDER BY 2";
    50                     $sql = "SELECT al_kat_bez, al_kat_ID FROM `fhiiqm`.`A_Kategorie` ORDER BY 2";
    51                     if ($result = $dbc->queryObjectArray($sql))
    51                     if ($result = $dbc->queryObjectArray($sql))
    52                     {
    52                     {
    53                         foreach ($result as $row)
    53                         foreach ($result as $row)
    54                         {   if (strlen($row->al_kat_ID) == 1) $katid =  $row->al_kat_ID . "&nbsp;&nbsp;"; else $katid = $row->al_kat_ID; 
    54                         {   if (strlen($row->al_kat_ID) == 1) $katid =  "&nbsp;" . $row->al_kat_ID; else $katid = $row->al_kat_ID; 
    55                             if ($row->al_kat_ID == $al['kat'])
    55                             if ($row->al_kat_ID == $al['kat'])
    56         					   echo "<option selected value=\"$row->al_kat_ID\">$katid: $row->al_kat_bez</option>\n";
    56         					   echo "<option selected value=\"$row->al_kat_ID\">$katid: $row->al_kat_bez</option>\n";
    57         				    else
    57         				    else
    58         					   echo "<option value=\"$row->al_kat_ID\">$katid: $row->al_kat_bez</option>\n";
    58         					   echo "<option value=\"$row->al_kat_ID\">$katid: $row->al_kat_bez</option>\n";
    59                         }
    59                         }
    61                 ?>
    61                 ?>
    62                 </select>            
    62                 </select>            
    63             </td>
    63             </td>
    64         </tr>
    64         </tr>
    65      <?php 
    65      <?php 
    66         if ($al["kat"] != 4)
    66         if ($al["kat"] != 6) // Gasflaschen
    67         {
    67         {
    68      ?>       
    68      ?>       
    69         <tr><td>Bef&auml;higungsgrad</td>
    69         <tr><td>Bef&auml;higungsgrad</td>
    70             <td valign="top">
    70             <td valign="top">
    71                  <select name="al[befg]">
    71                  <select name="al[befg]">