|
@@ -359,7 +359,7 @@ if (isset ($_GET['search']) && $_GET['search'] == 'advanced') {
|
|
|
$form = new FormValidator('search_simple', 'get', '', '', array(), FormValidator::LAYOUT_INLINE);
|
|
|
$form->addElement('text', 'keyword', null, array('id' => 'course-search-keyword'));
|
|
|
$form->addButtonSearch(get_lang('SearchCourse'));
|
|
|
- $form->addElement('static', 'search_advanced_link', null, '<a href="course_list.php?search=advanced">'.get_lang('AdvancedSearch').'</a>');
|
|
|
+ $advanced .= '<a class="btn btn-default" href="'. api_get_path(WEB_CODE_PATH).'admin/course_list.php?search=advanced"><i class="fa fa-search"></i> '.get_lang('AdvancedSearch').'</a>';
|
|
|
|
|
|
// Create a filter by session
|
|
|
$sessionFilter = new FormValidator('course_filter', 'get', '', '', array(), FormValidator::LAYOUT_INLINE);
|
|
@@ -381,7 +381,25 @@ if (isset ($_GET['search']) && $_GET['search'] == 'advanced') {
|
|
|
)
|
|
|
);
|
|
|
$courseListUrl = api_get_self();
|
|
|
- $actions = '
|
|
|
+ $actions .= '<div class="row">';
|
|
|
+ $actions .= '<div class="col-md-4">';
|
|
|
+ $actions .= $form->return_form();
|
|
|
+ $actions .= '</div>';
|
|
|
+ $actions .= '<div class="col-md-4">';
|
|
|
+ $actions .= $sessionFilter->return_form();
|
|
|
+ $actions .= '</div>';
|
|
|
+ $actions .= '<div class="col-md-4">';
|
|
|
+
|
|
|
+ $actions .= $advanced;
|
|
|
+ $actions .= '<div class="pull-right">';
|
|
|
+ $actions .= '<a href="course_add.php">'.Display::return_icon('new_course.png', get_lang('AddCourse'),'',ICON_SIZE_MEDIUM).'</a> ';
|
|
|
+ if (api_get_setting('course_validation') == 'true') {
|
|
|
+ $actions .= '<a href="course_request_review.php">'.Display::return_icon('course_request_pending.png', get_lang('ReviewCourseRequests'),'',ICON_SIZE_MEDIUM).'</a>';
|
|
|
+ }
|
|
|
+ $actions .= '</div>';
|
|
|
+ $actions .= '</div>';
|
|
|
+ $actions .= '</div>';
|
|
|
+ $actions .= '
|
|
|
<script>
|
|
|
$(function() {
|
|
|
$("#session_name").on("change", function() {
|
|
@@ -390,18 +408,9 @@ if (isset ($_GET['search']) && $_GET['search'] == 'advanced') {
|
|
|
});
|
|
|
});
|
|
|
</script>';
|
|
|
- $actions .= '<div class="pull-right">';
|
|
|
- $actions .= '<a href="course_add.php">'.Display::return_icon('new_course.png', get_lang('AddCourse'),'',ICON_SIZE_MEDIUM).'</a> ';
|
|
|
- if (api_get_setting('course_validation') == 'true') {
|
|
|
- $actions .= '<a href="course_request_review.php">'.Display::return_icon('course_request_pending.png', get_lang('ReviewCourseRequests'),'',ICON_SIZE_MEDIUM).'</a>';
|
|
|
- }
|
|
|
- $actions .= '</div>';
|
|
|
-
|
|
|
- $actions .= '<div class="pull-right">';
|
|
|
- $actions .= $sessionFilter->return_form();
|
|
|
- $actions .= '</div>';
|
|
|
-
|
|
|
- $actions .= $form->return_form();
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
if (isset($_GET['session_id']) && !empty($_GET['session_id'])) {
|
|
|
// Create a sortable table with the course data filtered by session
|