2003-06-11 23:36:47 +00:00
|
|
|
<?php
|
2003-07-17 23:53:06 +00:00
|
|
|
require_once("util_ops.inc");
|
|
|
|
require_once("db_ops.inc");
|
2003-06-11 23:36:47 +00:00
|
|
|
|
|
|
|
db_init();
|
|
|
|
|
|
|
|
parse_str(getenv("QUERY_STRING"));
|
|
|
|
|
2003-07-01 18:28:33 +00:00
|
|
|
function print_detail_field() {
|
|
|
|
echo "<tr><td align=right>Detail level</td><td>";
|
|
|
|
echo "<select name=detail>
|
|
|
|
<option value=low>low
|
|
|
|
<option value=high>high
|
|
|
|
</select>
|
|
|
|
</td></tr>
|
|
|
|
";
|
|
|
|
}
|
|
|
|
function print_query_field() {
|
|
|
|
echo "
|
|
|
|
<tr>
|
|
|
|
<td align=right>Additional clauses</td>
|
|
|
|
<td><input name=clauses></td>
|
|
|
|
</tr>
|
|
|
|
";
|
|
|
|
}
|
|
|
|
|
2003-06-11 23:36:47 +00:00
|
|
|
$first = 1;
|
|
|
|
|
|
|
|
$title = table_title($table);
|
|
|
|
page_head($title);
|
|
|
|
echo "<form method=get action=db_action.php>\n";
|
|
|
|
echo "<p>\n";
|
|
|
|
echo "<input type=hidden name=table value=$table>\n";
|
|
|
|
|
|
|
|
start_table();
|
|
|
|
if ($table=="platform") {
|
|
|
|
} else if ($table=="app") {
|
|
|
|
} else if ($table=="app_version") {
|
2003-07-01 18:28:33 +00:00
|
|
|
print_checkbox("Hide XML Docs", "hide_xml_docs", $hide_xml_docs);
|
2003-10-10 22:55:29 +00:00
|
|
|
print_detail_field();
|
2003-06-11 23:36:47 +00:00
|
|
|
} else if ($table=="host") {
|
|
|
|
print_checkbox("Show Aggregate Information", "show_aggregate", $show_aggregate);
|
2003-07-01 18:28:33 +00:00
|
|
|
print_detail_field();
|
2003-06-11 23:36:47 +00:00
|
|
|
} else if ($table=="workunit") {
|
2003-07-01 18:28:33 +00:00
|
|
|
print_checkbox("Hide XML fields", "hide_xml_docs", $hide_xml_docs);
|
2003-10-08 20:44:58 +00:00
|
|
|
print_detail_field();
|
2003-06-11 23:36:47 +00:00
|
|
|
} else if ($table=="result") {
|
|
|
|
echo "<tr><td align=right>Server state</td><td> ";
|
2003-08-05 21:40:07 +00:00
|
|
|
server_state_select();
|
2003-06-11 23:36:47 +00:00
|
|
|
echo "</td></tr>\n";
|
|
|
|
//print_text_field( "Batch number:", "batch", $batch );
|
|
|
|
echo "<tr><td align=right>Outcome</td><td>";
|
2003-08-05 21:40:07 +00:00
|
|
|
outcome_select();
|
2003-06-11 23:36:47 +00:00
|
|
|
echo "</td></tr>\n";
|
|
|
|
echo "<tr><td align=right>Client state</td><td>";
|
2003-08-05 21:40:07 +00:00
|
|
|
client_state_select();
|
2003-06-11 23:36:47 +00:00
|
|
|
echo "</td></tr>\n";
|
|
|
|
|
2003-07-01 18:28:33 +00:00
|
|
|
row2("Hide XML fields", "<input type=checkbox name=hide_xml_docs>");
|
|
|
|
row2("Hide result stderr", "<input type=checkbox name=hide_stderr>");
|
|
|
|
row2("Hide times", "<input type=checkbox name=hide_times>");
|
2003-06-11 23:36:47 +00:00
|
|
|
echo "<tr><td align=right>Sort by</td><td>";
|
|
|
|
result_sort_select();
|
|
|
|
echo "</td></tr>\n";
|
2003-07-01 18:28:33 +00:00
|
|
|
print_detail_field();
|
|
|
|
print_query_field();
|
2003-06-11 23:36:47 +00:00
|
|
|
|
|
|
|
} else if ($table=="team") {
|
|
|
|
} else if ($table=="user") {
|
|
|
|
} else {
|
|
|
|
echo "Unknown table name\n";
|
|
|
|
exit();
|
|
|
|
}
|
|
|
|
|
2003-07-01 18:28:33 +00:00
|
|
|
row2("Number of entries to show", "<input name=nresults value='10'>");
|
2003-06-11 23:36:47 +00:00
|
|
|
|
|
|
|
row2("", "<input type=submit value=\"OK\">\n");
|
|
|
|
end_table();
|
|
|
|
echo "</form>\n";
|
|
|
|
|
|
|
|
page_tail();
|
|
|
|
?>
|