".$sql."\n"; $result = db_query($db,$sql); if ( PEAR::isError($result) ) { echo "
".$result->getMessage()."\n"; } echo "
jobid | "; foreach ($keys as $key) { if ( $key!='node' && $key!='start_date' && $key!='end_date' && $key!='datelogic' ) { echo "".$key." | "; $col[$ncols]=$key; $ncols++; } } echo "|
---|---|---|
".date("Y-m-d H:i:s",$data[$key])." | \n";
}
else if ($col[$key] == "jobid")
{
$jobid_nodot = ereg_replace('\..*', '', $data[$key]);
echo "", htmlspecialchars($jobid_nodot), " | ";
}
else
{
echo "".htmlspecialchars($data[$key])." | ";
}
}
echo "