@@ -48,7 +48,7 @@ |
||
| 48 | 48 | $column_model = array( |
| 49 | 49 | array('name'=>'name', 'index'=>'name', 'width'=>'120', 'align'=>'left'), |
| 50 | 50 | array('name'=>'actions', 'index'=>'actions', 'width'=>'100', 'align'=>'left', 'sortable'=>'false') |
| 51 | - ); |
|
| 51 | + ); |
|
| 52 | 52 | //Autowidth |
| 53 | 53 | $extra_params['autowidth'] = 'true'; |
| 54 | 54 | //height auto |
@@ -33,18 +33,18 @@ |
||
| 33 | 33 | $doc_url = str_replace('/..', '', $doc_url); //echo $doc_url; |
| 34 | 34 | |
| 35 | 35 | if (! isset($_course)) { |
| 36 | - api_not_allowed(true); |
|
| 36 | + api_not_allowed(true); |
|
| 37 | 37 | } |
| 38 | 38 | $full_file_name = api_get_path(SYS_COURSE_PATH).api_get_course_path().'/upload/blog/'.$doc_url; |
| 39 | 39 | |
| 40 | 40 | //if the rewrite rule asks for a directory, we redirect to the course view |
| 41 | 41 | if (is_dir($full_file_name)) { |
| 42 | - //remove last slash if present |
|
| 43 | - while ($doc_url{$dul = strlen($doc_url)-1}=='/') $doc_url = substr($doc_url,0,$dul); |
|
| 44 | - //create the path |
|
| 45 | - $document_explorer = api_get_path(WEB_COURSE_PATH).api_get_course_path(); // home course path |
|
| 46 | - //redirect |
|
| 47 | - header('Location: '.$document_explorer); |
|
| 42 | + //remove last slash if present |
|
| 43 | + while ($doc_url{$dul = strlen($doc_url)-1}=='/') $doc_url = substr($doc_url,0,$dul); |
|
| 44 | + //create the path |
|
| 45 | + $document_explorer = api_get_path(WEB_COURSE_PATH).api_get_course_path(); // home course path |
|
| 46 | + //redirect |
|
| 47 | + header('Location: '.$document_explorer); |
|
| 48 | 48 | exit; |
| 49 | 49 | } |
| 50 | 50 | |
@@ -162,17 +162,17 @@ |
||
| 162 | 162 | |
| 163 | 163 | if ($form->validate()) { |
| 164 | 164 | $officialCode = $form->getSubmitValue('filter'); |
| 165 | - if ($officialCode == 'all') { |
|
| 165 | + if ($officialCode == 'all') { |
|
| 166 | 166 | $certificate_list = GradebookUtils::get_list_users_certificates($cat_id); |
| 167 | 167 | } else { |
| 168 | - $userList = UserManager::getUsersByOfficialCode($officialCode); |
|
| 169 | - if (!empty($userList)) { |
|
| 170 | - $certificate_list = GradebookUtils::get_list_users_certificates( |
|
| 171 | - $cat_id, |
|
| 172 | - $userList |
|
| 173 | - ); |
|
| 174 | - } |
|
| 175 | - } |
|
| 168 | + $userList = UserManager::getUsersByOfficialCode($officialCode); |
|
| 169 | + if (!empty($userList)) { |
|
| 170 | + $certificate_list = GradebookUtils::get_list_users_certificates( |
|
| 171 | + $cat_id, |
|
| 172 | + $userList |
|
| 173 | + ); |
|
| 174 | + } |
|
| 175 | + } |
|
| 176 | 176 | } else { |
| 177 | 177 | $certificate_list = GradebookUtils::get_list_users_certificates($cat_id); |
| 178 | 178 | } |
@@ -558,7 +558,7 @@ |
||
| 558 | 558 | $my_api_cidreq = 'cidReq=' . $my_category['course_code']; |
| 559 | 559 | } |
| 560 | 560 | if ($show_add_link && !$message_resource) { |
| 561 | - $actionsLeft .= '<a href="gradebook_add_eval.php?' . $my_api_cidreq . '&selectcat=' . $catobj->get_id() . '" >' . |
|
| 561 | + $actionsLeft .= '<a href="gradebook_add_eval.php?' . $my_api_cidreq . '&selectcat=' . $catobj->get_id() . '" >' . |
|
| 562 | 562 | Display::return_icon('new_evaluation.png', get_lang('NewEvaluation'), '', ICON_SIZE_MEDIUM) . '</a>'; |
| 563 | 563 | $cats = Category :: load($selectcat); |
| 564 | 564 | |
@@ -8,16 +8,16 @@ |
||
| 8 | 8 | */ |
| 9 | 9 | interface GradebookItem |
| 10 | 10 | { |
| 11 | - public function get_item_type(); |
|
| 12 | - public function get_id(); |
|
| 13 | - public function get_name(); |
|
| 14 | - public function get_description(); |
|
| 15 | - public function get_course_code(); |
|
| 16 | - public function get_weight(); |
|
| 17 | - public function get_date(); |
|
| 18 | - public function is_visible(); |
|
| 19 | - public function get_icon_name(); |
|
| 20 | - public function getStudentList(); |
|
| 21 | - public function setStudentList($list); |
|
| 22 | - public function calc_score($stud_id = null, $type = null); |
|
| 11 | + public function get_item_type(); |
|
| 12 | + public function get_id(); |
|
| 13 | + public function get_name(); |
|
| 14 | + public function get_description(); |
|
| 15 | + public function get_course_code(); |
|
| 16 | + public function get_weight(); |
|
| 17 | + public function get_date(); |
|
| 18 | + public function is_visible(); |
|
| 19 | + public function get_icon_name(); |
|
| 20 | + public function getStudentList(); |
|
| 21 | + public function setStudentList($list); |
|
| 22 | + public function calc_score($stud_id = null, $type = null); |
|
| 23 | 23 | } |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | <?php |
| 88 | 88 | echo Display::get_alphabet_options($firstLetterUserGroup); |
| 89 | 89 | echo Display::get_numeric_options(0, 9, $firstLetterUserGroup); |
| 90 | - ?> |
|
| 90 | + ?> |
|
| 91 | 91 | </select> |
| 92 | 92 | </td> |
| 93 | 93 | <td width="20%"> </td> |
@@ -229,31 +229,31 @@ discard block |
||
| 229 | 229 | <td align="center"> |
| 230 | 230 | <div id="content_source"> |
| 231 | 231 | <?php |
| 232 | - if (!($add_type=='multiple')) { |
|
| 232 | + if (!($add_type=='multiple')) { |
|
| 233 | 233 | ?> |
| 234 | 234 | <input type="text" id="user_to_add" onkeyup="xajax_search_users(this.value,'single')" /> |
| 235 | 235 | <div id="ajax_list_users_single"></div> |
| 236 | 236 | <?php |
| 237 | - } else { |
|
| 238 | - ?> |
|
| 237 | + } else { |
|
| 238 | + ?> |
|
| 239 | 239 | <div id="ajax_list_multiple"> |
| 240 | 240 | <?php echo Display::select('elements_not_in_name', $elements_not_in, '', array('style'=>'width:360px', 'multiple'=>'multiple','id'=>'elements_not_in','size'=>'15px'),false); ?> |
| 241 | 241 | </div> |
| 242 | 242 | <?php |
| 243 | - } |
|
| 244 | - ?> |
|
| 243 | + } |
|
| 244 | + ?> |
|
| 245 | 245 | </div> |
| 246 | 246 | </td> |
| 247 | 247 | <td width="10%" valign="middle" align="center"> |
| 248 | 248 | <?php |
| 249 | - if ($ajax_search) { |
|
| 250 | - ?> |
|
| 249 | + if ($ajax_search) { |
|
| 250 | + ?> |
|
| 251 | 251 | <button class="btn bt-default" type="button" onclick="remove_item(document.getElementById('elements_in'))" > |
| 252 | 252 | <em class="fa fa-arrow-left"></em> |
| 253 | 253 | </button> |
| 254 | 254 | <?php |
| 255 | - } else { |
|
| 256 | - ?> |
|
| 255 | + } else { |
|
| 256 | + ?> |
|
| 257 | 257 | <button class="btn btn-default" type="button" onclick="moveItem(document.getElementById('elements_not_in'), document.getElementById('elements_in'))" onclick="moveItem(document.getElementById('elements_not_in'), document.getElementById('elements_in'))"> |
| 258 | 258 | <em class="fa fa-arrow-right"></em> |
| 259 | 259 | </button> |
@@ -262,8 +262,8 @@ discard block |
||
| 262 | 262 | <em class="fa fa-arrow-left"></em> |
| 263 | 263 | </button> |
| 264 | 264 | <?php |
| 265 | - } |
|
| 266 | - ?> |
|
| 265 | + } |
|
| 266 | + ?> |
|
| 267 | 267 | <br /><br /><br /><br /><br /><br /> |
| 268 | 268 | </td> |
| 269 | 269 | <td align="center"> |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | <option value = "%">--</option> |
| 198 | 198 | <?php |
| 199 | 199 | echo Display :: get_alphabet_options(); |
| 200 | - ?> |
|
| 200 | + ?> |
|
| 201 | 201 | </select> |
| 202 | 202 | </td> |
| 203 | 203 | <td align="center"> </td> |
@@ -207,31 +207,31 @@ discard block |
||
| 207 | 207 | <td align="center"> |
| 208 | 208 | <div id="content_source"> |
| 209 | 209 | <?php |
| 210 | - if (!($add_type=='multiple')) { |
|
| 210 | + if (!($add_type=='multiple')) { |
|
| 211 | 211 | ?> |
| 212 | 212 | <input type="text" id="user_to_add" onkeyup="xajax_search_users(this.value,'single')" /> |
| 213 | 213 | <div id="ajax_list_users_single"></div> |
| 214 | 214 | <?php |
| 215 | - } else { |
|
| 216 | - ?> |
|
| 215 | + } else { |
|
| 216 | + ?> |
|
| 217 | 217 | <div id="ajax_list_multiple"> |
| 218 | 218 | <?php echo Display::select('session_not_in_promotion_name',$session_not_in_promotion, '',array('style'=>'width:360px', 'multiple'=>'multiple','id'=>'session_not_in_promotion','size'=>'15px'),false); ?> |
| 219 | 219 | </div> |
| 220 | 220 | <?php |
| 221 | - } |
|
| 222 | - ?> |
|
| 221 | + } |
|
| 222 | + ?> |
|
| 223 | 223 | </div> |
| 224 | 224 | </td> |
| 225 | 225 | <td width="10%" valign="middle" align="center"> |
| 226 | 226 | <?php |
| 227 | - if ($ajax_search) { |
|
| 228 | - ?> |
|
| 227 | + if ($ajax_search) { |
|
| 228 | + ?> |
|
| 229 | 229 | <button class="btn btn-default" type="button" onclick="remove_item(document.getElementById('session_in_promotion'))" > |
| 230 | 230 | <em class="fa fa-arrow-left"></em> |
| 231 | 231 | </button> |
| 232 | 232 | <?php |
| 233 | - } else { |
|
| 234 | - ?> |
|
| 233 | + } else { |
|
| 234 | + ?> |
|
| 235 | 235 | <button class="btn btn-default" type="button" onclick="moveItem(document.getElementById('session_not_in_promotion'), document.getElementById('session_in_promotion'))" onclick="moveItem(document.getElementById('session_not_in_promotion'), document.getElementById('session_in_promotion'))"> |
| 236 | 236 | <em class="fa fa-arrow-right"></em> |
| 237 | 237 | </button> |
@@ -240,8 +240,8 @@ discard block |
||
| 240 | 240 | <em class="fa fa-arrow-left"></em> |
| 241 | 241 | </button> |
| 242 | 242 | <?php |
| 243 | - } |
|
| 244 | - ?> |
|
| 243 | + } |
|
| 244 | + ?> |
|
| 245 | 245 | <br /><br /><br /><br /><br /><br /> |
| 246 | 246 | </td> |
| 247 | 247 | <td align="center"> |
@@ -112,7 +112,7 @@ |
||
| 112 | 112 | <script> |
| 113 | 113 | $(function() { |
| 114 | 114 | <?php |
| 115 | - echo Display::grid_js('promotions', $url, $columns, $column_model, $extra_params, array(), $action_links, true); |
|
| 115 | + echo Display::grid_js('promotions', $url, $columns, $column_model, $extra_params, array(), $action_links, true); |
|
| 116 | 116 | ?> |
| 117 | 117 | }); |
| 118 | 118 | </script> |