2004-11-14 00:42:02 +00:00
< ? php
2005-02-08 04:38:31 +00:00
$cvs_version_tracker [] = " \$ Id $ " ; //Generated automatically - do not edit
2004-11-14 00:55:27 +00:00
// use this to delete workunits that are not wanted
2004-11-14 00:42:02 +00:00
require_once ( " ../inc/util_ops.inc " );
2005-02-08 04:38:31 +00:00
admin_page_head ( " Cancel workunit(s) " );
echo " <form action= \" cancel_wu_action.php \" >
2004-11-14 00:42:02 +00:00
" ;
2005-02-08 04:38:31 +00:00
echo " <p>
2004-11-14 00:42:02 +00:00
This form may be used to cancel unnecessary or unwanted workunits . We recommend that
you stop the project before doing this . Note that the workunits and their corresponding
results ( if any ) are NOT removed from the database . Instead , they are marked as ' no longer
needed ' . In most cases you should probably only remove workunits whose results are all unsent ,
since otherwise a user will not get credit for a result that they might return .
2005-02-08 04:38:31 +00:00
< p >
2004-11-14 00:42:02 +00:00
" ;
// TODO: David, a query that shows all workunits that do not have all results unsent is:
// select distinct workunit.id,workunit.name from workunit join result where workunit.id=result.workunitid and result.server_state!=2 order by workunit.id
// What is the inverse of this query? Ie select all workunits all of whose results are unsent. This would
// be useful to incorporate into this page.
start_table ();
2005-02-08 04:38:31 +00:00
row2 ( " First Workunit (ID) to cancel " , " <input size= \" 32 \" name= \" wuid1 \" " );
row2 ( " Last Workunit (ID) to cancel " , " <input size= \" 32 \" name= \" wuid2 \" " );
row2 ( " " , " <input type= \" submit \" value= \" CANCEL WORKUNITS \" > " );
end_table ();
2004-11-14 00:42:02 +00:00
echo "
</ form >
" ;
2005-02-08 04:38:31 +00:00
admin_page_tail ();
2004-11-14 00:42:02 +00:00
?>