| @@ 205-228 (lines=24) @@ | ||
| 202 | if(!is_array($education_list)) { |
|
| 203 | $education_list = array_filter(array($education_list)); |
|
| 204 | } |
|
| 205 | if(!empty($education_list)) { |
|
| 206 | foreach ($education_list as $education) { |
|
| 207 | $education = get_entity($education); |
|
| 208 | $education_ending_en = date("F", mktime(null, null, null, $education->enddate)) . ', ' . $education->endyear; |
|
| 209 | $education_ending_fr = $cal_month[$education->enddate] . ', ' . $education->endyear; |
|
| 210 | ||
| 211 | if ($education->ongoing == 'true') { |
|
| 212 | $education_ending_en = 'Present'; |
|
| 213 | $education_ending_fr = 'Présent'; |
|
| 214 | } |
|
| 215 | ||
| 216 | $education_beginning_en = date("F", mktime(null, null, null, $education->startdate)) . ', ' . $education->startyear; |
|
| 217 | $education_beginning_fr = $cal_month[$education->startdate] . ', ' . $education->startyear; |
|
| 218 | ||
| 219 | // TODO: This section should be in the language files eventually. |
|
| 220 | $content_applicant_en .= '<br><b><font size="4">' . $education->school . ':</font></b>' . "<br>"; |
|
| 221 | $content_applicant_en .= $education_beginning_en . ' - ' . $education_ending_en . "<br>"; |
|
| 222 | $content_applicant_en .= '<b>' . $education->degree . ':</b> ' . $education->field . "<br>"; |
|
| 223 | ||
| 224 | $content_applicant_fr .= '<br><b><font size="4">' . $education->school . ':</font></b>' . "<br>"; |
|
| 225 | $content_applicant_fr .= $education_beginning_fr . ' - ' . $education_ending_fr . "<br>"; |
|
| 226 | $content_applicant_fr .= '<b>' . $education->degree . ':</b> ' . $education->field . "<br>"; |
|
| 227 | } |
|
| 228 | } |
|
| 229 | ||
| 230 | //Lists all work experiences of the applicant. |
|
| 231 | $experience_list = $applicant->work; |
|
| @@ 423-446 (lines=24) @@ | ||
| 420 | if(!is_array($education_list)) { |
|
| 421 | $education_list = array_filter(array($education_list)); |
|
| 422 | } |
|
| 423 | if(!empty($education_list)) { |
|
| 424 | foreach ($education_list as $education) { |
|
| 425 | $education = get_entity($education); |
|
| 426 | $education_ending_en = date("F", mktime(null, null, null, $education->enddate)) . ', ' . $education->endyear; |
|
| 427 | $education_ending_fr = $cal_month[$education->enddate] . ', ' . $education->endyear; |
|
| 428 | ||
| 429 | if ($education->ongoing == 'true') { |
|
| 430 | $education_ending_en = 'Present'; |
|
| 431 | $education_ending_fr = 'Présent'; |
|
| 432 | } |
|
| 433 | ||
| 434 | $education_beginning_en = date("F", mktime(null, null, null, $education->startdate)) . ', ' . $education->startyear; |
|
| 435 | $education_beginning_fr = $cal_month[$education->startdate] . ', ' . $education->startyear; |
|
| 436 | ||
| 437 | // TODO: This section should be in the language files eventually. |
|
| 438 | $content_applicant_en .= '<br><b><font size="4">' . $education->school . ':</font></b>' . "<br>"; |
|
| 439 | $content_applicant_en .= $education_beginning_en . ' - ' . $education_ending_en . "<br>"; |
|
| 440 | $content_applicant_en .= '<b>' . $education->degree . ':</b> ' . $education->field . "<br>"; |
|
| 441 | ||
| 442 | $content_applicant_fr .= '<br><b><font size="4">' . $education->school . ':</font></b>' . "<br>"; |
|
| 443 | $content_applicant_fr .= $education_beginning_fr . ' - ' . $education_ending_fr . "<br>"; |
|
| 444 | $content_applicant_fr .= '<b>' . $education->degree . ':</b> ' . $education->field . "<br>"; |
|
| 445 | } |
|
| 446 | } |
|
| 447 | ||
| 448 | //Lists all work experiences of the applicant. |
|
| 449 | $experience_list = $user_entity->work; |
|