|
306 | 306 | echo ' ';
|
307 | 307 | echo CourseManager::getTeacherListFromCourseCodeToString($course['code']);
|
308 | 308 | echo '<br />';
|
309 |
| - |
310 | 309 | if (api_get_setting('display_teacher_in_courselist') === 'true') {
|
311 | 310 | echo $course['tutor'];
|
312 | 311 | }
|
313 |
| - echo '</td><td valign="top">'; ?> |
314 |
| - <div style="float:left;width:110px;"> |
315 |
| - <?php |
316 |
| - if (api_get_setting('show_courses_descriptions_in_catalog') == 'true') { |
317 |
| - $icon_title = get_lang('CourseDetails').' - '.$course['title']; ?> |
318 |
| - <a href="<?php echo api_get_path(WEB_CODE_PATH); ?>inc/ajax/course_home.ajax.php?a=show_course_information&code=<?php echo $course['code']; ?>" data-title="<?php echo $icon_title; ?>" title="<?php echo $icon_title; ?>" class="ajax"> |
319 |
| - <?php |
320 |
| - echo Display::return_icon('info.png', $icon_title, '', '22'); |
321 |
| - } ?> |
322 |
| - </a> |
323 |
| - <?php |
| 312 | + echo '</td><td valign="top">'; |
| 313 | + echo '<div style="float:left;width:110px;">'; |
| 314 | + if (api_get_setting('show_courses_descriptions_in_catalog') === 'true') { |
| 315 | + $icon_title = get_lang('CourseDetails').' - '.$course['title']; |
| 316 | + $url = api_get_path( |
| 317 | + WEB_CODE_PATH |
| 318 | + ).'inc/ajax/course_home.ajax.php?a=show_course_information&code='.$course['code']; |
| 319 | + echo Security::remove_XSS( |
| 320 | + Display::url( |
| 321 | + Display::return_icon('info.png', $icon_title, '', '22'), |
| 322 | + $url, |
| 323 | + ['class' => 'ajax', 'data-title' => $icon_title, 'title' => $icon_title] |
| 324 | + ) |
| 325 | + ); |
324 | 326 | echo Display::url(
|
325 | 327 | Display::return_icon('edit.png', get_lang('Edit'), '', 22),
|
326 | 328 | $currentUrl.'?action=edit_course_category&category_id='.$row['id'].'&course_id='.$course['real_id'].'&sec_token='.$stok,
|
327 | 329 | ['class' => 'ajax']
|
328 | 330 | );
|
329 |
| - |
| 331 | + } |
330 | 332 | if ($key > 0) {
|
331 | 333 | ?>
|
332 | 334 | <a href="<?php echo $currentUrl; ?>?action=<?php echo $action; ?>&move=up&course=<?php echo $course['code']; ?>&category=<?php echo $course['user_course_cat']; ?>&sec_token=<?php echo $stok; ?>">
|
|
390 | 392 | if (api_get_setting('display_teacher_in_courselist') === 'true') {
|
391 | 393 | echo $course['tutor'];
|
392 | 394 | }
|
393 |
| - echo '</td><td class="text-right">'; ?> |
394 |
| - <div> |
395 |
| - <?php |
396 |
| - if (api_get_setting('show_courses_descriptions_in_catalog') == 'true') { |
397 |
| - $icon_title = get_lang('CourseDetails').' - '.$course['title']; ?> |
398 |
| - <a href="<?php echo api_get_path(WEB_CODE_PATH); ?>inc/ajax/course_home.ajax.php?a=show_course_information&code=<?php echo $course['code']; ?>" data-title="<?php echo $icon_title; ?>" title="<?php echo $icon_title; ?>" class="ajax"> |
399 |
| - <?php echo Display::return_icon('info.png', $icon_title, '', '22'); ?> |
400 |
| - </a> |
401 |
| - <?php |
402 |
| - } |
| 395 | + echo '</td><td class="text-right">'; |
| 396 | + echo '<div>'; |
| 397 | + if (api_get_setting('show_courses_descriptions_in_catalog') === 'true') { |
| 398 | + $icon_title = get_lang('CourseDetails').' - '.$course['title']; |
| 399 | + $url = api_get_path(WEB_CODE_PATH).'inc/ajax/course_home.ajax.php?a=show_course_information&code='.$course['code']; |
| 400 | + echo Security::remove_XSS( |
| 401 | + Display::url( |
| 402 | + Display::return_icon('info.png', $icon_title, '', '22'), |
| 403 | + $url, |
| 404 | + ['class' => 'ajax', 'data-title' => $icon_title, 'title' => $icon_title] |
| 405 | + ) |
| 406 | + ); |
| 407 | + } |
403 | 408 | echo '';
|
404 | 409 | if (isset($_GET['edit']) && $course['code'] == $_GET['edit']) {
|
405 | 410 | echo Display::return_icon('edit_na.png', get_lang('Edit'), '', 22);
|
|
412 | 417 | }
|
413 | 418 | if ($key > 0) {
|
414 | 419 | ?>
|
415 |
| - <a href="<?php echo $currentUrl; ?>?action=<?php echo $action; ?>&move=up&course=<?php echo $course['code']; ?>&category=<?php echo $course['user_course_cat']; ?>&sec_token=<?php echo $stok; ?>"> |
| 420 | + <a |
| 421 | + href="<?php echo $currentUrl; ?>?action=<?php echo $action; ?>&move=up&course=<?php echo $course['code']; ?>&category=<?php echo $course['user_course_cat']; ?>&sec_token=<?php echo $stok; ?>"> |
416 | 422 | <?php echo Display::display_icon('up.png', get_lang('Up'), '', 22); ?>
|
417 | 423 | </a>
|
418 | 424 | <?php
|
|
421 | 427 | }
|
422 | 428 | if ($key < $number_of_courses - 1) {
|
423 | 429 | ?>
|
424 |
| - <a href="<?php echo $currentUrl; ?>?action=<?php echo $action; ?>&move=down&course=<?php echo $course['code']; ?>&category=<?php echo $course['user_course_cat']; ?>&sec_token=<?php echo $stok; ?>"> |
| 430 | + <a |
| 431 | + href="<?php echo $currentUrl; ?>?action=<?php echo $action; ?>&move=down&course=<?php echo $course['code']; ?>&category=<?php echo $course['user_course_cat']; ?>&sec_token=<?php echo $stok; ?>"> |
425 | 432 | <?php echo Display::display_icon('down.png', get_lang('Down'), '', 22); ?>
|
426 | 433 | </a>
|
427 | 434 | <?php
|
|
435 | 442 | if ($course['unsubscr'] == 1) {
|
436 | 443 | ?>
|
437 | 444 | <!-- changed link to submit to avoid action by the search tool indexer -->
|
438 |
| - <form action="<?php echo api_get_self(); ?>" method="post" onsubmit="javascript: if (!confirm('<?php echo addslashes(api_htmlentities(get_lang("ConfirmUnsubscribeFromCourse"), ENT_QUOTES, api_get_system_encoding())); ?>')) return false;"> |
| 445 | + <form action="<?php echo api_get_self(); ?>" |
| 446 | + method="post" |
| 447 | + onsubmit="javascript: if (!confirm('<?php echo addslashes(api_htmlentities(get_lang("ConfirmUnsubscribeFromCourse"), ENT_QUOTES, api_get_system_encoding())); ?>')) return false;"> |
439 | 448 | <input type="hidden" name="sec_token" value="<?php echo $stok; ?>">
|
440 | 449 | <input type="hidden" name="unsubscribe" value="<?php echo $course['code']; ?>" />
|
441 | 450 | <button class="btn btn-default" value="<?php echo get_lang('Unsubscribe'); ?>" name="unsub">
|
|
0 commit comments