示例#1
0
while ($res = _mysql_fetch_object($dbresult)) {
    $id = $res->workunitid;
    if ($id != $previd) {
        if ($errors > $prevquorum + $notification_level) {
            print_wu($previd, $prevname, $prevquorum, $errors);
            $rescount++;
        }
        $previd = $id;
        $prevname = $res->name;
        $prevquorum = $res->min_quorum;
        $errors = 0;
    }
    if ($res->outcome == 3) {
        $errors++;
    }
    if ($res->outcome == 1) {
        $errors = 0;
    }
}
_mysql_free_result($dbresult);
if ($errors > $prevquorum) {
    print_wu($id, $prevname, $prevquorum, $errors);
    $rescount++;
}
echo "</table>\n<br>";
echo $rescount;
echo " entries\n";
admin_page_tail();
end_cache($cache_sec);
$cvs_version_tracker[] = "\$Id\$";
//Generated automatically - do not edit
示例#2
0
    echo "<form action=\"cancel_workunits_action.php\" method=\"post\">\n";
    echo "<input type=\"hidden\" name=\"back\" value=\"errorwus\"/>";
}
echo "<br/><table border=\"1\">\n";
echo "<tr><th>WU ID</th><th>WU name</th><th>App ID</th><th>Quorum</th><th>Unsent</th><th>In Progress</th><th>Success</th>";
echo "<th>Download Errors</th><th>Compute Errors</th><th>Validate Errors</th><th>Error mask</th></tr>\n";
$hidden = 0;
foreach ($row_array as $row) {
    if ($hide_canceled == 'on' && ($row->error_mask & WU_ERROR_CANCELLED) == WU_ERROR_CANCELLED) {
        $hidden++;
        continue;
    }
    if ($hide_dlerr == 'on' && $row->download_errors > 0 && $row->compute_errors == 0 && $row->validate_errors == 0) {
        $hidden++;
        continue;
    }
    print_wu($row);
}
echo "</table>\n<br>";
if (!in_rops()) {
    echo "<input type=\"hidden\" name=\"cancel\" value=\"1\"/>";
    echo "<input type=\"hidden\" name=\"hide_canceled\" value=\"{$hide_canceled}\"/>";
    echo "<input type=\"hidden\" name=\"hide_dlerr\" value=\"{$hide_dlerr}\"/>";
    if ($appid) {
        echo "<input type=\"hidden\" name=\"appid\" value=\"{$appid}\"/>";
    }
    echo "<input class=\"btn btn-default\" type=\"submit\" value=\"Cancel checked WUs\">";
    echo "</form>\n";
}
echo count($row_array) . " entries (" . $hidden . " hidden)\n";
admin_page_tail();