@@ -801,7 +801,7 @@ |
||
| 801 | 801 | <label> |
| 802 | 802 | <input type="checkbox" class="checkbox" |
| 803 | 803 | name="<?php echo 'try[' |
| 804 | - .$i; ?>]" <?php if ($try[$i] == 1) { |
|
| 804 | + .$i; ?>]" <?php if ($try[$i] == 1) { |
|
| 805 | 805 | echo 'checked'; |
| 806 | 806 | } ?> /> |
| 807 | 807 | <?php echo get_lang('TryAgain'); ?> |
@@ -628,8 +628,8 @@ |
||
| 628 | 628 | </div> |
| 629 | 629 | <form name="formulaire" method="post" |
| 630 | 630 | action="<?php echo api_get_self(); ?>?page=<?php echo $page; ?>&id_session=<?php echo $id_session; ?><?php if (!empty($addProcess)) { |
| 631 | - echo '&add=true'; |
|
| 632 | - } ?>" <?php if ($ajax_search) { |
|
| 631 | + echo '&add=true'; |
|
| 632 | + } ?>" <?php if ($ajax_search) { |
|
| 633 | 633 | echo ' onsubmit="valide();"'; |
| 634 | 634 | } ?>> |
| 635 | 635 | <?php echo '<legend>'.$tool_name.' ('.$session_info['name'].') </legend>'; ?> |
@@ -538,7 +538,7 @@ discard block |
||
| 538 | 538 | <div id="content_source"> |
| 539 | 539 | <?php |
| 540 | 540 | if (!($add_type == 'multiple')) { |
| 541 | - ?> |
|
| 541 | + ?> |
|
| 542 | 542 | <input type="text" id="user_to_add" onkeyup="xajax_search_users(this.value,'single')" /> |
| 543 | 543 | <div id="ajax_list_users_single"></div> |
| 544 | 544 | <?php |
@@ -547,12 +547,12 @@ discard block |
||
| 547 | 547 | <div id="ajax_list_users_multiple"> |
| 548 | 548 | <select id="origin_users" name="nosessionUsersList[]" multiple="multiple" size="15" class="span5"> |
| 549 | 549 | <?php |
| 550 | - foreach ($nosessionUsersList as $uid => $enreg) { |
|
| 551 | - ?> |
|
| 550 | + foreach ($nosessionUsersList as $uid => $enreg) { |
|
| 551 | + ?> |
|
| 552 | 552 | <option value="<?php echo $uid; ?>" <?php if (in_array($uid, $UserList)) echo 'selected="selected"'; ?>><?php echo api_get_person_name($enreg['fn'], $enreg['ln']).' ('.$enreg['un'].')'; ?></option> |
| 553 | 553 | <?php |
| 554 | - } |
|
| 555 | - ?> |
|
| 554 | + } |
|
| 555 | + ?> |
|
| 556 | 556 | </select> |
| 557 | 557 | </div> |
| 558 | 558 | <input type="checkbox" onchange="checked_in_no_session(this.checked);" name="user_with_any_session" id="user_with_any_session_id"> |
@@ -560,7 +560,7 @@ discard block |
||
| 560 | 560 | <?php |
| 561 | 561 | } |
| 562 | 562 | unset($nosessionUsersList); |
| 563 | - ?> |
|
| 563 | + ?> |
|
| 564 | 564 | </div> |
| 565 | 565 | </div> |
| 566 | 566 | |
@@ -14,20 +14,20 @@ discard block |
||
| 14 | 14 | $is_allowedToTrack = $is_courseAdmin || $is_platformAdmin || $is_session_general_coach || $is_sessionAdmin; |
| 15 | 15 | |
| 16 | 16 | if (!$is_allowedToTrack) { |
| 17 | - Display::display_header(null); |
|
| 18 | - api_not_allowed(); |
|
| 19 | - Display::display_footer(); |
|
| 17 | + Display::display_header(null); |
|
| 18 | + api_not_allowed(); |
|
| 19 | + Display::display_footer(); |
|
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | $export_to_xls = false; |
| 23 | 23 | if (isset($_GET['export'])) { |
| 24 | - $export_to_xls = true; |
|
| 24 | + $export_to_xls = true; |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | if (api_is_platform_admin()) { |
| 28 | - $global = true; |
|
| 28 | + $global = true; |
|
| 29 | 29 | } else { |
| 30 | - $global = false; |
|
| 30 | + $global = false; |
|
| 31 | 31 | } |
| 32 | 32 | $global = true; |
| 33 | 33 | |
@@ -45,14 +45,14 @@ discard block |
||
| 45 | 45 | $session_id = isset($_REQUEST['session_id']) ? intval($_REQUEST['session_id']) : null; |
| 46 | 46 | |
| 47 | 47 | if (empty($session_id)) { |
| 48 | - $temp_course_list = CourseManager::get_courses_list(); |
|
| 48 | + $temp_course_list = CourseManager::get_courses_list(); |
|
| 49 | 49 | } else { |
| 50 | - $temp_course_list = SessionManager::get_course_list_by_session_id($session_id); |
|
| 50 | + $temp_course_list = SessionManager::get_course_list_by_session_id($session_id); |
|
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | foreach ($temp_course_list as $temp_course_item) { |
| 54 | - $course_item = api_get_course_info($temp_course_item['code']); |
|
| 55 | - $course_select_list[$temp_course_item['code']] = $course_item['title']; |
|
| 54 | + $course_item = api_get_course_info($temp_course_item['code']); |
|
| 55 | + $course_select_list[$temp_course_item['code']] = $course_item['title']; |
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | //Get session list |
@@ -95,132 +95,132 @@ discard block |
||
| 95 | 95 | $course_info = api_get_course_info($course_code); |
| 96 | 96 | |
| 97 | 97 | if (!empty($course_info)) { |
| 98 | - $list = new LearnpathList('', $course_code); |
|
| 99 | - $lp_list = $list->get_flat_list(); |
|
| 98 | + $list = new LearnpathList('', $course_code); |
|
| 99 | + $lp_list = $list->get_flat_list(); |
|
| 100 | 100 | |
| 101 | - $main_question_list = array(); |
|
| 101 | + $main_question_list = array(); |
|
| 102 | 102 | |
| 103 | - foreach ($lp_list as $lp_id => $lp) { |
|
| 103 | + foreach ($lp_list as $lp_id => $lp) { |
|
| 104 | 104 | $exercise_list = Event::get_all_exercises_from_lp( |
| 105 | 105 | $lp_id, |
| 106 | 106 | $course_info['real_id'] |
| 107 | 107 | ); |
| 108 | 108 | |
| 109 | - foreach ($exercise_list as $exercise) { |
|
| 110 | - $my_exercise = new Exercise($course_info['real_id']); |
|
| 111 | - $my_exercise->read($exercise['path']); |
|
| 112 | - $question_list = $my_exercise->selectQuestionList(); |
|
| 113 | - |
|
| 114 | - $exercise_stats = Event::get_all_exercise_event_from_lp( |
|
| 115 | - $exercise['path'], |
|
| 116 | - $course_info['real_id'], |
|
| 117 | - $session_id |
|
| 118 | - ); |
|
| 119 | - |
|
| 120 | - foreach ($question_list as $question_id) { |
|
| 121 | - $question_data = Question::read($question_id); |
|
| 122 | - $main_question_list[$question_id] = $question_data; |
|
| 123 | - $quantity_exercises = 0; |
|
| 124 | - $question_result = 0; |
|
| 125 | - |
|
| 126 | - foreach ($exercise_stats as $stats) { |
|
| 127 | - if (!empty($stats['question_list'])) { |
|
| 128 | - foreach ($stats['question_list'] as $my_question_stat) { |
|
| 129 | - if ($question_id == $my_question_stat['question_id']) { |
|
| 130 | - $question_result = $question_result + $my_question_stat['marks']; |
|
| 131 | - $quantity_exercises++; |
|
| 132 | - } |
|
| 133 | - } |
|
| 134 | - } |
|
| 135 | - } |
|
| 136 | - |
|
| 137 | - if (!empty($quantity_exercises)) { |
|
| 138 | - // Score % average |
|
| 139 | - $main_question_list[$question_id]->results = ($question_result / ($quantity_exercises)); |
|
| 140 | - } else { |
|
| 141 | - $main_question_list[$question_id]->results = 0; |
|
| 142 | - } |
|
| 143 | - |
|
| 144 | - $main_question_list[$question_id]->quantity = $quantity_exercises; |
|
| 145 | - } |
|
| 146 | - } |
|
| 147 | - } |
|
| 109 | + foreach ($exercise_list as $exercise) { |
|
| 110 | + $my_exercise = new Exercise($course_info['real_id']); |
|
| 111 | + $my_exercise->read($exercise['path']); |
|
| 112 | + $question_list = $my_exercise->selectQuestionList(); |
|
| 113 | + |
|
| 114 | + $exercise_stats = Event::get_all_exercise_event_from_lp( |
|
| 115 | + $exercise['path'], |
|
| 116 | + $course_info['real_id'], |
|
| 117 | + $session_id |
|
| 118 | + ); |
|
| 119 | + |
|
| 120 | + foreach ($question_list as $question_id) { |
|
| 121 | + $question_data = Question::read($question_id); |
|
| 122 | + $main_question_list[$question_id] = $question_data; |
|
| 123 | + $quantity_exercises = 0; |
|
| 124 | + $question_result = 0; |
|
| 125 | + |
|
| 126 | + foreach ($exercise_stats as $stats) { |
|
| 127 | + if (!empty($stats['question_list'])) { |
|
| 128 | + foreach ($stats['question_list'] as $my_question_stat) { |
|
| 129 | + if ($question_id == $my_question_stat['question_id']) { |
|
| 130 | + $question_result = $question_result + $my_question_stat['marks']; |
|
| 131 | + $quantity_exercises++; |
|
| 132 | + } |
|
| 133 | + } |
|
| 134 | + } |
|
| 135 | + } |
|
| 136 | + |
|
| 137 | + if (!empty($quantity_exercises)) { |
|
| 138 | + // Score % average |
|
| 139 | + $main_question_list[$question_id]->results = ($question_result / ($quantity_exercises)); |
|
| 140 | + } else { |
|
| 141 | + $main_question_list[$question_id]->results = 0; |
|
| 142 | + } |
|
| 143 | + |
|
| 144 | + $main_question_list[$question_id]->quantity = $quantity_exercises; |
|
| 145 | + } |
|
| 146 | + } |
|
| 147 | + } |
|
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | if (!$export_to_xls) { |
| 151 | - Display::display_header(get_lang("MySpace")); |
|
| 152 | - echo '<div class="actions">'; |
|
| 153 | - if ($global) { |
|
| 154 | - echo MySpace::getTopMenu(); |
|
| 155 | - } else { |
|
| 156 | - echo '<div style="float:left; clear:left"> |
|
| 151 | + Display::display_header(get_lang("MySpace")); |
|
| 152 | + echo '<div class="actions">'; |
|
| 153 | + if ($global) { |
|
| 154 | + echo MySpace::getTopMenu(); |
|
| 155 | + } else { |
|
| 156 | + echo '<div style="float:left; clear:left"> |
|
| 157 | 157 | <a href="courseLog.php?'.api_get_cidreq().'&studentlist=true">'. |
| 158 | 158 | get_lang('StudentsTracking').'</a> | |
| 159 | 159 | <a href="courseLog.php?'.api_get_cidreq().'&studentlist=false">'. |
| 160 | 160 | get_lang('CourseTracking').'</a> '; |
| 161 | - echo '</div>'; |
|
| 162 | - } |
|
| 163 | - echo '</div>'; |
|
| 161 | + echo '</div>'; |
|
| 162 | + } |
|
| 163 | + echo '</div>'; |
|
| 164 | 164 | |
| 165 | - if (api_is_platform_admin()) { |
|
| 166 | - echo MySpace::getAdminActions(); |
|
| 167 | - } |
|
| 168 | - echo '<br />'; |
|
| 169 | - echo '<h2>'.get_lang('LPQuestionListResults').'</h2>'; |
|
| 165 | + if (api_is_platform_admin()) { |
|
| 166 | + echo MySpace::getAdminActions(); |
|
| 167 | + } |
|
| 168 | + echo '<br />'; |
|
| 169 | + echo '<h2>'.get_lang('LPQuestionListResults').'</h2>'; |
|
| 170 | 170 | |
| 171 | - $form->display(); |
|
| 171 | + $form->display(); |
|
| 172 | 172 | |
| 173 | - if (empty($course_code)) { |
|
| 174 | - echo Display::return_message(get_lang('PleaseSelectACourse'), 'warning'); |
|
| 175 | - } |
|
| 173 | + if (empty($course_code)) { |
|
| 174 | + echo Display::return_message(get_lang('PleaseSelectACourse'), 'warning'); |
|
| 175 | + } |
|
| 176 | 176 | } |
| 177 | 177 | |
| 178 | 178 | $course_average = array(); |
| 179 | 179 | $counter = 0; |
| 180 | 180 | |
| 181 | 181 | if (!empty($main_question_list) && is_array($main_question_list)) { |
| 182 | - $html_result .= '<table class="data_table">'; |
|
| 183 | - $html_result .= '<tr><th>'.get_lang('Question'). |
|
| 182 | + $html_result .= '<table class="data_table">'; |
|
| 183 | + $html_result .= '<tr><th>'.get_lang('Question'). |
|
| 184 | 184 | Display::return_icon('info3.gif', get_lang('QuestionsAreTakenFromLPExercises'), array('align' => 'absmiddle', 'hspace' => '3px')).'</th>'; |
| 185 | - $html_result .= '<th>'.$course_info['visual_code'].' '.get_lang('AverageScore').Display::return_icon('info3.gif', get_lang('AllStudentsAttemptsAreConsidered'), array('align' => 'absmiddle', 'hspace' => '3px')).' </th>'; |
|
| 186 | - $html_result .= '<th>'.get_lang('Quantity').'</th>'; |
|
| 187 | - |
|
| 188 | - foreach ($main_question_list as $question) { |
|
| 189 | - $total_student = 0; |
|
| 190 | - $counter++; |
|
| 191 | - $s_css_class = 'row_even'; |
|
| 192 | - if ($counter % 2 == 0) { |
|
| 193 | - $s_css_class = 'row_odd'; |
|
| 194 | - } |
|
| 195 | - $html_result .= "<tr class='$s_css_class'> |
|
| 185 | + $html_result .= '<th>'.$course_info['visual_code'].' '.get_lang('AverageScore').Display::return_icon('info3.gif', get_lang('AllStudentsAttemptsAreConsidered'), array('align' => 'absmiddle', 'hspace' => '3px')).' </th>'; |
|
| 186 | + $html_result .= '<th>'.get_lang('Quantity').'</th>'; |
|
| 187 | + |
|
| 188 | + foreach ($main_question_list as $question) { |
|
| 189 | + $total_student = 0; |
|
| 190 | + $counter++; |
|
| 191 | + $s_css_class = 'row_even'; |
|
| 192 | + if ($counter % 2 == 0) { |
|
| 193 | + $s_css_class = 'row_odd'; |
|
| 194 | + } |
|
| 195 | + $html_result .= "<tr class='$s_css_class'> |
|
| 196 | 196 | <td >"; |
| 197 | - $question_title = trim($question->question); |
|
| 198 | - if (empty($question_title)) { |
|
| 199 | - $html_result .= get_lang('Untitled').' '.get_lang('Question').' #'.$question->id; |
|
| 200 | - } else { |
|
| 201 | - $html_result .= $question->question; |
|
| 202 | - } |
|
| 203 | - |
|
| 204 | - $html_result .= "</td>"; |
|
| 205 | - $html_result .= "<td>"; |
|
| 206 | - $html_result .= round($question->results, 2).' / '.$question->weighting; |
|
| 207 | - $html_result .= "</td>"; |
|
| 208 | - |
|
| 209 | - $html_result .= "<td>"; |
|
| 210 | - $html_result .= $question->quantity; |
|
| 211 | - $html_result .= "</td>"; |
|
| 212 | - } |
|
| 213 | - |
|
| 214 | - $html_result .= "</tr>"; |
|
| 215 | - $html_result .= '</table>'; |
|
| 197 | + $question_title = trim($question->question); |
|
| 198 | + if (empty($question_title)) { |
|
| 199 | + $html_result .= get_lang('Untitled').' '.get_lang('Question').' #'.$question->id; |
|
| 200 | + } else { |
|
| 201 | + $html_result .= $question->question; |
|
| 202 | + } |
|
| 203 | + |
|
| 204 | + $html_result .= "</td>"; |
|
| 205 | + $html_result .= "<td>"; |
|
| 206 | + $html_result .= round($question->results, 2).' / '.$question->weighting; |
|
| 207 | + $html_result .= "</td>"; |
|
| 208 | + |
|
| 209 | + $html_result .= "<td>"; |
|
| 210 | + $html_result .= $question->quantity; |
|
| 211 | + $html_result .= "</td>"; |
|
| 212 | + } |
|
| 213 | + |
|
| 214 | + $html_result .= "</tr>"; |
|
| 215 | + $html_result .= '</table>'; |
|
| 216 | 216 | } else { |
| 217 | - if (!empty($course_code)) { |
|
| 218 | - echo Display::return_message(get_lang('NoResults'), 'warning'); |
|
| 219 | - } |
|
| 217 | + if (!empty($course_code)) { |
|
| 218 | + echo Display::return_message(get_lang('NoResults'), 'warning'); |
|
| 219 | + } |
|
| 220 | 220 | } |
| 221 | 221 | |
| 222 | 222 | if (!$export_to_xls) { |
| 223 | - echo $html_result; |
|
| 223 | + echo $html_result; |
|
| 224 | 224 | } |
| 225 | 225 | |
| 226 | 226 | Display::display_footer(); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | * Security checks |
| 13 | 13 | */ |
| 14 | 14 | if (!isset($_SESSION['conditional_login']['uid'])) |
| 15 | - die("Not Authorised"); |
|
| 15 | + die("Not Authorised"); |
|
| 16 | 16 | |
| 17 | 17 | if (isset($_POST['password'])) { |
| 18 | 18 | $u = api_get_user_info($_SESSION['conditional_login']['uid']); |
@@ -11,15 +11,15 @@ discard block |
||
| 11 | 11 | class UrlManager |
| 12 | 12 | { |
| 13 | 13 | /** |
| 14 | - * Creates a new url access |
|
| 15 | - * |
|
| 16 | - * @author Julio Montoya <[email protected]>, |
|
| 17 | - * |
|
| 14 | + * Creates a new url access |
|
| 15 | + * |
|
| 16 | + * @author Julio Montoya <[email protected]>, |
|
| 17 | + * |
|
| 18 | 18 | * @param string $url The URL of the site |
| 19 | 19 | * @param string $description The description of the site |
| 20 | 20 | * @param int $active is active or not |
| 21 | 21 | * @return boolean if success |
| 22 | - */ |
|
| 22 | + */ |
|
| 23 | 23 | public static function add($url, $description, $active) |
| 24 | 24 | { |
| 25 | 25 | $tms = time(); |
@@ -36,8 +36,8 @@ discard block |
||
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | - * Updates an URL access |
|
| 40 | - * @author Julio Montoya <[email protected]>, |
|
| 39 | + * Updates an URL access |
|
| 40 | + * @author Julio Montoya <[email protected]>, |
|
| 41 | 41 | * |
| 42 | 42 | * @param int $url_id The url id |
| 43 | 43 | * @param string $url |
@@ -63,12 +63,12 @@ discard block |
||
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | /** |
| 66 | - * Deletes an url |
|
| 67 | - * @author Julio Montoya |
|
| 68 | - * @param int $id url id |
|
| 66 | + * Deletes an url |
|
| 67 | + * @author Julio Montoya |
|
| 68 | + * @param int $id url id |
|
| 69 | 69 | * |
| 70 | - * @return boolean true if success |
|
| 71 | - * */ |
|
| 70 | + * @return boolean true if success |
|
| 71 | + * */ |
|
| 72 | 72 | public static function delete($id) |
| 73 | 73 | { |
| 74 | 74 | $id = intval($id); |
@@ -218,12 +218,12 @@ discard block |
||
| 218 | 218 | } |
| 219 | 219 | |
| 220 | 220 | /** |
| 221 | - * Gets the inner join of access_url and the course table |
|
| 222 | - * |
|
| 223 | - * @author Julio Montoya |
|
| 224 | - * @param int access url id |
|
| 225 | - * @return array Database::store_result of the result |
|
| 226 | - **/ |
|
| 221 | + * Gets the inner join of access_url and the course table |
|
| 222 | + * |
|
| 223 | + * @author Julio Montoya |
|
| 224 | + * @param int access url id |
|
| 225 | + * @return array Database::store_result of the result |
|
| 226 | + **/ |
|
| 227 | 227 | public static function get_url_rel_course_data($access_url_id = null) |
| 228 | 228 | { |
| 229 | 229 | $where = ''; |
@@ -381,12 +381,12 @@ discard block |
||
| 381 | 381 | } |
| 382 | 382 | |
| 383 | 383 | /** |
| 384 | - * Checks the relationship between an URL and a User (return the num_rows) |
|
| 385 | - * @author Julio Montoya |
|
| 386 | - * @param int user id |
|
| 387 | - * @param int url id |
|
| 388 | - * @return boolean true if success |
|
| 389 | - * */ |
|
| 384 | + * Checks the relationship between an URL and a User (return the num_rows) |
|
| 385 | + * @author Julio Montoya |
|
| 386 | + * @param int user id |
|
| 387 | + * @param int url id |
|
| 388 | + * @return boolean true if success |
|
| 389 | + * */ |
|
| 390 | 390 | public static function relation_url_user_exist($user_id, $url_id) |
| 391 | 391 | { |
| 392 | 392 | $table = Database::get_main_table(TABLE_MAIN_ACCESS_URL_REL_USER); |
@@ -399,12 +399,12 @@ discard block |
||
| 399 | 399 | } |
| 400 | 400 | |
| 401 | 401 | /** |
| 402 | - * Checks the relationship between an URL and a Course (return the num_rows) |
|
| 403 | - * @author Julio Montoya |
|
| 404 | - * @param int $courseId |
|
| 405 | - * @param int $urlId |
|
| 406 | - * @return boolean true if success |
|
| 407 | - * */ |
|
| 402 | + * Checks the relationship between an URL and a Course (return the num_rows) |
|
| 403 | + * @author Julio Montoya |
|
| 404 | + * @param int $courseId |
|
| 405 | + * @param int $urlId |
|
| 406 | + * @return boolean true if success |
|
| 407 | + * */ |
|
| 408 | 408 | public static function relation_url_course_exist($courseId, $urlId) |
| 409 | 409 | { |
| 410 | 410 | $table_url_rel_course = Database::get_main_table(TABLE_MAIN_ACCESS_URL_REL_COURSE); |
@@ -440,12 +440,12 @@ discard block |
||
| 440 | 440 | } |
| 441 | 441 | |
| 442 | 442 | /** |
| 443 | - * Checks the relationship between an URL and a Session (return the num_rows) |
|
| 444 | - * @author Julio Montoya |
|
| 445 | - * @param int user id |
|
| 446 | - * @param int url id |
|
| 447 | - * @return boolean true if success |
|
| 448 | - * */ |
|
| 443 | + * Checks the relationship between an URL and a Session (return the num_rows) |
|
| 444 | + * @author Julio Montoya |
|
| 445 | + * @param int user id |
|
| 446 | + * @param int url id |
|
| 447 | + * @return boolean true if success |
|
| 448 | + * */ |
|
| 449 | 449 | public static function relation_url_session_exist($session_id, $url_id) |
| 450 | 450 | { |
| 451 | 451 | $table_url_rel_session = Database::get_main_table(TABLE_MAIN_ACCESS_URL_REL_SESSION); |
@@ -762,13 +762,13 @@ discard block |
||
| 762 | 762 | } |
| 763 | 763 | |
| 764 | 764 | /** |
| 765 | - * Deletes an url and user relationship |
|
| 766 | - * @author Julio Montoya |
|
| 767 | - * @param int user id |
|
| 768 | - * @param int url id |
|
| 765 | + * Deletes an url and user relationship |
|
| 766 | + * @author Julio Montoya |
|
| 767 | + * @param int user id |
|
| 768 | + * @param int url id |
|
| 769 | 769 | * |
| 770 | - * @return boolean true if success |
|
| 771 | - * */ |
|
| 770 | + * @return boolean true if success |
|
| 771 | + * */ |
|
| 772 | 772 | public static function delete_url_rel_user($user_id, $url_id) |
| 773 | 773 | { |
| 774 | 774 | $table = Database::get_main_table(TABLE_MAIN_ACCESS_URL_REL_USER); |
@@ -803,13 +803,13 @@ discard block |
||
| 803 | 803 | } |
| 804 | 804 | |
| 805 | 805 | /** |
| 806 | - * Deletes an url and course relationship |
|
| 807 | - * @author Julio Montoya |
|
| 808 | - * @param int $courseId |
|
| 809 | - * @param int $urlId |
|
| 806 | + * Deletes an url and course relationship |
|
| 807 | + * @author Julio Montoya |
|
| 808 | + * @param int $courseId |
|
| 809 | + * @param int $urlId |
|
| 810 | 810 | * |
| 811 | - * @return boolean true if success |
|
| 812 | - * */ |
|
| 811 | + * @return boolean true if success |
|
| 812 | + * */ |
|
| 813 | 813 | public static function delete_url_rel_course($courseId, $urlId) |
| 814 | 814 | { |
| 815 | 815 | $table = Database::get_main_table(TABLE_MAIN_ACCESS_URL_REL_COURSE); |
@@ -860,13 +860,13 @@ discard block |
||
| 860 | 860 | } |
| 861 | 861 | |
| 862 | 862 | /** |
| 863 | - * Deletes an url and session relationship |
|
| 864 | - * @author Julio Montoya |
|
| 865 | - * @param char course code |
|
| 866 | - * @param int url id |
|
| 863 | + * Deletes an url and session relationship |
|
| 864 | + * @author Julio Montoya |
|
| 865 | + * @param char course code |
|
| 866 | + * @param int url id |
|
| 867 | 867 | * |
| 868 | - * @return boolean true if success |
|
| 869 | - * */ |
|
| 868 | + * @return boolean true if success |
|
| 869 | + * */ |
|
| 870 | 870 | public static function delete_url_rel_session($session_id, $url_id) |
| 871 | 871 | { |
| 872 | 872 | $table = Database::get_main_table(TABLE_MAIN_ACCESS_URL_REL_SESSION); |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | array(), |
| 52 | 52 | ICON_SIZE_MEDIUM |
| 53 | 53 | ) |
| 54 | - ) |
|
| 54 | + ) |
|
| 55 | 55 | ) |
| 56 | 56 | ); |
| 57 | 57 | $content .= Display::grid_html('event_email_template'); |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | |
| 101 | 101 | $menu_items[] = '<a href="'.api_get_path(WEB_CODE_PATH).'mySpace/?view=teacher">'.get_lang('TeacherInterface').'</a>'; |
| 102 | 102 | if (api_is_platform_admin()) { |
| 103 | - $menu_items[] = '<a href="'.api_get_path(WEB_CODE_PATH).'mySpace/?view=admin">'.get_lang('AdminInterface').'</a>'; |
|
| 103 | + $menu_items[] = '<a href="'.api_get_path(WEB_CODE_PATH).'mySpace/?view=admin">'.get_lang('AdminInterface').'</a>'; |
|
| 104 | 104 | } else { |
| 105 | 105 | $menu_items[] = '<a href="'.api_get_path(WEB_CODE_PATH).'mySpace/?view=coach">'.get_lang('AdminInterface').'</a>'; |
| 106 | 106 | } |
@@ -141,12 +141,12 @@ |
||
| 141 | 141 | / |
| 142 | 142 | <select name="year_start"> |
| 143 | 143 | <?php |
| 144 | - for ($i = $thisYear - 5; $i <= ($thisYear + 5); $i++) { |
|
| 145 | - ?> |
|
| 144 | + for ($i = $thisYear - 5; $i <= ($thisYear + 5); $i++) { |
|
| 145 | + ?> |
|
| 146 | 146 | <option value="<?php echo $i; ?>" <?php if ((!$formSent && $thisYear == $i) || ($formSent && $year_start == $i)) echo 'selected="selected"'; ?> ><?php echo $i; ?></option> |
| 147 | 147 | <?php |
| 148 | - } |
|
| 149 | - ?> |
|
| 148 | + } |
|
| 149 | + ?> |
|
| 150 | 150 | </select> |
| 151 | 151 | </div> |
| 152 | 152 | <div class="col-md-3"></div> |