Fix from jim-p for wireless display issues.

Issue #6
This commit is contained in:
Chris Buechler 2009-07-15 21:51:28 -04:00
parent 645bdcb48e
commit 26ee2b8610

View File

@ -103,24 +103,14 @@ display_top_tabs($tab_array);
$counter=0;
foreach($states as $state) {
$state_fixed = str_replace(" ", " ", $state);
$state_fixed = str_replace(" ", " ", $state_fixed);
$state_fixed = str_replace(" ", " ", $state_fixed);
$state_fixed = str_replace(" ", " ", $state_fixed);
$state_fixed = str_replace(" ", " ", $state_fixed);
$state_fixed = str_replace(" ", " ", $state_fixed);
$state_fixed = str_replace(" ", " ", $state_fixed);
$state_split = split(" ", $state_fixed);
$items = count($state_split);
$starting_at = $items-8;
print "<tr>";
print "<td>{$state_split[$starting_at]}</td>";
print "<td>{$state_split[$starting_at+1]}</td>";
print "<td>{$state_split[$starting_at+2]}</td>";
print "<td>{$state_split[$starting_at+3]}</td>";
print "<td>{$state_split[$starting_at+4]}</td>";
print "<td>{$state_split[$starting_at+5]}</td>";
print "<td>{$state_split[$starting_at+6]}</td>";
print "<td>" . trim(substr($state, 0 , 16)) . "</td>";
print "<td>" . trim(substr($state, 16, 19)) . "</td>";
print "<td>" . trim(substr($state, 35, 5)) . "</td>";
print "<td>" . trim(substr($state, 40, 5)) . "</td>";
print "<td>" . trim(substr($state, 45, 9)) . "</td>";
print "<td>" . trim(substr($state, 54, 4)) . "</td>";
print "<td>" . trim(substr($state, 58)) . "</td>";
print "</tr>\n";
print "<!-- $state_fixed -->\n";
}