exec_query('assesses', ['*'], '', '', '', '', "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 = << td { padding: 20px; font-size: 12px; } tr{ padding: 20px; }

SAFETY & TRAINING PRACTITIONERS

$asses[assesses_info]

NQF LEVEL: $asses[nqf_level]

Credits : $asses[credits]

$asses[assesses_name]

Vehicle Model: $asses[vehicle_model]



CANDIDATE NAME

$candidate[client_employees_name]

COY NO

$candidate[company_number]

ID NO.

$candidate[i_doc_passport]

MINE

$client[clients_name]

ASSESSOR

$assesor[safesure_users_name]

ASSESSOR NO

$assesor[assesor_number]

ASSESSMENT DATE

$asses[date]

COMPETENT / NYC

$asses[results]

CAND. SIGNATURE

ASSESSOR SIGNATURE

DATE

$date_now

EOF; $pdf->inject_html($html); $html = <<

SAFETY & TRAINING PRACTITIONERS

$asses[assesses_info]

NQF LEVEL: $asses[nqf_level]

Credits : $asses[credits]

$asses[assesses_name]



EOF; $sections_res = $db->exec_query('assesses_sections', ['*'], '', '', '', '', "assesses_id = {$asses['record_id']}"); while ($section = $sections_res->fetch_assoc()) { $html .= " "; $question_res = $db->exec_query('assesses_section_questions', ['*'], '', '', '', '', "assesses_section_id = {$section['record_id']}"); $question_index = 1; $anser_nyc = 0; $anser_c = 0; while ($question = $question_res->fetch_assoc()) { $html .= " "; $anser_c++; } else { $html .= "

"; $anser_nyc++; } $html .= " "; $question_index++; } $html .= <<

$section[section_name]

C

NYC

COMMENTS

$question_index

$question[question]

"; if ($question['answer'] == 1) { $html .= "

X

X

$question[comment]

TOTAL

$anser_c

$anser_nyc



EOF; } $pdf->inject_html($html); $html = <<

RECOMMENDATIONS FOR IMPROVEMENT RELATED TO OPERATING TECHNIQUES

$asses[notes]
EOF; $pdf->inject_html($html); $html = "

ASSESSMENT OUTCME AND FEEDBACK

"; $sections_res = $db->exec_query('assesses_sections', ['*'], '', '', '', '', "assesses_id = {$asses['record_id']}"); while ($section = $sections_res->fetch_assoc()) { $html .= " "; $results = explode("-", $section['subtotal']); $outcome = round($results[1] / $results[0], 2); if ($outcome >= $asses['passmark']) { $html .= ""; } else { $html .= ""; } $html .= " "; } $html .= "

ACTIVITY

COMPETENT

NYC

$section[section_name]

X

X

"; $pdf->inject_html($html); $html = "

FINAL ASSESSMENT - ACCEPTANCE

"; if ($asses['results'] == 'C') { $html .= " "; } else { $html .= " "; } $html .= "

RESULT

ASSESSOR’S NAME

ASSESSOR’S SIGNATURE

DATE

C

NYC

$assesor[safesure_users_name]

$asses[date]

X

X

$candidate[client_employees_name]

$asses[date]
"; $pdf->inject_html($html); // $html = " //

// // // // // // // //
//

ENGINEER SIGN

//
//

[SIGNATRUE]

//
//

DATE

//
//

[date]

//
// "; // $pdf->inject_html($html); $html = ""; $html = "

$asses[assesses_name]

DECLARATION OF FITNESS

Name/Surname

$candidate[client_employees_name]

ID

$candidate[i_doc_passport]

COY

$candidate[company_number]

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 on " . date('Y-m-d') . "


Candidate Signature.

Assessor Signature.

CONFORMATION OF TRAINING

I, $candidate[client_employees_name] $candidate[client_employees_surname], hereby confirm that I have received training in theory and practical on $asses[assesses_name]. 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]

Photo of Candidate:

"; $pdf->inject_html($html);