mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=2424
This commit is contained in:
parent
154cc43982
commit
0fa1faafa9
|
@ -6606,4 +6606,12 @@ David Oct 8 2003
|
|||
wingui_mainwindow.cpp
|
||||
wingui_piecectrl.cpp
|
||||
lib/
|
||||
util.C,h
|
||||
util.C,h
|
||||
|
||||
David Oct 8 2003
|
||||
- add low-detail option to WU display
|
||||
|
||||
html_ops/
|
||||
db_action.php
|
||||
db_form.php
|
||||
db_ops.php
|
||||
|
|
|
@ -106,14 +106,16 @@
|
|||
start_table();
|
||||
switch($table) {
|
||||
case "result": result_short_header(); break;
|
||||
case "workunit": workunit_short_header(); break;
|
||||
case "host": host_short_header(); break;
|
||||
}
|
||||
}
|
||||
while ($res = mysql_fetch_object($result)) {
|
||||
if ($detail == "low") {
|
||||
switch ($table) {
|
||||
case "result": show_result_short($res); break;
|
||||
case "host": show_host_short($res); break;
|
||||
case "result": show_result_short($res); break;
|
||||
case "host": show_host_short($res); break;
|
||||
case "workunit": show_workunit_short($res); break;
|
||||
}
|
||||
} else {
|
||||
switch ($table) {
|
||||
|
|
|
@ -42,6 +42,7 @@ require_once("db_ops.inc");
|
|||
print_detail_field();
|
||||
} else if ($table=="workunit") {
|
||||
print_checkbox("Hide XML fields", "hide_xml_docs", $hide_xml_docs);
|
||||
print_detail_field();
|
||||
} else if ($table=="result") {
|
||||
echo "<tr><td align=right>Server state</td><td> ";
|
||||
server_state_select();
|
||||
|
|
|
@ -477,6 +477,39 @@ function show_workunit($wu, $hide_xml_doc) {
|
|||
echo "<p>";
|
||||
}
|
||||
|
||||
function workunit_short_header() {
|
||||
echo "
|
||||
<tr>
|
||||
<th>WU ID</th>
|
||||
<th>canonical result</th>
|
||||
<th>error_mask</th>
|
||||
<th>file delete</th>
|
||||
<th>assimilate</th>
|
||||
</tr>
|
||||
";
|
||||
}
|
||||
|
||||
function show_workunit_short($wu) {
|
||||
if ($wu->canonical_resultid) {
|
||||
$cr = "<a href=db_action.php?table=result&id=$wu->canonical_resultid>$wu->canonical_resultid</a>";
|
||||
} else {
|
||||
$cr = "none";
|
||||
}
|
||||
$cr = $cr. " <a href=db_action.php?table=result&workunitid=$wu->id&detail=low>all</a>";
|
||||
$e = wu_error_mask_str($wu->error_mask);
|
||||
$f = file_delete_state_str($wu->file_delete_state);
|
||||
$a = assimilate_state_str($wu->assimilate_state);
|
||||
echo "
|
||||
<tr>
|
||||
<td>$wu->id</td>
|
||||
<td>$cr</td>
|
||||
<td>$e</td>
|
||||
<td>$f</td>
|
||||
<td>$a</td>
|
||||
</tr>
|
||||
";
|
||||
}
|
||||
|
||||
function server_state_string($s) {
|
||||
switch($s) {
|
||||
case 1: return "Inactive";
|
||||
|
|
Loading…
Reference in New Issue