<?PHP
    // Make sure all variables are defined

    print get_string("removenotice","wiki")."<br /><br />";


?>
<form action="admin.php" method="post" enctype="multipart/form-data">
<fieldset class="invisiblefieldset">
<input type="hidden" name="userid" value="<?php print $userid; ?>" />
<input type="hidden" name="groupid" value="<?php print $groupid ?>" />
<input type="hidden" name="action" value="<?php print $action; ?>" />
<input type="hidden" name="id" value="<?php print $cm->id ?>" />
<input type="hidden" name="wikipage" value="<?php print $wikipage?>" />
<?php
  $remove_table=wiki_admin_remove_list($form->listall);
  print_table($remove_table);
?>
<div class="boxaligncenter">
<?php
  if(!count($remove_table->data)) {
    print get_string("nocandidatestoremove","wiki",get_string("listall","wiki"))."<br /><br />";
  }
?>
<?php
  if($form->listall) {
      print '  <input type="submit" name="listcandidates" value="'.get_string("listcandidates","wiki").'" />'."\n";
  } else {
      print '  <input type="submit" name="listall" value="'.get_string("listall","wiki").'" />'."\n";
  }
?>
  <input type="submit" name="proceed" value="<?php print get_string("removeselectedpages","wiki"); ?>" />
</div></fieldset></form>
