fhiiqm/form/anlage_form.inc.php
changeset 23 a382de56a8e4
parent 21 97dba0fe820c
child 26 3c1e3ac7089f
equal deleted inserted replaced
22:aae5b0ecc47b 23:a382de56a8e4
    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 Verantwortlichen geschieht durch Eingeben von<br />mindesten 2 Zeichen in das 'Verantwortlicher'-Feld.
    19 </td></tr>
    19 </td></tr>
    20 <tr><td class="bigger">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>
    44         <tr><td>Kategorie</td>
    44         <tr><td>Kategorie</td>
    45             <td valign="top">
    45             <td valign="top">
    46                  <select name="al[kat]" onchange="this.form.submit();">
    46                  <select name="al[kat]" onchange="this.form.submit();">
    47                 <?php 
    47                 <?php 
    48                     if ($al['kat'] == -1) $select = " selected "; else $select = "";
    48                     if ($al['kat'] == -1) $select = " selected "; else $select = "";
    49                     echo "<option $select value=\"-1\"></option>\n";
    49                     if (isset($kat) && $kat)
    50                     $sql = "SELECT al_kat_bez, al_kat_ID FROM `fhiiqm`.`A_Kategorie` ORDER BY 2";
    50                         $wher = " WHERE al_kat_ID = $kat"; 
       
    51                     else
       
    52                     { 
       
    53                         $wher = "";
       
    54                         echo "<option $select value=\"-1\"></option>\n";
       
    55                     }    
       
    56                     $sql = "SELECT al_kat_bez, al_kat_ID FROM `fhiiqm`.`A_Kategorie` $wher ORDER BY 2";
    51                     if ($result = $dbc->queryObjectArray($sql))
    57                     if ($result = $dbc->queryObjectArray($sql))
    52                     {
    58                     {
    53                         foreach ($result as $row)
    59                         foreach ($result as $row)
    54                         {   if (strlen($row->al_kat_ID) == 1) $katid =  "&nbsp;" . $row->al_kat_ID; else $katid = $row->al_kat_ID; 
    60                         {   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'])
    61                             if ($row->al_kat_ID == $al['kat'])
    61                 ?>
    67                 ?>
    62                 </select>            
    68                 </select>            
    63             </td>
    69             </td>
    64         </tr>
    70         </tr>
    65      <?php 
    71      <?php 
    66         if ($al["kat"] != 6) // Gasflaschen
    72 //        if ($al["kat"] != 6) // Gasflaschen
    67         {
    73         {
    68      ?>       
    74      ?>       
    69         <tr><td>Bef&auml;higungsgrad</td>
    75         <tr><td>Bef&auml;higungsgrad</td>
    70             <td valign="top">
    76             <td valign="top">
    71                  <select name="al[befg]">
    77                  <select name="al[befg]">