include $_SERVER['DOCUMENT_ROOT'] . "/WebBuilder/pdf.class.php"; $db = new DBMain(); $assesment_res = $db->exec_query('asseses', ['*'], '', '', '', '', "record_id = {$_GET['id']}"); $asses = $assesment_res->fetch_assoc(); $pdf = new pdf("P"); $padding = '10px'; $client_res = $db->exec_query('clients', ['*'], '', '', '', '', "record_id = {$asses['clients_id']}", 'ORDER BY clients_name ASC'); $client = $client_res->fetch_assoc(); $candidate_res = $db->exec_query('client_employees', ['*'], '', '', '', '', "record_id = {$asses['client_employees_id']}"); $candidate = $candidate_res->fetch_assoc(); $assesor_res = $db->exec_query('safesure_users', ['*'], '', '', '', '', "record_id = {$asses['safesure_users_id']}"); $assesor = $assesor_res->fetch_assoc(); $date_now = date('Y-m-d H:i', strtotime("+ 2 Hours")); $html = <<< EOF
SAFETY & TRAINING PRACTITIONERS |
|
$asses[asseses_info] |
|
NQF LEVEL: $asses[nqf_level] |
Credits : $asses[credits] |
$asses[asseses_name] |
|
CANDIDATE NAME |
$candidate[client_employees_name] |
COY NO |
COY NO |
ID NO. |
$candidate[i_doc_passport] |
MINE |
$client[clients_name] |
ASSESSOR |
$assesor[safesure_users_name] |
ASSESSOR NO |
ASSESSOR NO |
ASSESSMENT DATE |
$asses[date] |
COMPETENT / NYC |
$asses[results] |
CAND. SIGNATURE |
|
ASSESSOR SIGNATURE |
|
DATE |
$date_now |
SAFETY & TRAINING PRACTITIONERS |
|
$asses[asseses_info] |
|
NQF LEVEL: $asses[nqf_level] |
Credits : $asses[credits] |
$asses[asseses_name] |
|
$section[section_name] |
C |
NYC |
COMMENTS |
||
|
$question_index |
$question[question] |
";
if ($question['answer'] == 1) {
$html .= "X | "; $anser_c++; } else { $html .= " |
X | ";
$anser_nyc++;
}
$html .= "
$question[comment] |
|
TOTAL |
$anser_c |
$anser_nyc |
|||
|
ACTIVITY |
COMPETENT |
NYC |
||
|
$section[section_name] | ";
$results = explode("-", $section['subtotal']);
$outcome = round($results[1] / $results[0], 2);
if ($outcome >= $asses['passmark']) {
$html .= "
X |
"; } else { $html .= " |
X | ";
}
$html .= "
|
RESULT |
ASSESSOR’S NAME |
ASSESSOR’S SIGNATURE |
DATE |
|||
|
C |
NYC |
$assesor[safesure_users_name] |
|
$asses[date] | ||
|
X |
"; } else { $html .= " |
X | ";
}
$html .= "
$candidate[client_employees_name] |
|
$asses[date] | |
ENGINEER SIGN |
[SIGNATRUE] |
DATE |
[date] |
|
Name/Surname |
$candidate[client_employees_name] |
ID |
$candidate[i_doc_passport] |
|
COY |
|
DATE |
$asses[date] |
|
I declare that I am in good health and medically fit to undergo this training session and do not suffer from any of the following conditions: |
|
|
1 |
Uncontrolled Epilepsy. |
|
2 |
Liability to sudden attacks of disabling giddiness of fainting due to Hypertension or any other causes |
|
3 |
Any form of mental disorder or defect referred to in section 2(1) and classified in (section 3 of the Mental Disorder act 38 of 1916). |
|
4 |
Addiction to narcotic drugs and/or addiction to excessive intoxicating liquor. |
|
5 |
Any condition causing poor muscular co-ordination. |
|
6 |
Uncontrolled Diabetes Mellitus. |
|
7 |
Any other disease or disability including vision, which is likely to render me incapable of effective operating the class of machine which the certificate of competence referred and without endangering the public or fellow workers. |
|
8 |
Vision deficiencies or impairment. |
I fully understand the above and was under no pressure or obligation to sign this document. Signed at ________________________________ on this __________day of __ _______________20_________
|
Candidate Signature. |
|
Assessor Signature. |
|
Engineer Signature. |
[signature] |
I, $candidate[client_employees_name] $candidate[client_employees_surname], hereby confirm that I have received training in theory and practical on ?LDV?. I confirm that I have been given the opportunity to ask questions and that answers given have been satisfactory. I have signed every section of this training evaluation. I further more undertake to carry out my appointed duties applicable to this equipment in a safe manner and to adhere to all safety aspects as required by Codes of Practice and Safe Working Procedures.
Signature of Candidate |
|
Signature of Assessor; |
|
Date: |
$asses[date]; |