@@ -33,26 +33,26 @@ discard block |
||
33 | 33 | $my_cur_dir_path = isset($_GET['curdirpath']) ? Security::remove_XSS($_GET['curdirpath']) : null; |
34 | 34 | } |
35 | 35 | |
36 | -$dir= str_replace('\\', '/', $dir);//and urlencode each url $curdirpath (hack clean $curdirpath under Windows - Bug #3261) |
|
36 | +$dir = str_replace('\\', '/', $dir); //and urlencode each url $curdirpath (hack clean $curdirpath under Windows - Bug #3261) |
|
37 | 37 | |
38 | 38 | /* Constants & Variables */ |
39 | -$current_session_id=api_get_session_id(); |
|
39 | +$current_session_id = api_get_session_id(); |
|
40 | 40 | //path for pixlr save |
41 | -$_SESSION['paint_dir']=Security::remove_XSS($dir); |
|
42 | -if($_SESSION['paint_dir']=='/'){ |
|
43 | - $_SESSION['paint_dir']=''; |
|
41 | +$_SESSION['paint_dir'] = Security::remove_XSS($dir); |
|
42 | +if ($_SESSION['paint_dir'] == '/') { |
|
43 | + $_SESSION['paint_dir'] = ''; |
|
44 | 44 | } |
45 | -$_SESSION['paint_file']=basename(Security::remove_XSS($file_path)); |
|
45 | +$_SESSION['paint_file'] = basename(Security::remove_XSS($file_path)); |
|
46 | 46 | |
47 | 47 | $get_file = Security::remove_XSS($file_path); |
48 | 48 | |
49 | 49 | $file = basename($get_file); |
50 | 50 | |
51 | -$temp_file = explode(".",$file); |
|
52 | -$filename=$temp_file[0]; |
|
53 | -$nameTools = get_lang('EditDocument') . ': '.$filename; |
|
51 | +$temp_file = explode(".", $file); |
|
52 | +$filename = $temp_file[0]; |
|
53 | +$nameTools = get_lang('EditDocument').': '.$filename; |
|
54 | 54 | |
55 | -$courseDir = $_course['path'].'/document'; |
|
55 | +$courseDir = $_course['path'].'/document'; |
|
56 | 56 | |
57 | 57 | $is_allowed_to_edit = api_is_allowed_to_edit(null, true); |
58 | 58 | |
@@ -96,15 +96,15 @@ discard block |
||
96 | 96 | $is_certificate_mode = DocumentManager::is_certificate_mode($dir); |
97 | 97 | |
98 | 98 | if (!$is_certificate_mode) |
99 | - $interbreadcrumb[]= array("url" => "./document.php?curdirpath=".urlencode($my_cur_dir_path).'&'.api_get_cidreq(), "name"=> get_lang('Documents')); |
|
99 | + $interbreadcrumb[] = array("url" => "./document.php?curdirpath=".urlencode($my_cur_dir_path).'&'.api_get_cidreq(), "name"=> get_lang('Documents')); |
|
100 | 100 | else |
101 | - $interbreadcrumb[]= array ('url' => '../gradebook/'.$_SESSION['gradebook_dest'], 'name' => get_lang('Gradebook')); |
|
101 | + $interbreadcrumb[] = array('url' => '../gradebook/'.$_SESSION['gradebook_dest'], 'name' => get_lang('Gradebook')); |
|
102 | 102 | |
103 | 103 | // Interbreadcrumb for the current directory root path |
104 | 104 | if (empty($document_data['parents'])) { |
105 | 105 | $interbreadcrumb[] = array('url' => '#', 'name' => $document_data['title']); |
106 | 106 | } else { |
107 | - foreach($document_data['parents'] as $document_sub_data) { |
|
107 | + foreach ($document_data['parents'] as $document_sub_data) { |
|
108 | 108 | if ($document_data['title'] == $document_sub_data['title']) { |
109 | 109 | continue; |
110 | 110 | } |
@@ -124,33 +124,33 @@ discard block |
||
124 | 124 | Display :: display_header($nameTools, 'Doc'); |
125 | 125 | echo '<div class="actions">'; |
126 | 126 | echo '<a href="document.php?id='.$parent_id.'&'.api_get_cidreq().'">'. |
127 | - Display::return_icon('back.png',get_lang('BackTo').' '.get_lang('DocumentsOverview'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
127 | + Display::return_icon('back.png', get_lang('BackTo').' '.get_lang('DocumentsOverview'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
128 | 128 | echo '<a href="edit_document.php?'.api_get_cidreq().'&id='.$document_id.'&'.api_get_cidreq().'&origin=editpaint">'. |
129 | - Display::return_icon('edit.png', get_lang('Rename').'/'.get_lang('Comment'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
129 | + Display::return_icon('edit.png', get_lang('Rename').'/'.get_lang('Comment'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
130 | 130 | echo '</div>'; |
131 | 131 | |
132 | 132 | ///pixlr |
133 | -$title=$file;//disk name. No sql name because pixlr return this when save |
|
133 | +$title = $file; //disk name. No sql name because pixlr return this when save |
|
134 | 134 | $pixlr_code_translation_table = array('' => 'en', 'pt' => 'pt-Pt', 'sr' => 'sr_latn'); |
135 | -$langpixlr = api_get_language_isocode(); |
|
135 | +$langpixlr = api_get_language_isocode(); |
|
136 | 136 | $langpixlr = isset($pixlr_code_translation_table[$langpixlr]) ? $pixlredit_code_translation_table[$langpixlr] : $langpixlr; |
137 | -$loc=$langpixlr;// deprecated ?? TODO:check pixlr read user browser |
|
137 | +$loc = $langpixlr; // deprecated ?? TODO:check pixlr read user browser |
|
138 | 138 | |
139 | -$exit_path=api_get_path(WEB_CODE_PATH).'document/exit_pixlr.php'; |
|
140 | -$_SESSION['exit_pixlr']= Security::remove_XSS($parent_id); |
|
139 | +$exit_path = api_get_path(WEB_CODE_PATH).'document/exit_pixlr.php'; |
|
140 | +$_SESSION['exit_pixlr'] = Security::remove_XSS($parent_id); |
|
141 | 141 | |
142 | -$referrer="Chamilo"; |
|
142 | +$referrer = "Chamilo"; |
|
143 | 143 | |
144 | -$target_path=api_get_path(WEB_CODE_PATH).'document/save_pixlr.php'; |
|
145 | -$target=$target_path; |
|
144 | +$target_path = api_get_path(WEB_CODE_PATH).'document/save_pixlr.php'; |
|
145 | +$target = $target_path; |
|
146 | 146 | |
147 | -$locktarget="true"; |
|
148 | -$locktitle="false"; |
|
147 | +$locktarget = "true"; |
|
148 | +$locktitle = "false"; |
|
149 | 149 | |
150 | -if ($_SERVER['HTTP_HOST']=="localhost") { |
|
151 | - $path_and_file= api_get_path(SYS_PATH).'/crossdomain.xml'; |
|
150 | +if ($_SERVER['HTTP_HOST'] == "localhost") { |
|
151 | + $path_and_file = api_get_path(SYS_PATH).'/crossdomain.xml'; |
|
152 | 152 | if (!file_exists($path_and_file)) { |
153 | - $crossdomain='<?xml version="1.0"?> |
|
153 | + $crossdomain = '<?xml version="1.0"?> |
|
154 | 154 | <!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"> |
155 | 155 | <cross-domain-policy> |
156 | 156 | <allow-access-from domain="cdn.pixlr.com" /> |
@@ -159,23 +159,23 @@ discard block |
||
159 | 159 | </cross-domain-policy>';//more open domain="*" |
160 | 160 | @file_put_contents($path_and_file, $crossdomain); |
161 | 161 | } |
162 | - $credentials="true"; |
|
162 | + $credentials = "true"; |
|
163 | 163 | } |
164 | 164 | else { |
165 | - $credentials="false"; |
|
165 | + $credentials = "false"; |
|
166 | 166 | } |
167 | 167 | |
168 | 168 | //make temp images |
169 | -$temp_folder=api_get_path(SYS_ARCHIVE_PATH).'temp/images'; |
|
169 | +$temp_folder = api_get_path(SYS_ARCHIVE_PATH).'temp/images'; |
|
170 | 170 | if (!file_exists($temp_folder)) { |
171 | - @mkdir($temp_folder, api_get_permissions_for_new_directories(), true);//TODO:check $permissions value, now empty; |
|
171 | + @mkdir($temp_folder, api_get_permissions_for_new_directories(), true); //TODO:check $permissions value, now empty; |
|
172 | 172 | } |
173 | 173 | |
174 | 174 | //make htaccess with allow from all, and file index.html into temp/images |
175 | -$htaccess=api_get_path(SYS_ARCHIVE_PATH).'temp/images/.htaccess'; |
|
175 | +$htaccess = api_get_path(SYS_ARCHIVE_PATH).'temp/images/.htaccess'; |
|
176 | 176 | if (!file_exists($htaccess)) { |
177 | 177 | |
178 | - $htaccess_content="order deny,allow\r\nallow from all\r\nOptions -Indexes"; |
|
178 | + $htaccess_content = "order deny,allow\r\nallow from all\r\nOptions -Indexes"; |
|
179 | 179 | |
180 | 180 | $fp = @ fopen(api_get_path(SYS_ARCHIVE_PATH).'temp/images/.htaccess', 'w'); |
181 | 181 | if ($fp) { |
@@ -184,9 +184,9 @@ discard block |
||
184 | 184 | } |
185 | 185 | } |
186 | 186 | |
187 | -$html_index=api_get_path(SYS_ARCHIVE_PATH).'temp/images/index.html'; |
|
187 | +$html_index = api_get_path(SYS_ARCHIVE_PATH).'temp/images/index.html'; |
|
188 | 188 | if (!file_exists($html_index)) { |
189 | - $html_index_content="<html><head></head><body></body></html>"; |
|
189 | + $html_index_content = "<html><head></head><body></body></html>"; |
|
190 | 190 | $fp = @ fopen(api_get_path(SYS_ARCHIVE_PATH).'temp/images/index.html', 'w'); |
191 | 191 | if ($fp) { |
192 | 192 | fwrite($fp, $html_index_content); |
@@ -195,20 +195,20 @@ discard block |
||
195 | 195 | } |
196 | 196 | |
197 | 197 | //encript temp name file |
198 | -$name_crip=sha1(uniqid());//encript |
|
199 | -$findext= explode(".", $file); |
|
200 | -$extension= $findext[count($findext)-1]; |
|
201 | -$file_crip=$name_crip.'.'.$extension; |
|
198 | +$name_crip = sha1(uniqid()); //encript |
|
199 | +$findext = explode(".", $file); |
|
200 | +$extension = $findext[count($findext) - 1]; |
|
201 | +$file_crip = $name_crip.'.'.$extension; |
|
202 | 202 | |
203 | 203 | //copy file to temp/images directory |
204 | -$from=$filepath.$file; |
|
205 | -$to=api_get_path(SYS_ARCHIVE_PATH).'temp/images/'.$file_crip; |
|
204 | +$from = $filepath.$file; |
|
205 | +$to = api_get_path(SYS_ARCHIVE_PATH).'temp/images/'.$file_crip; |
|
206 | 206 | copy($from, $to); |
207 | -$_SESSION['temp_realpath_image']=$to; |
|
207 | +$_SESSION['temp_realpath_image'] = $to; |
|
208 | 208 | |
209 | 209 | //load image to url |
210 | -$to_url=api_get_path(WEB_ARCHIVE_PATH).'temp/images/'.$file_crip; |
|
211 | -$image=urlencode($to_url); |
|
210 | +$to_url = api_get_path(WEB_ARCHIVE_PATH).'temp/images/'.$file_crip; |
|
211 | +$image = urlencode($to_url); |
|
212 | 212 | $pixlr_url = api_get_protocol().'://pixlr.com/editor/?title='.$title.'&image='.$image.'&loc='.$loc.'&referrer='.$referrer.'&target='.$target.'&exit='.$exit_path.'&locktarget='.$locktarget.'&locktitle='.$locktitle.'&credentials='.$credentials; |
213 | 213 | |
214 | 214 | //make frame an send image |
@@ -129,27 +129,27 @@ |
||
129 | 129 | |
130 | 130 | // pixlr |
131 | 131 | // max size 1 Mb ?? |
132 | -$title = urlencode(utf8_encode(get_lang('NewImage')));//TODO:check |
|
132 | +$title = urlencode(utf8_encode(get_lang('NewImage'))); //TODO:check |
|
133 | 133 | // |
134 | 134 | $image = Display::returnIconPath('canvas1024x768.png'); |
135 | 135 | // |
136 | 136 | $pixlr_code_translation_table = array('' => 'en', 'pt' => 'pt-Pt', 'sr' => 'sr_latn'); |
137 | -$langpixlr = api_get_language_isocode(); |
|
137 | +$langpixlr = api_get_language_isocode(); |
|
138 | 138 | $langpixlr = isset($pixlr_code_translation_table[$langpixlr]) ? $pixlredit_code_translation_table[$langpixlr] : $langpixlr; |
139 | -$loc=$langpixlr;// deprecated ?? TODO:check pixlr read user browser |
|
140 | - |
|
141 | -$exit_path=api_get_path(WEB_CODE_PATH).'document/exit_pixlr.php'; |
|
142 | -$_SESSION['exit_pixlr']=$document_data['path']; |
|
143 | -$referrer="Chamilo"; |
|
144 | -$target_path=api_get_path(WEB_CODE_PATH).'document/save_pixlr.php'; |
|
145 | -$target=$target_path; |
|
146 | -$locktarget="true"; |
|
147 | -$locktitle="false"; |
|
148 | - |
|
149 | -if ($_SERVER['HTTP_HOST']=="localhost") { |
|
150 | - $path_and_file= api_get_path(SYS_PATH).'/crossdomain.xml'; |
|
139 | +$loc = $langpixlr; // deprecated ?? TODO:check pixlr read user browser |
|
140 | + |
|
141 | +$exit_path = api_get_path(WEB_CODE_PATH).'document/exit_pixlr.php'; |
|
142 | +$_SESSION['exit_pixlr'] = $document_data['path']; |
|
143 | +$referrer = "Chamilo"; |
|
144 | +$target_path = api_get_path(WEB_CODE_PATH).'document/save_pixlr.php'; |
|
145 | +$target = $target_path; |
|
146 | +$locktarget = "true"; |
|
147 | +$locktitle = "false"; |
|
148 | + |
|
149 | +if ($_SERVER['HTTP_HOST'] == "localhost") { |
|
150 | + $path_and_file = api_get_path(SYS_PATH).'/crossdomain.xml'; |
|
151 | 151 | if (!file_exists($path_and_file)) { |
152 | - $crossdomain='<?xml version="1.0"?> |
|
152 | + $crossdomain = '<?xml version="1.0"?> |
|
153 | 153 | <!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"> |
154 | 154 | <cross-domain-policy> |
155 | 155 | <allow-access-from domain="cdn.pixlr.com" /> |
@@ -219,7 +219,7 @@ |
||
219 | 219 | */ |
220 | 220 | public function getEntityIdentifier() |
221 | 221 | { |
222 | - return 'GenjFaqBundle:Question:' . $this->getId(); |
|
222 | + return 'GenjFaqBundle:Question:'.$this->getId(); |
|
223 | 223 | } |
224 | 224 | |
225 | 225 | /** |
@@ -46,14 +46,14 @@ discard block |
||
46 | 46 | $interbreadcrumb[] = array('url' => api_get_self().'?'.api_get_cidreq(), 'name' => get_lang('CustomizeIcons')); |
47 | 47 | $toolName = $tool['name']; |
48 | 48 | |
49 | - $currentUrl = api_get_self().'?action=edit_icon&id=' . $id.'&'.api_get_cidreq(); |
|
49 | + $currentUrl = api_get_self().'?action=edit_icon&id='.$id.'&'.api_get_cidreq(); |
|
50 | 50 | |
51 | 51 | $form = new FormValidator('icon_edit', 'post', $currentUrl); |
52 | 52 | $form->addElement('header', get_lang('EditIcon')); |
53 | 53 | $form->addHtml('<div class="col-md-7">'); |
54 | 54 | $form->addElement('text', 'name', get_lang('Name')); |
55 | 55 | $form->addElement('text', 'link', get_lang('Links')); |
56 | - $allowed_picture_types = array ('jpg', 'jpeg', 'png'); |
|
56 | + $allowed_picture_types = array('jpg', 'jpeg', 'png'); |
|
57 | 57 | $form->addElement('file', 'icon', get_lang('CustomIcon')); |
58 | 58 | $form->addRule('icon', get_lang('OnlyImagesAllowed').' ('.implode(',', $allowed_picture_types).')', 'filetype', $allowed_picture_types); |
59 | 59 | $form->addElement( |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | $iconsTools .= Display::page_header(get_lang('CustomizeIcons'), null, 'h4'); |
119 | 119 | $iconsTools .= '<div class="row">'; |
120 | 120 | foreach ($toolList as $tool) { |
121 | - $toolIconName = 'Tool' . api_underscore_to_camel_case($tool['name']); |
|
121 | + $toolIconName = 'Tool'.api_underscore_to_camel_case($tool['name']); |
|
122 | 122 | $toolIconName = isset($$toolIconName) ? get_lang($toolIconName) : $tool['name']; |
123 | 123 | |
124 | 124 | $iconsTools .= '<div class="col-md-2">'; |
@@ -140,13 +140,13 @@ discard block |
||
140 | 140 | |
141 | 141 | $delete = (!empty($tool['custom_icon'])) ? "<a class=\"btn btn-default\" onclick=\"javascript: |
142 | 142 | if(!confirm('".addslashes(api_htmlentities(get_lang('ConfirmYourChoice'), ENT_QUOTES, $charset)). |
143 | - "')) return false;\" href=\"". api_get_self() . '?action=delete_icon&id=' . $tool['iid'] . '&'.api_get_cidreq()."\"> |
|
143 | + "')) return false;\" href=\"".api_get_self().'?action=delete_icon&id='.$tool['iid'].'&'.api_get_cidreq()."\"> |
|
144 | 144 | <em class=\"fa fa-trash-o\"></em></a>" : ""; |
145 | - $edit = '<a class="btn btn-default" href="' . api_get_self() . '?action=edit_icon&id=' . $tool['iid'] . '&'.api_get_cidreq().'"><em class="fa fa-pencil"></em></a>'; |
|
145 | + $edit = '<a class="btn btn-default" href="'.api_get_self().'?action=edit_icon&id='.$tool['iid'].'&'.api_get_cidreq().'"><em class="fa fa-pencil"></em></a>'; |
|
146 | 146 | |
147 | - $iconsTools .= '<div class="icon-tools">'. $icon . '</div>'; |
|
148 | - $iconsTools .= '<div class="name-tools">' . $toolIconName . '</div>'; |
|
149 | - $iconsTools .= '<div class="toolbar">' . $edit . $delete . '</div>'; |
|
147 | + $iconsTools .= '<div class="icon-tools">'.$icon.'</div>'; |
|
148 | + $iconsTools .= '<div class="name-tools">'.$toolIconName.'</div>'; |
|
149 | + $iconsTools .= '<div class="toolbar">'.$edit.$delete.'</div>'; |
|
150 | 150 | $iconsTools .= '</div>'; |
151 | 151 | $iconsTools .= '</div>'; |
152 | 152 | } |
@@ -22,5 +22,5 @@ |
||
22 | 22 | * See facebook section of the auth.conf.php file |
23 | 23 | */ |
24 | 24 | |
25 | -require dirname(__FILE__) . '/../../../app/config/auth.conf.php'; |
|
25 | +require dirname(__FILE__).'/../../../app/config/auth.conf.php'; |
|
26 | 26 |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | api_block_anonymous_users(); |
18 | 18 | |
19 | 19 | $interbreadcrumb[] = array( |
20 | - "url" => api_is_student_boss()?"#":api_get_path(WEB_CODE_PATH) . "mySpace/index.php?".api_get_cidreq(), |
|
20 | + "url" => api_is_student_boss() ? "#" : api_get_path(WEB_CODE_PATH)."mySpace/index.php?".api_get_cidreq(), |
|
21 | 21 | "name" => get_lang("MySpace") |
22 | 22 | ); |
23 | 23 | |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | } |
112 | 112 | |
113 | 113 | if (!is_null($gradebook)) { |
114 | - $exportAllLink = api_get_path(WEB_CODE_PATH) . "gradebook/gradebook_display_certificate.php?"; |
|
114 | + $exportAllLink = api_get_path(WEB_CODE_PATH)."gradebook/gradebook_display_certificate.php?"; |
|
115 | 115 | $exportAllLink .= http_build_query(array( |
116 | 116 | "action" => "export_all_certificates", |
117 | 117 | "cidReq" => $selectedCourseInfo['code'], |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | $searchBySessionCourseDateForm = new FormValidator( |
251 | 251 | 'certificate_report_form', |
252 | 252 | 'post', |
253 | - api_get_path(WEB_CODE_PATH) . 'gradebook/certificate_report.php' |
|
253 | + api_get_path(WEB_CODE_PATH).'gradebook/certificate_report.php' |
|
254 | 254 | ); |
255 | 255 | $searchBySessionCourseDateForm->addSelect('session', get_lang('Sessions'), $sessions, ['id' => 'session']); |
256 | 256 | $searchBySessionCourseDateForm->addSelect('course', get_lang('Courses'), $courses, ['id' => 'course']); |
@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | $searchByStudentForm = new FormValidator( |
284 | 284 | 'certificate_report_form', |
285 | 285 | 'post', |
286 | - api_get_path(WEB_CODE_PATH) . 'gradebook/certificate_report.php' |
|
286 | + api_get_path(WEB_CODE_PATH).'gradebook/certificate_report.php' |
|
287 | 287 | ); |
288 | 288 | $searchByStudentForm->addSelect('student', get_lang('Students'), $students, ['id' => 'student']); |
289 | 289 | $searchByStudentForm->addButtonSearch(); |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | api_not_allowed(true); |
17 | 17 | } |
18 | 18 | |
19 | -$interbreadcrumb[] = array ('url' => api_is_student_boss()?'#':'index.php', 'name' => get_lang('MySpace')); |
|
19 | +$interbreadcrumb[] = array('url' => api_is_student_boss() ? '#' : 'index.php', 'name' => get_lang('MySpace')); |
|
20 | 20 | $tool_name = get_lang('Report'); |
21 | 21 | |
22 | 22 | $this_section = SECTION_TRACKING; |
@@ -42,13 +42,13 @@ discard block |
||
42 | 42 | |
43 | 43 | //Column config |
44 | 44 | $column_model = array( |
45 | - array('name'=>'course', 'index'=>'title', 'width'=>'180', 'align'=>'left', 'wrap_cell' => 'true'), |
|
46 | - array('name'=>'user', 'index'=>'user', 'width'=>'100', 'align'=>'left','sortable'=>'false', 'wrap_cell' => 'true'), |
|
47 | - array('name'=>'email', 'index'=>'email', 'width'=>'100', 'align'=>'left','sortable'=>'false', 'wrap_cell' => 'true'), |
|
48 | - array('name'=>'time', 'index'=>'time', 'width'=>'50', 'align'=>'left','sortable'=>'false'), |
|
49 | - array('name'=>'certificate', 'index'=>'certificate', 'width'=>'50', 'align'=>'left','sortable'=>'false'), |
|
50 | - array('name'=>'progress_100', 'index'=>'progress_100', 'width'=>'50', 'align'=>'left','sortable'=>'false'), |
|
51 | - array('name'=>'progress', 'index'=>'progress', 'width'=>'50', 'align'=>'left','sortable'=>'false') |
|
45 | + array('name'=>'course', 'index'=>'title', 'width'=>'180', 'align'=>'left', 'wrap_cell' => 'true'), |
|
46 | + array('name'=>'user', 'index'=>'user', 'width'=>'100', 'align'=>'left', 'sortable'=>'false', 'wrap_cell' => 'true'), |
|
47 | + array('name'=>'email', 'index'=>'email', 'width'=>'100', 'align'=>'left', 'sortable'=>'false', 'wrap_cell' => 'true'), |
|
48 | + array('name'=>'time', 'index'=>'time', 'width'=>'50', 'align'=>'left', 'sortable'=>'false'), |
|
49 | + array('name'=>'certificate', 'index'=>'certificate', 'width'=>'50', 'align'=>'left', 'sortable'=>'false'), |
|
50 | + array('name'=>'progress_100', 'index'=>'progress_100', 'width'=>'50', 'align'=>'left', 'sortable'=>'false'), |
|
51 | + array('name'=>'progress', 'index'=>'progress', 'width'=>'50', 'align'=>'left', 'sortable'=>'false') |
|
52 | 52 | ); |
53 | 53 | |
54 | 54 | if (!empty($extra_fields)) { |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | } |
68 | 68 | |
69 | 69 | if (api_is_student_boss()) { |
70 | - $column_model[] = array('name'=>'group', 'index'=>'group', 'width'=>'50', 'align'=>'left','sortable'=>'false'); |
|
70 | + $column_model[] = array('name'=>'group', 'index'=>'group', 'width'=>'50', 'align'=>'left', 'sortable'=>'false'); |
|
71 | 71 | $columns[] = get_lang('Group'); |
72 | 72 | } |
73 | 73 | |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | |
79 | 79 | $htmlHeadXtra[] = '<script> |
80 | 80 | $(function() { |
81 | - '.Display::grid_js('user_course_report', $url, $columns, $column_model, $extra_params, array(), null, true).' |
|
81 | + '.Display::grid_js('user_course_report', $url, $columns, $column_model, $extra_params, array(), null, true).' |
|
82 | 82 | jQuery("#user_course_report").jqGrid("navGrid","#user_course_report_pager",{ |
83 | 83 | view:false, |
84 | 84 | edit:false, |
@@ -102,11 +102,11 @@ discard block |
||
102 | 102 | if (api_is_student_boss()) { |
103 | 103 | $actions .= Display::url( |
104 | 104 | Display::return_icon('stats.png', get_lang('MyStats'), '', ICON_SIZE_MEDIUM), |
105 | - api_get_path(WEB_CODE_PATH) . "auth/my_progress.php" |
|
105 | + api_get_path(WEB_CODE_PATH)."auth/my_progress.php" |
|
106 | 106 | ); |
107 | 107 | $actions .= Display::url( |
108 | 108 | Display::return_icon('user.png', get_lang('Students'), array(), ICON_SIZE_MEDIUM), |
109 | - api_get_path(WEB_CODE_PATH) . "mySpace/student.php" |
|
109 | + api_get_path(WEB_CODE_PATH)."mySpace/student.php" |
|
110 | 110 | ); |
111 | 111 | $actions .= Display::url( |
112 | 112 | Display::return_icon("statistics.png", get_lang("CompanyReport"), array(), ICON_SIZE_MEDIUM), |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | [], |
120 | 120 | ICON_SIZE_MEDIUM |
121 | 121 | ), |
122 | - api_get_path(WEB_CODE_PATH) . "gradebook/certificate_report.php" |
|
122 | + api_get_path(WEB_CODE_PATH)."gradebook/certificate_report.php" |
|
123 | 123 | ); |
124 | 124 | } |
125 | 125 | |
@@ -130,13 +130,13 @@ discard block |
||
130 | 130 | } |
131 | 131 | $content .= Display::url( |
132 | 132 | get_lang("CompanyReportResumed"), |
133 | - api_get_path(WEB_CODE_PATH) . "mySpace/company_reports_resumed.php", |
|
133 | + api_get_path(WEB_CODE_PATH)."mySpace/company_reports_resumed.php", |
|
134 | 134 | array( |
135 | 135 | 'class' => 'btn btn-success' |
136 | 136 | ) |
137 | 137 | ); |
138 | 138 | $content .= '</div>'; |
139 | -$content .= '<h1 class="page-header">' . get_lang('CompanyReport') . '</h1>'; |
|
139 | +$content .= '<h1 class="page-header">'.get_lang('CompanyReport').'</h1>'; |
|
140 | 140 | $content .= Display::grid_html('user_course_report'); |
141 | 141 | |
142 | 142 | $tpl = new Template($tool_name); |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | api_not_allowed(true); |
16 | 16 | } |
17 | 17 | |
18 | -$interbreadcrumb[] = array('url' => api_is_student_boss()?'#':'index.php', 'name' => get_lang('MySpace')); |
|
18 | +$interbreadcrumb[] = array('url' => api_is_student_boss() ? '#' : 'index.php', 'name' => get_lang('MySpace')); |
|
19 | 19 | |
20 | 20 | $tool_name = get_lang('Report'); |
21 | 21 | $this_section = SECTION_TRACKING; |
@@ -89,15 +89,15 @@ discard block |
||
89 | 89 | if (api_is_student_boss()) { |
90 | 90 | $actions .= Display::url( |
91 | 91 | Display::return_icon('stats.png', get_lang('MyStats'), '', ICON_SIZE_MEDIUM), |
92 | - api_get_path(WEB_CODE_PATH) . "auth/my_progress.php" |
|
92 | + api_get_path(WEB_CODE_PATH)."auth/my_progress.php" |
|
93 | 93 | ); |
94 | 94 | $actions .= Display::url( |
95 | 95 | Display::return_icon('user.png', get_lang('Students'), array(), ICON_SIZE_MEDIUM), |
96 | - api_get_path(WEB_CODE_PATH) . "mySpace/student.php" |
|
96 | + api_get_path(WEB_CODE_PATH)."mySpace/student.php" |
|
97 | 97 | ); |
98 | 98 | $actions .= Display::url( |
99 | 99 | Display::return_icon("statistics.png", get_lang("CompanyReport"), array(), ICON_SIZE_MEDIUM), |
100 | - api_get_path(WEB_CODE_PATH) . "mySpace/company_reports.php" |
|
100 | + api_get_path(WEB_CODE_PATH)."mySpace/company_reports.php" |
|
101 | 101 | ); |
102 | 102 | $actions .= Display::url( |
103 | 103 | Display::return_icon( |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | [], |
107 | 107 | ICON_SIZE_MEDIUM |
108 | 108 | ), |
109 | - api_get_path(WEB_CODE_PATH) . "gradebook/certificate_report.php" |
|
109 | + api_get_path(WEB_CODE_PATH)."gradebook/certificate_report.php" |
|
110 | 110 | ); |
111 | 111 | } |
112 | 112 | |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | if (!api_is_student_boss()) { |
120 | 120 | $content .= Display::url( |
121 | 121 | get_lang("CompanyReport"), |
122 | - api_get_path(WEB_CODE_PATH) . "mySpace/company_reports.php", |
|
122 | + api_get_path(WEB_CODE_PATH)."mySpace/company_reports.php", |
|
123 | 123 | array( |
124 | 124 | 'class' => 'btn btn-success' |
125 | 125 | ) |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | } |
128 | 128 | |
129 | 129 | $content .= '</div>'; |
130 | -$content .= '<h1 class="page-header">' . get_lang('CompanyReportResumed') . '</h1>'; |
|
130 | +$content .= '<h1 class="page-header">'.get_lang('CompanyReportResumed').'</h1>'; |
|
131 | 131 | $content .= Display::grid_html('user_course_report'); |
132 | 132 | |
133 | 133 | $tpl = new Template($tool_name); |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | Display::addFlash( |
48 | 48 | Display::return_message($messageText, 'info', false) |
49 | 49 | ); |
50 | - header('Location: ' . api_get_path(WEB_PATH)); |
|
50 | + header('Location: '.api_get_path(WEB_PATH)); |
|
51 | 51 | exit; |
52 | 52 | } |
53 | 53 | |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | Display::addFlash( |
75 | 75 | Display::return_message($messageText, 'error', false) |
76 | 76 | ); |
77 | - header('Location: ' . api_get_self()); |
|
77 | + header('Location: '.api_get_self()); |
|
78 | 78 | exit; |
79 | 79 | } |
80 | 80 | |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | Display::addFlash( |
95 | 95 | Display::return_message($messageText, 'info', false) |
96 | 96 | ); |
97 | - header('Location: ' . api_get_path(WEB_PATH)); |
|
97 | + header('Location: '.api_get_path(WEB_PATH)); |
|
98 | 98 | exit; |
99 | 99 | } |
100 | 100 | |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | Display::addFlash( |
103 | 103 | Display::return_message(get_lang('CouldNotResetPassword'), 'info', false) |
104 | 104 | ); |
105 | - header('Location: ' . api_get_path(WEB_PATH)); |
|
105 | + header('Location: '.api_get_path(WEB_PATH)); |
|
106 | 106 | exit; |
107 | 107 | } |
108 | 108 | |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | exit; |
122 | 122 | } |
123 | 123 | |
124 | - header('Location: ' . api_get_path(WEB_PATH)); |
|
124 | + header('Location: '.api_get_path(WEB_PATH)); |
|
125 | 125 | exit; |
126 | 126 | } |
127 | 127 | |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | Display::addFlash( |
139 | 139 | Display::return_message($messageText, 'info', false) |
140 | 140 | ); |
141 | - header('Location: ' . api_get_path(WEB_PATH)); |
|
141 | + header('Location: '.api_get_path(WEB_PATH)); |
|
142 | 142 | exit; |
143 | 143 | } |
144 | 144 |