public function show() { $this->begin(); $this->top_search("Recommendations"); $this->menu('member', 'recommendations'); $this->howitworks(); $recommendations = $this->member->getReferrals(); ?> <div id="div_status" class="status"> <span id="span_status" class="status"></span> </div> <div id="div_recommendations"> <?php if (empty($recommendations)) { ?> <div class="empty_results">No recommedations made.</div> <?php } else { $recommendations_table = new HTMLTable('recommendations_table', 'recommendations'); $recommendations_table->set(0, 0, "<a class=\"sortable\" onClick=\"sort_by('referrals', 'referred_on');\">Recommended On</a>", '', 'header'); $recommendations_table->set(0, 1, "<a class=\"sortable\" onClick=\"sort_by('referrals', 'job');\">Position</a>", '', 'header'); $recommendations_table->set(0, 2, "<a class=\"sortable\" onClick=\"sort_by('referrals', 'candidate_name');\">Candidate</a>", '', 'header'); $recommendations_table->set(0, 3, " ", '', 'header actions'); foreach ($recommendations as $i => $recommendation) { // referred on $recommendations_table->set($i + 1, 0, $recommendation['formatted_referred_on'], '', 'cell'); // position $job_details = '<div class="candidate_name"><a href="../job/' . $recommendation['job_id'] . '">' . htmlspecialchars_decode(stripslashes($recommendation['job'])) . '</a></div><br/>'; $employer = $recommendation['employer']; if (!is_null($recommendation['alternate_employer']) && !empty($recommendation['alternate_employer'])) { $employer = $recommendation['alternate_employer']; } $job_details .= '<div class="small_contact"><span style="font-weight: bold;">Employer: </span>' . htmlspecialchars_decode(stripslashes($employer)) . '</div>'; $recommendations_table->set($i + 1, 1, $job_details, '', 'cell'); // candidate $candidate = '<div class="candidate_name">' . htmlspecialchars_decode(stripslashes($recommendation['candidate_name'])) . '</div><br/>'; $candidate .= '<div class="small_contact"><span style="font-weight: bold;">E-mail:</span><a href="mailto:' . $recommendation['candidate_email'] . '"> ' . $recommendation['candidate_email'] . '</a></div>'; $recommendations_table->set($i + 1, 2, $candidate, '', 'cell'); // action $action = 'Processed'; if ($recommendation['tab'] == 'buf') { $action = '<a class="no_link" onClick="delete_buffered(\'' . $recommendation['id'] . '\');">delete</a>'; } $recommendations_table->set($i + 1, 3, $action, '', 'cell actions'); } echo $recommendations_table->get_html(); } ?> </div> <?php }
public function show() { $this->begin(); $this->top_search('Home'); $this->menu('member', 'home'); $this->howitworks(); $country = $this->member->getCountry(); $currency = Currency::getSymbolFromCountryCode($country); $completeness_raw = $this->get_completeness(); $completeness_percent = 0; $next_step = ''; $total = 0; foreach ($completeness_raw as $key => $value) { $total += $value; $completeness_percent = $total / count($completeness_raw) * 100; if ($completeness_percent < 100 && empty($next_step)) { switch ($key) { case 'seeking': $next_step = 'Fill in Current Job Responsibilities / Experiences.'; break; case 'current_salary': $next_step = 'Fill in Current Salary range.'; break; case 'expected_salary': $next_step = 'Fill in Expected Salary range.'; break; case 'preferred_job_location': $next_step = 'Select your preferred job locations.'; break; case 'can_travel_relocate': $next_step = 'Fill in Willing to travel / relocate.'; break; case 'reason_for_leaving': $next_step = 'Fill in Reason for Leaving.'; break; case 'notice_period': $next_step = 'Fill in Notice Period.'; break; case 'has_job_profiles': $next_step = 'Add a Present & Past Position.'; break; } } } if ($completeness_percent >= 100) { $next_step = 'Career Profile is complete.'; } $answers = $this->get_answers(); $is_active = $answers['is_active_seeking_job'] == '1' ? true : false; $job_profiles = $this->get_job_profiles(); $page = file_get_contents(dirname(__FILE__) . '/../../../html/member_home_page.html'); $page = str_replace('%root%', $this->url_root, $page); $page = str_replace('%country_code%', $country, $page); $page = str_replace('%country%', Country::getCountryFrom($country), $page); $page = str_replace('%currency%', $currency, $page); if (isset($_SESSION['yel']['member']['linkedin_id'])) { if (!empty($_SESSION['yel']['member']['linkedin_id'])) { $page = str_replace('%linkedin_copy_display%', 'block', $page); } else { $page = str_replace('%linkedin_copy_display%', 'none', $page); } } else { $page = str_replace('%linkedin_copy_display%', 'none', $page); } // if (!empty($this->error_message)) { // $page = str_replace('%error_message%', $this->error_message, $page); // } else { // $page = str_replace('%error_message%', '', $page); // } // completeness $progress_percent = $completeness_percent; if ($completeness_percent >= 100) { // this is to make sure the progress bar does not touch the right edge $progress_percent -= 1; } $page = str_replace('%completeness_percent%', $progress_percent, $page); $page = str_replace('%lbl_completeness_percent%', $completeness_percent, $page); $page = str_replace('%next_step%', $next_step, $page); // photo $photo_html = '<div style="text-align: center; margin: auto;">Max resolution: 200x220 pixels<br/>Max size: 150KB</div>'; if ($this->member->hasPhoto()) { $photo_html = '<img id="photo_image" class="photo_image" src="candidate_photo.php?id=' . $this->member->getId() . '" />'; } $page = str_replace('%photo_html%', $photo_html, $page); // resumes $resumes = $this->get_resumes(); $page = str_replace('%member_email%', $this->member->getId(), $page); if (empty($resumes)) { $page = str_replace('%no_resumes%', 'block', $page); $page = str_replace('%resumes_table%', '', $page); } else { $page = str_replace('%no_resumes%', 'none', $page); $resumes_table = new HTMLTable('resumes_table', 'resumes'); $resumes_table->set(0, 0, "Updated On", '', 'header'); $resumes_table->set(0, 1, "File Name", '', 'header'); $resumes_table->set(0, 2, " ", '', 'header actions'); foreach ($resumes as $i => $resume) { $resumes_table->set($i + 1, 0, $resume['formatted_modified_on'], '', 'cell'); $resumes_table->set($i + 1, 1, '<a href="resume.php?id=' . $resume['id'] . '">' . $resume['file_name'] . '</a>', '', 'cell'); $resumes_table->set($i + 1, 2, '<a class="no_link" onClick="update_resume(' . $resume['id'] . ');">Update</a>', '', 'cell actions'); //$resumes_table->set($i+1, 2, '<a class="no_link" onClick="delete_resume('. $resume['id']. ');">Delete</a> | <a class="no_link" onClick="update_resume('. $resume['id']. ');">Update</a>', '', 'cell actions'); } $page = str_replace('%resumes_table%', $resumes_table->get_html(), $page); } // career profile $criteria = array('columns' => "DATE_FORMAT(imported_on, '%e %b, %Y') AS formatted_last_imported_on", 'match' => "email_addr = '" . $this->member->getId() . "'"); $result = $this->member->find($criteria); if (!is_null($result[0]['formatted_last_imported_on']) || !empty($result[0]['formatted_last_imported_on'])) { $page = str_replace('%last_imported_on%', 'Last imported on ' . $result[0]['formatted_last_imported_on'], $page); } else { $page = str_replace('%last_imported_on%', 'Not yet imported', $page); } $is_active_str = 'No'; if ($is_active) { $is_active_str = 'Yes'; } if ($answers['contact_me_for_opportunities'] == '1') { if ($is_active_str == 'No') { $is_active_str .= ', but '; } else { $is_active_str .= '; also '; } $is_active_str .= 'contact me if opportunities are available.'; $page = str_replace('%contact_me%', 'checked', $page); } else { $page = str_replace('%contact_me%', '', $page); } $page = str_replace('%is_active%', $is_active_str, $page); $seeking_txt = str_replace(array("\r\n", "\r", "\n"), '<br/>', $answers['seeking']); $page = str_replace('%seeking%', $seeking_txt, $page); $page = str_replace('%expected_salary_currency%', $answers['expected_salary_currency'], $page); $exp_sal = $answers['expected_salary'] <= 0 ? '(None provided)' : $answers['expected_salary']; $page = str_replace('%expected_salary%', $exp_sal, $page); $exp_total = $answers['expected_total_annual_package'] <= 0 ? '(None provided)' : $answers['expected_total_annual_package']; $page = str_replace('%expected_total_annual_package%', $exp_total, $page); $page = str_replace('%current_salary_currency%', $answers['current_salary_currency'], $page); $cur_sal = $answers['current_salary'] <= 0 ? '(None provided)' : $answers['current_salary']; $page = str_replace('%current_salary%', $cur_sal, $page); $cur_total = $answers['current_total_annual_package'] <= 0 ? '(None provided)' : $answers['current_total_annual_package']; $page = str_replace('%current_total_annual_package%', $cur_total, $page); $page = str_replace('%pref_job_loc_1%', $answers['pref_job_location_1'], $page); $page = str_replace('%pref_job_loc_2%', $answers['pref_job_location_2'], $page); if ($answers['can_travel_relocate'] == 'Y') { $page = str_replace('%can_travel%', 'Yes', $page); } else { $page = str_replace('%can_travel%', 'No', $page); } $reason_for_leaving_txt = str_replace(array("\r\n", "\r", "\n"), '<br/>', $answers['reason_for_leaving']); $page = str_replace('%reason_for_leaving%', $reason_for_leaving_txt, $page); $page = str_replace('%notice_period%', $answers['notice_period'], $page); // job profiles if (empty($job_profiles)) { $page = str_replace('%no_positions%', 'block', $page); $page = str_replace('%job_profiles_table%', '', $page); } else { $page = str_replace('%no_positions%', 'none', $page); $job_profiles_table = new HTMLTable('job_profiles_table', 'job_profiles'); $job_profiles_table->set(0, 0, ' ', '', 'header action'); $job_profiles_table->set(0, 1, 'From', '', 'header'); $job_profiles_table->set(0, 2, 'To', '', 'header'); $job_profiles_table->set(0, 3, 'Employer', '', 'header'); $job_profiles_table->set(0, 4, 'Position', '', 'header'); $job_profiles_table->set(0, 5, ' ', '', 'header action'); foreach ($job_profiles as $i => $job_profile) { $job_profiles_table->set($i + 1, 0, '<a class="no_link" onClick="delete_job_profile(' . $job_profile['id'] . ')">delete</a>', '', 'cell action'); $job_profiles_table->set($i + 1, 1, $job_profile['formatted_work_from'], '', 'cell'); $work_to = $job_profile['formatted_work_to']; if (is_null($work_to) || empty($work_to) || $work_to == '0000-00-00') { $work_to = 'Present'; } $job_profiles_table->set($i + 1, 2, $work_to, '', 'cell'); $emp = htmlspecialchars_decode(stripslashes($job_profile['employer'])); $emp .= '<br/><span class="mini_spec">' . $job_profile['employer_specialization'] . '</span>'; $job_profiles_table->set($i + 1, 3, $emp, '', 'cell'); $pos = htmlspecialchars_decode(stripslashes($job_profile['position_title'])); $pos .= '<br/><span class="mini_spec">reporting to</span><br/>'; if (is_null($job_profile['position_superior_title']) || empty($job_profile['position_superior_title'])) { $pos .= '<a class="no_link" onClick="show_job_profile_popup(' . $job_profile['id'] . ')">edit reporting structure</a>'; } else { $pos .= '<span class="mini_superior">' . $job_profile['position_superior_title'] . '</span>'; } $job_profiles_table->set($i + 1, 4, $pos, '', 'cell'); $edit = '<a class="no_link" onClick="show_job_profile_popup(' . $job_profile['id'] . ')">finish incomplete profile</a>'; if (!is_null($job_profile['summary']) && !empty($job_profile['summary']) && !is_null($job_profile['position_superior_title']) && !empty($job_profile['position_superior_title']) && !is_null($job_profile['employer_specialization']) && !empty($job_profile['employer_specialization'])) { $edit = '<a class="no_link" onClick="show_job_profile_popup(' . $job_profile['id'] . ')">update</a>'; } $job_profiles_table->set($i + 1, 5, $edit, '', 'cell action'); } $page = str_replace('%job_profiles_table%', $job_profiles_table->get_html(), $page); } // popup windows // photo upload $page = str_replace('%upload_photo_member_id%', $this->member->getId(), $page); // career summary editor if ($is_active) { $page = str_replace('%is_active_yes_option%', 'selected', $page); $page = str_replace('%is_active_no_option%', '', $page); } else { $page = str_replace('%is_active_yes_option%', '', $page); $page = str_replace('%is_active_no_option%', 'selected', $page); } $page = str_replace('%seeking_txt%', str_replace('<br/>', "\r\n", $answers['seeking']), $page); $exp_currency_options_str = ''; foreach ($GLOBALS['currencies'] as $i => $currency) { if ($currency == $answers['expected_salary_currency']) { $exp_currency_options_str .= '<option value="' . $currency . '" selected>' . $currency . '</option>' . "\n"; } else { $exp_currency_options_str .= '<option value="' . $currency . '">' . $currency . '</option>' . "\n"; } } $page = str_replace('%expected_salary_currency_options%', $exp_currency_options_str, $page); $page = str_replace('%expected_salary_txt%', $answers['expected_salary'], $page); $page = str_replace('%expected_total_txt%', $answers['expected_total_annual_package'], $page); $cur_currency_options_str = ''; foreach ($GLOBALS['currencies'] as $i => $currency) { if ($currency == $answers['currenty_salary_currency']) { $cur_currency_options_str .= '<option value="' . $currency . '" selected>' . $currency . '</option>' . "\n"; } else { $cur_currency_options_str .= '<option value="' . $currency . '">' . $currency . '</option>' . "\n"; } } $page = str_replace('%current_salary_currency_options%', $cur_currency_options_str, $page); $page = str_replace('%current_salary_txt%', $answers['current_salary'], $page); $page = str_replace('%current_total_txt%', $answers['current_total_annual_package'], $page); $page = str_replace('%pref_job_loc_1_select%', $this->generate_countries($answers['pref_job_loc_1'], 'pref_job_loc_1'), $page); $page = str_replace('%pref_job_loc_2_select%', $this->generate_countries($answers['pref_job_loc_2'], 'pref_job_loc_2'), $page); if ($answers['can_travel_relocate'] == 'Y') { $page = str_replace('%can_travel_yes', 'selected', $page); $page = str_replace('%can_travel_no', '', $page); } else { $page = str_replace('%can_travel_yes', '', $page); $page = str_replace('%can_travel_no', 'selected', $page); } $page = str_replace('%reason_for_leaving_txt%', str_replace('<br/>', "\r\n", $answers['reason_for_leaving']), $page); $page = str_replace('%notice_period_txt%', $answers['notice_period'], $page); // job profile $page = str_replace('%work_from_month_select%', generate_month_dropdown('work_from_month', ''), $page); $page = str_replace('%work_to_month_select%', generate_month_dropdown('work_to_month', ''), $page); $page = str_replace('%emp_desc_select%', $this->generate_employer_description('emp_desc', -1), $page); $page = str_replace('%industry_select%', $this->generate_industries('emp_specialization', array()), $page); // present page echo $page; }
public function show() { $this->begin(); $branch = $this->employee->getBranch(); $this->top('Rewards - ' . $branch[0]['country']); $this->menu_employee('rewards'); $new_rewards = $this->get_rewards(); foreach ($new_rewards as $i => $row) { $new_rewards[$i]['member'] = htmlspecialchars_decode(stripslashes($row['member'])); $new_rewards[$i]['employer'] = htmlspecialchars_decode(stripslashes($row['employer'])); $new_rewards[$i]['title'] = htmlspecialchars_decode(stripslashes($row['title'])); $new_rewards[$i]['padded_invoice'] = pad($row['invoice'], 11, '0'); $new_rewards[$i]['total_reward'] = number_format($row['total_reward'], 2, '.', ', '); $new_rewards[$i]['paid_reward'] = number_format($row['paid_reward'], 2, '.', ', '); } $paid_rewards = $this->get_rewards(true); foreach ($paid_rewards as $i => $row) { $paid_rewards[$i]['member'] = htmlspecialchars_decode(stripslashes($row['member'])); $paid_rewards[$i]['employer'] = htmlspecialchars_decode(stripslashes($row['employer'])); $paid_rewards[$i]['title'] = htmlspecialchars_decode(stripslashes($row['title'])); $paid_rewards[$i]['padded_invoice'] = pad($row['invoice'], 11, '0'); $paid_rewards[$i]['total_reward'] = number_format($row['total_reward'], 2, '.', ', '); $paid_rewards[$i]['paid_reward'] = number_format($row['paid_reward'], 2, '.', ', '); $paid_rewards[$i]['gift'] = htmlspecialchars_decode(stripslashes($row['gift'])); } ?> <!-- submenu --> <div class="menu"> <ul class="menu"> <li id="item_new_rewards" style="background-color: #CCCCCC;"><a class="menu" onClick="show_new_rewards();">New</a></li> <li id="item_paid_rewards"><a class="menu" onClick="show_paid_rewards();">Paid</a></li> </ul> </div> <!-- end submenu --> <!-- div class="banner"> An administration fee of <?php //echo $currency ?> 2.00 will be charged to the referrers for every transfer of rewards into their bank accounts. <br/><br/>Always remember to ensure that the <?php // echo $currency ?> 2.00 administration fee is taken into considration when making an online bank transaction. </div --> <div id="div_status" class="status"> <span id="span_status" class="status"></span> </div> <div id="new_rewards"> <?php if (is_null($new_rewards) || count($new_rewards) <= 0 || $new_rewards === false) { ?> <div class="empty_results">No rewards being offered at this moment.</div> <?php } else { ?> <div id="div_new_rewards"> <?php $new_rewards_table = new HTMLTable('new_rewards_table', 'new_rewards'); $new_rewards_table->set(0, 0, "<a class=\"sortable\" onClick=\"sort_by('new_rewards', 'referrals.employed_on');\">Employed On</a>", '', 'header'); $new_rewards_table->set(0, 1, "<a class=\"sortable\" onClick=\"sort_by('new_rewards', 'jobs.title');\">Job</a>", '', 'header'); $new_rewards_table->set(0, 2, "<a class=\"sortable\" onClick=\"sort_by('new_rewards', 'members.lastname');\">Referrer</a>", '', 'header'); $new_rewards_table->set(0, 3, "Receipt", '', 'header'); $new_rewards_table->set(0, 4, "Reward", '', 'header'); $new_rewards_table->set(0, 5, 'Actions', '', 'header action'); foreach ($new_rewards as $i => $new_reward) { $new_rewards_table->set($i + 1, 0, $new_reward['formatted_employed_on'], '', 'cell'); $job = htmlspecialchars_decode(stripslashes($new_reward['title'])) . '</span>' . "\n"; $job .= '<div class="small_contact"><span class="contact_label">Employer:</span> ' . $new_reward['employer'] . '</div>' . "\n"; $new_rewards_table->set($i + 1, 1, $job, '', 'cell'); $referrer_short_details = ''; if (substr($new_reward['member_id'], 0, 5) == 'team.' && substr($new_reward['member_id'], 7) == '@yellowelevator.com') { $referrer_short_details = 'Yellow Elevator'; } else { $referrer_short_details = htmlspecialchars_decode(stripslashes($new_reward['member'])) . "\n"; $referrer_short_details .= '<div class="small_contact"><span class="contact_label">Tel.:</span> ' . $new_reward['phone_num'] . '</div>' . "\n"; $referrer_short_details .= '<div class="small_contact"><span class="contact_label">Email: </span><a href="mailto:' . $new_reward['member_id'] . '">' . $new_reward['member_id'] . '</a></div>' . "\n"; } $new_rewards_table->set($i + 1, 2, $referrer_short_details, '', 'cell'); $new_rewards_table->set($i + 1, 3, '<a class="no_link" onClick="show_invoice_page(' . $new_reward['invoice'] . ');">' . $new_reward['padded_invoice'] . '</a> <a href="invoice_pdf.php?id=' . $new_reward['invoice'] . '"><img src="../common/images/icons/pdf.gif" /></a>', '', 'cell'); $new_rewards_table->set($i + 1, 4, $new_reward['currency'] . '$ ' . $new_reward['total_reward'], '', 'cell'); $actions = '<input type="button" value="Award" onClick="show_award_popup(' . $new_reward['referral'] . ');" />'; $new_rewards_table->set($i + 1, 5, $actions, '', 'cell action'); } echo $new_rewards_table->get_html(); ?> </div> <?php } ?> </div> <div id="paid_rewards"> <?php if (is_null($paid_rewards) || count($paid_rewards) <= 0 || $paid_rewards === false) { ?> <div class="empty_results">No rewards awarded at this moment.</div> <?php } else { ?> <div id="div_paid_rewards"> <?php $paid_rewards_table = new HTMLTable('paid_rewards_table', 'paid_rewards'); $paid_rewards_table->set(0, 0, "<a class=\"sortable\" onClick=\"sort_by('paid_rewards', 'referral_rewards.paid_on');\">Awarded On</a>", '', 'header'); $paid_rewards_table->set(0, 1, "<a class=\"sortable\" onClick=\"sort_by('paid_rewards', 'jobs.title');\">Job</a>", '', 'header'); $paid_rewards_table->set(0, 2, "<a class=\"sortable\" onClick=\"sort_by('paid_rewards', 'members.lastname');\">Referrer</a>", '', 'header'); $paid_rewards_table->set(0, 3, "Receipt", '', 'header'); $paid_rewards_table->set(0, 4, "Total Reward", '', 'header'); $paid_rewards_table->set(0, 5, 'Given Reward', '', 'header'); foreach ($paid_rewards as $i => $paid_reward) { $paid_rewards_table->set($i + 1, 0, $paid_reward['formatted_paid_on'], '', 'cell'); $job = htmlspecialchars_decode(stripslashes($paid_reward['title'])) . '</span>' . "\n"; $job .= '<div class="small_contact"><span class="contact_label">Employer:</span> ' . $paid_reward['employer'] . '</div>' . "\n"; $paid_rewards_table->set($i + 1, 1, $job, '', 'cell'); $referrer_short_details = ''; if (substr($paid_reward['member_id'], 0, 5) == 'team.' && substr($paid_reward['member_id'], 7) == '@yellowelevator.com') { $referrer_short_details = 'Yellow Elevator'; } else { $referrer_short_details = htmlspecialchars_decode(stripslashes($paid_reward['member'])) . "\n"; $referrer_short_details .= '<div class="small_contact"><span class="contact_label">Tel.:</span> ' . $paid_reward['phone_num'] . '</div>' . "\n"; $referrer_short_details .= '<div class="small_contact"><span class="contact_label">Email: </span><a href="mailto:' . $paid_reward['member_id'] . '">' . $paid_reward['member_id'] . '</a></div>' . "\n"; } $paid_rewards_table->set($i + 1, 2, $referrer_short_details, '', 'cell'); $paid_rewards_table->set($i + 1, 3, '<a class="no_link" onClick="show_invoice_page(' . $paid_reward['invoice'] . '">' . $paid_reward['padded_invoice'] . '</a> <a href="invoice_pdf.php?id=' . $paid_reward['invoice'] . '"><img src="../common/images/icons/pdf.gif" /></a>', '', 'cell'); $paid_rewards_table->set($i + 1, 4, $paid_reward['currency'] . '$ ' . $paid_reward['total_reward'], '', 'cell'); $rewarded = $paid_reward['currency'] . '$ ' . $paid_reward['paid_reward']; if ($paid_reward['paid_reward'] <= 0 && !is_null($paid_reward['gift'])) { $rewarded = $paid_reward['gift']; } $paid_rewards_table->set($i + 1, 5, $rewarded, '', 'cell'); } echo $paid_rewards_table->get_html(); ?> </div> <?php } ?> </div> <!-- popup windows goes here --> <div id="award_window" class="popup_window"> <div class="popup_window_title">Award</div> <form onSubmit="return false;"> <input type="hidden" id="referral_id" value="" /> <div class="award_form"> <table class="award_form"> <tr> <td class="label">Referrer:</td> <td class="field"><span id="lbl_referrer"></span></td> </tr> <tr> <td class="label">Total Reward:</td> <td class="field"> <!-- span id="lbl_reward"></span --> <span id="lbl_reward_currency"></span>$ <input type="text" id="amount" value="1.00" /> </td> </tr> <tr> <td class="label">Award as:</td> <td class="field"> <div class="award_field"> <input type="radio" name="award_as" id="award_as_money" checked />Monetary Incentive<br/> Payment Mode: <select id="payment_mode" name="payment_mode"> <option value="IBT" selected>Bank Transfer</option> <option value="CSH">Cash</option> <option value="CHQ">Cheque</option> <option value="CDB">Bank on-behalf</option> </select><br/> Bank Account: <span id="banks_list"></span><br/> Receipt #: <input type="text" id="receipt" value="" /> </div> <br/> <div class="award_field"> <input type="radio" name="award_as" id="award_as_gift" />Gift: <input type="text" id="gift" value="" /> </div> </td> </tr> </table> </div> </form> <div class="popup_window_buttons_bar"> <input type="button" value="Confirm" onClick="close_award_popup(true);" /> <input type="button" value="Cancel" onClick="close_award_popup(false);" /> </div> </div> <?php }
public function show() { $this->begin(); $this->top_search("Job Applications"); $this->menu('member', 'job_applications'); $this->howitworks(); $applications = $this->member->getAllAppliedJobs(); // filter out jobs in 'job' that are already in 'ref' $filter_apps = array(); $skips = array(); for ($i = 0; $i < count($applications); $i++) { $current_app = $applications[$i]; $next_i = $i + 1; if ($next_i <= count($applications) - 1) { for ($j = $next_i; $j < count($applications); $j++) { if (!in_array($j, $skips)) { if ($current_app['job_id'] == $applications[$j]['job_id']) { if ($current_app['tab'] == 'ref') { $skips[] = $j; } else { $skips[] = $i; } } } } } if (!in_array($i, $skips)) { $filter_apps[] = $current_app; } } $applications = $filter_apps; ?> <div id="div_status" class="status"> <span id="span_status" class="status"></span> </div> <div id="div_applications"> <?php if (empty($applications)) { ?> <div class="empty_results">No jobs explored yet.</div> <?php } else { $applications_table = new HTMLTable('applications_table', 'applications'); $applications_table->set(0, 0, "<a class=\"sortable\" onClick=\"sort_by('referrals', 'applied_on');\">Explored On</a>", '', 'header'); $applications_table->set(0, 1, "<a class=\"sortable\" onClick=\"sort_by('referrals', 'job');\">Job Opportunity</a>", '', 'header'); $applications_table->set(0, 2, "<a class=\"sortable\" onClick=\"sort_by('referrals', 'employer');\">Employer</a>", '', 'header'); $applications_table->set(0, 3, "Resume Submitted", '', 'header'); $applications_table->set(0, 4, " ", '', 'header actions'); foreach ($applications as $i => $application) { $applications_table->set($i + 1, 0, $application['formatted_referred_on'], '', 'cell'); $applications_table->set($i + 1, 1, '<a href="../job/' . $application['job_id'] . '">' . $application['job'] . '</a>', '', 'cell'); $employer = $application['employer']; if (!is_null($application['alternate_employer']) && !empty($application['alternate_employer'])) { $employer = $application['alternate_employer']; } $applications_table->set($i + 1, 2, $employer, '', 'cell'); $resume = ''; if ($application['tab'] == 'buf') { if (!is_null($application['resume_id']) && is_null($application['resume'])) { // use pre uploaded resume $resume = $application['buffered_stored_resume_file']; } elseif (is_null($application['resume_id']) && !is_null($application['resume'])) { // use just uploaded resume $resume = $application['resume']; } } else { $resume = $application['resume']; } $applications_table->set($i + 1, 3, $resume, '', 'cell'); $button = 'Processing...'; if ($application['tab'] == 'ref') { $button = '<input type="button" value="Confirm Employed" onClick="confirm_employment(' . $application['id'] . ', \'' . addslashes($application['employer']) . '\', \'' . addslashes($application['job']) . '\')" />'; if (!is_null($application['formatted_confirmed_on']) && !empty($application['formatted_confirmed_on'])) { $button = '<span style="color: #666666; font-size: 9pt;">Employed on ' . $application['formatted_employed_on'] . '<br/>Confirmed on ' . $application['formatted_confirmed_on'] . ' </span>'; } } $applications_table->set($i + 1, 4, $button, '', 'cell actions'); } echo $applications_table->get_html(); } ?> </div> <?php }
public function show() { $this->begin(); $branch = $this->employee->getBranch(); if ($this->is_new) { $this->top('Employer - ' . $branch[0]['country'] . ' - New Employer'); } else { $this->top('Employer - ' . $branch[0]['country'] . ' - ' . htmlspecialchars_decode(stripslashes($this->employer->getName()))); } $this->menu_employee('employers'); $subscriptions_rates = $GLOBALS['subscriptions_rates']; $available_subscriptions = $subscriptions_rates[Currency::getSymbolFromCountryCode($branch[0]['country'])]; $raw_data = array(); $profile = array(); $fees = array(); $jobs = array(); if (!$this->is_new) { // get profile $raw_data = $this->employer->get(); $profile = $raw_data[0]; // get fees $fees = $this->employer->getFees(); // get jobs $jobs = $this->employer->getJobs(); } else { if ($this->is_new && !is_null($this->employer)) { // get profile $raw_data = $this->employer->get(); $profile = $raw_data[0]; } else { $profile = array('license_num' => '', 'working_months' => '12', 'payment_terms_days' => '30', 'email_addr' => '', 'contact_person' => '', 'name' => '', 'website_url' => '', 'phone_num' => '', 'address' => '', 'state' => '', 'zip' => '', 'country' => $branch[0]['country']); } } ?> <!-- submenu --> <div class="menu"> <?php $style = 'background-color: #CCCCCC;'; ?> <ul class="menu"> <li id="item_profile" style="<?php echo $this->current_page == 'profile' ? $style : ''; ?> "><a class="menu" onClick="show_profile();">Profile</a></li> <?php if (!$this->is_new) { ?> <li id="item_fees" style="<?php echo $this->current_page == 'fees' ? $style : ''; ?> "><a class="menu" onClick="show_fees();">Fees</a></li> <li id="item_subscriptions" style="<?php echo $this->current_page == 'subscriptions' ? $style : ''; ?> "><a class="menu" onClick="show_subscriptions();">Subscriptions</a></li> <li id="item_jobs" style="<?php echo $this->current_page == 'jobs' ? $style : ''; ?> "><a class="menu" onClick="show_jobs();">Jobs</a></li> <?php } ?> </ul> </div> <!-- end submenu --> <div id="div_status" class="status"> <span id="span_status" class="status"></span> </div> <div id="employer_profile"> <form id="profile" method="post" onSubmit="return false;"> <table class="profile_form"> <tr> <td class="buttons_bar" colspan="2"><input type="button" onClick="save_profile();" value="Save & Update Profile" /></td> </tr> <tr> <td class="label"><label for="business_license">Company/Business Registration No.:</label></td> <td class="field"><input class="field" type="text" id="business_license" name="business_license" value="<?php echo $profile['license_num']; ?> " /></td> </tr> <tr> <td class="title" colspan="2">Sign In Details</td> </tr> <tr> <td class="label">User ID:</td> <td class="field"> <?php if ($this->is_new) { ?> <input class="field" type="text" id="user_id" value="" maxlength="10" /> <?php } else { echo $profile['id']; } ?> </td> </tr> <tr> <td class="label"><label for="password">Password:</label></td> <td class="field"> <?php if ($this->is_new) { ?> <input type="button" value="Reset Password" onClick="reset_password();" disabled /> <?php } else { ?> <input type="button" value="Reset Password" onClick="reset_password();" /> <?php } ?> </td> </tr> <tr> <td class="title" colspan="2">Contact Details</td> </tr> <tr> <td class="label"><label for="email">E-mail Address:</label></td> <td class="field"><input class="field" type="text" id="email" name="email" value="<?php echo $profile['email_addr']; ?> " /></td> </tr> <tr> <td class="label"><label for="name">Business Name:</label></td> <td class="field"><input class="field" type="text" id="name" name="name" value="<?php echo htmlspecialchars_decode(stripslashes($profile['name'])); ?> " /></td> </tr> <tr> <td class="label"><label for="contact_person">HR Contacts:</label></td> <td class="field"><input class="field" type="text" id="contact_person" name="contact_person" value="<?php echo htmlspecialchars_decode(stripslashes($profile['contact_person'])); ?> " /></td> </tr> <tr> <td class="label"><label for="hr_contacts">HR Contact Emails:</label></td> <td class="field"><input class="field" type="text" id="hr_contacts" name="hr_contacts" value="<?php echo htmlspecialchars_decode(stripslashes($profile['hr_contacts'])); ?> " /></td> </tr> <tr> <td class="label"><label for="phone_num">Telephone Numbers:</label></td> <td class="field"><input class="field" type="text" id="phone_num" name="phone_num" value="<?php echo $profile['phone_num']; ?> " /></td> </tr> <tr> <td class="label"><label for="fax_num">Fax Number:</label></td> <td class="field"><input class="field" type="text" id="fax_num" name="fax_num" value="<?php echo $profile['fax_num']; ?> " /></td> </tr> <tr> <td class="label"><label for="address">Mailing Address:</label></td> <td class="field"><textarea id="address" name="address" ><?php echo htmlspecialchars_decode(stripslashes($profile['address'])); ?> </textarea></td> </tr> <tr> <td class="label"><label for="state">State/Province/Area:</label></td> <td class="field"><input class="field" type="text" id="state" name="state" value="<?php echo $profile['state']; ?> " /></td> </tr> <tr> <td class="label"><label for="zip">Zip/Postal Code:</label></td> <td class="field"><input class="field" type="text" id="zip" name="zip" value="<?php echo $profile['zip']; ?> " /></td> </tr> <tr> <td class="label"><label for="country">Country:</label></td> <td class="field"> <?php echo $this->generate_countries($profile['country']); ?> </</td> </tr> <tr> <td class="label"><label for="website_url">Web-site URL:</label></td> <td class="field"><input class="field" type="text" id="website_url" name="website_url" value="<?php echo htmlspecialchars_decode(stripslashes($profile['website_url'])); ?> " /></td> </tr> <tr> <td class="buttons_bar" colspan="2"><input type="button" onClick="save_profile();" value="Save & Update Profile" /></td> </tr> </table> </form> </div> <div id="employer_fees"> <div class="payment_terms"> <table class="payment_terms_table"> <tr> <td class="label"><label for="working_months">Working Months:</label></td> <td class="field"><input class="field_number" type="text" id="working_months" name="working_months" value="<?php echo $profile['working_months']; ?> " maxlength="2" /></td> </tr> <tr> <td class="label"><label for="payment_terms_days">Payment Terms:</label></td> <td class="field"> <?php $is_selected = array('30' => '', '60' => '', '90' => ''); $is_selected[$profile['payment_terms_days']] = 'selected'; ?> <select id="payment_terms_days" name="payment_terms_days" > <option value="30" <?php echo $is_selected['30']; ?> >30 days</option> <option value="60" <?php echo $is_selected['60']; ?> >60 days</option> <option value="90" <?php echo $is_selected['90']; ?> >90 days</option> </select> </td> </tr> <tr> <td colspan="2" style="text-align: right; border-top: 1px solid #CCCCCC;"> <input class="button" type="button" value="Save" onClick="save_payment_terms();" /> </td> </tr> </table> </div> <div class="buttons_bar"> <input class="button" type="button" value="Add" onClick="add_new_fee();" /> </div> <div id="fees" class="fees"> <?php if (is_null($fees) || empty($fees) || $fees === false) { ?> <div class="empty_results">There is no fee structure set for this employer yet.</div> <?php } else { $fees_table = new HTMLTable('fees_table', 'fees_table'); $fees_table->set(0, 0, "Annual Salary From", '', 'header'); $fees_table->set(0, 1, "Annual Salary Until", '', 'header'); $fees_table->set(0, 2, "Guaranteed Period (in months)", '', 'header'); $fees_table->set(0, 3, "Service Fee (%)", '', 'header'); $fees_table->set(0, 4, "Reward (%)", '', 'header'); $fees_table->set(0, 5, " ", '', 'header action'); foreach ($fees as $i => $fee) { $fees_table->set($i + 1, 0, number_format($fee['salary_start'], 2, '.', ','), '', 'cell'); $fees_table->set($i + 1, 1, number_format($fee['salary_end'], 2, '.', ','), '', 'cell'); $fees_table->set($i + 1, 2, $fee['guarantee_months'], '', 'cell center'); $fees_table->set($i + 1, 3, $fee['service_fee'], '', 'cell center'); $fees_table->set($i + 1, 4, $fee['reward_percentage'], '', 'cell center'); $actions = '<input type="button" value="Delete" onClick="delete_fee(' . $fee['id'] . ');" />'; $actions .= '<input type="button" value="Update" onClick="show_fee_window(' . $fee['id'] . ', \'' . number_format($fee['salary_start'], 2, '.', ',') . '\', \'' . number_format($fee['salary_end'], 2, '.', ',') . '\', \'' . $fee['guarantee_months'] . '\', \'' . $fee['service_fee'] . '\', \'' . $fee['reward_percentage'] . '\');" />'; $fees_table->set($i + 1, 5, $actions, '', 'cell action'); } echo $fees_table->get_html(); } ?> </div> <div class="buttons_bar"> <input class="button" type="button" value="Add" onClick="add_new_fee();" /> </div> </div> <div id="employer_subscriptions"> <table class="subscription_form"> <tr> <td class="label"><label for="subscription_period">Subscription:</label></td> <td class="field"> <?php $expiry = $profile['formatted_subscription_expire_on']; if (empty($expiry) || is_null($expiry)) { $expiry = 'No subscription purchased.'; } $expired = ''; if ($profile['is_expired'] > 0) { $expired = 'color: #ff0000;'; } ?> <div>Expires On: <span id="expiry" style="<?php echo $expired; ?> "><?php echo $expiry; ?> </span></div> <div>Purchase: <select id="subscription_period" name="subscription_period" > <option value="0" selected>None</option> <option value="0" disabled> </option> <option value="1">1 month</option> <?php foreach ($available_subscriptions as $month => $price) { ?> <option value="<?php echo $month; ?> "><?php echo $month; ?> months</option> <?php } ?> </select> </div> </td> </tr> <tr> <td class="label"><label for="free_postings">Free Job Postings:</label></td> <td class="field"> <span id="free_postings_label"><?php echo $profile['free_postings_left']; ?> </span> Add: <input class="field_number" type="text" id="free_postings" name="free_postings" value="0" maxlength="2" /> </td> </tr> <tr> <td class="label"><label for="paid_postings">Paid Job Postings:</label></td> <td class="field"> <span id="paid_postings_label"><?php echo $profile['paid_postings_left']; ?> </span> Add: <input class="field_number" type="text" id="paid_postings" name="paid_postings" value="0" maxlength="2" /> </td> </tr> </table> <div class="buttons_bar"> <input class="button" type="button" value="Save" onClick="save_subscriptions();" /> </div> </div> <div id="employer_jobs"> <div class="buttons_bar"> <input class="button" type="button" value="Add" onClick="show_job_form_with();" /> </div> <div id="jobs" class="jobs"> <?php if (is_null($jobs) || empty($jobs) || $jobs === false) { ?> <div class="empty_results">There is no job added for this employer yet.</div> <?php } else { $jobs_table = new HTMLTable('jobs_table', 'jobs_table'); $jobs_table->set(0, 0, "<a class=\"sortable\" onClick=\"sort_by('jobs', 'created_on');\">Created On</a>", '', 'header'); $jobs_table->set(0, 1, "<a class=\"sortable\" onClick=\"sort_by('jobs', 'title');\">Job</a>", '', 'header'); $jobs_table->set(0, 2, "<a class=\"sortable\" onClick=\"sort_by('jobs', 'expire_on');\">Expire On</a>", '', 'header'); $jobs_table->set(0, 3, " ", '', 'header action'); foreach ($jobs as $i => $job) { $jobs_table->set($i + 1, 0, $job['formatted_created_on'], '', 'cell'); $jobs_table->set($i + 1, 1, '<a class="no_link" onClick="show_job_form_with(' . $job['id'] . ');">' . htmlspecialchars_decode(stripslashes($job['title'])) . '</a>', '', 'cell'); $expiry = $job['formatted_expire_on']; if ($job['expired'] <= 0) { $expiry = '<span style="font-weight: bold; color: #ff0000;">' . $expiry . '</span>'; } $jobs_table->set($i + 1, 2, $expiry, '', 'cell'); $actions = '<input type="button" value="Delete" onClick="delete_job(' . $job['id'] . ');" />'; $actions .= '<input type="button" value="Extend" onClick="extend_job(' . $job['id'] . ');" />'; $jobs_table->set($i + 1, 3, $actions, '', 'cell action'); } echo $jobs_table->get_html(); } ?> </div> <div class="buttons_bar"> <input class="button" type="button" value="Add" onClick="show_job_form_with();" /> </div> </div> <div id="job"> <form method="post"onSubmit="return false;"> <input type="hidden" id="job_id" value="0" /> <table id="job_form" class="job_form"> <tr> <td class="label"><label for="job.owner">Consultant:</label></td> <td class="field"> <?php $this->generate_employees(); ?> </td> </tr> <tr> <td class="label"><label for="job.is_exec">Executive Search Only:</label></td> <td class="field"><input type="checkbox" id="job.is_exec" name="is_exec" /></td> </tr> <tr> <td class="label"><label for="job.title">Title:</label></td> <td class="field"><input class="field" type="text" id="job.title" name="title" /></td> </tr> <tr> <td class="label"><label for="job.alternate_employer">Alternate Employer:</label></td> <td class="field"><input class="field" type="text" id="job.alternate_employer" name="alternate_employer" /></td> </tr> <tr> <td class="label"><label for="job.contact_carbon_copy">Extra Contacts:</label></td> <td class="field"><input class="field" type="text" id="job.contact_carbon_copy" name="contact_carbon_copy" /></td> </tr> <tr> <td class="label"><label for="job.industry">Industry:</label></td> <td class="field"><?php $this->generate_industries('', 'job.industry'); ?> </td> </tr> <tr> <td class="label"><label for="job.country">Country:</label></td> <td class="field"><?php $this->generate_countries('', 'job.country'); ?> </td> </tr> <tr> <td class="label"><label for="job.state">State/Province/Area:</label></td> <td class="field"><input type="text" class="field" id="job.state" name="state" /></td> </tr> <tr> <td class="label"><label for="job.salary">Monthly Salary:</label></td> <td class="field"> <?php echo $branch[0]['currency']; ?> $ <input class="salary" type="text" id="job.salary" name="salary" /> - <input class="salary" type="text" id="job.salary_end" name="salary_end" /><br> <input type="checkbox" id="job.salary_negotiable" name="salary_negotiable" /> <label for="job.salary_negotiable">Negotiable</label><br/> <p class="small_notes">This account allows you to create job ads with salary in <span id="job.employer.currency_2"></span> only. If you wish to create job ads with salary in other currencies, please log into the relevant accounts.</p> </td> </tr> <tr> <td class="label center" colspan="2"><label for="job.description">Description:</label></td> </tr> <tr> <td class="field center" colspan="2"> <div class="toolbar"> <input type="button" value="Bold" onClick="insert('bold');" /> <input type="button" value="Italic" onClick="insert('italic');" /> <input type="button" value="Underline" onClick="insert('underline');" /> <input type="button" value="Highlight" onClick="insert('highlight');" /> <input type="button" value="List" onClick="insert('list');" /> <input type="button" value="Numbered List" onClick="insert('nlist');" /> <input type="button" value="List Item" onClick="insert('item');" /> </div> <textarea id="job.description" name="description" class="job_description"></textarea> </td> </tr> </table> <div class="buttons_bar"> <input class="button" type="button" value="Cancel" onClick="show_jobs();" /> <input class="button" type="button" value="Preview" onClick="show_preview_window();" /> <input class="button" type="button" value="Publish" onClick="save_job();" /> </div> </form> </div> <!-- popup windows goes here --> <div id="fee_window" class="popup_window"> <div class="popup_window_title">Service Fee</div> <div class="popup_fee"> <div class="note">NOTE: Enter 0 to represent ∞ for Annual Salary Until.</div> <form id="service_fee_form" method="post" onSubmit="return false;"> <input type="hidden" id="id" name="id" value="0" /> <table class="service_fee_form"> <tr> <td class="label"><label for="salary_start">Annual Salary Start:</label></td> <td class="field"><input class="field" type="text" id="salary_start" name="salary_start" value="1.00" /></td> </tr> <tr> <td class="label"><label for="salary_end">Annual Salary Until:</label></td> <td class="field"><input class="field" type="text" id="salary_end" name="salary_end" value="0.00" /></td> </tr> <tr> <td class="label"><label for="Guaranteed Months">Guaranteed Months:</label></td> <td class="field"><input class="field" type="text" id="guarantee_months" name="guarantee_months" value="1" maxlength="2" /></td> </tr> <tr> <td class="label"><label for="service_fee">Service Fee (%):</label></td> <td class="field"><input class="field" type="text" id="service_fee" name="service_fee" value="" /></td> </tr> <tr> <td class="label"><label for="reward_percentage">Reward (%):</label></td> <td class="field"><input class="field" type="text" id="reward_percentage" name="reward_percentage" value="25.00" /></td> </tr> </table> </form> </div> <div class="popup_window_buttons_bar"> <input type="button" value="Save & Close" onClick="close_fee_window(true);" /> <input type="button" value="Close" onClick="close_fee_window(false);" /> </div> </div> <div id="preview_window" class="popup_window"> <div class="popup_window_title">Job Description Preview</div> <div id="preview_area"></div> <div class="popup_window_buttons_bar"> <input type="button" value="Close" onClick="close_preview_window();" /> </div> </div> <?php }
public function show() { $this->begin(); $branch = $this->employee->getBranch(); if ($this->is_new) { $this->top('Candidate - ' . $branch[0]['country'] . ' - New Candidate'); } else { $this->top('Candidate - ' . $branch[0]['country'] . ' - ' . htmlspecialchars_decode(stripslashes($this->member->getFullName()))); } $this->menu_employee('members'); $raw_data = array(); $profile = array(); if (!$this->is_new) { // get profile $raw_data = $this->member->get(); $profile = $raw_data[0]; // get job profiles $raw_data = $this->get_job_profiles(); $profile['job_profiles'] = $raw_data; // get resumes $profile['resumes'] = $this->get_resumes(); // get notes $profile['notes'] = $this->member->getNotes(); // get the referrers and referees //$profile['referrers'] = $this->get_referrers(); $profile['referrers'] = $this->member->getReferrers(); $profile['referees'] = $this->member->getReferees(); } else { $profile = array('email_addr' => '', 'firstname' => '', 'lastname' => '', 'phone_num' => '', 'address' => '', 'state' => '', 'zip' => '0', 'country' => $branch[0]['country'], 'hrm_gender' => '', 'hrm_ethicnity' => '', 'hrm_birthdate' => '', 'citizenship' => $branch[0]['country'], 'resumes' => array()); } $potential_referrers = $this->get_potential_referrers(); $potential_candidates = $this->get_potential_candidates(); //$applications = $this->get_applications(); $temp_apps = $this->member->getAllAppliedJobs(); $applications = array(); $skips = array(); for ($i = 0; $i < count($temp_apps); $i++) { $current_row = $temp_apps[$i]; $next_i = $i + 1; if ($next_i <= count($temp_apps) - 1) { for ($j = $next_i; $j < count($temp_apps); $j++) { if (!in_array($j, $skips)) { if ($current_row['job'] == $temp_apps[$j]['job']) { if ($current_row['tab'] == 'ref') { $skips[] = $j; } else { $skips[] = $i; } } } } } if (!in_array($i, $skips)) { $applications[] = $current_row; } } ?> <!-- submenu --> <div class="menu"> <?php $style = 'background-color: #CCCCCC;'; ?> <ul class="menu"> <!-- li id="item_back"><a class="menu" onClick="go_back();"><<</a></li --> <li id="item_profile" style="<?php echo $this->current_page == 'profile' ? $style : ''; ?> "><a class="menu" onClick="show_profile();">Profile</a></li> <?php if (!$this->is_new) { ?> <li id="item_resumes" style="<?php echo $this->current_page == 'resumes' ? $style : ''; ?> "><a class="menu" onClick="show_resumes(false);">Resumes</a></li> <li id="item_career" style="<?php echo $this->current_page == 'career' ? $style : ''; ?> "><a class="menu" onClick="show_career(false);">Career Profile</a></li> <li id="item_notes" style="<?php echo $this->current_page == 'notes' ? $style : ''; ?> "><a class="menu" onClick="show_notes(false);">Remarks</a></li> <li id="item_connections" style="<?php echo $this->current_page == 'connections' ? $style : ''; ?> "><a class="menu" onClick="show_connections(false);">Connections</a></li> <li id="item_applications" style="<?php echo $this->current_page == 'applications' ? $style : ''; ?> "><a class="menu" onClick="show_applications(false);">Applications</a></li> <?php } ?> </ul> </div> <!-- end submenu --> <div id="div_status" class="status"> <span id="span_status" class="status"></span> </div> <div id="member_profile"> <table class="profile"> <tr> <td class="photo"> <div id="photo_area" class="photo"> <?php if (!$this->is_new && $this->member->hasPhoto()) { ?> <img class="photo_image" src="member_photo.php?id=<?php echo $profile['email_addr']; ?> " /> <?php } else { ?> <div style="text-align: center; margin: auto;"> <?php if ($this->is_new) { echo 'Not allowed to upload photo without an account.'; } else { echo 'No photo uploaded.'; } ?> </div> <?php } ?> </div> <?php if (!$this->is_new) { ?> <div id="photo_buttons" class="photo_buttons"> <?php if (!$this->member->isPhotoApproved()) { ?> <input type="button" id="accept_btn" value="Accept" onClick="approve_photo();" /> <?php } else { ?> <input type="button" value="Accept" disabled /> <?php } ?> <input type="button" value="Reject" onClick="reject_photo();" /> </div> <?php } ?> </td> <td> <form id="profile" method="post" onSubmit="return false;"> <table class="profile_form"> <tr> <td class="buttons_bar" colspan="2"><input type="button" onClick="save_profile();" value="Save & Update Profile" /></td> </tr> <tr> <td class="title" colspan="2">Sign In Details</td> </tr> <tr> <td class="label">Email Address:</td> <td class="field"> <?php if ($this->is_new) { ?> <input class="field" type="text" id="email_addr" value="" maxlength="50" /> <?php } else { echo $profile['email_addr']; } ?> </td> </tr> <tr> <td class="label"><label for="password">Password:</label></td> <td class="field"> <?php if ($this->is_new) { ?> <input type="button" value="Reset Password" onClick="reset_password();" disabled /> <?php } else { ?> <input type="button" value="Reset Password" onClick="reset_password();" /> <?php } ?> </td> </tr> <tr> <td class="title" colspan="2">Citizenship</td> </tr> <tr> <td class="label"><label for="citizenship">Citizen of:</label></td> <td class="field"> <?php echo $this->generate_countries($profile['citizenship'], 'citizenship'); ?> </td> </tr> <tr> <td class="title" colspan="2">Contact Details</td> </tr> <tr> <td class="label"><label for="firstname">First Name:</label></td> <td class="field"><input class="field" type="text" id="firstname" name="firstname" value="<?php echo htmlspecialchars_decode(stripslashes($profile['firstname'])); ?> " /></td> </tr> <tr> <td class="label"><label for="lastname">Last Name:</label></td> <td class="field"><input class="field" type="text" id="lastname" name="lastname" value="<?php echo htmlspecialchars_decode(stripslashes($profile['lastname'])); ?> " /></td> </tr> <tr> <td class="label"><label for="phone_num">Telephone Number:</label></td> <td class="field"><input class="field" type="text" id="phone_num" name="phone_num" value="<?php echo $profile['phone_num']; ?> " /></td> </tr> <tr> <td class="label"><label for="address">Mailing Address:</label></td> <td class="field"><textarea id="address" name="address" ><?php echo htmlspecialchars_decode(stripslashes($profile['address'])); ?> </textarea></td> </tr> <tr> <td class="label"><label for="state">State/Province/Area:</label></td> <td class="field"><input class="field" type="text" id="state" name="state" value="<?php echo $profile['state']; ?> " /></td> </tr> <tr> <td class="label"><label for="zip">Zip/Postal Code:</label></td> <td class="field"><input class="field" type="text" id="zip" name="zip" value="<?php echo $profile['zip']; ?> " /></td> </tr> <tr> <td class="label"><label for="country">Country:</label></td> <td class="field"> <?php echo $this->generate_countries($profile['country']); ?> </</td> </tr> <tr> <td class="title" colspan="2">HRM Census Form</td> </tr> <tr> <td class="label"><label for="gender">Gender:</label></td> <td class="field"> <select id="gender" name="hrm_gender"> <?php if ($this->is_new) { ?> <option value="" selected>Select One</option> <option value="" disabled> </option> <option value="male">Male</option> <option value="female">Female</option> <?php } else { ?> <option value="">Select One</option> <option value="" disabled> </option> <?php if ($profile['hrm_gender'] == 'male') { ?> <option value="male" selected>Male</option> <option value="female">Female</option> <?php } else { ?> <option value="male">Male</option> <option value="female" selected>Female</option> <?php } } ?> </select> </td> </tr> <tr> <td class="label"><label for="birthdate_month">Birthdate:</label></td> <td class="field"> <?php $birthdate = explode('-', $profile['hrm_birthdate']); echo generate_month_dropdown('birthdate_month', '', $birthdate[1]); echo generate_dropdown('birthdate_day', '', 1, 31, $birthdate[2], 2, 'Day'); ?> <input maxlength="4" style="width: 50px;" type="text" id="birthdate_year" name="birthdate_year" value="<?php echo $birthdate[0]; ?> " /> </td> </tr> <tr> <td class="label"><label for="ethnicity">Ethnicity:</label></td> <td class="field"><input class="field" type="text" id="ethnicity" name="ethnicity" value="<?php echo $profile['hrm_ethnicity']; ?> " /></td> </tr> <tr> <td class="buttons_bar" colspan="2"><input type="button" onClick="save_profile();" value="Save & Update Profile" /></td> </tr> </table> </form> </td> </tr> </table> </div> <div id="member_resumes"> <table class="buttons"> <tr> <td class="right"> <input type="button" id="upload_new_resume" name="upload_new_resume" value="Upload Resume" onClick="show_upload_resume_popup(0);" /> </td> </tr> </table> <div id="div_resumes"> <?php if (empty($profile['resumes'])) { ?> <div class="empty_results">No resumes uploaded.</div> <?php } else { $resumes_table = new HTMLTable('resumes_table', 'resumes'); $resumes_table->set(0, 0, "Modified On", '', 'header'); $resumes_table->set(0, 1, "Resume", '', 'header'); $resumes_table->set(0, 2, " ", '', 'header actions'); foreach ($profile['resumes'] as $i => $resume) { $resumes_table->set($i + 1, 0, $resume['formatted_modified_on'], '', 'cell'); $resume_link = '<a href="resume_download.php?id=' . $resume['id'] . '">' . $resume['file_name'] . '</a>'; if ($resume['is_yel_uploaded'] == '1') { $resume_link = '» ' . $resume_link; } $resumes_table->set($i + 1, 1, $resume_link, '', 'cell'); $resume_action = '<a class="no_link" onClick="update_resume(' . $resume['id'] . ');">Update</a>'; $resume_action .= ' | <a class="no_link" onClick="show_apply_job_popup(' . $resume['id'] . ', \'' . addslashes($resume['file_name']) . '\');">Submit</a>'; $resumes_table->set($i + 1, 2, $resume_action, '', 'cell actions'); } echo $resumes_table->get_html(); } ?> </div> <table class="buttons"> <tr> <td class="right"> <input type="button" id="upload_new_resume" name="upload_new_resume" value="Upload Resume" onClick="show_upload_resume_popup(0);" /> </td> </tr> </table> </div> <div id="member_career"> <div class="updated_on"> Updated on: <?php echo is_null($profile['updated_on']) ? 'New Entry' : $profile['updated_on']; ?> </div> <form id="career" method="post" onSubmit="return false;"> <table class="career_profile"> <tr> <td> <div class="buttons_bar"><input type="button" onClick="show_job_profile_popup('0');" value="Add" /></div> <div id="job_profiles"> <?php $job_profiles = $profile['job_profiles']; if (empty($job_profiles) || count($job_profiles) <= 0 || $job_profiles === false) { ?> <div class="empty_results">No job profiles found.</div> <?php } else { $job_profiles_table = new HTMLTable('job_profiles_table', 'job_profiles'); $job_profiles_table->set(0, 0, '', '', 'header small_action'); $job_profiles_table->set(0, 1, 'From', '', 'header date'); $job_profiles_table->set(0, 2, 'To', '', 'header date'); $job_profiles_table->set(0, 3, 'Employer', '', 'header'); $job_profiles_table->set(0, 4, 'Position', '', 'header'); $job_profiles_table->set(0, 5, '', '', 'header small_action'); foreach ($job_profiles as $i => $job_profile) { $job_profiles_table->set($i + 1, 0, '<a class="no_link" onClick="delete_job_profile(' . $job_profile['id'] . ')">delete</a>', '', 'cell small_action'); $job_profiles_table->set($i + 1, 1, $job_profile['formatted_work_from'], '', 'cell date'); $work_to = $job_profile['formatted_work_to']; if (is_null($work_to) || empty($work_to) || $work_to == '0000-00-00') { $work_to = 'Present'; } $job_profiles_table->set($i + 1, 2, $work_to, '', 'cell date'); $emp = htmlspecialchars_decode(stripslashes($job_profile['employer'])); $emp .= '<br/><span class="mini_spec">' . $job_profile['employer_specialization'] . '</span><br/>'; $job_profiles_table->set($i + 1, 3, $emp, '', 'cell'); $pos = htmlspecialchars_decode(stripslashes($job_profile['position_title'])); $pos .= '<br/><span class="mini_spec">reporting to</span><br/>'; $pos .= '<span class="mini_superior">' . $job_profile['position_superior_title'] . '</span>'; $job_profiles_table->set($i + 1, 4, $pos, '', 'cell'); $job_profiles_table->set($i + 1, 5, '<a class="no_link" onClick="show_job_profile_popup(' . $job_profile['id'] . ')">edit</a>', '', 'cell small_action'); } echo $job_profiles_table->get_html(); } ?> </div> </td> <td> <table class="career_form"> <tr> <td class="buttons_bar" colspan="2"> <a class="no_link" onClick="show_copy_friendly_popup();">Show Copy Friendly</a> <input type="button" onClick="save_career();" value="Save" /> </td> </tr> <tr> <td class="label"><label for="is_active_seeking_job">Seeking for a Job:</label></td> <td class="field"> <select id="is_active_seeking_job"> <?php if ($profile['is_active_seeking_job'] == '1') { ?> <option value="1" selected>Yes</option> <option value="0">No</option> <?php } else { ?> <option value="1">Yes</option> <option value="0" selected>No</option> <?php } ?> </select> </td> </tr> <tr> <td class="label"><label for="seeking">Job Responsibilities & Experiences:</label></td> <td class="field"> <textarea id="seeking"><?php echo $this->remove_br(htmlspecialchars_decode(stripslashes($profile['seeking']))); ?> </textarea></td> </tr> <tr> <td class="label"><label for="total_years">Total Years of Working Experience:</label></td> <td class="field"><input class="salary" type="text" id="total_years" value="<?php echo $profile['total_work_years']; ?> " /> years</td> </tr> <tr> <td class="label"><label for="pref_job_loc_1">Preferred Job Locations:</label></td> <td class="field"> <?php $this->generate_countries($profile['preferred_job_location_1'], 'pref_job_loc_1'); echo '<br/>'; $this->generate_countries($profile['preferred_job_location_2'], 'pref_job_loc_2'); ?> </td> </tr> <tr> <td class="label"><label for="can_travel_relocate">Willing to Travel or Relocate:</label></td> <td class="field"> <select id="can_travel_relocate"> <?php if ($profile['can_travel_relocate'] == 'Y') { ?> <option value="Y" selected>Yes</option> <option value="N">No</option> <?php } else { ?> <option value="Y">Yes</option> <option value="N" selected>No</option> <?php } ?> </select> </td> </tr> <tr> <td class="label"><label for="reason_for_leaving">Reason for leaving:</label></td> <td class="field"><textarea id="reason_for_leaving"><?php echo $this->remove_br(htmlspecialchars_decode(stripslashes($profile['reason_for_leaving']))); ?> </textarea></td> </tr> <tr> <td class="label"><label for="current_salary">Current Salary:</label></td> <td class="field"> <?php $this->generate_currencies('current_salary_currency', $profile['current_salary_currency']); ?> <br/> Basic Monthly: $ <input class="salary" type="text" id="current_salary" value="<?php echo $profile['current_salary']; ?> " /><br/> Total Annual Package: $ <input class="salary" type="text" id="current_total" value="<?php echo $profile['current_total_annual_package']; ?> " /></td> </tr> <tr> <td class="label"><label for="expected_salary">Expected Salary:</label></td> <td class="field"> <?php $this->generate_currencies('expected_salary_currency', $profile['expected_salary_currency']); ?> <br/> Basic Monthly: $ <input class="salary" type="text" id="expected_salary" value="<?php echo $profile['expected_salary']; ?> " /><br/> Total Annual Package: $ <input class="salary" type="text" id="expected_total" value="<?php echo $profile['expected_total_annual_package']; ?> " /> </td> </tr> <tr> <td class="label"><label for="notice_period">Notice Period:</label></td> <td class="field"><input class="salary" type="text" id="notice_period" value="<?php echo $profile['notice_period']; ?> " /> months</td> </tr> <tr> <td class="buttons_bar" colspan="2"> <a class="no_link" onClick="show_copy_friendly_popup();">Show Copy Friendly</a> <input type="button" onClick="save_career();" value="Save" /> </td> </tr> </table> </td> </tr> </table> </form> </div> <div id="member_notes"> <form id="notes" method="post" onSubmit="return false;"> <table class="notes_form"> <tr> <td class="title">Extra Notes/Remarks:</td> </tr> <tr> <td class="field"><textarea id="extra_notes"><?php echo htmlspecialchars_decode(stripslashes($profile['notes'])); ?> </textarea></td> </tr> <tr> <td class="buttons_bar" colspan="2"><input type="button" onClick="save_notes();" value="Save" /></td> </tr> </table> </form> </div> <div id="member_connections"> <div id="connections"> <table id="connections_table"> <tr> <td class="connections"> <table class="buttons"> <tr> <td class="right"> <input type="button" value="Add Referrer" onClick="show_add_referrers_popup();" /> </td> </tr> </table> <div id="div_referrers"> <?php if (empty($profile['referrers'])) { ?> <div class="empty_results">No referrers found.</div> <?php } else { $referrers_table = new HTMLTable('referrers_table', 'referrers'); $referrers_table->set(0, 0, "Referrer (Who referred me?)", '', 'header'); $referrers_table->set(0, 1, " ", '', 'header actions'); foreach ($profile['referrers'] as $i => $referrer) { $referrers_table->set($i + 1, 0, '<a href="member.php?member_email_addr=' . $referrer['email_addr'] . '">' . $referrer['referrer'] . '</a>', '', 'cell'); $referrers_table->set($i + 1, 1, '<a class="no_link" onClick="remove_referrer(\'' . addslashes($referrer['email_addr']) . '\');">Remove</a> | <a class="no_link" onClick="reward(\'' . addslashes($referrer['email_addr']) . '\');">Reward</a>', '', 'cell actions'); } echo $referrers_table->get_html(); } ?> </div> <table class="buttons"> <tr> <td class="right"> <input type="button" value="Add Referrer" onClick="show_add_referrers_popup();" /> </td> </tr> </table> </td> <td class="border"> </td> <td class="connections"> <table class="buttons"> <tr> <td class="right"> <input type="button" value="Add Candidate" onClick="show_add_candidates_popup();" /> </td> </tr> </table> <div id="div_referees"> <?php if (empty($profile['referees'])) { ?> <div class="empty_results">No candidates found.</div> <?php } else { $referees_table = new HTMLTable('referees_table', 'referees'); $referees_table->set(0, 0, "Candidate (I referred who?)", '', 'header'); $referees_table->set(0, 1, " ", '', 'header actions'); foreach ($profile['referees'] as $i => $referee) { $referees_table->set($i + 1, 0, '<a href="member.php?member_email_addr=' . $referee['email_addr'] . '">' . $referee['referee'] . '</a>', '', 'cell'); $referees_table->set($i + 1, 1, '<a class="no_link" onClick="remove_referee(\'' . addslashes($referee['email_addr']) . '\');">Remove</a>', '', 'cell actions'); } echo $referees_table->get_html(); } ?> </div> <table class="buttons"> <tr> <td class="right"> <input type="button" value="Add Candidate" onClick="show_add_candidates_popup();" /> </td> </tr> </table> </td> </tr> </table> </div> </div> <div id="member_applications"> <!-- table class="buttons"> <tr> <td class="right"> Filter: <select id="filter" onChange="filter_applications();"> <option value="" selected>Show All</option> <option value="" disabled> </option> <option value="not_viewed">Not Viewed Yet</option> <option value="viewed">Viewed</option> <option value="employed">Employed</option> <option value="rejected">Rejected</option> <option value="removed">Deleted</option> </select> </td> </tr> </table --> <div id="applications"> <?php if (empty($applications)) { ?> <div class="empty_results">No applications found.</div> <?php } else { $applications_table = new HTMLTable('applications_table', 'applications'); $applications_table->set(0, 0, "<a class=\"sortable\" onClick=\"sort_by('referrals', 'employer');\">Employers</a>", '', 'header'); $applications_table->set(0, 1, "<a class=\"sortable\" onClick=\"sort_by('referrals', 'jobs');\">Job</a>", '', 'header'); $applications_table->set(0, 2, "<a class=\"sortable\" onClick=\"sort_by('referrals', 'applied_on');\">Applied On</a>", '', 'header'); $applications_table->set(0, 3, 'Status', '', 'header'); $applications_table->set(0, 4, "Resume Submitted", '', 'header'); foreach ($applications as $i => $application) { $applications_table->set($i + 1, 0, $application['employer'], '', 'cell'); $applications_table->set($i + 1, 1, '<a class="no_link" onClick="show_job_desc(' . $application['job_id'] . ');">' . $application['job'] . '</a>', '', 'cell'); $applications_table->set($i + 1, 2, $application['formatted_referred_on'], '', 'cell'); $status = '<span class="not_viewed_yet">Not submitted</span>'; if ($application['tab'] == 'ref') { $status = '<span class="not_viewed_yet">Employer Not Viewed Yet</span>'; if (!is_null($application['formatted_viewed_on'])) { $status = '<span class="viewed">Viewed on:</span> ' . $application['formatted_viewed_on']; } if (!is_null($application['formatted_employed_on'])) { $status .= '<br/><span class="employed">Employed on:</span> ' . $application['formatted_employed_on']; } if (!is_null($application['formatted_confirmed_on'])) { $status .= '<br/><span class="confirmed">Confirmed on:</span> ' . $application['formatted_confirmed_on']; } } $applications_table->set($i + 1, 3, $status, '', 'cell testimony'); $applications_table->set($i + 1, 4, $application['resume'], '', 'cell'); } echo $applications_table->get_html(); } ?> </div> </div> <!-- popup windows goes here --> <div id="upload_resume_window" class="popup_window"> <div class="popup_window_title">Upload Resume</div> <form id="upload_resume_form" action="member_action.php" method="post" enctype="multipart/form-data" onSubmit="return close_upload_resume_popup(true);"> <div class="upload_resume_form"> <input type="hidden" id="resume_id" name="id" value="0" /> <input type="hidden" name="member" value="<?php echo $this->member->getId(); ?> " /> <input type="hidden" name="action" value="upload_resume" /> <div id="upload_field" class="upload_field"> <input id="my_file" name="my_file" type="file" /> <div style="font-size: 9pt; margin-top: 15px;"> <ol> <li>Only HTML (*.html, *.htm), Text (*.txt), Portable Document Format (*.pdf) or MS Word document (*.doc) with the file size of less than 1MB are allowed.</li> <li>You can upload as many resumes as you want and designate them for different job applications.</li> <li>You can update your resume by clicking "Update" then upload an updated version.</li> </ol> </div> </div> </div> <div class="popup_window_buttons_bar"> <input type="submit" value="Upload" /> <input type="button" value="Cancel" onClick="close_upload_resume_popup(false);" /> </div> </form> </div> <div id="apply_job_window" class="popup_window"> <div class="popup_window_title">Submission</div> <div id="div_resume_info" class="resume_info"> <div class="resume_desc"> <span style="font-weight: bold;"><label for="hr_contact">HR Contacts:</label></span> <span><input type="text" class="field hr_contact" id="hr_contact" value="<?php echo $this->get_hr_contacts(); ?> " /></span> </div> <div class="resume_desc"> <span style="font-weight: bold;">Resume selected:</span> <span id="resume_file_name"></span> </div> <div class="pre_selected_jobs"> <table class="pre_selected_jobs_table"> <tr> <td class="label"> <span style="font-weight: bold;">Pre-selected Jobs:</span><br/> <span style="font-size: 9pt;"> <a class="no_link" onClick="clear_pre_selected_jobs();"> (clear) </a> </span> </td> <td> <div id="pre_selected_jobs_list"> <?php echo $this->get_pre_selected_jobs(); ?> </div> </td> </tr> </table> </div> </div> <form id="apply_job_form" onSubmit="return false;"> <input type="hidden" id="apply_resume_id" name="resume_id" value="0" /> <input type="hidden" id="selected_jobs" value="<?php echo implode(',', $this->selected_jobs); ?> " /> <span style="font-weight: bold;">Additional Jobs:</span> <div id="div_apply_job_form" class="apply_job_form"> <table class="jobs_selection"> <tr> <td class="jobs_list"> <?php $employers = $this->get_employers(); if (!empty($employers) && $employers !== false) { ?> <select id="employers" onChange="filter_jobs();"> <?php foreach ($employers as $employer) { ?> <option value="<?php echo $employer['id']; ?> "><?php echo $employer['employer']; ?> </option> <?php } ?> </select> <?php } else { ?> <span class="no_employers">[No employers with opened jobs found.]</span> <?php } ?> <div id="jobs_selector"> Select an employer in the dropdown list above. </div> <div id="selected_job_counter"> <span id="counter_lbl">0</span> jobs selected. </div> </td> <td class="separator"></td> <td> <div id="job_description"> Select a job in the jobs list. </div> </td> </tr> </table> </div> <div class="referrer"> <span style="font-weight: bold;">Referrer: </span> <?php $referrers = $this->get_referrers(); if (empty($referrers) || $referrers === false) { ?> [No referrers.] <input type="hidden" id="apply_job_referrer" value="<?php echo 'team.' . strtolower($branch[0]['country']); ?> @yellowelevator.com" /> <?php } else { ?> <select id="apply_job_referrer"> <option value="">Select a Referrer</option> <option value="" disabled> </option> <?php foreach ($referrers as $referrer) { ?> <option value="<?php echo $referrer['id']; ?> "><?php echo htmlspecialchars_decode(stripslashes($referrer['member_name'])) . ' (' . $referrer['id'] . ')'; ?> </option> <?php } ?> </select> <?php } ?> </div> <div class="popup_window_buttons_bar"> <a class="no_link" onClick="show_window('message_window'); $('message').focus();">Add Message</a> <input type="button" id="apply_btn" value="Submit" onClick="close_apply_job_popup(true);" /> <input type="button" value="Cancel" onClick="close_apply_job_popup(false);" /> </div> </form> </div> <div id="message_window" class="popup_window"> <div class="popup_window_title">Additional Message to Employer</div> <div class="message_form"> <textarea class="message" id="message"></textarea> </div> <div class="popup_window_buttons_bar"> <input type="button" value="OK" onClick="close_window('message_window');" /> </div> </div> <div id="add_referrers_window" class="popup_window"> <?php $has_no_potential_referrers = false; ?> <div class="popup_window_title">Add Referrers</div> <form id="add_referrers_form" action="member_action.php" method="post"> <div class="add_referrers_form"> <br/> <?php if (empty($potential_referrers)) { $has_no_potential_referrers = true; ?> No potential referrers can be found. <br/><br/> <?php } else { ?> Select multiple potential referrers from the following list. <br/><br/> <select id="referrers" class="potentials_list" multiple> <?php foreach ($potential_referrers as $referrer) { ?> <option value="<?php echo $referrer['email_addr']; ?> "> <?php echo $referrer['member_name'] . ' (' . $referrer['email_addr'] . ')'; ?> </option> <?php } ?> </select> <?php } ?> </div> <div class="popup_window_buttons_bar"> <?php if ($has_no_potential_referrers) { ?> <input type="button" value="Add Referrers" disabled /> <?php } else { ?> <input type="button" value="Add Referrers" onClick="close_add_referrers_popup(true);" /> <?php } ?> <input type="button" value="Cancel" onClick="close_add_referrers_popup(false);" /> </div> </form> </div> <div id="add_candidates_window" class="popup_window"> <?php $has_no_potential_candidates = false; ?> <div class="popup_window_title">Add Candidate</div> <form id="add_candidates_form" action="member_action.php" method="post"> <div class="add_candidates_form"> <br/> <?php if (empty($potential_candidates)) { $has_no_potential_candidate = true; ?> No potential candidates can be found. <br/><br/> <?php } else { ?> Select multiple potential candidates from the following list. <br/><br/> <select id="candidates" class="potentials_list" multiple> <?php foreach ($potential_candidates as $candidate) { ?> <option value="<?php echo $candidate['email_addr']; ?> "> <?php echo $candidate['member_name'] . ' (' . $candidate['email_addr'] . ')'; ?> </option> <?php } ?> </select> <?php } ?> </div> <div class="popup_window_buttons_bar"> <?php if ($has_no_potential_candidates) { ?> <input type="button" value="Add Candidates" disabled /> <?php } else { ?> <input type="button" value="Add Candidates" onClick="close_add_candidates_popup(true);" /> <?php } ?> <input type="button" value="Cancel" onClick="close_add_candidates_popup(false);" /> </div> </form> </div> <div id="testimony_window" class="popup_window"> <div class="popup_window_title">Testimony</div> <div class="testimony_form"> <br/> <span id="testimony"></span> <br/><br/> </div> <div class="popup_window_buttons_bar"> <input type="button" value="Cancel" onClick="close_testimony();" /> </div> </div> <div id="job_desc_window" class="popup_window"> <div class="popup_window_title">Job Description</div> <div class="job_desc_form"> <br/> <span id="job_desc"></span> <br/><br/> </div> <div class="popup_window_buttons_bar"> <input type="button" value="Cancel" onClick="close_job_desc();" /> </div> </div> <div id="employer_remarks_window" class="popup_window"> <div class="popup_window_title">Employer Remarks</div> <div class="employer_remarks_form"> <br/> <span id="employer_remarks"></span> <br/><br/> </div> <div class="popup_window_buttons_bar"> <input type="button" value="Cancel" onClick="close_employer_remarks();" /> </div> </div> <div id="job_profile_window" class="popup_window"> <div class="popup_window_title">Job Profile</div> <form onSubmit="return false;"> <input type="hidden" id="job_profile_id" value="0" /> <div class="job_profile_form"> <table class="job_profile_form"> <tr> <td class="label"><label for="position_title">Job Title:</label></td> <td class="field"> <input class="field" type="text" id="position_title" name="position_title" /> <br/> <span class="tips">eg: Director, Manager, GM, VP, etc.</span> </td> </tr> <tr> <td class="label"><label for="position_superior_title">Reporting To:</label></td> <td class="field"> <input class="field" type="text" id="position_superior_title" name="position_superior_title" /> <br/> <span class="tips">eg: Director, Manager, GM, VP, etc.</span> </td> </tr> <tr> <td class="label"><label for="organization_size">Positions Reporting To Candidate:</label></td> <td class="field"><input class="field" type="text" id="organization_size" name="organization_size" /></td> </tr> <tr> <td class="label"><label for="work_from_month">Duration:</label></td> <td class="field"> <?php echo generate_month_dropdown('work_from_month', ''); ?> <input type="text" class="year" maxlength="4" id="work_from_year" value="yyyy" /> to <span id="work_to_dropdown"> <?php echo generate_month_dropdown('work_to_month', ''); ?> <input type="text" class="year" maxlength="4" id="work_to_year" value="yyyy" /> </span> <input type="checkbox" id="work_to_present" onClick="toggle_work_to();" /> <label for="work_to_present">Present</label> </td> </tr> <tr> <td class="label"><label for="company">Employer:</label></td> <td class="field"><input class="field" type="text" id="company" name="company" /></td> </tr> <tr> <td class="label"><label for="emp_specialization">Employer Specialization:</label></td> <td class="field"> <?php $this->generate_industries('', 'emp_specialization'); ?> </td> </tr> <tr> <td class="label"><label for="job_summary">Job Summary:</label></td> <td class="field"> <textarea id="job_summary" class="job_summary"></textarea> </td> </tr> </table> </div> </form> <div class="popup_window_buttons_bar"> <span id="job_profile_processing"> <img src="../common/images/progress/circle_small.gif" style="border: none;"/> Saving job profile. Please wait... </span> <input type="button" value="Save" onClick="close_job_profile_popup(true);" /> <input type="button" value="Cancel" onClick="close_job_profile_popup(false);" /> </div> </div> <div id="copy_friendly_window" class="popup_window"> <div class="popup_window_title">Career Summary</div> <div class="career_summary" id="summary"></div> <div class="popup_window_buttons_bar"> <input type="button" value="Close" onClick="close_copy_friendly_popup();" /> </div> </div> <?php }
public function show() { $this->begin(); $this->support($this->employer->getId()); $this->top('Invoices & Receipts'); $this->menu('employer', 'invoices'); $invoices = $this->get_invoices(); $receipts = $this->get_invoices(true); ?> <div id="div_status" class="status"> <span id="span_status" class="status"></span> </div> <div id="div_tabs"> <ul> <li id="li_invoices">Invoices</li> <li id="li_receipts">Receipts</li> </ul> </div> <div id="div_invoices"> <?php if (empty($invoices)) { ?> <div class="empty_results">No invoices issued at this moment.</div> <?php } else { $invoices_table = new HTMLTable('invoices_table', 'payments'); $invoices_table->set(0, 0, " ", '', 'header cell_indicator'); $invoices_table->set(0, 1, "<a class=\"sortable\" onClick=\"sort_by('invoices', 'issued_on');\">Issued On</a>", '', 'header'); $invoices_table->set(0, 2, "<a class=\"sortable\" onClick=\"sort_by('invoices', 'payable_by');\">Payable By</a>", '', 'header'); $invoices_table->set(0, 3, "<a class=\"sortable\" onClick=\"sort_by('invoices', 'type');\">Type</a>", '', 'header'); $invoices_table->set(0, 4, "<a class=\"sortable\" onClick=\"sort_by('invoices', 'id');\">Invoice</a>", '', 'header'); $invoices_table->set(0, 5, " ", '', 'header pdf_download'); foreach ($invoices as $i => $invoice) { if ($invoice['expired'] <= 0) { $invoices_table->set($i + 1, 0, '<img src="../common/images/icons/expired.png" />', '', 'cell cell_indicator'); } else { $invoices_table->set($i + 1, 0, ' ', '', 'cell cell_indicator'); } $invoices_table->set($i + 1, 1, $invoice['formatted_issued_on'], '', 'cell'); $invoices_table->set($i + 1, 2, $invoice['formatted_payable_by'], '', 'cell'); $type = 'Others'; switch ($invoice['type']) { case 'R': $type = 'Service Fee'; break; case 'J': $type = 'Subscription'; break; case 'P': $type = 'Job Posting'; break; } $invoices_table->set($i + 1, 3, $type, '', 'cell'); $invoices_table->set($i + 1, 4, '<a class="no_link" onClick="show_invoice_page(' . $invoice['id'] . ');">' . pad($invoice['id'], 11, '0') . '</a>', '', 'cell'); $invoices_table->set($i + 1, 5, '<a href="invoice_pdf.php?id=' . $invoice['id'] . '"><img src="../common/images/icons/pdf.gif"/></a>', '', 'cell pdf_download'); } echo $invoices_table->get_html(); } ?> </div> <div id="div_receipts"> </div> <?php }
public function show() { $this->begin(); $branch = $this->employee->getBranch(); $this->top('Application Status - ' . $branch[0]['country']); $this->menu_employee('status'); $applications = $this->get_applications(); $employers_filter = '<select id="employers_filter" onChange="update_applications();">'; $employers_filter .= '<option value="" selected>All Employers</option>'; $employers_filter .= '<option value="" disabled> </option>'; foreach ($this->found_employers as $key => $value) { $employers_filter .= '<option value="' . $key . '">' . $value . '</option>'; } $employers_filter .= '</select>'; ?> <div id="div_status" class="status"> <span id="span_status" class="status"></span> </div> <div class="pagination"> Page <select id="current_page" onChange="goto_page();"> <?php for ($i = 0; $i < $this->initial_total_pages; $i++) { ?> <option value="<?php echo $i; ?> "><?php echo $i + 1; ?> </option> <?php } ?> </select> of <span id="total_pages"><?php echo $this->initial_total_pages; ?> </span> </div> <div id="div_filter"> <?php $from_timestamp = explode(' ', $this->period[0]); $from_date = explode('-', $from_timestamp[0]); $month_from_dropdown = generate_month_dropdown('from_month', '', $from_date[1]); $day_from_dropdown = generate_dropdown('from_day', '', 1, 31, $from_date[2]); $to_timestamp = explode(' ', $this->period[1]); $to_date = explode('-', $to_timestamp[0]); $month_to_dropdown = generate_month_dropdown('to_month', '', $to_date[1]); $day_to_dropdown = generate_dropdown('to_day', '', 1, 31, $to_date[2]); ?> Show <select id="filter"> <option value="" selected>All</option> <option value="" disabled> </option> <option value="not_viewed">Not Viewed & applied</option> <option value="viewed">Viewed</option> <option value="employed">Employed</option> <option value="rejected">Rejected</option> <option value="removed">Deleted</option> <option value="confirmed">Confirmed & applied</option> </select> between <input type="text" class="mini_field" id="from_year" maxlength="4" value="<?php echo $from_date[0]; ?> " /> <?php echo $month_from_dropdown . ' ' . $day_from_dropdown; ?> and <input type="text" class="mini_field" id="to_year" maxlength="4" value="<?php echo $to_date[0]; ?> " /> <?php echo $month_to_dropdown . ' ' . $day_to_dropdown; ?> <input type="button" onClick="filter_applications();" value="Filter" /> </div> <div id="member_applications"> <div id="applications"> <?php if (empty($applications)) { ?> <div class="empty_results">No applications found.</div> <?php } else { $applications_table = new HTMLTable('applications_table', 'applications'); $applications_table->set(0, 0, "<a class=\"sortable\" onClick=\"sort_by('referrals', 'referrals.referred_on');\">Applied On</a>", '', 'header'); $applications_table->set(0, 1, "<a class=\"sortable\" onClick=\"sort_by('referrals', 'candidates.lastname');\">Candidate</a>", '', 'header'); $applications_table->set(0, 2, "<a class=\"sortable\" onClick=\"sort_by('referrals', 'jobs.title');\">Job</a> from " . $employers_filter, '', 'header'); $applications_table->set(0, 3, 'Status', '', 'header'); foreach ($applications as $i => $application) { $applications_table->set($i + 1, 0, $application['formatted_referred_on'], '', 'cell'); $candidate_details = '<a href="member.php?member_email_addr=' . $application['candidate'] . '">' . $application['candidate_name'] . '</a>'; $candidate_details .= '<div class="resume"><span style="font-weight: bold;">Resume:</span> <a href="resume.php?id=' . $application['resume_id'] . '">' . $application['file_name'] . '</a></div>'; $ref_email = explode('@', $application['referrer']); $ref_email_front = explode('.', $ref_email[0]); if ($ref_email_front[0] == 'team' && $ref_email[1] == 'yellowelevator.com') { $candidate_details .= '<br/><div class="referrer">Self Applied</div>'; } else { $candidate_details .= '<br/><div class="referrer"><a href="member.php?member_email_addr=' . $application['referrer'] . '">' . $application['referrer_name'] . '</a></div>'; } $applications_table->set($i + 1, 1, $candidate_details, '', 'cell'); $job_details = '<a class="no_link" onClick="show_job_desc(' . $application['job_id'] . ');">' . $application['job'] . '</a>'; $job_details .= '<br/><br/><div class="employer"><a href="employer.php?id=' . $application['employer_id'] . '">' . $application['employer'] . '</a></div>'; $applications_table->set($i + 1, 2, $job_details, '', 'cell'); $status = '<span class="not_viewed_yet">Not Viewed Yet</a>'; if (!is_null($application['formatted_employer_agreed_terms_on'])) { $status = '<span class="viewed">Viewed on:</span> ' . $application['formatted_employer_agreed_terms_on']; } if (!is_null($application['formatted_employed_on'])) { $status = '<span class="employed">Employed on:</span> ' . $application['formatted_employed_on']; } if (!is_null($application['formatted_employer_rejected_on'])) { $status = '<span class="rejected">Rejected on:</span> ' . $application['formatted_employer_rejected_on']; } if (!is_null($application['formatted_employer_removed_on'])) { $status = '<span class="removed">Deleted on:</span> ' . $application['formatted_employer_removed_on']; } if ($application['has_employer_remarks'] == '1') { $status .= '<br/><a class="no_link" onClick="show_employer_remarks(' . $application['id'] . ');">Employer Remarks</a>'; } if (!is_null($application['formatted_referee_confirmed_hired_on'])) { $status .= '<br/><span class="confirmed">Confirmed on: </span>' . $application['formatted_referee_confirmed_hired_on']; } $applications_table->set($i + 1, 3, $status, '', 'cell testimony'); // $testimony = 'None Provided'; // if ($application['has_testimony'] == '1') { // $testimony = '<a class="no_link" onClick="show_testimony('. $application['id']. ');">Show</a>'; // } // $applications_table->set($i+1, 6, $testimony, '', 'cell testimony'); } echo $applications_table->get_html(); } ?> </div> </div> <div class="pagination"> Page <select id="current_page_bottom" onChange="goto_page(true);"> <?php for ($i = 0; $i < $this->initial_total_pages; $i++) { ?> <option value="<?php echo $i; ?> "><?php echo $i + 1; ?> </option> <?php } ?> </select> of <span id="total_pages_bottom"><?php echo $this->initial_total_pages; ?> </span> </div> <!-- popup windows goes here --> <div id="testimony_window" class="popup_window"> <div class="popup_window_title">Testimony</div> <div class="testimony_form"> <br/> <span id="testimony"></span> <br/><br/> </div> <div class="popup_window_buttons_bar"> <input type="button" value="Cancel" onClick="close_testimony();" /> </div> </div> <div id="job_desc_window" class="popup_window"> <div class="popup_window_title">Job Description</div> <div class="job_desc_form"> <br/> <span id="job_desc"></span> <br/><br/> </div> <div class="popup_window_buttons_bar"> <input type="button" value="Cancel" onClick="close_job_desc();" /> </div> </div> <div id="employer_remarks_window" class="popup_window"> <div class="popup_window_title">Employer Remarks</div> <div class="employer_remarks_form"> <br/> <span id="employer_remarks"></span> <br/><br/> </div> <div class="popup_window_buttons_bar"> <input type="button" value="Cancel" onClick="close_employer_remarks();" /> </div> </div> <?php }
public function show() { $this->begin(); $branch = $this->employee->getBranch(); $this->top('Payments - ' . $branch[0]['country']); $this->menu_employee('payments'); $employers = $this->get_employers(); $receipt_employers = $this->get_employers(false); $today = now(); $invoices = $this->get_payments(); foreach ($invoices as $i => $row) { $invoices[$i]['padded_id'] = pad($row['id'], 11, '0'); $invoices[$i]['amount_payable'] = number_format($row['amount_payable'], 2, '.', ', '); $delta = sql_date_diff($today, $row['payable_by']); if ($delta > 0) { $invoices[$i]['expired'] = 'expired'; } else { if ($delta == 0) { $invoices[$i]['expired'] = 'nearly'; } else { $invoices[$i]['expired'] = 'no'; } } } $receipts = $this->get_payments(false); foreach ($receipts as $i => $row) { $receipts[$i]['padded_id'] = pad($row['id'], 11, '0'); $receipts[$i]['amount_payable'] = number_format($row['amount_payable'], 2, '.', ', '); } ?> <!-- submenu --> <div class="menu"> <ul class="menu"> <li id="item_invoices" style="background-color: #CCCCCC;"><a class="menu" onClick="show_invoices();">Invoices</a></li> <li id="item_receipts"><a class="menu" onClick="show_receipts();">Receipts</a></li> </ul> </div> <!-- end submenu --> <div id="div_status" class="status"> <span id="span_status" class="status"></span> </div> <div id="invoices"> <?php if (is_null($invoices) || count($invoices) <= 0 || $invoices === false) { ?> <div class="empty_results">No invoices issued at this moment.</div> <?php } else { ?> <div class="buttons_bar"> Employer Filter: <select id="invoices_filter" onChange="filter_invoices();"> <option value="" selected>All</option> <option value="" disabled> </option> <?php foreach ($employers as $employer) { ?> <option value="<?php echo $employer['id']; ?> "><?php echo htmlspecialchars_decode(stripslashes($employer['employer'])); ?> </option> <?php } ?> </select> </div> <div id="div_invoices"> <?php $invoices_table = new HTMLTable('invoices_table', 'invoices'); $invoices_table->set(0, 0, ' ', '', 'header expiry_status'); $invoices_table->set(0, 1, "<a class=\"sortable\" onClick=\"sort_by('invoices', 'invoices.issued_on');\">Issued On</a>", '', 'header'); $invoices_table->set(0, 2, "<a class=\"sortable\" onClick=\"sort_by('invoices', 'employers.name');\">Employer</a>", '', 'header'); $invoices_table->set(0, 3, "Placement", '', 'header'); $invoices_table->set(0, 4, "<a class=\"sortable\" onClick=\"sort_by('invoices', 'invoices.id');\">Invoice</a>", '', 'header'); $invoices_table->set(0, 5, 'Payable By', '', 'header'); $invoices_table->set(0, 6, 'Amount Payable', '', 'header'); $invoices_table->set(0, 7, 'Actions', '', 'header action'); foreach ($invoices as $i => $invoice) { $status = ''; if ($invoice['expired'] == 'expired') { $status = '<img class="warning" src="../common/images/icons/expired.png" />'; } elseif ($invoice['expired'] == 'nearly') { $status = '<img class="warning" src="../common/images/icons/just_expired.png" />'; } $invoices_table->set($i + 1, 0, $status, '', 'cell expiry_status'); $invoices_table->set($i + 1, 1, $invoice['formatted_issued_on'], '', 'cell'); $employer_contacts = htmlspecialchars_decode(stripslashes($invoice['employer'])); $employer_contacts .= '<div class="contacts">'; $employer_contacts .= '<span class="contact_label">Tel.:</span> ' . $invoice['phone_num'] . '<br/>'; $employer_contacts .= '<span class="contact_label">Fax.:</span> ' . $invoice['fax_num'] . '<br/>'; $employer_contacts .= '<span class="contact_label">E-mail:</span> <a href="mailto:' . $invoice['email_addr'] . '">' . $invoice['email_addr'] . '</a><br/>'; $employer_contacts .= '<span class="contact_label">Contact:</span> ' . $invoice['contact_person'] . '<br/></div>'; $invoices_table->set($i + 1, 2, $employer_contacts, '', 'cell'); $invoices_table->set($i + 1, 3, $invoice['placement'], '', 'cell'); $invoices_table->set($i + 1, 4, '<a class="no_link" onClick="show_invoice_page(' . $invoice['id'] . ');">' . $invoice['padded_id'] . '</a> <a href="invoice_pdf.php?id=' . $invoice['id'] . '"><img src="../common/images/icons/pdf.gif" /></a>', '', 'cell'); $invoices_table->set($i + 1, 5, $invoice['formatted_payable_by'], '', 'cell'); $amount = $invoice['currency'] . '$ ' . $invoice['amount_payable']; $invoices_table->set($i + 1, 6, $amount, '', 'cell'); $actions = '<input type="button" value="Paid" onClick="show_payment_popup(' . $invoice['id'] . ', \'' . $invoice['padded_id'] . '\');" /><input type="button" value="Resend" onClick="show_resend_popup(' . $invoice['id'] . ', \'' . $invoice['padded_id'] . '\');" />'; $invoices_table->set($i + 1, 7, $actions, '', 'cell action'); } echo $invoices_table->get_html(); ?> </div> <?php } ?> </div> <div id="receipts"> <?php if (is_null($receipts) || count($receipts) <= 0 || $receipts === false) { ?> <div class="empty_results">No receipts issued at this moment.</div> <?php } else { ?> <div class="buttons_bar"> Employer Filter: <select id="receipts_filter" onChange="filter_receipts();"> <option value="" selected>All</option> <option value="" disabled> </option> <?php foreach ($receipt_employers as $employer) { ?> <option value="<?php echo $employer['id']; ?> "><?php echo htmlspecialchars_decode(stripslashes($employer['employer'])); ?> </option> <?php } ?> </select> </div> <div id="div_receipts"> <?php $receipts_table = new HTMLTable('receipts_table', 'receipts'); $receipts_table->set(0, 0, "<a class=\"sortable\" onClick=\"sort_by('receipts', 'receipts.issued_on');\">Issued On</a>", '', 'header'); $receipts_table->set(0, 1, "<a class=\"sortable\" onClick=\"sort_by('receipts', 'employers.name');\">Employer</a>", '', 'header'); $receipts_table->set(0, 2, 'Placement', '', 'header'); $receipts_table->set(0, 3, "<a class=\"sortable\" onClick=\"sort_by('receipts', 'invoices.id');\">Receipt</a>", '', 'header'); $receipts_table->set(0, 4, 'Paid On', '', 'header'); $receipts_table->set(0, 5, 'Amount Paid', '', 'header'); $receipts_table->set(0, 6, 'Payment', '', 'header payment'); foreach ($receipts as $i => $receipt) { $receipts_table->set($i + 1, 0, $receipt['formatted_issued_on'], '', 'cell'); $receipts_table->set($i + 1, 1, htmlspecialchars_decode(stripslashes($receipt['employer'])), '', 'cell'); $receipts_table->set($i + 1, 2, $receipt['placement'], '', 'cell'); $receipts_table->set($i + 1, 3, '<a class="no_link" onClick="show_receipt_page(' . $receipt['id'] . ');">' . $receipt['padded_id'] . '</a> <a href="invoice_pdf.php?id=' . $receipt['id'] . '"><img src="../common/images/icons/pdf.gif" /></a>', '', 'cell'); $receipts_table->set($i + 1, 4, $receipt['formatted_paid_on'], '', 'cell'); $amount = $receipt['currency'] . '$ ' . $receipt['amount_payable']; $receipts_table->set($i + 1, 5, $amount, '', 'cell'); $payment = 'By Cash'; if ($receipt['paid_through'] != 'CSH') { $payment = 'Bank Receipt #:<br/>' . $receipt['paid_id']; } $receipts_table->set($i + 1, 6, $payment, '', 'cell payment'); } echo $receipts_table->get_html(); ?> </div> <?php } ?> </div> <!-- popup windows goes here --> <div id="paid_window" class="popup_window"> <div class="popup_window_title">Confirm Payment</div> <form onSubmit="return false;"> <input type="hidden" id="invoice_id" value="" /> <div class="paid_form"> <table class="paid_form"> <tr> <td class="label">Invoice:</td> <td class="field"><span id="lbl_invoice"></span></td> </tr> <tr> <td class="label">Paid On:</td> <td class="field"> <?php echo generate_dropdown('day', 'day', 1, 31, '', 2, 'Day'); echo generate_month_dropdown('month', 'month', 'Month'); $today = explode('-', today()); $year = $today[0]; echo generate_dropdown('year', 'year', $year - 1, $year, '', 4, 'Year'); ?> </td> </tr> <tr> <td class="label">Payment Mode:</td> <td class="field"> <select class="field" id="payment_mode" name="payment_mode"> <option value="CSH">Cash</option> <option value="IBT">Bank Transfer</option> <option value="CHQ">Cheque</option> </select> </td> </tr> <tr> <td class="label">Bank Receipt #:</td> <td class="field"><input type="text" class="field" id="payment_number" name="payment_number" /></td> </tr> </table> </div> </form> <div class="popup_window_buttons_bar"> <input type="button" value="Cancel" onClick="close_payment_popup(false);" /> <input type="button" value="Confirm" onClick="close_payment_popup(true);" /> </div> </div> <div id="resend_window" class="popup_window"> <div class="popup_window_title">Resend Invoice <span id="lbl_resend_invoice"></span></div> <div class="employer_details"> <span style="font-weight: bold;">Employer: </span> <span id="employer_name"></span> <br/> <span style="font-weight: bold;">Contact Person: </span> <span id="contact_person"></span> </div> <form onSubmit="return false;"> <input type="hidden" id="resend_invoice_id" value="" /> <div class="resend_form"> <span style="font-weight: bold;">Recipients: </span>(separated by commas)<br/> <textarea id="recipients" class="recipients"></textarea> </div> </form> <div class="popup_window_buttons_bar"> <input type="button" value="Cancel" onClick="close_resend_popup(false);" /> <input type="button" value="Resend" onClick="close_resend_popup(true);" /> </div> </div> <?php }
public function show() { $this->begin(); $this->support($this->employer->getId()); $this->top('Job Descriptions'); $this->menu('employer', 'jobs'); $branch = $this->employer->getAssociatedBranch(); $currency = $branch[0]['currency']; $subscriptions_rates = $GLOBALS['subscriptions_rates']; $subscriptions = $subscriptions_rates[$payment_currency]; if (!array_key_exists($payment_currency, $subscriptions_rates)) { $payment_currency = 'MYR'; $subscriptions = $subscriptions_rates['MYR']; } $subscription = $this->employer->getSubscriptionsDetails(); $subscription_is_expired = false; if ($subscription[0]['expired'] <= 0) { $subscription_is_expired = true; } $job_postings_left = $this->employer->hasPaidJobPostings(); if ($job_postings_left === false) { $job_postings_left = 0; } $free_postings_left = $this->employer->hasFreeJobPostings(); if ($free_postings_left === false) { $free_postings_left = 0; } $jobs = $this->employer->getJobs(); ?> <div style="padding-bottom: 25px;"> <table class="top_banner"> <tr> <td class="item"> <div class="jobs_publishing_instructions"> Follow the easy steps below to get your jobs published: <ol> <li>Prepare your job description in a Word (*.doc), PDF or Text file.</li> <li>Attach the file, or files if you have many, to an email using your email software of choice.</li> <li>Set the subject of the email to <span style="font-weight: bold;">"Publish Job Description"</span></li> <li>Enter any special instructions you need us to follow as an email.</li> <li>Send it to <a href="mailto: sales.<?php echo strtolower($branch[0]['country']); ?> @yellowelevator.com">sales.<?php echo strtolower($branch[0]['country']); ?> @yellowelevator.com</a></li> </ol> </div> </td> <td class="item"> <div class="subscriptions_details"> <table class="subscriptions_info"> <tr> <td class="label">Subscription Expires On: </td> <td> <?php $expired_html = $subscription_is_expired ? 'color: #FF0000;' : 'color: #000000;'; ?> <span id="subscriptions_expiry" style="font-weight: bold; <?php echo $expired_html; ?> "> <?php echo $subscription[0]['formatted_expire_on']; ?> </span> </td> </tr> <tr> <td class="label">Job Posts Left: </td> <td> <span id="subscriptions_job_postings" style="font-weight: bold;"> <?php echo $job_postings_left; ?> </span> </td> </tr> <tr> <td class="label">Free Posts Left: </td> <td> <span id="subscriptions_free_postings" style="font-weight: bold;"> <?php echo $free_postings_left; ?> </span> </td> </tr> <tr> <td colspan="2"> <div class="buy"> Contact us to renew your subscriptions or buy job posts with the <span style="font-weight: bold;">Billing</span> contact details listed above. <br/><br/> You can contact us to extend your expired published jobs as well. </div> </td> </tr> </table> </div> </td> </tr> </table> </div> <div id="div_status" class="status"> <span id="span_status" class="status"></span> </div> <div> <div id="div_jobs" class="jobs"> <?php if (empty($jobs)) { ?> <div class="empty_results">No job published at this moment.</div> <?php } else { $jobs_table = new HTMLTable('jobs_table', 'jobs'); $jobs_table->set(0, 0, "<a class=\"sortable\" onClick=\"sort_by('jobs', 'created_on');\">Created On</a>", '', 'header'); $jobs_table->set(0, 1, "<a class=\"sortable\" onClick=\"sort_by('jobs', 'title');\">Job</a>", '', 'header'); $jobs_table->set(0, 2, "<a class=\"sortable\" onClick=\"sort_by('jobs', 'expire_on');\">Expire On</a>", '', 'header'); foreach ($jobs as $i => $job) { $jobs_table->set($i + 1, 0, $job['formatted_created_on'], '', 'cell'); $job_title = "<a class=\"no_link\" onClick=\"show_job_description(" . $job['id'] . ");\">" . $job['title'] . "</a>"; $jobs_table->set($i + 1, 1, $job_title, '', 'cell'); $jobs_table->set($i + 1, 2, $job['formatted_expire_on'], '', 'cell'); } echo $jobs_table->get_html(); } ?> </div> <div id="div_job_desc" class="job_desc"> <div class="back"> <a class="no_link" onClick="show_jobs();"> << Back to Job Postings </a> </div> <table class="job"> <tr> <td colspan="2" class="title"> <span id="job.title"></span> </td> </tr> <tr> <td class="label">Alternate Employer:</td> <td><span id="job.alternate_employer"></span></td> </tr> <tr> <td class="label">Carbon Copy Email:</td> <td><span id="job.contact_carbon_copy"></span></td> </tr> <tr> <td class="label">Specialization:</td> <td><span id="job.specialization"></span></td> </tr> <tr> <td class="label">Salary Range:</td> <td> <?php echo $currency; ?> $<span id="job.salary_range"></span> [ <span id="job.salary_negotiable"></span> ] </td> </tr> <tr> <td class="label">Location:</td> <td><span id="job.state"></span></td> </tr> <tr> <td class="label">Description:</td> <td><div id="job.description" class="job_description"></div></td> </tr> <tr> <td class="label">Created On:</td> <td><span id="job.created_on"></span></td> </tr> <tr> <td class="label">Expired On:</td> <td><span id="job.expired_on"></span></td> </tr> </table> </div> </div> <?php }
public function show() { $this->begin(); $this->support($this->employer->getId()); $this->top('Resumes'); $this->menu('employer', 'resumes'); $branch = $this->employer->getAssociatedBranch(); $currency = $branch[0]['currency']; $referred_jobs = $this->get_referred_jobs(); if ($referred_jobs === false || is_null($referred_jobs) || empty($referred_jobs)) { $referred_jobs = array(); } ?> <div id="div_status" class="status"> <span id="span_status" class="status"></span> </div> <div id="div_referred_jobs"> <?php if (empty($referred_jobs)) { ?> <div class="empty_results">No applications found for all job posts at this moment.</div> <?php } else { $jobs_table = new HTMLTable('referred_jobs_table', 'referred_jobs'); $jobs_table->set(0, 0, "<a class=\"sortable\" onClick=\"sort_by('referred_jobs', 'jobs.expire_on');\">Expire On</a>", '', 'header'); $jobs_table->set(0, 1, "<a class=\"sortable\" onClick=\"sort_by('referred_jobs', 'jobs.title');\">Job</a>", '', 'header'); $jobs_table->set(0, 2, "<a class=\"sortable\" onClick=\"sort_by('referred_jobs', 'num_referrals');\">Resumes</a>", '', 'header'); foreach ($referred_jobs as $i => $referred_job) { $jobs_table->set($i + 1, 0, $referred_job['formatted_expire_on'], '', 'cell'); $job_title = "<a class=\"no_link\" onClick=\"toggle_job_description('" . $i . "');\">" . $referred_job['title'] . "</a>"; $job_title .= "<div id=\"inline_job_desc_" . $i . "\" class=\"inline_job_desc\">" . $referred_job['description'] . "</div>"; $jobs_table->set($i + 1, 1, $job_title, '', 'cell'); $resumes = "<a class=\"no_link\" onClick=\"show_resumes_of('" . $referred_job['id'] . "', '" . addslashes($referred_job['title']) . "');\">" . $referred_job['num_referrals']; if ($referred_job['new_referrals_count'] > 0) { $resumes .= " <span style=\"vertical-align: top; font-size: 7pt;\">[ " . $referred_job['new_referrals_count'] . " new ]</span>"; } $resumes .= "</a>"; $jobs_table->set($i + 1, 2, $resumes, '', 'cell resumes_column'); } echo $jobs_table->get_html(); } ?> </div> <div id="div_resumes"> <div class="resumes_top"> <span class="back"> <a class="no_link" onClick="show_referred_jobs();"><< Back to Jobs</a> </span> <br/> <div class="job_title"> <span id="job_title"></span> </div> </div> <div style="width: 99%; margin: auto; text-align: right;"> Show <select id="filter" onChange="show_resumes_of(current_job_id, current_job_title);"> <option value="" selected>All</option> <option value="" disabled> </option> <option value="no_star">No Star</option> <option value="1_star">1 Star</option> <option value="2_star">2 Stars</option> <option value="3_star">3 Stars</option> <option value="4_star">4 Stars</option> <option value="5_star">5 Stars</option> <option value="hired">Hired</option> </select> </div> <div id="resumes_list"> </div> </div> <!-- popups goes here --> <div id="job_description_window" class="popup_window"> <div id="window_job_title" class="popup_window_title"></div> <div id="window_description"></div> <div class="popup_window_buttons_bar"><input type="button" value="Close" onClick="close_job_description_popup();" /></div> </div> <div id="testimony_window" class="popup_window"> <input type="hidden" id="referral_id" value="0" /> <div id="window_testimony_candidate" class="popup_window_title"></div> <div id="window_testimony"></div> <div class="popup_window_buttons_bar"> <div class="instructions_label"> (Tip: Drag and select all to copy by pressing Ctrl + C or Command + C.) </div> <input type="button" value="Download PDF" onClick="download_testimony_pdf();" /> <input type="button" value="Close" onClick="close_testimony_popup();" /> </div> </div> <div id="remarks_window" class="popup_window"> <div id="window_remarks_candidate" class="popup_window_title"></div> <textarea id="txt_remarks" class="txt_remarks"></textarea> <div class="popup_window_buttons_bar"> <input type="hidden" id="remarks_referral_id" value="0" /> <input type="hidden" id="remarks_candidate_idx" value="-1" /> <input type="button" value="Save & Close" onClick="close_remarks_popup(true);" /> <input type="button" value="Close" onClick="close_remarks_popup(false);" /> </div> </div> <div id="notify_window" class="popup_window"> <div id="window_notify_consultant" class="popup_window_title"></div> <div class="message_options"> Choose a request to send, and enter any further communications below.<br/><br/> <input type="radio" name="message" id="full_resume" checked /><label for="full_resume">Need full resume. <input type="radio" name="message" id="others" /><label for="others">Others. <br/><br/> </div> <textarea id="txt_message" class="txt_message"></textarea> <table class="reply_to_area"> <tr> <td style="width: 25%;">Send To Consultant:</td> <td><span id="employee_name"></span> (<span id="employee_email"></span>)</td> </tr> <tr> <td style="width: 25%;">Reply To Email:</td> <td> <input type="text" class="field" id="reply_to" value="" /><br/> <span style="font-size: 7pt; color: #666666;">Tip: If this is left empty, the default email will be used for your consultant to reply to.</span> </td> </tr> </table> <div class="popup_window_buttons_bar"> <input type="hidden" id="notify_referral_id" value="0" /> <input type="hidden" id="notify_candidate_idx" value="-1" /> <input type="button" value="Send E-mail & Close" onClick="close_notify_popup(true);" /> <input type="button" value="Close" onClick="close_notify_popup(false);" /> </div> </div> <div id="employment_window" class="popup_window"> <div id="window_employment_title" class="popup_window_title"></div> <div class="employment_form"> <table class="employment_form_table"> <tr> <td class="label">Work Commencement:</td> <td class="field"> <?php $today = date('Y-m-d'); $date_components = explode('-', $today); $year = $date_components[0]; $month = $date_components[1]; $day = $date_components[2]; echo generate_dropdown('day', '', 1, 31, $day, 2, 'Day'); echo generate_month_dropdown('month', '', $month); echo '<span id="year_label">' . $year . '</span>' . "\n"; ?> </td> </tr> <tr> <td class="label">Annual Salary:</td> <td class="field"><span id="currency"><?php echo $currency; ?> </span>$ <input type="text" class="salary_field" id="salary" name="salary" value="1.00" /></td> </tr> </table> </div> <div class="popup_window_buttons_bar"> <input type="hidden" id="employment_referral_id" value="0" /> <input type="hidden" id="employment_candidate_idx" value="-1" /> <input type="button" value="Confirm & Close" onClick="close_employment_popup(true);" /> <input type="button" value="Close" onClick="close_employment_popup(false);" /> </div> </div> <?php }
public function show() { $this->begin(); $branch = $this->employee->getBranch(); $this->top('Employers - ' . $branch[0]['country']); $this->menu_employee('employers'); $subscriptions_rates = $GLOBALS['subscriptions_rates']; $employers = $this->get_employers($branch[0]['id']); // $available_subscriptions = $subscriptions_rates[Currency::getSymbolFromCountryCode($branch[0]['country_code'])]; ?> <div id="div_status" class="status"> <span id="span_status" class="status"></span> </div> <form id="employer_page_form" method="post" action="employer.php"> <input type="hidden" id="id" name="id" value="" /> <input type="hidden" id="from_employer" name="from_employer" value="" /> </form> <div class="buttons_bar"> <input class="button" type="button" id="add_new_employer" name="add_new_employer" value="Add New Employer" onClick="add_new_employer();" /> </div> <div id="div_employers"> <?php if (is_null($employers) || count($employers) <= 0 || $employers === false) { ?> <div class="empty_results">No employers at this moment.</div> <?php } else { $employers_table = new HTMLTable('employers_table', 'employers'); $employers_table->set(0, 0, "<a class=\"sortable\" onClick=\"sort_by('employers', 'employers.joined_on');\">Joined On</a>", '', 'header'); $employers_table->set(0, 1, "<a class=\"sortable\" onClick=\"sort_by('employers', 'employers.name');\">Employer</a>", '', 'header'); $employers_table->set(0, 2, "<a class=\"sortable\" onClick=\"sort_by('employers', 'employees.lastname');\">Registered By</a>", '', 'header'); $employers_table->set(0, 3, "<a class=\"sortable\" onClick=\"sort_by('employers', 'employer_sessions.first_login');\">First Login</a>", '', 'header'); $employers_table->set(0, 4, 'Quick Actions', '', 'header action'); foreach ($employers as $i => $employer) { $employers_table->set($i + 1, 0, $employer['formatted_joined_on'], '', 'cell'); $employer_short_details = '<a class="no_link employer_link" onClick="show_employer(\'' . $employer['id'] . '\');">' . desanitize($employer['employer']) . '</a>' . "\n"; $employer_short_details .= '<div class="small_contact"><span style="font-weight: bold;">Tel.:</span> ' . $employer['phone_num'] . '</div>' . "\n"; $employer_short_details .= '<div class="small_contact"><span style="font-weight: bold;">Fax: </span>' . $employer['fax_num'] . '</div>' . "\n"; $employer_short_details .= '<div class="small_contact"><span style="font-weight: bold;">Email: </span><a href="mailto:' . $employer['email_addr'] . '">' . $employer['email_addr'] . '</a></div>' . "\n"; $employer_short_details .= '<div class="small_contact"><span style="font-weight: bold;">Contact:</span> ' . $employer['contact_person'] . '</div>' . "\n"; $employers_table->set($i + 1, 1, $employer_short_details, '', 'cell'); $employers_table->set($i + 1, 2, $employer['employee'], '', 'cell'); $employers_table->set($i + 1, 3, $employer['formatted_first_login'], '', 'cell'); $actions = ''; if ($employer['active'] == 'Y') { $actions = '<input type="button" id="activate_button_' . $i . '" value="De-activate" onClick="activate_employer(\'' . $employer['id'] . '\', \'' . $i . '\');" />'; $actions .= '<input type="button" id="password_reset_' . $i . '" value="Reset Password" onClick="reset_password(\'' . $employer['id'] . '\');" />'; } else { $actions = '<input type="button" id="activate_button_' . $i . '" value="Activate" onClick="activate_employer(\'' . $employer['id'] . '\', \'' . $i . '\');" />'; $actions .= '<input type="button" id="password_reset_' . $i . '" value="Reset Password" onClick="reset_password(\'' . $employer['id'] . '\');" disabled />'; } $actions .= '<input type="button" value="New From" onClick="add_new_employer(\'' . $employer['id'] . '\');" />'; $employers_table->set($i + 1, 4, $actions, '', 'cell action'); } echo $employers_table->get_html(); ?> </div> <div class="buttons_bar"> <input class="button" type="button" id="add_new_employer" name="add_new_employer" value="Add New Employer" onClick="add_new_employer();" /> </div> <?php } ?> <?php }
public function show() { $this->begin(); $this->top_search("Resumes"); $this->menu('member', 'resumes'); $resumes = $this->get_resumes(); ?> <div id="div_status" class="status"> <span id="span_status" class="status"></span> </div> <table class="buttons"> <tr> <td class="right"> <input type="button" id="upload_new_resume" name="upload_new_resume" value="Upload Resume" onClick="show_upload_resume_popup(0);" /> </td> </tr> </table> <div id="div_resumes"> <?php if (empty($resumes)) { ?> <div class="empty_results">No resumes uploaded. Click "Upload Resume" button to upload one now.</div> <?php } else { $resumes_table = new HTMLTable('resumes_table', 'resumes'); $resumes_table->set(0, 0, "<a class=\"sortable\" onClick=\"sort_by('resumes', 'modified_on');\">Modified On</a>", '', 'header'); $resumes_table->set(0, 1, "<a class=\"sortable\" onClick=\"sort_by('resumes', 'file_name');\">Resume</a>", '', 'header'); $resumes_table->set(0, 2, " ", '', 'header actions'); foreach ($resumes as $i => $resume) { $resumes_table->set($i + 1, 0, $resume['formatted_modified_on'], '', 'cell'); $resumes_table->set($i + 1, 1, '<a href="resume.php?id=' . $resume['id'] . '">' . $resume['file_name'] . '</a>', '', 'cell'); $resumes_table->set($i + 1, 2, '<a class="no_link" onClick="update_resume(' . $resume['id'] . ');">Update</a>', '', 'cell actions'); //$resumes_table->set($i+1, 2, '<a class="no_link" onClick="delete_resume('. $resume['id']. ');">Delete</a> | <a class="no_link" onClick="update_resume('. $resume['id']. ');">Update</a>', '', 'cell actions'); } echo $resumes_table->get_html(); } ?> </div> <table class="buttons"> <tr> <td class="right"> <input type="button" id="upload_new_resume" name="upload_new_resume" value="Upload Resume" onClick="show_upload_resume_popup(0);" /> </td> </tr> </table> <!-- popups goes here --> <div id="upload_resume_window" class="popup_window"> <div class="popup_window_title">Upload Resume</div> <form id="upload_resume_form" action="resumes_action.php" method="post" enctype="multipart/form-data" onSubmit="return close_upload_resume_popup(true);"> <div class="upload_resume_form"> <input type="hidden" id="resume_id" name="id" value="0" /> <input type="hidden" name="member" value="<?php echo $this->member->getId(); ?> " /> <input type="hidden" name="action" value="upload" /> <div id="upload_progress" style="text-align: center; width: 99%; margin: auto;"> Please wait while your resume is being uploaded... <br/><br/> <img src="<?php echo $GLOBALS['protocol']; ?> ://<?php echo $GLOBALS['root']; ?> /common/images/progress/circle_big.gif" /> </div> <div id="upload_field" class="upload_field"> <input id="my_file" name="my_file" type="file" /> <div style="font-size: 9pt; margin-top: 15px;"> <ol> <li>Only HTML (*.html, *.htm), Text (*.txt), Portable Document Format (*.pdf) or MS Word document (*.doc) with the file size of less than 1MB are allowed.</li> <li>You can upload as many resumes as you want and designate them for different job applications.</li> <li>You can update your resume by clicking "Update" then upload an updated version.</li> </ol> </div> </div> </div> <div class="popup_window_buttons_bar"> <input type="submit" value="Upload" /> <input type="button" value="Cancel" onClick="close_upload_resume_popup(false);" /> </div> </form> </div> <?php }