|
|
|
@ -78,11 +78,10 @@ $message = null; |
|
|
|
|
|
|
|
|
|
$term = empty($_POST['search_term']) ? '': api_htmlentities($searchTerm); |
|
|
|
|
$urlAction = CourseCategory::getCourseCategoryUrl(1, $pageLength, 'ALL', 0, 'subscribe'); |
|
|
|
|
$formSearch = new FormValidator('search_catalog', 'post', $urlAction, null, [], 'inline'); |
|
|
|
|
$formSearch = new FormValidator('search_catalog', 'post', $urlAction, null, [], 'box-search'); |
|
|
|
|
$formSearch->addHidden('sec_token', $stok); |
|
|
|
|
$formSearch->addHidden('search_course', 1); |
|
|
|
|
$formSearch->addText('search_term', get_lang('Search'), false,['value'=>$term]); |
|
|
|
|
$formSearch->addButtonSearch(get_lang('Search'), 'submit'); |
|
|
|
|
$formSearch->addText('search_term', get_lang('Search'), false,['value'=>$term, 'icon' => 'search'])->setButton(true); |
|
|
|
|
//$formSearch->defaultRenderer()->setElementTemplate($formSearch->getDefaultElementTemplate(),'search_term'); |
|
|
|
|
$search = $formSearch->returnForm(); |
|
|
|
|
|
|
|
|
@ -92,6 +91,7 @@ $message = null; |
|
|
|
|
$formSelect->addHidden('pageCurrent',$pageCurrent); |
|
|
|
|
$formSelect->addHidden('pageLength', $pageLength); |
|
|
|
|
$options = []; |
|
|
|
|
|
|
|
|
|
foreach ($browse_course_categories[0] as $category){ |
|
|
|
|
|
|
|
|
|
$categoryCode = $category['code']; |
|
|
|
|