@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | api_not_allowed(); |
14 | 14 | } |
15 | 15 | |
16 | -$htmlHeadXtra[]= '<script> |
|
16 | +$htmlHeadXtra[] = '<script> |
|
17 | 17 | function plusItem(item) { |
18 | 18 | document.getElementById(item).style.display = "inline"; |
19 | 19 | document.getElementById("plus-"+item).style.display = "none"; |
@@ -45,10 +45,10 @@ discard block |
||
45 | 45 | ); |
46 | 46 | |
47 | 47 | $select_cat = intval($_GET['selectcat']); |
48 | -$displayscore= ScoreDisplay :: instance(); |
|
48 | +$displayscore = ScoreDisplay :: instance(); |
|
49 | 49 | $customdisplays = $displayscore->get_custom_score_display_settings(); |
50 | 50 | |
51 | -$nr_items = (count($customdisplays) != '0' )? count($customdisplays) : '1'; |
|
51 | +$nr_items = (count($customdisplays) != '0') ? count($customdisplays) : '1'; |
|
52 | 52 | $scoreform = new ScoreDisplayForm( |
53 | 53 | 'scoring_system_form', |
54 | 54 | api_get_self().'?selectcat='.$select_cat.'&'.api_get_cidreq() |
@@ -57,18 +57,18 @@ discard block |
||
57 | 57 | if ($scoreform->validate()) { |
58 | 58 | $value_export = ''; |
59 | 59 | $value_export = $scoreform->exportValues(); |
60 | - $value_export = isset($value_export) ? $scoreform->exportValues(): ''; |
|
60 | + $value_export = isset($value_export) ? $scoreform->exportValues() : ''; |
|
61 | 61 | $values = $value_export; |
62 | 62 | |
63 | 63 | // create new array of custom display settings |
64 | 64 | // this loop also checks if all score ranges are unique |
65 | 65 | |
66 | - $scoringdisplay= array (); |
|
66 | + $scoringdisplay = array(); |
|
67 | 67 | $ranges_ok = true; |
68 | - $endscore= isset($values['endscore']) ? $values['endscore'] : null; |
|
69 | - $displaytext=isset($values['displaytext']) ? $values['displaytext'] : null; |
|
70 | - for ($counter= 1; $ranges_ok && $counter <= 20; $counter++) { |
|
71 | - $setting= array (); |
|
68 | + $endscore = isset($values['endscore']) ? $values['endscore'] : null; |
|
69 | + $displaytext = isset($values['displaytext']) ? $values['displaytext'] : null; |
|
70 | + for ($counter = 1; $ranges_ok && $counter <= 20; $counter++) { |
|
71 | + $setting = array(); |
|
72 | 72 | $setting['score'] = $endscore[$counter]; |
73 | 73 | $setting['display'] = $displaytext[$counter]; |
74 | 74 | if (!empty($setting['score'])) { |
@@ -77,12 +77,12 @@ discard block |
||
77 | 77 | $ranges_ok = false; |
78 | 78 | } |
79 | 79 | } |
80 | - $scoringdisplay[]= $setting; |
|
80 | + $scoringdisplay[] = $setting; |
|
81 | 81 | } |
82 | 82 | } |
83 | 83 | |
84 | 84 | if (!$ranges_ok) { |
85 | - header('Location: ' . api_get_self() . '?nouniqueranges=&selectcat=' . $select_cat.'&'.api_get_cidreq()); |
|
85 | + header('Location: '.api_get_self().'?nouniqueranges=&selectcat='.$select_cat.'&'.api_get_cidreq()); |
|
86 | 86 | exit; |
87 | 87 | } |
88 | 88 | |
@@ -102,8 +102,8 @@ discard block |
||
102 | 102 | $this_section = SECTION_COURSES; |
103 | 103 | Display :: display_header(get_lang('ScoreEdit')); |
104 | 104 | |
105 | -if (((isset($_GET['isStudentView']) && $_GET['isStudentView']=='false') || |
|
106 | - (isset($_GET['selectcat']) && ($_SESSION['studentview']=='teacherview'))) |
|
105 | +if (((isset($_GET['isStudentView']) && $_GET['isStudentView'] == 'false') || |
|
106 | + (isset($_GET['selectcat']) && ($_SESSION['studentview'] == 'teacherview'))) |
|
107 | 107 | ) { |
108 | 108 | if (isset ($_GET['scoringupdated'])) { |
109 | 109 | Display::display_confirmation_message(get_lang('ScoringUpdated'), false); |
@@ -9,21 +9,21 @@ discard block |
||
9 | 9 | |
10 | 10 | api_block_anonymous_users(); |
11 | 11 | |
12 | -$eval= Evaluation :: load($_GET['selecteval']); |
|
12 | +$eval = Evaluation :: load($_GET['selecteval']); |
|
13 | 13 | if ($eval[0]->get_category_id() < 0) { |
14 | 14 | // if category id is negative, then the evaluation's origin is a link |
15 | - $link= LinkFactory :: get_evaluation_link($eval[0]->get_id()); |
|
15 | + $link = LinkFactory :: get_evaluation_link($eval[0]->get_id()); |
|
16 | 16 | $currentcat = Category :: load($link->get_category_id()); |
17 | 17 | } else { |
18 | 18 | $currentcat = Category :: load($eval[0]->get_category_id()); |
19 | 19 | } |
20 | 20 | |
21 | -$interbreadcrumb[]= array ( |
|
22 | - 'url' => $_SESSION['gradebook_dest'].'?selectcat=' . $currentcat[0]->get_id(), 'name' => get_lang('ToolGradebook')); |
|
21 | +$interbreadcrumb[] = array( |
|
22 | + 'url' => $_SESSION['gradebook_dest'].'?selectcat='.$currentcat[0]->get_id(), 'name' => get_lang('ToolGradebook')); |
|
23 | 23 | |
24 | 24 | if (api_is_allowed_to_edit()) { |
25 | - $interbreadcrumb[]= array ( |
|
26 | - 'url' => 'gradebook_view_result.php?selecteval=' . Security::remove_XSS($_GET['selecteval']).'&'.api_get_cidreq(), |
|
25 | + $interbreadcrumb[] = array( |
|
26 | + 'url' => 'gradebook_view_result.php?selecteval='.Security::remove_XSS($_GET['selecteval']).'&'.api_get_cidreq(), |
|
27 | 27 | 'name' => get_lang('ViewResult') |
28 | 28 | ); |
29 | 29 | } |
@@ -37,10 +37,10 @@ discard block |
||
37 | 37 | |
38 | 38 | if (!$displayscore->is_custom() || empty($displays)) { |
39 | 39 | if (api_is_platform_admin() || api_is_course_admin()) { |
40 | - Display :: display_error_message(get_lang('PleaseEnableScoringSystem'),false); |
|
40 | + Display :: display_error_message(get_lang('PleaseEnableScoringSystem'), false); |
|
41 | 41 | } |
42 | 42 | } else { |
43 | - $allresults = Result::load(null,null,$eval[0]->get_id()); |
|
43 | + $allresults = Result::load(null, null, $eval[0]->get_id()); |
|
44 | 44 | $nr_items = array(); |
45 | 45 | foreach ($displays as $itemsdisplay) { |
46 | 46 | $nr_items[$itemsdisplay['display']] = 0; |
@@ -68,19 +68,19 @@ discard block |
||
68 | 68 | } |
69 | 69 | |
70 | 70 | // Generate table |
71 | - $stattable= '<table class="data_table" cellspacing="0" cellpadding="3">'; |
|
72 | - $stattable .= '<tr><th>' . get_lang('ScoringSystem') . '</th>'; |
|
73 | - $stattable .= '<th>' . get_lang('Percentage') . '</th>'; |
|
74 | - $stattable .= '<th>' . get_lang('CountUsers') . '</th>'; |
|
71 | + $stattable = '<table class="data_table" cellspacing="0" cellpadding="3">'; |
|
72 | + $stattable .= '<tr><th>'.get_lang('ScoringSystem').'</th>'; |
|
73 | + $stattable .= '<th>'.get_lang('Percentage').'</th>'; |
|
74 | + $stattable .= '<th>'.get_lang('CountUsers').'</th>'; |
|
75 | 75 | //$stattable .= '<th>' . get_lang('Statistics') . '</th></tr>'; |
76 | - $counter=0; |
|
76 | + $counter = 0; |
|
77 | 77 | foreach ($keys as $key) { |
78 | - $bar = ($highest_ratio > 0?($nr_items[$key] / $highest_ratio) * 100:0); |
|
79 | - $stattable .= '<tr class="row_' . ($counter % 2 == 0 ? 'odd' : 'even') . '">'; |
|
80 | - $stattable .= '<td width="150">' . $key . '</td>'; |
|
78 | + $bar = ($highest_ratio > 0 ? ($nr_items[$key] / $highest_ratio) * 100 : 0); |
|
79 | + $stattable .= '<tr class="row_'.($counter % 2 == 0 ? 'odd' : 'even').'">'; |
|
80 | + $stattable .= '<td width="150">'.$key.'</td>'; |
|
81 | 81 | |
82 | 82 | $stattable .= '<td width="550">'.Display::bar_progress($bar).'</td>'; |
83 | - $stattable .= '<td align="right">' . $nr_items[$key] . '</td>'; |
|
83 | + $stattable .= '<td align="right">'.$nr_items[$key].'</td>'; |
|
84 | 84 | $counter++; |
85 | 85 | } |
86 | 86 | $stattable .= '</tr></table>'; |
@@ -7,12 +7,12 @@ discard block |
||
7 | 7 | require_once '../inc/global.inc.php'; |
8 | 8 | api_block_anonymous_users(); |
9 | 9 | GradebookUtils::block_students(); |
10 | -$select_eval=Security::remove_XSS($_GET['selecteval']); |
|
10 | +$select_eval = Security::remove_XSS($_GET['selecteval']); |
|
11 | 11 | if (empty($select_eval)) { |
12 | 12 | api_not_allowed(); |
13 | 13 | } |
14 | -$resultedit = Result :: load (null,null,$select_eval); |
|
15 | -$evaluation = Evaluation :: load ($select_eval); |
|
14 | +$resultedit = Result :: load(null, null, $select_eval); |
|
15 | +$evaluation = Evaluation :: load($select_eval); |
|
16 | 16 | |
17 | 17 | $evaluation[0]->check_lock_permissions(); |
18 | 18 | |
@@ -29,9 +29,9 @@ discard block |
||
29 | 29 | $values = $edit_result_form->exportValues(); |
30 | 30 | $scores = ($values['score']); |
31 | 31 | foreach ($scores as $row) { |
32 | - $resultedit = Result :: load (key($scores)); |
|
32 | + $resultedit = Result :: load(key($scores)); |
|
33 | 33 | $row_value = $row; |
34 | - if ($row_value != '' ) { |
|
34 | + if ($row_value != '') { |
|
35 | 35 | $resultedit[0]->set_score(floatval(number_format($row_value, api_get_setting('gradebook_number_decimals')))); |
36 | 36 | $resultedit[0]->save(); |
37 | 37 | } |
@@ -41,15 +41,15 @@ discard block |
||
41 | 41 | exit; |
42 | 42 | } |
43 | 43 | |
44 | -$interbreadcrumb[] = array ( |
|
44 | +$interbreadcrumb[] = array( |
|
45 | 45 | 'url' => $_SESSION['gradebook_dest'], |
46 | 46 | 'name' => get_lang('Gradebook') |
47 | 47 | ); |
48 | -$interbreadcrumb[]= array ( |
|
48 | +$interbreadcrumb[] = array( |
|
49 | 49 | 'url' => 'gradebook_view_result.php?selecteval='.$select_eval.'&'.api_get_cidreq(), |
50 | 50 | 'name' => get_lang('ViewResult') |
51 | 51 | ); |
52 | 52 | Display :: display_header(get_lang('EditResult')); |
53 | -DisplayGradebook::display_header_result($evaluation[0],null,0,0); |
|
53 | +DisplayGradebook::display_header_result($evaluation[0], null, 0, 0); |
|
54 | 54 | echo $table; |
55 | 55 | Display :: display_footer(); |
@@ -79,7 +79,7 @@ |
||
79 | 79 | |
80 | 80 | $submitted = isset($_POST['submitted']) ? $_POST['submitted'] : ''; |
81 | 81 | if ($submitted == 1) { |
82 | - Display :: display_confirmation_message(get_lang('GradebookWeightUpdated')) . '<br /><br />'; |
|
82 | + Display :: display_confirmation_message(get_lang('GradebookWeightUpdated')).'<br /><br />'; |
|
83 | 83 | if (isset($_POST['evaluation'])) { |
84 | 84 | $eval_log = new Evaluation(); |
85 | 85 | } |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | api_block_anonymous_users(); |
17 | 17 | |
18 | 18 | $interbreadcrumb[] = array( |
19 | - "url" => api_get_path(WEB_CODE_PATH) . "mySpace/index.php", |
|
19 | + "url" => api_get_path(WEB_CODE_PATH)."mySpace/index.php", |
|
20 | 20 | "name" => get_lang("MySpace") |
21 | 21 | ); |
22 | 22 | |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | } |
112 | 112 | |
113 | 113 | if (!is_null($gradebook)) { |
114 | - $exportAllLink = api_get_path(WEB_CODE_PATH) . "gradebook/gradebook_display_certificate.php?"; |
|
114 | + $exportAllLink = api_get_path(WEB_CODE_PATH)."gradebook/gradebook_display_certificate.php?"; |
|
115 | 115 | $exportAllLink .= http_build_query(array( |
116 | 116 | "action" => "export_all_certificates", |
117 | 117 | "cidReq" => $selectedCourseInfo['code'], |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | $searchBySessionCourseDateForm = new FormValidator( |
251 | 251 | 'certificate_report_form', |
252 | 252 | 'post', |
253 | - api_get_path(WEB_CODE_PATH) . 'gradebook/certificate_report.php' |
|
253 | + api_get_path(WEB_CODE_PATH).'gradebook/certificate_report.php' |
|
254 | 254 | ); |
255 | 255 | $searchBySessionCourseDateForm->addSelect('session', get_lang('Sessions'), $sessions, ['id' => 'session']); |
256 | 256 | $searchBySessionCourseDateForm->addSelect('course', get_lang('Courses'), $courses, ['id' => 'course']); |
@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | $searchByStudentForm = new FormValidator( |
284 | 284 | 'certificate_report_form', |
285 | 285 | 'post', |
286 | - api_get_path(WEB_CODE_PATH) . 'gradebook/certificate_report.php' |
|
286 | + api_get_path(WEB_CODE_PATH).'gradebook/certificate_report.php' |
|
287 | 287 | ); |
288 | 288 | $searchByStudentForm->addSelect('student', get_lang('Students'), $students, ['id' => 'student']); |
289 | 289 | $searchByStudentForm->addButtonSearch(); |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | |
13 | 13 | require_once '../inc/global.inc.php'; |
14 | 14 | api_block_anonymous_users(); |
15 | -$this_section=SECTION_COURSES; |
|
15 | +$this_section = SECTION_COURSES; |
|
16 | 16 | |
17 | 17 | $gradebook = Security::remove_XSS($_GET['gradebook']); |
18 | 18 | |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | $doExerciseUrl = null; |
25 | 25 | |
26 | 26 | if (isset($_GET['doexercise'])) { |
27 | - $doExerciseUrl = api_get_path(WEB_CODE_PATH) . 'exercise/overview.php?' . http_build_query([ |
|
27 | + $doExerciseUrl = api_get_path(WEB_CODE_PATH).'exercise/overview.php?'.http_build_query([ |
|
28 | 28 | 'session_id' => $session_id, |
29 | 29 | 'cidReq' => $cidReq, |
30 | 30 | 'gradebook' => $gradebook, |
@@ -60,11 +60,11 @@ discard block |
||
60 | 60 | // If the exercise was added once redirect to the LP |
61 | 61 | $firstLp = current($exercise->lpList); |
62 | 62 | if (isset($firstLp['lp_id'])) { |
63 | - $url = api_get_path(WEB_CODE_PATH) . 'newscorm/lp_controller.php?' . api_get_cidreq() . '&lp_id=' . $firstLp['lp_id'] . '&action=view&isStudentView=true'; |
|
63 | + $url = api_get_path(WEB_CODE_PATH).'newscorm/lp_controller.php?'.api_get_cidreq().'&lp_id='.$firstLp['lp_id'].'&action=view&isStudentView=true'; |
|
64 | 64 | } |
65 | 65 | } else { |
66 | 66 | // If the exercise was added multiple times show the LP list |
67 | - $url = api_get_path(WEB_CODE_PATH) . 'newscorm/lp_controller.php?' . api_get_cidreq().'&action=list'; |
|
67 | + $url = api_get_path(WEB_CODE_PATH).'newscorm/lp_controller.php?'.api_get_cidreq().'&action=list'; |
|
68 | 68 | } |
69 | 69 | } |
70 | 70 | } |
@@ -11,9 +11,9 @@ discard block |
||
11 | 11 | api_block_anonymous_users(); |
12 | 12 | GradebookUtils::block_students(); |
13 | 13 | |
14 | -$interbreadcrumb[] = array ('url' => Security::remove_XSS($_SESSION['gradebook_dest']).'?','name' => get_lang('Gradebook')); |
|
15 | -$interbreadcrumb[] = array ('url' => Security::remove_XSS($_SESSION['gradebook_dest']).'?selectcat='.Security::remove_XSS($_GET['selectcat']),'name' => get_lang('Details')); |
|
16 | -$interbreadcrumb[] = array ('url' => 'gradebook_showlog_link.php?visiblelink='.Security::remove_XSS($_GET['visiblelink']).'&selectcat='.Security::remove_XSS($_GET['selectcat']), 'name' => get_lang('GradebookQualifyLog')); |
|
14 | +$interbreadcrumb[] = array('url' => Security::remove_XSS($_SESSION['gradebook_dest']).'?', 'name' => get_lang('Gradebook')); |
|
15 | +$interbreadcrumb[] = array('url' => Security::remove_XSS($_SESSION['gradebook_dest']).'?selectcat='.Security::remove_XSS($_GET['selectcat']), 'name' => get_lang('Details')); |
|
16 | +$interbreadcrumb[] = array('url' => 'gradebook_showlog_link.php?visiblelink='.Security::remove_XSS($_GET['visiblelink']).'&selectcat='.Security::remove_XSS($_GET['selectcat']), 'name' => get_lang('GradebookQualifyLog')); |
|
17 | 17 | $this_section = SECTION_COURSES; |
18 | 18 | Display :: display_header(''); |
19 | 19 | echo '<div class="actions">'; |
@@ -22,21 +22,21 @@ discard block |
||
22 | 22 | |
23 | 23 | $t_user = Database :: get_main_table(TABLE_MAIN_USER); |
24 | 24 | $t_link_log = Database :: get_main_table(TABLE_MAIN_GRADEBOOK_LINKEVAL_LOG); |
25 | -$visible_link=Security::remove_XSS($_GET['visiblelink']); |
|
25 | +$visible_link = Security::remove_XSS($_GET['visiblelink']); |
|
26 | 26 | $evaledit = EvalLink :: load($visible_link); |
27 | 27 | $sql = "SELECT lk.name,lk.description,lk.weight,lk.visible,lk.type,lk.created_at,us.username |
28 | 28 | FROM ".$t_link_log." lk inner join ".$t_user." us |
29 | 29 | ON lk.user_id_log=us.user_id |
30 | 30 | WHERE lk.id_linkeval_log=".$evaledit[0]->get_id()." AND lk.type='link';"; |
31 | -$result=Database::query($sql); |
|
32 | -$list_info=array(); |
|
33 | -while ($row=Database::fetch_row($result)) { |
|
31 | +$result = Database::query($sql); |
|
32 | +$list_info = array(); |
|
33 | +while ($row = Database::fetch_row($result)) { |
|
34 | 34 | $list_info[] = $row; |
35 | 35 | } |
36 | 36 | |
37 | -foreach($list_info as $key => $info_log) { |
|
38 | - $list_info[$key][5]=($info_log[5]) ? api_convert_and_format_date($info_log[5]) : 'N/A'; |
|
39 | - $list_info[$key][3]=($info_log[3]==1) ? get_lang('GradebookVisible') : get_lang('GradebookInvisible'); |
|
37 | +foreach ($list_info as $key => $info_log) { |
|
38 | + $list_info[$key][5] = ($info_log[5]) ? api_convert_and_format_date($info_log[5]) : 'N/A'; |
|
39 | + $list_info[$key][3] = ($info_log[3] == 1) ? get_lang('GradebookVisible') : get_lang('GradebookInvisible'); |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | $parameters = array( |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | 'selectcat' => Security::remove_XSS($_GET['selectcat']), |
45 | 45 | ); |
46 | 46 | |
47 | -$table = new SortableTableFromArrayConfig($list_info, 1,20,'gradebooklink'); |
|
47 | +$table = new SortableTableFromArrayConfig($list_info, 1, 20, 'gradebooklink'); |
|
48 | 48 | $table->set_additional_parameters($parameters); |
49 | 49 | $table->set_header(0, get_lang('GradebookNameLog')); |
50 | 50 | $table->set_header(1, get_lang('GradebookDescriptionLog')); |
@@ -36,7 +36,7 @@ |
||
36 | 36 | 'actions', |
37 | 37 | Display::toolbarButton( |
38 | 38 | get_lang('SearchCertificates'), |
39 | - api_get_path(WEB_CODE_PATH) . "gradebook/search.php", |
|
39 | + api_get_path(WEB_CODE_PATH)."gradebook/search.php", |
|
40 | 40 | 'search', |
41 | 41 | 'info' |
42 | 42 | ) |
@@ -11,20 +11,20 @@ discard block |
||
11 | 11 | GradebookUtils::block_students(); |
12 | 12 | $tbl_grade_links = Database :: get_main_table(TABLE_MAIN_GRADEBOOK_LINK); |
13 | 13 | //selected name of database |
14 | -$course_id = GradebookUtils::get_course_id_by_link_id($_GET['editlink']); |
|
15 | -$tbl_forum_thread = Database :: get_course_table(TABLE_FORUM_THREAD); |
|
16 | -$tbl_work = Database :: get_course_table(TABLE_STUDENT_PUBLICATION); |
|
17 | -$tbl_attendance = Database :: get_course_table(TABLE_ATTENDANCE); |
|
14 | +$course_id = GradebookUtils::get_course_id_by_link_id($_GET['editlink']); |
|
15 | +$tbl_forum_thread = Database :: get_course_table(TABLE_FORUM_THREAD); |
|
16 | +$tbl_work = Database :: get_course_table(TABLE_STUDENT_PUBLICATION); |
|
17 | +$tbl_attendance = Database :: get_course_table(TABLE_ATTENDANCE); |
|
18 | 18 | |
19 | -$linkarray = LinkFactory :: load($_GET['editlink']); |
|
19 | +$linkarray = LinkFactory :: load($_GET['editlink']); |
|
20 | 20 | /** @var AbstractLink $link */ |
21 | 21 | $link = $linkarray[0]; |
22 | 22 | if ($link->is_locked() && !api_is_platform_admin()) { |
23 | 23 | api_not_allowed(); |
24 | 24 | } |
25 | 25 | |
26 | -$linkcat = isset($_GET['selectcat']) ? Security::remove_XSS($_GET['selectcat']):''; |
|
27 | -$linkedit = isset($_GET['editlink']) ? Security::remove_XSS($_GET['editlink']):''; |
|
26 | +$linkcat = isset($_GET['selectcat']) ? Security::remove_XSS($_GET['selectcat']) : ''; |
|
27 | +$linkedit = isset($_GET['editlink']) ? Security::remove_XSS($_GET['editlink']) : ''; |
|
28 | 28 | |
29 | 29 | $session_id = api_get_session_id(); |
30 | 30 | if ($session_id == 0) { |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | null, |
40 | 40 | $link, |
41 | 41 | 'edit_link_form', |
42 | - api_get_self() . '?selectcat=' . $linkcat. '&editlink=' . $linkedit.'&'.api_get_cidreq() |
|
42 | + api_get_self().'?selectcat='.$linkcat.'&editlink='.$linkedit.'&'.api_get_cidreq() |
|
43 | 43 | ); |
44 | 44 | if ($form->validate()) { |
45 | 45 | $values = $form->exportValues(); |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | //Update weight for attendance |
59 | 59 | $sql = 'SELECT ref_id FROM '.$tbl_grade_links.' |
60 | 60 | WHERE id = '.intval($_GET['editlink']).' AND type='.LINK_ATTENDANCE; |
61 | - $rs_attendance = Database::query($sql); |
|
61 | + $rs_attendance = Database::query($sql); |
|
62 | 62 | if (Database::num_rows($rs_attendance) > 0) { |
63 | 63 | $row_attendance = Database::fetch_array($rs_attendance); |
64 | 64 | $attendance_id = $row_attendance['ref_id']; |
@@ -81,11 +81,11 @@ discard block |
||
81 | 81 | weight='.$final_weight.' |
82 | 82 | WHERE c_id = '.$course_id.' AND id = ( |
83 | 83 | SELECT ref_id FROM '.$tbl_grade_links.' |
84 | - WHERE id='.intval($_GET['editlink'] ).' AND type=3 |
|
84 | + WHERE id='.intval($_GET['editlink']).' AND type=3 |
|
85 | 85 | )'; |
86 | 86 | |
87 | 87 | Database::query($sql_t); |
88 | - header('Location: '.$_SESSION['gradebook_dest'].'?linkedited=&selectcat=' . $link->get_category_id().'&'.api_get_cidreq()); |
|
88 | + header('Location: '.$_SESSION['gradebook_dest'].'?linkedited=&selectcat='.$link->get_category_id().'&'.api_get_cidreq()); |
|
89 | 89 | exit; |
90 | 90 | } |
91 | 91 |