query($mysqli_query) ;
$job_position_desc = '' ;
if ( $mysqli_position->num_rows > 0 ){
$row_position = $mysqli_position->fetch_assoc() ;
$job_position_desc = $row_position['job_position_desc'] ;
}
$mysqli_query = "SELECT * FROM branch
WHERE deleted_at IS NULL AND branch_id = '".$row_page['employment_branch']."'
LIMIT 1" ;
$mysqli_branch = $mysqli->query($mysqli_query) ;
$branch_name = '' ;
$branch_hr_email = '' ;
$branch_hr_cc = [] ;
$branch_email_footer = '' ;
if ( $mysqli_branch->num_rows > 0 ){
$row_branch = $mysqli_branch->fetch_assoc() ;
$branch_name = dataFilter( $row_branch['branch_name'] ) ;
$branch_hr_email = dataFilter( $row_branch['branch_hr_email'] ) ;
$branch_hr_cc = explodeToArray( $row_branch['branch_hr_cc'] ) ;
$branch_email_footer = entityDecode( dataFilter( $row_branch['branch_email_footer'] ) ) ;
}
$mail_type = escapeString( $_GET['mail_type'] ) ;
$hod = base64_decode(escapeString( $_GET['hod'])) ;
$attach = base64_decode(escapeString( $_GET['attach']));
if ( $hod != '' ) {
$temp_emailcc = explode(",", str_replace(" ","",$hod));
foreach ($temp_emailcc as $key => $value) {
if ( filter_var($value, FILTER_VALIDATE_EMAIL) ) {
array_push($branch_hr_cc, $value);
}
}
}
if ( $attach != '' ) {
$link_attach_resume = 'Candidate\'s Resume' ;
}
$link = PATH.'hr-employment-schedule-interview-date.php?page='.$page.'&branch='.$row_page['branch'].'&sign='.md5( $page.$row_page['branch'].APIKEY) ;
$link_reschedule = ''.$link.'' ;
switch ( $mail_type ){
case 'interview' :
$title = "Invitation For Interview" ;
$content = "
| Dear ".strtoupper($row_page['employment_name']).", |
| |
| Thank you for your application regarding the position of ".$job_position_desc." at ".$branch_name.". |
| |
| We are impressed with your qualifications and would like to meet with you to have a round of discussion. You are advised to attend for the interview on ".date('Y-m-d H:i', strtotime($row_page['employment_interview_date']))." at our office. |
| |
| If you have any queries, please feel free to contact the office. We look forward to meet you soon at our office. |
| |
| Please Note That: |
| 1) This is an interview call for the job applied and does not guarantee employment with us. |
| 2) No TA / DA will be provided to candidates appearing for the interview. |
| 3) Bring this letter with you on the above-mentioned date and time of the interview. |
| 4) Bring photocopies and originals of your academic & other credentials along with a recent snap. |
| |
| Reschedule Interview Date (If you are inconvenience with the date provided): |
| ".$link_reschedule." |
| |
| *Please revert back to this email to confirm for your interview attendance. |
" . $branch_email_footer ;
break ;
case 'reschedule' :
$title = "Reschedule for Interview Date" ;
$content = "
| Dear ".strtoupper($row_page['employment_name']).", |
| |
| After discussion and consideration, we would like to inform you that your interview was rescheduled and will be held on ".($row_page['employment_r_interview_date'] == '0000-00-00 00:00:00' ? date('Y-m-d H:i', strtotime($row_page['employment_interview_date'])) : date('Y-m-d H:i', strtotime($row_page['employment_r_interview_date'])) )." at our office. |
| |
| If you have any queries, please feel free to contact the office. We look forward to meet you soon at our office. |
| |
| Please Note That: |
| 1) This is an interview call for the job applied and does not guarantee employment with us. |
| 2) No TA / DA will be provided to candidates appearing for the interview. |
| 3) Bring this letter with you on the above-mentioned date and time of the interview. |
| 4) Bring photocopies and originals of your academic & other credentials along with a recent snap. |
| |
| Reschedule Interview Date (If you are inconvenience with the date provided): |
| ".$link_reschedule." |
| |
";
if ( $attach != '' ) {
$content.="
| Attachment: |
| ".$link_attach_resume." |
| |
";
}
$content.="
| *This is a system generated email. Please do not reply to it. |
" . $branch_email_footer ;
break ;
case 'offer_letter' :
$title = "Offer Letter" ;
$link_offer_letter = '