Replace HTML Form with formvalidator

pull/3951/head
Angel Fernando Quiroz Campos 4 years ago
parent 3ac425ad7d
commit 5bbfaa0ceb
  1. 33
      main/auth/sort_my_courses.php

@ -331,8 +331,7 @@ if (!empty($user_course_categories)) {
if (api_get_setting('display_teacher_in_courselist') === 'true') {
echo $course['tutor'];
}
echo '</td><td valign="top">';
echo '<div style="float:left;width:110px;">';
echo '</td><td class="text-right">';
if (api_get_setting('show_courses_descriptions_in_catalog') === 'true') {
$icon_title = get_lang('CourseDetails').' - '.$course['title'];
$url = api_get_path(
@ -368,19 +367,12 @@ if (!empty($user_course_categories)) {
<?php
} else {
echo Display::return_icon('down_na.png', get_lang('Down'), '', 22);
} ?>
</div>
<div style="float:left; margin-right:10px;">
<?php
if ($course['status'] != 1) {
if ($course['unsubscr'] == 1) {
echo generateUnsubscribeForm($course['code'], $stok);
?>
</div>
<?php
}
if ($course['status'] != 1 && $course['unsubscr'] == 1) {
echo generateUnsubscribeForm($course['code'], $stok);
}
$key++;
echo '</td></tr>';
}
echo '</table>';
}
@ -408,7 +400,6 @@ if (!empty($courses_without_category)) {
echo $course['tutor'];
}
echo '</td><td class="text-right">';
echo '<div>';
if (api_get_setting('show_courses_descriptions_in_catalog') === 'true') {
$icon_title = get_lang('CourseDetails').' - '.$course['title'];
$url = api_get_path(WEB_CODE_PATH).'inc/ajax/course_home.ajax.php?a=show_course_information&code='.$course['code'];
@ -449,22 +440,14 @@ if (!empty($courses_without_category)) {
<?php
} else {
echo Display::return_icon('down_na.png', get_lang('Down'), '', 22);
} ?>
</div>
<div style="margin-right:10px;">
<?php
}
if ($course['status'] != 1) {
if ($course['unsubscr'] == 1) {
echo generateUnsubscribeForm($course['code'], $stok);
?>
<!-- changed link to submit to avoid action by the search tool indexer -->
</div>
<?php
}
} ?>
</td>
</tr>
<?php
}
echo '</td></tr>';
$key++;
}
}

Loading…
Cancel
Save