| @@ 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; |
|
| @@ 450-473 (lines=24) @@ | ||
| 447 | if(!is_array($education_list)) { |
|
| 448 | $education_list = array_filter(array($education_list)); |
|
| 449 | } |
|
| 450 | if(!empty($education_list)) { |
|
| 451 | foreach ($education_list as $education) { |
|
| 452 | $education = get_entity($education); |
|
| 453 | $education_ending_en = date("F", mktime(null, null, null, $education->enddate)) . ', ' . $education->endyear; |
|
| 454 | $education_ending_fr = $cal_month[$education->enddate] . ', ' . $education->endyear; |
|
| 455 | ||
| 456 | if ($education->ongoing == 'true') { |
|
| 457 | $education_ending_en = 'Present'; |
|
| 458 | $education_ending_fr = 'Présent'; |
|
| 459 | } |
|
| 460 | ||
| 461 | $education_beginning_en = date("F", mktime(null, null, null, $education->startdate)) . ', ' . $education->startyear; |
|
| 462 | $education_beginning_fr = $cal_month[$education->startdate] . ', ' . $education->startyear; |
|
| 463 | ||
| 464 | // TODO: This section should be in the language files eventually. |
|
| 465 | $content_applicant_en .= '<br><b><font size="4">' . $education->school . ':</font></b>' . "<br>"; |
|
| 466 | $content_applicant_en .= $education_beginning_en . ' - ' . $education_ending_en . "<br>"; |
|
| 467 | $content_applicant_en .= '<b>' . $education->degree . ':</b> ' . $education->field . "<br>"; |
|
| 468 | ||
| 469 | $content_applicant_fr .= '<br><b><font size="4">' . $education->school . ':</font></b>' . "<br>"; |
|
| 470 | $content_applicant_fr .= $education_beginning_fr . ' - ' . $education_ending_fr . "<br>"; |
|
| 471 | $content_applicant_fr .= '<b>' . $education->degree . ':</b> ' . $education->field . "<br>"; |
|
| 472 | } |
|
| 473 | } |
|
| 474 | ||
| 475 | //Lists all work experiences of the applicant. |
|
| 476 | $experience_list = $user_entity->work; |
|