Skip to content

Commit

Permalink
Anzeige der Firmware-Dateien verbessert
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp-kempgen committed Sep 24, 2010
1 parent b898d7c commit ea8b0c6
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions opt/gemeinschaft/htdocs/gui/mod/prov_firmware.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,24 @@
$PhoneCapa = new $class;

$firmware_files = $PhoneCapa->get_firmware_files();
if(!is_array($firmware_files) || $firmware_files == null) {
continue;
}
echo '<table cellspacing="1">' ,"\n";

echo '<table cellspacing="1" style="width:95%;">' ,"\n";
echo '<thead>' ,"\n";
echo '<tr><th>',strToUpper($phone_type),'</th></tr>' ,"\n";
echo '</thead>' ,"\n";
echo '<tbody>' ,"\n";

foreach($firmware_files as $firmware_file) {
echo '<tr><td>', $firmware_file, '</td></tr>' ,"\n";
if (! is_array($firmware_files) || $firmware_files === null) {
echo '<tr><td><i>', htmlEnt(__('Lesen der Firmware-Dateien nicht implementiert')), '</i></td></tr>' ,"\n";
}
else {
if (count($firmware_files) > 0) {
foreach($firmware_files as $firmware_file) {
echo '<tr><td>', htmlEnt($firmware_file), '</td></tr>' ,"\n";
}
} else {
echo '<tr><td><i>', htmlEnt(__('keine Firmware-Dateien vorhanden')), '</i></td></tr>' ,"\n";
}
}

echo '</tbody>' ,"\n";
echo '</table>' ,"\n";
echo '<br />' ,"\n";
Expand Down

0 comments on commit ea8b0c6

Please sign in to comment.