\n" . "Sum of total disk space on these hosts: " . $disk_info->tot_sum/(1024*1024*1024) . " GB" . "
" . "Sum of available disk space on these hosts: " . $disk_info->free_sum/(1024*1024*1024) . " GB" . "
" . "Sum of memory on these hosts: " . $disk_info->tot_mem/(1024*1024) . " MB" . "
" ); } } else if ($show=="workunit") { print_text_field( "Workunits in Batch Number:", "batch", $batch ); print_text_field( "Number of Results Done:", "nres_done", $nres_done ); print_text_field( "Number of Results Failed:", "nres_fail", $nres_fail ); print_text_field( "Number of Results Unsent:", "nres_unsent", $nres_unsent ); print_checkbox("Show XML Docs", "show_xml_docs", $show_xml_docs); } else if ($show=="result") { printf( "Result State: \n
\n" );
print_text_field( "Result in Batch Number:", "batch", $batch );
print_text_field( "Result has Exit Code:", "exit_status", $exit_status );
print_checkbox("Show XML Docs", "show_xml_docs", $show_xml_docs);
print_checkbox("Show Result stderr", "show_stderr", $show_stderr);
print_checkbox("Show Times", "show_times", $show_times);
} else if ($show=="team") {
} else if ($show=="user") {
} else {
echo "
Platform\n";
echo "
App\n";
echo "
App Version\n";
echo "
Host\n";
echo "
Workunit\n";
echo "
Result\n";
echo "
Team\n";
echo "
User\n";
print_page_end();
return;
}
print_text_field( "Number of Entries to Show:", "nresults", $entries_to_show );
printf( "\n" );
print_form_end();
echo "
Query is: $english_query
"; print_query_count("select count(*) as cnt " . $query, $entries_to_show, $start_at); $result = mysql_query("select * " . $query); while (($res = mysql_fetch_object($result)) && ($entries_to_show > 0)) { if ($start_at <= 0) { switch ($show) { case "platform": show_platform($res); break; case "app": show_app($res); break; case "app_version": show_app_version($res,$show_xml_docs); break; case "host": show_host($res); break; case "workunit": show_workunit($res,$show_xml_docs); break; case "result": show_result($res,$show_xml_docs,$show_stderr,$show_times); break; case "team": show_team($res); break; case "user": show_user($res); break; } $entries_to_show--; } else { $start_at--; } } print_page_end(); ?>