validate()) { $values = $edit_result_form->exportValues(); $scores = ($values['score']); foreach ($scores as $row) { $resultedit = Result :: load (key($scores)); if ((!empty ($row)) || ($row == '0')) { $resultedit[0]->set_score($row); } $resultedit[0]->save(); next($scores); } header('Location: gradebook_view_result.php?selecteval='.Security::remove_XSS($_GET['selecteval']).'&editallresults='); exit; } $interbreadcrumb[] = array ( 'url' => $_SESSION['gradebook_dest'], 'name' => get_lang('Gradebook' )); $interbreadcrumb[]= array ( 'url' => 'gradebook_view_result.php?selecteval='.Security::remove_XSS($_GET['selecteval']), 'name' => get_lang('ViewResult' )); Display :: display_header(get_lang('EditResult')); DisplayGradebook :: display_header_result ($evaluation[0],null,0,0); echo '
'; echo $edit_result_form->toHtml(); echo '
'; Display :: display_footer();