fhiiqm/anlage_flist.php
changeset 28 8d8bce56918f
parent 24 15f33315f045
child 33 f1a8785434e4
equal deleted inserted replaced
27:d92bbe898f32 28:8d8bce56918f
   109         
   109         
   110         if (isset($fnum) && $fnum>1 && !$filter && !$subf)
   110         if (isset($fnum) && $fnum>1 && !$filter && !$subf)
   111         {
   111         {
   112             // Formular anzeigen fuer Filterbegriff
   112             // Formular anzeigen fuer Filterbegriff
   113             $text = $fields[$fnum];
   113             $text = $fields[$fnum];
       
   114             $azeil = array(10=>'10',20=>'20',25=>'25',50=>'50',100=>'100',9999=>'alle'); // Anzahl gezeigter rows
   114             echo "<form action=" . $_SERVER['PHP_SELF'] . " method='post' enctype='application/x-www-form-urlencoded' id='ffilter' name='ffilter' target='_self'>\n";
   115             echo "<form action=" . $_SERVER['PHP_SELF'] . " method='post' enctype='application/x-www-form-urlencoded' id='ffilter' name='ffilter' target='_self'>\n";
   115             echo "<input type='hidden' name='s' value='$sort'>";
   116             echo "<input type='hidden' name='s' value='$sort'>";
   116             echo "<input type='hidden' name='d' value='$dir'>";
   117             echo "<input type='hidden' name='d' value='$dir'>";
   117             echo "<input type='hidden' name='f' value='$fnum'>";
   118             echo "<input type='hidden' name='f' value='$fnum'>";
   118             echo "<table width=\"25%\" border=\"0\">\n";
   119             echo "<table width=\"30%\" border=\"0\">\n";
   119             echo "<tr><td>filtern nach $text: </td>";
   120             echo "<tr><td>filtern nach $text: </td>";
   120             echo "<td><input id='filter' name='filter' type=\"text\" size=\"10\" maxlength=\"30\" value=\"$filter\"/></td>";
   121             echo "<td><input id='filter' name='filter' type=\"text\" size=\"10\" maxlength=\"30\" value=\"$filter\"/></td>";
       
   122             echo "<td>Zeilen/Seite?   <select name='z'>\n";
       
   123             foreach ($azeil as $key=>$val)
       
   124             {
       
   125                 if ($key == $zeil) $select = "selected"; else $select = "";
       
   126                 echo "<option $select value='$key'>$val</option>\n";
       
   127             }
       
   128             echo "</select></td>\n";
   121             
   129             
   122             echo "<td><input class=\"button\" type=\"submit\" value=\"finden\" name=\"subf\" title=\"subf\" /></td></tr></table>\n";
   130             echo "<td><input class=\"button\" type=\"submit\" value=\"finden\" name=\"subf\" title=\"subf\" /></td></tr></table>\n";
   123             echo "</form>\n";
   131             echo "</form>\n";
   124             echo "<p>&nbsp;&nbsp;&nbsp;</p>\n";
   132             echo "<p>&nbsp;&nbsp;&nbsp;</p>\n";
   125         }
   133         }
   148         foreach ($result as $row)
   156         foreach ($result as $row)
   149         {
   157         {
   150 			if ($bg == $bg1) $bg = $bg2; else $bg = $bg1;
   158 			if ($bg == $bg1) $bg = $bg2; else $bg = $bg1;
   151             echo "<tr bgcolor='" . $bg . "'><td>$row->al_bez</td>";
   159             echo "<tr bgcolor='" . $bg . "'><td>$row->al_bez</td>";
   152             echo "<td>" .nl2br($row->al_beschreibung)."</td>";    
   160             echo "<td>" .nl2br($row->al_beschreibung)."</td>";    
   153             echo "<td>$row->kat</td>";
   161             if (strpos($row->kat,'CO2')) $kat = str_replace('CO2','CO<sub>2</sub>',$row->kat); else $kat=$row->kat;
       
   162             echo "<td>$kat</td>";
   154             echo "<td>$row->befgr</td>";
   163             echo "<td>$row->befgr</td>";
   155             echo "<td>$row->pruef</td>";
   164             echo "<td>$row->pruef</td>";
   156             echo "<td>$row->pintv</td>";
   165             echo "<td>$row->pintv</td>";
   157             echo "<td>$row->geb_ID</td>";
   166             echo "<td>$row->geb_ID</td>";
   158             echo "<td>$row->raum_nr</td>";
   167             echo "<td>$row->raum_nr</td>";
   160             echo "<td><a href='/fhiiqm/anlage_ed.php?i=$row->al_ID'><img src=\"/fhiiqm/img/edit.gif\" alt='edit' title='edit' border='0'/></a></td>";
   169             echo "<td><a href='/fhiiqm/anlage_ed.php?i=$row->al_ID'><img src=\"/fhiiqm/img/edit.gif\" alt='edit' title='edit' border='0'/></a></td>";
   161             if (!is_null($_SESSION["recht"]) && in_array("ae",$_SESSION["recht"]))
   170             if (!is_null($_SESSION["recht"]) && in_array("ae",$_SESSION["recht"]))
   162                 echo "<td><a href='/fhiiqm/anlage_ed.php?i=$row->al_ID&d=1'><img src=\"/fhiiqm/img/duplicate.gif\" alt='duplizieren' title='duplizieren' border='0'/></a></td>";
   171                 echo "<td><a href='/fhiiqm/anlage_ed.php?i=$row->al_ID&d=1'><img src=\"/fhiiqm/img/duplicate.gif\" alt='duplizieren' title='duplizieren' border='0'/></a></td>";
   163             echo "<td><a href='/fhiiqm/alpruef_flist.php?s=3&d=DESC&f=5&b=$row->al_ID&st=0&z=25'>
   172             echo "<td><a href='/fhiiqm/alpruef_flist.php?s=3&d=DESC&f=5&b=$row->al_ID&st=0&z=25'>
   164                 <img src=\"/fhiiqm/img/details.gif\" alt='Pr&uuml;fungen' title='Pr&uuml;fungen' border='0'/></a></td>";
   173                 <img src=\"/fhiiqm/img/details.gif\" alt='Pr&uuml;fungen' title='Pr&uuml;fungen' border='0'/></a></td>";
   165             echo "<td><a href='/fhiiqm/alrisk_flist.php?s=2&d=&f=5&b=$row->al_ID&st=0&z=25'>
   174             echo "<td><a href='/fhiiqm/alrisk_flist.php?s=2&d=&f=7&b=$row->al_ID&st=0&z=25'>
   166                 <img src=\"/fhiiqm/img/fire.png\" alt='Risiken' title='Risiken' border='0'/></a></td>";
   175                 <img src=\"/fhiiqm/img/fire.png\" alt='Risiken' title='Risiken' border='0'/></a></td>";
   167             echo "<td><a href='/fhiiqm/alvtr_flist.php?s=3&d=&f=1&b=$row->al_ID&st=0&z=25'>
   176             echo "<td><a href='/fhiiqm/alvtr_flist.php?s=3&d=&f=1&b=$row->al_ID&st=0&z=25'>
   168                 <img src=\"/fhiiqm/img/document_final.png\" alt='Vertrag' title='Vertrag' border='0'/></a></td></tr>\n";
   177                 <img src=\"/fhiiqm/img/document_final.png\" alt='Vertrag' title='Vertrag' border='0'/></a></td></tr>\n";
   169         }
   178         }
   170         echo "</table></div>\n";
   179         echo "</table></div>\n";