grade.php 729 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * Redirect the user to the appropriate submission related page
  4. *
  5. * @author Leônidas O. Brandão
  6. * @version v 0.1 2019/03/04
  7. * @package mod_nasatlx
  8. * @category grade
  9. * @copyright 2014 LInE - http://line.ime.usp.br
  10. * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  11. */
  12. require_once(__DIR__ . "../../config.php");
  13. $id = required_param('id', PARAM_INT); // Course module ID
  14. $itemnumber = optional_param('itemnumber', 0, PARAM_INT); // Item number, may be != 0 for activities that allow more than one grade per user
  15. $userid = optional_param('userid', 0, PARAM_INT); // Graded user ID (optional)
  16. //in the simplest case just redirect to the view page
  17. redirect('view.php?id='.$id);