. require_once("../inc/util_ops.inc"); admin_page_head("Cancel Workunits"); // check for WUs to cancel // $WUs = ""; if (array_key_exists('cancel', $_REQUEST) && ($_REQUEST['cancel'] == 1)) { if (is_array($_REQUEST['WU'])) { foreach ($_REQUEST['WU'] as $key => $value) { if($WUs != "") $WUs = $WUs . ","; $WUs = $WUs . $value; } } } // cancel WUs (if not in rops) // if($WUs != "") { echo "\n"; // if (!in_rops()) { db_init(); cancel_wus_where("id IN (" . $WUs . ")"); // } } if (array_key_exists('back',$_REQUEST)) { if ($_REQUEST['back'] == "errorwus") { echo "

Return to All-error Workunits page

"; } else if ($_REQUEST['back'] == "cancelwus") { if (array_key_exists('clause', $_REQUEST)) { $limit = 20; if (array_key_exists('limit', $_REQUEST)) $limit=$_REQUEST['limit']; $clause=urlencode($_REQUEST['clause']); echo "

"; echo "Cancel next (max $limit) Workunits

"; } echo "

Return to Cancel Workunits page

"; } } echo "

"; echo "Page last updated "; echo time_str(time()); echo "

\n"; admin_page_tail(); $cvs_version_tracker[]="\$Id$"; //Generated automatically - do not edit ?>