You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.2 KiB
28 lines
1.2 KiB
<?php
|
|
/* For licensing terms, see /license.txt */
|
|
|
|
require_once '../inc/global.inc.php';
|
|
|
|
$allow = api_get_configuration_value('extra');
|
|
if (empty($allow)) {
|
|
exit;
|
|
}
|
|
|
|
$tbl_stats_exercices = Database::get_main_table(TABLE_STATISTIC_TRACK_E_EXERCISES);
|
|
|
|
$ex_idd = isset($_POST['exe_id']) ? (int) $_POST['exe_id'] : '';
|
|
$ex_user_id = isset($_POST['ex_user_id']) ? (int) $_POST['ex_user_id'] : '';
|
|
$mod_no = isset($_POST['mod_no']) ? Database::escape_string($_POST['mod_no']) : '';
|
|
$score_ex = isset($_POST['score_ex']) ? Database::escape_string($_POST['score_ex']) : '';
|
|
$score_rep1 = isset($_POST['score_rep1']) ? Database::escape_string($_POST['score_rep1']) : '';
|
|
$score_rep2 = isset($_POST['score_rep2']) ? Database::escape_string($_POST['score_rep2']) : '';
|
|
$coment = isset($_POST['coment']) ? Database::escape_string($_POST['coment']) : '';
|
|
$student_id = isset($_POST['student_id']) ? Database::escape_string($_POST['student_id']) : '';
|
|
|
|
$sql = "UPDATE $tbl_stats_exercices SET
|
|
mod_no='$mod_no', score_ex='$score_ex', score_rep1='$score_rep1', score_rep2='$score_rep2', coment='$coment'
|
|
WHERE exe_id = '$ex_idd'
|
|
";
|
|
Database::query($sql);
|
|
header("location:../extra/myStudents.php?student=$student_id");
|
|
exit;
|
|
|