if (sizeof($errors) > 0) { foreach ($errors as $err) { $msg->addError($err); } } header('Location: edit_employer.php?eid=' . intval($_GET['eid'])); exit; } //update password if ($pass != '' && strlen($pass) == 40) { $employer->updatePassword($pass); } //set approval state $employer->setApprovalState($approval_state); if ($employer->updateProfile($name, $company, $email, $website, $description)) { $msg->addFeedback('JB_PROFILE_UPDATED'); } else { $msg->addError('DB_NOT_UPDATED'); } header('Location: employers.php'); exit; } include AT_INCLUDE_PATH . 'header.inc.php'; $savant->assign('name', $employer->getName()); $savant->assign('company', $employer->getCompany()); $savant->assign('email', $employer->getEmail()); $savant->assign('website', $employer->getWebsite()); $savant->assign('description', $employer->getDescription()); $savant->assign('approval_state', $employer->getApprovalState()); $savant->display('admin/jb_edit_employer.tmpl.php'); include AT_INCLUDE_PATH . 'footer.inc.php';
$pdf->Cell(1); $pdf->Cell(33, 5, sql_date_format($invoice[0]['issued_on']), 1, 0, 'C'); $pdf->Cell(1); $pdf->Cell(33, 5, sql_date_format($invoice[0]['payable_by']), 1, 0, 'C'); $pdf->Cell(1); $pdf->Cell(0, 5, $amount_payable, 1, 0, 'C'); $pdf->Ln(6); $pdf->SetTextColor(255, 255, 255); $pdf->Cell(60, 5, "User ID", 1, 0, 'C', 1); $pdf->Cell(1); $pdf->Cell(0, 5, "Employer Name", 1, 0, 'C', 1); $pdf->Ln(6); $pdf->SetTextColor(0, 0, 0); $pdf->Cell(60, 5, $invoice[0]['employer'], 1, 0, 'C'); $pdf->Cell(1); $pdf->Cell(0, 5, $employer->getName(), 1, 0, 'C'); $pdf->Ln(10); $table_header = array("No.", "Item", "Amount (" . $currency . ")"); $pdf->FancyTable($table_header, $items, $amount_payable); $pdf->Ln(13); $pdf->SetFont('', 'I'); $pdf->Cell(0, 0, "This invoice was automatically generated. Signature is not required.", 0, 0, 'C'); $pdf->Ln(6); $pdf->Cell(0, 5, "Payment Notice", 'LTR', 0, 'C'); $pdf->Ln(); $pdf->Cell(0, 5, "- Payment shall be made payable to " . $branch[0]['branch'] . ".", 'LR', 0, 'C'); $pdf->Ln(); $pdf->Cell(0, 5, "- To facilitate the processing of the payment, please write down the invoice number(s) on your cheque(s)/payment slip(s)", 'LBR', 0, 'C'); $pdf->Ln(10); $pdf->Cell(0, 0, "E. & O. E.", 0, 0, 'C'); $pdf->Close();
if (count($jobs) > 1) { $has_many_jobs = true; } $employer = new Employer($result[0]['employer_id']); $mail_lines = file('../private/mail/employer_new_job_application.txt'); $message = ''; foreach ($mail_lines as $line) { $message .= $line; } $job_list = ''; $i = 0; foreach ($result as $row) { $job_list .= '- ' . htmlspecialchars_decode(stripslashes($row['title'])) . "\n"; $i++; } $message = str_replace('%company%', htmlspecialchars_decode(stripslashes($employer->getName())), $message); $message = str_replace('%jobs%', $job_list, $message); $message = str_replace('%protocol%', $GLOBALS['protocol'], $message); $message = str_replace('%root%', $GLOBALS['root'], $message); if (!empty($_POST['message'])) { $message = str_replace('%message%', "A message from our consultant:\n\n" . $_POST['message'], $message); } // 2. get the selected resume file $criteria = array("columns" => "file_name, file_hash, file_size, file_type", "match" => "id = " . $resume, "limit" => "1"); $member_resume = new Resume(); $result = $member_resume->find($criteria); $original_filename = explode('.', $result[0]['file_name']); $extension = $original_filename[1]; $resume_file_raw = $resume . '.' . $result[0]['file_hash']; $attached_filename = $resume . '.' . $extension; $filetype = $result[0]['file_type'];
if ($t == 'yel') { $is_test_site = true; break; } } // send an email to consultant about the job is being assigned $employee = new Employee($_POST['employee']); $employer = new Employer($_POST['employer']); $lines = file(dirname(__FILE__) . '/../private/mail/employee_job_assignment.txt'); $message = ''; foreach ($lines as $line) { $message .= $line; } $message = str_replace('%job_id%', $job->getId(), $message); $message = str_replace('%job%', $_POST['title'], $message); $message = str_replace('%employer%', $employer->getName(), $message); $message = str_replace('%country%', Country::getCountryFrom($_POST['country']), $message); $message = str_replace('%is_exec%', $_POST['is_executive'] == '1' ? 'Yes' : 'No', $message); $message = str_replace('%expiry%', $job->getExpiryDate(), $message); $subject = $_POST['title'] . ' position has been assigned to you'; $headers = 'From: YellowElevator.com <*****@*****.**>' . "\n"; mail($employee->getEmailAddress(), $subject, $body, $headers); // $handle = fopen('/tmp/email_to_'. $employee->getEmailAddress(). '.txt', 'w'); // fwrite($handle, 'Subject: '. $subject. "\n\n"); // fwrite($handle, $body); // fclose($handle); // Tweet about this job, if it is new if ($new_id > 0 && !$is_test_site) { $employer = htmlspecialchars_decode(stripslashes($employer->getName())); $url = $GLOBALS['protocol'] . '://' . $GLOBALS['root'] . '/job/' . $new_id; $status = $data['title'] . ' (' . $employer . ') - ' . $url;
$pdf->Cell(1); $pdf->Cell(33, 5, $issued_on, 1, 0, 'C'); $pdf->Cell(1); $pdf->Cell(33, 5, format_date($data['payable_by']), 1, 0, 'C'); $pdf->Cell(1); $pdf->Cell(0, 5, $amount_payable, 1, 0, 'C'); $pdf->Ln(6); $pdf->SetTextColor(255, 255, 255); $pdf->Cell(60, 5, "User ID", 1, 0, 'C', 1); $pdf->Cell(1); $pdf->Cell(0, 5, "Employer Name", 1, 0, 'C', 1); $pdf->Ln(6); $pdf->SetTextColor(0, 0, 0); $pdf->Cell(60, 5, $employer->getId(), 1, 0, 'C'); $pdf->Cell(1); $pdf->Cell(0, 5, $employer->getName(), 1, 0, 'C'); $pdf->Ln(10); $table_header = array("No.", "Item", "Amount (" . $currency . ")"); $pdf->FancyTable($table_header, $items, $amount_payable); $pdf->Ln(13); $pdf->SetFont('', 'I'); $pdf->Cell(0, 0, "This invoice was automatically generated. Signature is not required.", 0, 0, 'C'); $pdf->Ln(6); $pdf->Cell(0, 5, "Payment Notice", 'LTR', 0, 'C'); $pdf->Ln(); $pdf->Cell(0, 5, "- Payment shall be made payable to " . $branch[0]['branch'] . ".", 'LR', 0, 'C'); $pdf->Ln(); $pdf->Cell(0, 5, "- To facilitate the processing of the payment, please write down the invoice number(s) on your cheque(s)/payment slip(s)", 'LBR', 0, 'C'); $pdf->Ln(10); $pdf->Cell(0, 0, "E. & O. E.", 0, 0, 'C'); $pdf->Close();
<td class="value"><?php echo $amount_payable; ?> </td> </tr> <tr> <td class="field">User ID</td> <td class="field" colspan="3">Employer Name</td> </tr> <tr> <td class="value"><?php echo $invoice[0]['employer']; ?> </td> <td class="value" colspan="3"><?php echo $employer->getName(); ?> </td> </tr> </table> </div> <div class="items"> <table class="items"> <tr class="header"> <td>No.</td> <td class="item">Item</td> <td class="amount">Amount (<?php echo $currency; ?> )</td>
$pdf->Cell(33, 5, $invoice[0]['formatted_payable_by'], 1, 0, 'C'); } else { $pdf->Cell(33, 5, $invoice[0]['formatted_paid_on'], 1, 0, 'C'); } $pdf->Cell(1); $pdf->Cell(0, 5, $amount_payable, 1, 0, 'C'); $pdf->Ln(6); $pdf->SetTextColor(255, 255, 255); $pdf->Cell(60, 5, "User ID", 1, 0, 'C', 1); $pdf->Cell(1); $pdf->Cell(0, 5, "Employer Name", 1, 0, 'C', 1); $pdf->Ln(6); $pdf->SetTextColor(0, 0, 0); $pdf->Cell(60, 5, $invoice[0]['employer'], 1, 0, 'C'); $pdf->Cell(1); $pdf->Cell(0, 5, $employer->getName(), 1, 0, 'C'); $pdf->Ln(10); $table_header = array("No.", "Item", "Amount (" . $currency . ")"); $pdf->FancyTable($table_header, $items, $amount_payable); $pdf->Ln(13); $pdf->SetFont('', 'I'); $pdf->Cell(0, 0, "This invoice was automatically generated. Signature is not required.", 0, 0, 'C'); $pdf->Ln(6); $pdf->Cell(0, 5, "Payment Notice", 'LTR', 0, 'C'); $pdf->Ln(); $pdf->Cell(0, 5, "- Payment shall be made payable to " . $branch[0]['branch'] . ".", 'LR', 0, 'C'); $pdf->Ln(); $pdf->Cell(0, 5, "- To facilitate the processing of the payment, please write down the invoice number(s) on your cheque(s)/payment slip(s)", 'LBR', 0, 'C'); $pdf->Ln(10); $pdf->Cell(0, 0, "E. & O. E.", 0, 0, 'C'); $pdf->Close();