<!--Employment Details--> <h4 align="center" class="alert alert-success">Employment Details</h4> <table class="table table-bordered table-hover"> <thead> <tr> <th>S/N</th> <th width="30%">Employer</th> <th width="30%">Year of Employment</th> <th width="40%">Employer's Address</th> </tr> </thead> <tbody> <?php $employments = Employment::find_by_id($session->applicant_id); if (empty($employments)) { echo '<tr> <td>1</td> <td>No Information Supplied</td> <td>No Information Supplied</td> <td>No Information Supplied</td> </tr>'; } else { if (!empty($employments->employment_detail_one)) { $emp = unserialize($employments->employment_detail_one); echo '<tr> <td>1</td> <td>' . $emp['employer'] . '</td> <td>' . $emp['year'] . '</td> <td>' . $emp['address'] . '</td>
<!--Employment Details--> <h4 align="center" class="alert alert-success">Employment Details</h4> <table class="table table-bordered table-hover"> <thead> <tr> <th>S/N</th> <th width="30%">Employer</th> <th width="30%">Year of Employment</th> <th width="40%">Employer's Address</th> </tr> </thead> <tbody> <?php $employments = Employment::find_by_id($applicant_id); if (empty($employments)) { echo '<tr> <td>1</td> <td>No Information Supplied</td> <td>No Information Supplied</td> <td>No Information Supplied</td> </tr>'; } else { if (!empty($employments->employment_detail_one)) { $emp = unserialize($employments->employment_detail_one); echo '<tr> <td>1</td> <td>' . $emp['employer'] . '</td> <td>' . $emp['year'] . '</td> <td>' . $emp['address'] . '</td>
case 2: $employment->employment_detail_two = serialize($temp_arr); break; case 3: $employment->employment_detail_three = serialize($temp_arr); break; case 4: $employment->employment_detail_four = serialize($temp_arr); break; default: // Please remeber to set i break; } $employment->applicant_id = $session->applicant_id; } $employment_details = $employment->find_by_id($employment->applicant_id); /*set employment_id*/ if (!empty($employment_details)) { $employment->employment_id = $employment_details->employment_id; } //print_r($employment); /*insert new record or update existing record in the employment table*/ /*check any changes to the database employment table*/ if ($employment->save()) { $user = new User(); $user->applicant_id = $session->applicant_id; $user->updateProgress('C'); sleep(2); echo '<h4 class="alert alert-success"> <i class="iconic-o-check" style="color: #51A351"></i> Success</h4>'; echo '<hr>'; echo 'You have successfully saved your <span style=" font-weight: bold; text-shadow: 1px 1px 4px #51A351;"> Employment Details </span> tab.';