Version: QuatView Frontend 1.0 Licence: GPL */ ?> quatview Field = 'timestamp') { $ts = $row->information; $ts = gmdate("Y-m-d H:i:s", $ts); } else { $ts = "N/A"; } echo "

quattor database for ".$site." at ".$ts."

\n"; // Get the columns that are in the table $sqlt = "SHOW COLUMNS FROM quatview"; $rest = mysql_query($sqlt) or die(mysql_error()); while($rowt = mysql_fetch_object($rest)){ if(($rowt->Field == "id")||($rowt->Field == "file")) {continue;} $fields[] = $rowt->Field; } // Create check boxes for displaying/hiding columns echo "
\n\n"; //echo ""; foreach ($fields as $idx => $value) { echo "\n"; echo ""; } echo "\n
Fields to display: \n$value
\n
\n "; echo "\n\n"; foreach ($fields as $value) { echo "\n"; } echo "\n\n"; // Get the information from the table $sql = "SELECT * FROM quatview"; $res = mysql_query($sql) or die(mysql_error()); while($row = mysql_fetch_object($res)){ echo "\n"; for($i = 0; $i < sizeof($fields); ++$i){ echo "\n"; } echo "\n"; } echo "
".$value.""; echo "
"; echo "
".$row->$fields[$i]. "
\n"; ?>