@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | api_protect_admin_script(); |
15 | 15 | |
16 | 16 | $tool_name = get_lang('ExportCourses'); |
17 | -$interbreadcrumb[] = array ('url' => 'index.php', 'name' => get_lang('PlatformAdmin')); |
|
17 | +$interbreadcrumb[] = array('url' => 'index.php', 'name' => get_lang('PlatformAdmin')); |
|
18 | 18 | |
19 | 19 | set_time_limit(0); |
20 | 20 | |
@@ -64,17 +64,17 @@ discard block |
||
64 | 64 | $dataToExport = []; |
65 | 65 | |
66 | 66 | foreach ($courses as $course) { |
67 | - $dataToExport['code'] = str_replace(';',',',$course['code']); |
|
68 | - $dataToExport['title'] = str_replace(';',',',$course['title']); |
|
69 | - $dataToExport['category_code'] = str_replace(';',',',$course['category_code']); |
|
67 | + $dataToExport['code'] = str_replace(';', ',', $course['code']); |
|
68 | + $dataToExport['title'] = str_replace(';', ',', $course['title']); |
|
69 | + $dataToExport['category_code'] = str_replace(';', ',', $course['category_code']); |
|
70 | 70 | $categoryInfo = CourseCategory::getCategory($course['category_code']); |
71 | 71 | if ($categoryInfo) { |
72 | - $dataToExport['category_name'] = str_replace(';',',',$categoryInfo['name']); |
|
72 | + $dataToExport['category_name'] = str_replace(';', ',', $categoryInfo['name']); |
|
73 | 73 | } else { |
74 | 74 | $dataToExport['category_name'] = ''; |
75 | 75 | } |
76 | - $dataToExport['tutor_name'] = str_replace(';',',',$course['tutor_name']); |
|
77 | - $dataToExport['course_language'] = str_replace(';',',',$course['course_language']); |
|
76 | + $dataToExport['tutor_name'] = str_replace(';', ',', $course['tutor_name']); |
|
77 | + $dataToExport['course_language'] = str_replace(';', ',', $course['course_language']); |
|
78 | 78 | |
79 | 79 | $dataToExport['students'] = ''; |
80 | 80 | $dataToExport['teachers'] = ''; |
@@ -156,8 +156,8 @@ discard block |
||
156 | 156 | $form->addHtml('</div>'); |
157 | 157 | } |
158 | 158 | |
159 | -$form->addElement('radio', 'file_type', get_lang('OutputFileType'), 'CSV' , 'csv', null); |
|
160 | -$form->addElement('radio', 'file_type', '' , 'XLS' , 'xls', null); |
|
159 | +$form->addElement('radio', 'file_type', get_lang('OutputFileType'), 'CSV', 'csv', null); |
|
160 | +$form->addElement('radio', 'file_type', '', 'XLS', 'xls', null); |
|
161 | 161 | $form->addElement('radio', 'file_type', null, 'XML', 'xml', null, array('id' => 'file_type_xml')); |
162 | 162 | |
163 | 163 | $form->setDefaults(['select_type' => '1', 'file_type' => 'csv']); |