"; $result = $db->query($sqlquery); if (DB::isError($result)) die ("$PHP_SELF: " . $result->getMessage()); $outArray = array(); $colorArray = array(); $count = 0; while ($row = $result->fetch_assoc()): $outArray[$count] = $row; $colorArray[$count] = "FF0000"; if ($row["crvh_pda_usage"] == "1" || $row["crvh_system_fee"] == "1") : $colorArray[$count] = "00FF00"; endif; $count++; endwhile; $result->free(); $outArrayLen = count($outArray); if ($debug) : print_r($outArray); echo "



"; endif; if ($outArrayLen > 0) : $tableOut .= "\n"; $tableOut .= "\n"; $tableOut .= ""; $tableOut .= "\n"; $tableOut .= "
" . getLngt("ÜBERSICHT ENDGERÄTENUTZUNG UND SYSTEMGEBÜHR") . "
\n"; $tableOut .= "

"; $tableOut .= "\n"; $tableOut .= "\n"; $tableOut .= ""; $tableOut .= ""; $tableOut .= "\n"; $tableOut .= "
   Kein Eintrag      Mindestens ein Eintrag   
\n"; $tableOut .= "

"; $tableOut .= "\n"; $tableOut .= "\n"; $tableOut .= "\n"; $tableOut .= "\n"; $tableOut .= "\n"; $tableOut .= "\n"; $tableOut .= "\n"; $tableOut .= "\n"; $tableOut .= "\n"; $tableOut .= "\n"; // Iterate all items for ($i = 0; $i < $outArrayLen; $i++) : $tmpArr = $outArray[$i]; $rowColor = $colorArray[$i]; $tableOut .= "\n"; $tableOut .= "\n"; $tableOut .= "\n"; $tableOut .= "\n"; $tableOut .= "\n"; $tableOut .= "\n"; $tableOut .= "\n"; $tableOut .= "\n"; $tableOut .= "\n"; endfor; $tableOut .= "
" . getLngt("NL") . "   " . getLngt("Fzg.") . "   " . getLngt("PDA") . "   " . getLngt("Gebühr") . "   " . getLngt("EID") . "   " . getLngt("Name") . "   " . getLngt("Vorname") . "   
" . $tmpArr["hq_mnemonic"] . "   " . $tmpArr["crvh_sid"] . "   " . $tmpArr["crvh_pda_usage"] . "   " . $tmpArr["crvh_system_fee"] . "   " . $tmpArr["cr_eid"] . "   " . $tmpArr["usr_name"] . "   " . $tmpArr["usr_firstname"] . "   
\n"; else : $output[] = "Keine Daten aufgefunden!"; endif; // Output $outputLen = count($output); for ($i = 0; $i < $outputLen; $i++) : echo $output[$i] . "
"; endfor; ?>