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