worknova.manus/HR/hr-local-edit-interview-det.php
LAPTOP-V9RRD1TL\Michelle's Computer f8f8fcaf96 first commit
2025-07-21 21:38:17 +08:00

740 lines
50 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
$active_sub_menu = 'hr-employment' ;
switch($employment_status){
case 'Pending' :
$active_menu = 'hr-letter-pending' ;
break ;
case 'Interview' :
$active_menu = 'hr-letter-interview' ;
break ;
case 'Reschedule' :
$active_menu = 'hr-letter-reschedule' ;
break ;
case 'Keep In View' :
$active_menu = 'hr-letter-kiv' ;
break ;
case 'Offer' :
$active_menu = 'hr-letter-offer' ;
break ;
case 'Confirmation' :
$active_menu = 'hr-letter-confirmation' ;
break ;
case 'Reject' :
$active_menu = 'hr-letter-reject' ;
break ;
case 'Terminate' :
$active_menu = 'hr-letter-terminate' ;
break ;
}
// update database
if (isset($type) && $type == 'edit_int_det' && $_POST['hide'] == 1 && $_POST['hide_select_worker'] == 'Local'){
$int_det_q1 = escapeString($_POST['int_det_q1']) ;
$int_det_q2 = escapeString($_POST['int_det_q2']) ;
$int_det_q3 = escapeString($_POST['int_det_q3']) ;
$int_det_q4 = escapeString($_POST['int_det_q4']) ;
$int_det_q5 = escapeString($_POST['int_det_q5']) ;
$int_det_q6 = escapeString($_POST['int_det_q6']) ;
$int_det_q7 = escapeString($_POST['int_det_q7']) ;
$int_det_q8 = escapeString($_POST['int_det_q8']) ;
$int_det_q9 = escapeString($_POST['int_det_q9']) ;
$int_det_q10 = escapeString($_POST['int_det_q10']) ;
$int_det_q11 = escapeString($_POST['int_det_q11']) ;
$int_det_q12 = escapeString($_POST['int_det_q12']) ;
$int_det_q13 = escapeString($_POST['int_det_q13']) ;
$int_det_q14 = escapeString($_POST['int_det_q14']) ;
$int_det_q15 = escapeString($_POST['int_det_q15']) ;
$int_det_q16 = escapeString($_POST['int_det_q16']) ;
$int_det_interviewer = escapeString($_POST['int_det_interviewer']) ;
$int_det_int_date= escapeString($_POST['int_det_int_date']) ;
$int_det_int_pos = escapeString($_POST['int_det_int_pos']);
$int_det_status = escapeString($_POST['select_form_status']);
$int_det_verifier = escapeString($_POST['int_det_verifier']) ;
$int_det_verifier_pos = escapeString($_POST['int_det_verifier_pos']);
$int_det_approver = escapeString($_POST['int_det_approver']) ;
$int_det_approver_pos = escapeString($_POST['int_det_approver_pos']);
if ($_POST['interviewer_signature'] == $_POST['compare_signature_hidden'] || $_POST['interviewer_signature'] == '') {
$int_det_content = jsonEncodeDecode('decode', $row_page['employment_interview_details']) ;
$int_det_interviewer_con = $int_det_content['interviewer'];
if($int_det_interviewer_con != ''){
$int_det_sign = $int_det_interviewer_con['sign'] ;
$int_det_sign_date = $int_det_interviewer_con['sign_date'] ;
}else{
$int_det_sign = escapeString($_POST['interviewer_signature']) ;
$int_det_sign_date = TODAYDATE;
}
}else{
$int_det_sign = escapeString($_POST['interviewer_signature']) ;
$int_det_sign_date = TODAYDATE;
}
if ($_POST['verifier_signature'] == $_POST['compare_signature_hidden'] || $_POST['verifier_signature'] =='') {
$int_det_content = jsonEncodeDecode('decode', $row_page['employment_interview_details']) ;
$int_det_verifier_con = $int_det_content['verifier'];
if($int_det_verifier_con != ''){
$int_det_sign_verify = $int_det_verifier_con['verify_sign'] ;
$int_det_sign_verify_date = $int_det_verifier_con['verify_sign_date'] ;
}else{
$int_det_sign_verify = escapeString($_POST['verifier_signature']) ;
$int_det_sign_verify_date = TODAYDATE;
}
}else{
$int_det_sign_verify = escapeString($_POST['verifier_signature']) ;
$int_det_sign_verify_date = TODAYDATE;
}
if ($_POST['approver_signature'] == $_POST['compare_signature_hidden'] || $_POST['approver_signature']=='') {
$int_det_content = jsonEncodeDecode('decode', $row_page['employment_interview_details']) ;
$int_det_approver_con = $int_det_content['approver'];
if($int_det_approver_con != ''){
$int_det_sign_approve = $int_det_approver_con['approve_sign'] ;
$int_det_sign_approve_date = $int_det_approver_con['approve_sign_date'] ;
}else{
$int_det_sign_approve = escapeString($_POST['approver_signature']) ;
$int_det_sign_approve_date = TODAYDATE;
}
}else{
$int_det_sign_approve = escapeString($_POST['approver_signature']) ;
$int_det_sign_approve_date = TODAYDATE;
}
$array_int_det = array('question' => array(
'q1' => $int_det_q1,
'q2' => $int_det_q2,
'q3' => $int_det_q3,
'q4' => $int_det_q4,
'q5' => $int_det_q5,
'q6' => $int_det_q6,
'q7' => $int_det_q7,
'q8' => $int_det_q8,
'q9' => $int_det_q9,
'q10' => $int_det_q10,
'q11' => $int_det_q11,
'q12' => $int_det_q12,
'q13' => $int_det_q13,
'q14' => $int_det_q14,
'q15' => $int_det_q15,
'q16' => $int_det_q16),
'interviewer' => array(
'name' => $int_det_interviewer,
'int_date' => $int_det_int_date,
'int_position' => $int_det_int_pos,
'sign' => $int_det_sign,
'sign_date' => $int_det_sign_date),
'verifier' => array(
'verify_name' => $int_det_verifier ,
'verify_position' => $int_det_verifier_pos,
'verify_sign' => $int_det_sign_verify,
'verify_sign_date' => $int_det_sign_verify_date),
'approver' => array(
'approve_name' => $int_det_approver,
'approve_position' => $int_det_approver_pos,
'approve_sign' => $int_det_sign_approve,
'approve_sign_date' => $int_det_sign_approve_date),
'status' => $int_det_status
) ;
$array_int_det = jsonEncodeDecode('encode', $array_int_det) ;
// print_r($array_int_det);exit;
$old_record = '';
$mysqli_record = $mysqli->query("select employment_interview_details from staff_employment where employment_id = '".$page."' limit 1");
if ($mysqli_record->num_rows > 0 ){
$old_record = $mysqli_record->fetch_array(MYSQLI_ASSOC)['employment_interview_details'];
}else{
$old_record = '-';
}
$record = array(
"old_record" => $old_record,
"new_record" => $array_int_det,
);
$record = jsonEncodeDecode('encode', $record) ;
if($mysqli->query("UPDATE staff_employment SET employment_interview_details = '".$array_int_det."' WHERE employment_id = '".$page."'")){
$descrition = $_SESSION['system_name'].'(username) update the employment interview details';
$mysqli->query("INSERT INTO system_log_employment (log_table, log_action, log_page_id, log_page_name, log_user_id, log_description, log_record, log_date) VALUES
('employment', 'update-interview_det', '200', 'AF-".$page."', '".$_SESSION["system_id"]."', '".$descrition."', '".$record."', NOW())");
}
// refresh page
header("Location:?page_mode=edit_interview_det&page=".$page."&success=1&select_worker=Local") ;
exit ;
}
// start header here
include 'requires/page_header.php' ;
if ( $hide_title == false ){
include 'requires/page_top.php' ;
}
$user_profile = jsonEncodeDecode('decode', $row_page['employment_file']) ;
$int_det_content = jsonEncodeDecode('decode', $row_page['employment_interview_details']) ;
$int_det_question_con = $int_det_content['question'];
$int_det_interviewer_con = $int_det_content['interviewer'];
$int_det_verifier_con = $int_det_content['verifier'];
$int_det_approver_con = $int_det_content['approver'];
$int_det_status_con = $int_det_content['status'];
if ( $hide_title == true && $_GET['success'] == '1' ){
echo '
<script>
$(document).ready(function(){
alert("Thank you, you data has been submited.") ;
}) ;
</script>' ;
}
?>
<div class="warper container-fluid">
<div class="row">
<div class="col-md-12" style="position:inherit;">
<?php if ( $hide_title == false ){ ?><div class="page-header"><h1><?= $lang['Employment Interview Details']?> <small><h1><?= $lang['edit']?></small></h1></div><?php } ?>
<div class="panel panel-default">
<div class="panel-heading"></div>
<div class="panel-body">
<form method="post" class="form-horizontal" id="quotationForm" enctype="multipart/form-data" action="?page_mode=edit_interview_det&page=<?= $page ?>&type=edit_int_det&select_worker=Local" novalidate="novalidate">
<table border="0" cellpadding="0" cellspacing="0" class="employment_table" style="max-width:960px; width:100%;padding:0; margin:0 auto;">
<tr><td colspan="4">&nbsp;</td></tr>
<tr><td colspan="4">&nbsp;</td></tr>
<tr>
<td colspan="1" style="width:120px;">Picture:</td>
<td colspan="2" style="padding:5px; text-transform: uppercase;">
<img src="<?= ($user_profile['file'] != '' ? $user_profile['path'].$user_profile['file'] : 'images/user_profile.png') ?>" style="width:150px;" /></td>
<td width="400px">&nbsp;</td>
</tr>
<tr><td colspan="4">&nbsp;</td></tr>
<tr>
<td colspan="1" style="width:120px;">Name:</td>
<td colspan="2" style="border:1px solid black; padding:5px; text-transform: uppercase;"><?= $row_page['employment_name'] ?></td>
<td width="400px">&nbsp;</td>
</tr>
<tr><td colspan="4">&nbsp;</td></tr>
<tr>
<td colspan="1" style="width:120px;">Designation:</td>
<td colspan="2" style="border:1px solid black; padding:5px; text-transform: uppercase;">
<?php
$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']."' LIMIT 1" ;
$mysqli_position = $mysqli->query($mysqli_query) ;
if ($mysqli_position->num_rows > 0){
while($row_position = $mysqli_position->fetch_array(MYSQLI_ASSOC)){
echo $row_position['job_position_desc'];
}
}
?>
</td>
<td width="400px">&nbsp;</td>
</tr>
<tr><td colspan="4">&nbsp;</td></tr>
<tr>
<td colspan="1" style="width:120px;">Department:</td>
<td colspan="2" style="border:1px solid black; padding:5px; text-transform: uppercase;">
<?php
$mysqli_query = "SELECT a.department_id, b.department_desc FROM setting_department a
LEFT JOIN setting_department_translation b ON ( a.department_id = b.department_id )
WHERE a.deleted_at IS NULL AND b.lang = 'en' AND a.department_id = '".$row_page['employment_department']."' LIMIT 1" ;
$mysqli_department = $mysqli->query($mysqli_query) ;
if ($mysqli_department->num_rows > 0){
while($row_department = $mysqli_department->fetch_array(MYSQLI_ASSOC)){
echo $row_department['department_desc'];
}
}
?>
</td>
<td width="400px">&nbsp;</td>
</tr>
<tr><td colspan="4">&nbsp;</td></tr>
<tr>
<td colspan="4">
<table border="0" cellpadding="0" cellspacing="0" class="employment_table" style="max-width:960px; width:100%;padding:0; margin:0 auto;">
<tr>
<td colspan="2">Attritube:</td>
</tr>
<tr>
<td width="400px">1. Appearance (professional dress, grooming)</td>
<td>
<label><input type="radio" name="int_det_q1" value="Excellent" required="required" <?= ($int_det_question_con['q1'] == 'Excellent' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Excellent']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q1" value="Very Good" <?= ($int_det_question_con['q1'] == 'Very Good' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Very Good']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q1" value="Good" required="required" <?= ($int_det_question_con['q1'] == 'Good' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Good']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q1" value="Poor" <?= ($int_det_question_con['q1'] == 'Poor' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Poor']?></label>
</td>
</tr>
<tr>
<td width="400px">2. Poise, self-confidence, 1st impression</td>
<td>
<label><input type="radio" name="int_det_q2" value="Excellent" required="required" <?= ($int_det_question_con['q2'] == 'Excellent' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Excellent']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q2" value="Very Good" <?= ($int_det_question_con['q2'] == 'Very Good' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Very Good']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q2" value="Good" required="required" <?= ($int_det_question_con['q2'] == 'Good' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Good']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q2" value="Poor" <?= ($int_det_question_con['q2'] == 'Poor' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Poor']?></label>
</td>
</tr>
<tr>
<td width="400px">3. Verbal communication skills (articulate, clear)</td>
<td>
<label><input type="radio" name="int_det_q3" value="Excellent" required="required" <?= ($int_det_question_con['q3'] == 'Excellent' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Excellent']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q3" value="Very Good" <?= ($int_det_question_con['q3'] == 'Very Good' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Very Good']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q3" value="Good" required="required" <?= ($int_det_question_con['q3'] == 'Good' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Good']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q3" value="Poor" <?= ($int_det_question_con['q3'] == 'Poor' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Poor']?></label>
</td>
</tr>
<tr>
<td width="400px">4. Listening ability and non-verbal communication</td>
<td>
<label><input type="radio" name="int_det_q4" value="Excellent" required="required" <?= ($int_det_question_con['q4'] == 'Excellent' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Excellent']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q4" value="Very Good" <?= ($int_det_question_con['q4'] == 'Very Good' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Very Good']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q4" value="Good" required="required" <?= ($int_det_question_con['q4'] == 'Good' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Good']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q4" value="Poor" <?= ($int_det_question_con['q4'] == 'Poor' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Poor']?></label>
</td>
</tr>
<tr>
<td width="400px">5. Clarity of career interests and goals</td>
<td>
<label><input type="radio" name="int_det_q5" value="Excellent" required="required" <?= ($int_det_question_con['q5'] == 'Excellent' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Excellent']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q5" value="Very Good" <?= ($int_det_question_con['q5'] == 'Very Good' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Very Good']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q5" value="Good" required="required" <?= ($int_det_question_con['q5'] == 'Good' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Good']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q5" value="Poor" <?= ($int_det_question_con['q5'] == 'Poor' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Poor']?></label>
</td>
</tr>
<tr>
<td width="400px">6. Ability to link prior work experience to position</td>
<td>
<label><input type="radio" name="int_det_q6" value="Excellent" required="required" <?= ($int_det_question_con['q6'] == 'Excellent' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Excellent']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q6" value="Very Good" <?= ($int_det_question_con['q6'] == 'Very Good' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Very Good']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q6" value="Good" required="required" <?= ($int_det_question_con['q6'] == 'Good' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Good']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q6" value="Poor" <?= ($int_det_question_con['q6'] == 'Poor' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Poor']?></label>
</td>
</tr>
<tr>
<td width="400px">7. Knowledge of industry</td>
<td>
<label><input type="radio" name="int_det_q7" value="Excellent" required="required" <?= ($int_det_question_con['q7'] == 'Excellent' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Excellent']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q7" value="Very Good" <?= ($int_det_question_con['q7'] == 'Very Good' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Very Good']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q7" value="Good" required="required" <?= ($int_det_question_con['q7'] == 'Good' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Good']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q7" value="Poor" <?= ($int_det_question_con['q7'] == 'Poor' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Poor']?></label>
</td>
</tr>
<tr>
<td width="400px">8. Preparation for interview</td>
<td>
<label><input type="radio" name="int_det_q8" value="Excellent" required="required" <?= ($int_det_question_con['q8'] == 'Excellent' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Excellent']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q8" value="Very Good" <?= ($int_det_question_con['q8'] == 'Very Good' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Very Good']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q8" value="Good" required="required" <?= ($int_det_question_con['q8'] == 'Good' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Good']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q8" value="Poor" <?= ($int_det_question_con['q8'] == 'Poor' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Poor']?></label>
</td>
</tr>
<tr>
<td width="400px">9. Quality of questions</td>
<td>
<label><input type="radio" name="int_det_q9" value="Excellent" required="required" <?= ($int_det_question_con['q9'] == 'Excellent' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Excellent']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q9" value="Very Good" <?= ($int_det_question_con['q9'] == 'Very Good' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Very Good']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q9" value="Good" required="required" <?= ($int_det_question_con['q9'] == 'Good' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Good']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q9" value="Poor" <?= ($int_det_question_con['q9'] == 'Poor' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Poor']?></label>
</td>
</tr>
<tr>
<td width="400px">10. Interest in & enthusiasm toward opportunity</td>
<td>
<label><input type="radio" name="int_det_q10" value="Excellent" required="required" <?= ($int_det_question_con['q10'] == 'Excellent' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Excellent']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q10" value="Very Good" <?= ($int_det_question_con['q10'] == 'Very Good' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Very Good']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q10" value="Good" required="required" <?= ($int_det_question_con['q10'] == 'Good' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Good']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q10" value="Poor" <?= ($int_det_question_con['q10'] == 'Poor' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Poor']?></label>
</td>
</tr>
<tr>
<td width="400px">11. Strength of competence / skills for position / work</td>
<td>
<label><input type="radio" name="int_det_q11" value="Excellent" required="required" <?= ($int_det_question_con['q11'] == 'Excellent' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Excellent']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q11" value="Very Good" <?= ($int_det_question_con['q11'] == 'Very Good' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Very Good']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q11" value="Good" required="required" <?= ($int_det_question_con['q11'] == 'Good' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Good']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q11" value="Poor" <?= ($int_det_question_con['q11'] == 'Poor' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Poor']?></label>
</td>
</tr>
<tr>
<td width="400px">12. Overall impression of candidates performance</td>
<td>
<label><input type="radio" name="int_det_q12" value="Excellent" required="required" <?= ($int_det_question_con['q12'] == 'Excellent' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Excellent']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q12" value="Very Good" <?= ($int_det_question_con['q12'] == 'Very Good' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Very Good']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q12" value="Good" required="required" <?= ($int_det_question_con['q12'] == 'Good' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Good']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q12" value="Poor" <?= ($int_det_question_con['q12'] == 'Poor' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Poor']?></label>
</td>
</tr>
<tr>
<td width="400px">13. Recommended pay</td>
<td>
<input type="number" name="int_det_q13" value="<?= ($int_det_question_con['q13']!='' ? $int_det_question_con['q13'] : '')?>" required="required" style="width:400px;" />
</td>
</tr>
<tr>
<td width="400px">14. Probationary Period months</td>
<td>
<label><input type="radio" name="int_det_q14" value="3 months" required="required" <?= ($int_det_question_con['q14'] == '3 months' ? 'checked' : '') ?>/>&nbsp;<?= $lang['3 months']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q14" value="6 months" <?= ($int_det_question_con['q14'] == '6 months' ? 'checked' : '') ?>/>&nbsp;<?= $lang['6 months']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q14" value="12 months" required="required" <?= ($int_det_question_con['q14'] == '12 months' ? 'checked' : '') ?>/>&nbsp;<?= $lang['12 months']?></label>
</td>
</tr>
<tr>
<td width="400px">15. Result</td>
<td>
<label><input type="radio" name="int_det_q15" value="Suitable" required="required" <?= ($int_det_question_con['q15'] == 'Suitable' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Suitable']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q15" value="Not Suitable" <?= ($int_det_question_con['q15'] == 'Not Suitable' ? 'checked' : '') ?>/>&nbsp;<?= $lang['Not Suitable']?></label>
<label class="margin_left_10"><input type="radio" name="int_det_q15" value="future" required="required" <?= ($int_det_question_con['q15'] == 'future' ? 'checked' : '') ?>/>&nbsp;<?= $lang['To be considered for future assignments']?></label>
</td>
</tr>
<tr>
<td width="400px" style="vertical-align: top;">16. Recommendations / high lights of the interview</td>
<td>
<textarea name="int_det_q16" style="width:400px;height: 60px;" required="required"><?= ($int_det_question_con['q16']!='' ? $int_det_question_con['q16'] : '') ?></textarea>
</td>
</tr>
</table>
<td>
</tr>
<tr><td colspan="4">&nbsp;</td></tr>
<tr><td colspan="4">&nbsp;</td></tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="employment_table" style="max-width:960px; width:100%;padding:0; margin:0 auto;">
<tr>
<td colspan="4">
<table border="0" cellpadding="0" cellspacing="0" style="max-width:960px; width:100%;font-size:14px;">
<tr>
<td>Form Status</td>
<td>:</td>
<td style="text-transform: uppercase;">
<select name="select_form_status" required="required">
<option value=''><?= $lang['select'] ?></option>
<option value="Interview" <?= $int_det_status_con == 'Interview' ? 'selected' : '' ?> <?= $int_det_status_con == 'Interview' || $int_det_status_con == '' ? '' : 'class="display_none"' ?> >Interview</option>
<option value="Verify" <?= $int_det_status_con == 'Verify' ? 'selected' : '' ?> <?= $int_det_status_con == 'Interview' || $int_det_status_con == 'Verify' ? '' : 'class="display_none"' ?> >Verify</option>
<option value="Approve" <?= $int_det_status_con == 'Approve' ? 'selected' : '' ?> <?= $int_det_status_con == 'Verify' || $int_det_status_con == 'Approve' ? '' : 'class="display_none"' ?> >Approve</option>
</select>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td><?= $lang['Interview date time']?></td>
<td>:</td>
<td><input type="text" name="int_det_int_date" class="datetimepicker_with_time" value="<?= $int_det_interviewer_con['int_date'] ?>" required="required"/></td>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td width="150px"><?= $lang['Interview by']?></td>
<td width="15px">:</td>
<td width="305px">
<?php
$mysqli_query = "SELECT * FROM system_user
WHERE user_is_interview_by = 'yes' AND user_trash = '0' ORDER BY user_name" ;
$mysqli_user = $mysqli->query($mysqli_query) ;
if ($mysqli_user->num_rows > 0){
echo '
<select name="int_det_interviewer" required="required">
<option value="">Select</option>' ;
while ($row_user = $mysqli_user->fetch_array(MYSQLI_ASSOC)){
echo '
<option value="'.$row_user['user_id'].'" '.($row_user['user_id'] == $int_det_interviewer_con['name'] ? 'selected' : '').'>'.dataFilter($row_user['user_name']).'</option>' ;
}
echo '
</select>' ;
}
?>
</td>
<td width="140px">&nbsp;</td>
<td width="350px" >&nbsp;</td>
</tr>
<tr>
<td><?= $lang['Interviewers Position']?></td>
<td>:</td>
<td><input type="text" name="int_det_int_pos" value="<?= $int_det_interviewer_con['int_position'] ?>" required="required"/></td>
<td colspan="2">&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr><td colspan="4">&nbsp;</td></tr>
<tr><td colspan="4">&nbsp;</td></tr>
<?php if($int_det_interviewer_con['sign'] != ''){ ?>
<tr>
<td colspan="4">
<table border="0" cellpadding="0" cellspacing="0" style="max-width:960px; width:100%;font-size:14px;">
<tr>
<td width="350px" style="border-bottom:1px solid #000;"><img src="<?= $int_det_interviewer_con['sign'] ?>" /></td>
<td width="260px">&nbsp;</td>
<td width="350px" style="border-bottom:1px solid #000; vertical-align:bottom; text-align:center;"><?= ($int_det_interviewer_con['sign_date'] != '' && $int_det_interviewer_con['sign_date'] != '0000-00-00 00:00:00' ? date('d/m/Y', strtotime($int_det_interviewer_con['sign_date'])) : '' ) ?><br /></td>
</tr>
<tr>
<td style="padding:8px;text-align:center;"><?= $lang['Interviewers signature']?></td>
<td>&nbsp;</td>
<td style="padding:8px;text-align:center;"><?= $lang['date']?></td>
</tr>
</table>
</td>
</tr>
<tr><td colspan="4">&nbsp;</td></tr>
<tr><td colspan="4">&nbsp;</td></tr>
<?php } ?>
<?php if ($int_det_status_con == 'Verify' || $int_det_status_con == 'Approve'){ ?>
<tr>
<td colspan="4">
<table border="0" cellpadding="0" cellspacing="0" style="max-width:960px; width:100%;font-size:14px;">
<tr>
<td width="150px"><?= $lang['Verify by']?></td>
<td width="15px">:</td>
<td width="305px">
<?php
$mysqli_query = "SELECT * FROM system_user
WHERE user_is_interview_by = 'yes' AND user_trash = '0' ORDER BY user_name" ;
$mysqli_user = $mysqli->query($mysqli_query) ;
if ($mysqli_user->num_rows > 0){
echo '
<select name="int_det_verifier" required="required">
<option value="">Select</option>' ;
while ($row_user = $mysqli_user->fetch_array(MYSQLI_ASSOC)){
echo '
<option value="'.$row_user['user_id'].'" '.($row_user['user_id'] == $int_det_verifier_con['verify_name'] ? 'selected' : '').'>'.dataFilter($row_user['user_name']).'</option>' ;
}
echo '
</select>' ;
}
?>
</td>
<td width="140px">&nbsp;</td>
<td width="350px" >&nbsp;</td>
</tr>
<tr>
<td><?= $lang['Verifiers Position']?></td>
<td>:</td>
<td><input type="text" name="int_det_verifier_pos" value="<?= $int_det_verifier_con['verify_position'] ?>" required="required"/></td>
<td colspan="2">&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr><td colspan="4">&nbsp;</td></tr>
<tr><td colspan="4">&nbsp;</td></tr>
<?php } ?>
<?php if($int_det_verifier_con['verify_sign'] != ''){ ?>
<tr>
<td colspan="4">
<table border="0" cellpadding="0" cellspacing="0" style="max-width:960px; width:100%;font-size:14px;">
<tr>
<td width="350px" style="border-bottom:1px solid #000;"><img src="<?= $int_det_verifier_con['verify_sign'] ?>" /></td>
<td width="260px">&nbsp;</td>
<td width="350px" style="border-bottom:1px solid #000; vertical-align:bottom; text-align:center;"><?= ($int_det_verifier_con['verify_sign_date'] != '' && $int_det_verifier_con['verify_sign_date'] != '0000-00-00 00:00:00' ? date('d/m/Y', strtotime($int_det_verifier_con['verify_sign_date'])) : '' ) ?><br /></td>
</tr>
<tr>
<td style="padding:8px;text-align:center;"><?= $lang['Verifiers signature']?></td>
<td>&nbsp;</td>
<td style="padding:8px;text-align:center;"><?= $lang['date']?></td>
</tr>
</table>
</td>
</tr>
<tr><td colspan="4">&nbsp;</td></tr>
<tr><td colspan="4">&nbsp;</td></tr>
<?php } ?>
<?php if ($int_det_status_con == 'Approve'){ ?>
<tr>
<td colspan="4">
<table border="0" cellpadding="0" cellspacing="0" style="max-width:960px; width:100%;font-size:14px;">
<tr>
<td width="150px"><?= $lang['Approve by']?></td>
<td width="15px">:</td>
<td width="305px">
<?php
$mysqli_query = "SELECT * FROM system_user
WHERE user_is_interview_by = 'yes' AND user_trash = '0' ORDER BY user_name" ;
$mysqli_user = $mysqli->query($mysqli_query) ;
if ($mysqli_user->num_rows > 0){
echo '
<select name="int_det_approver" required="required">
<option value="">Select</option>' ;
while ($row_user = $mysqli_user->fetch_array(MYSQLI_ASSOC)){
echo '
<option value="'.$row_user['user_id'].'" '.($row_user['user_id'] == $int_det_approver_con['approve_name'] ? 'selected' : '').'>'.dataFilter($row_user['user_name']).'</option>' ;
}
echo '
</select>' ;
}
?>
</td>
<td width="140px">&nbsp;</td>
<td width="350px" >&nbsp;</td>
</tr>
<tr>
<td><?= $lang['Approvers Position']?></td>
<td>:</td>
<td><input type="text" name="int_det_approver_pos" value="<?= $int_det_approver_con['approve_position'] ?>" required="required"/></td>
<td colspan="2">&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr><td colspan="4">&nbsp;</td></tr>
<tr><td colspan="4">&nbsp;</td></tr>
<?php } ?>
<?php if($int_det_approver_con['approve_sign'] != ''){ ?>
<tr>
<td colspan="4">
<table border="0" cellpadding="0" cellspacing="0" style="max-width:960px; width:100%;font-size:14px;">
<tr>
<td width="350px" style="border-bottom:1px solid #000;"><img src="<?= $int_det_approver_con['approve_sign'] ?>" /></td>
<td width="260px">&nbsp;</td>
<td width="350px" style="border-bottom:1px solid #000; vertical-align:bottom; text-align:center;"><?= ($int_det_approver_con['approve_sign_date'] != '' && $int_det_approver_con['approve_sign_date'] != '0000-00-00 00:00:00' ? date('d/m/Y', strtotime($int_det_approver_con['approve_sign_date'])) : '' ) ?><br /></td>
</tr>
<tr>
<td style="padding:8px;text-align:center;"><?= $lang['Approvers signature']?></td>
<td>&nbsp;</td>
<td style="padding:8px;text-align:center;"><?= $lang['date']?></td>
</tr>
</table>
</td>
</tr>
<tr><td colspan="4">&nbsp;</td></tr>
<tr><td colspan="4">&nbsp;</td></tr>
<?php } ?>
<tr>
<td colspan="4">
<div class="clearfix" style="max-width:960px; width:100%; margin:0 auto;">
<div style="width:350px;float:left;">
<div id="signature-pad" style="width:350px;" class="signature-pad">
<div id="protective-layer" style="position: absolute;width: inherit;height: 150px; text-align: center;font-size: large;font-weight: bolder;padding: 50px 0px;">Click To Sign Here</div>
<div class="signature-pad--body">
<canvas style="border: 1px solid #ccc; width:350px !important; height:150px !important;"></canvas>
</div>
<div class="signature-pad--footer">
<div class="signature-pad--actions">
<div>
<button type="button" class="button clear" data-action="clear"><?= $lang['Clear']?></button>
</div>
</div>
</div>
<?php
if($int_det_status_con == '' || $int_det_status_con == 'Interview'){
echo '
<input type="hidden" name="interviewer_signature" id="signature_pad" required="required" />';
}else if ($int_det_status_con == 'Verify') {
echo '
<input type="hidden" name="verifier_signature" id="signature_pad" required="required" />';
}else if ($int_det_status_con == 'Approve') {
echo '
<input type="hidden" name="approver_signature" id="signature_pad" required="required" />';
}
?>
<input type="hidden" name="compare_signature_hidden" id="signature_pad_hidden" required="required" />
</div>
</div>
<div style="width:260px; float:left;">&nbsp;</div>
<div style="width:350px; float:left;">&nbsp;</div>
</div>
</td>
</tr>
<tr><td colspan="4" style="border-bottom:1px solid #000;">&nbsp;</td></tr>
<tr><td colspan="4">&nbsp;</td></tr>
<tr>
<td colspan="4">
<?php
if($row_page['employment_status'] != 'Terminate' &&
$row_page['employment_status'] != 'Reject'){
echo '
<button type="submit" class="btn btn-purple" style="float:right">'.$lang['submit'].'</button>
<input type="hidden" name="int_det" value="edit" />
<input type="hidden" name="hide" value="1">
<input type="hidden" name="hide_select_worker" value="Local">
';
}
?>
</td>
</tr>
<tr><td colspan="4">&nbsp;</td></tr>
<tr><td colspan="4">&nbsp;</td></tr>
</table>
</form>
<script src="<?= PATH ?>scripts/signature_pad.umd.js"></script>
<script src="<?= PATH ?>scripts/signature.js?v=<?= filemtime( $_SERVER["DOCUMENT_ROOT"].'/scripts/signature.js') ?>"></script>
</div>
</div>
</div>
</div>
</div>