58 lines
3.1 KiB
PHP
58 lines
3.1 KiB
PHP
<?php
|
|
|
|
$mysqli_data = $mysqli->query( "SELECT * FROM setting_letterhead
|
|
WHERE letterhead_type = '".$type."' AND deleted_at IS NULL
|
|
LIMIT 1") ;
|
|
|
|
if( $mysqli_data->num_rows > 0 ){
|
|
$row = $mysqli_data->fetch_assoc() ;
|
|
|
|
$html_offer .= dataFilter( $row['letterhead_content'] ) ;
|
|
}
|
|
|
|
$mysqli_position = $mysqli->query( "SELECT a.job_position_id, b.job_position_desc FROM setting_job_position a
|
|
LEFT JOIN setting_job_position_translation b ON ( a.job_position_id = b.job_position_id )
|
|
WHERE a.deleted_at IS NULL AND b.lang = 'en' AND a.job_position_id = '".$row_page['employment_position']."'" ) ;
|
|
if( $mysqli_position->num_rows > 0 ){
|
|
$row_position = $mysqli_position->fetch_assoc() ;
|
|
|
|
$position_id = $row_position['job_position_id'] ;
|
|
$position_title = $row_position['job_position_desc'] ;
|
|
}
|
|
|
|
$html .= '
|
|
<!--
|
|
<tr>
|
|
<td colspan="4">
|
|
RujKami : LTF/HR/'.str_pad( $row_page['employment_id'], 3, '0', STR_PAD_LEFT ).'-'.date( 'm/Y', strtotime( $row_page['employment_date'] ) ).'/'.$position_id.' '.$position_title.'<br/>
|
|
Tarikh : '.date( 'd M Y', strtotime( TODAYDAY ) ).'<br/><br/>
|
|
|
|
'.$new_worker.'<br/>
|
|
No.KPPN : '.$row_page['employment_nric'].',<br/>
|
|
'.dataFilter( $row_page['employment_address'] ).'
|
|
</td>
|
|
</tr>
|
|
-->
|
|
<tr>
|
|
<td colspan="4" style="font-size:18px;">
|
|
<br />
|
|
<span>'.str_replace('/', '.', $offer_status['date_to_offer']).'</span><br /><br />
|
|
Dear '.$new_worker.'<br /><br />
|
|
<span style="font-weight:bold;text-decoration: underline;">Re: Offer of Employment</span><br /><br /><br />
|
|
I am pleased to confirm you the position of <span style="font-weight:bold;text-decoration: underline;">'.$position_title.'</span> '.$letter_head['name'].' starting on <span style="font-weight:bold;text-decoration: underline;">'.str_replace('/', '.', $offer_status['starting_date']).'</span> salary RM <span style="font-weight:bold;text-decoration: underline;">'.numberFormat($offer_status['salary'], 2, ',').'</span> per month. I propose that the terms of employment will be those in the attached Individual Employment Agreement.<br /><br /><br />
|
|
If you accept this position, please sign the duplicate copy of this letter and return it to me by <span style="font-weight:bold;text-decoration: underline;">'.str_replace('/', '.', $offer_status['return_date']).'</span>. A copy of that agreement will be provided to you<br /><br /><br />
|
|
In the event I have not heard from you by that date, this offer will be automatically withdrawn on that date. If there is anything you are unclear about, disagree with or wish to discuss, please contact me.<br /><br /><br />
|
|
I look forward to working with you.<br /><br /><br />
|
|
Yours faithfully,
|
|
<br /><br /><br /><br /><br /><br /><br /><br />
|
|
<table border="0" cellpadding="0" cellpadding="0" style="width:250px;font-size:18px;">
|
|
<tr>
|
|
<td style="border-bottom:1px solid #000;"></td>
|
|
</tr>
|
|
<tr><td style="text-transform:uppercase; padding:5px 0 1px;">'.$assign_by_position.'</td></tr>
|
|
<tr><td style="text-transform:uppercase; padding:1px 0;">'.$assign_by.'</td></tr>
|
|
</table>
|
|
</td>
|
|
</tr>' ;
|
|
|
|
?>
|