<?php 
$admin = $this->session->userdata('isAdmin');
$userRole = $this->session->userdata('userRole');
if(!$admin && $userRole == 1){
redirect("dashboard/home");
$this->session->set_flashdata('message', display('Access not granted'));
}

?>
<link href="<?php echo base_url('application/modules/employee/assets/css/appraisal.css'); ?>" rel="stylesheet"
    type="text/css" />

<style>

</style>

<div class="container" style="width:100%">

    <div class="panel panel-default thumbnail add_emp_appraisal">

        <div class="panel-body">

            <div class="row">
                <div class="col-xs-3">
                    <img class="logo-image" src="<?php echo base_url('assets/img/icons/2017-07-22/HRM.png'); ?>" alt="">
                </div>
                <div class="col-xs-9">
                    <h3><?php echo date('Y'); ?> PERFOMANCE APPRAISAL INTERVIEW FORM</h3>
                </div>
            </div>

            <?php echo form_open('employee/Employees_performance/save_employee_performance') ?>

            <div class="row mt-20" id="general1">
                <div class="col-xs-6 mb-20">
                    <div class="d-flex align-items-center">
                        <label class="w-250">Name of Employee :</label>
                        <!-- <select name="employee_id" id="employeeSelect" class="form-control">

                            <?php foreach ($employee as $key => $value) {?>

                            <option value="<?php echo $key; ?>"><?php echo $value . '(' . $key . ')';
                             ?></option>
                            <?php $duties = isset($user_duties[$key]) ? $user_duties[$key] : null; }?>
                        </select> -->
                        <select name="employee_id" id="employeeSelect" class="form-control">
    <?php if (is_array($employee) || is_object($employee)) { 
        foreach ($employee as $key => $value) {
            // Ensure $user_duties[$key] is an object before accessing its properties
            $duties = isset($user_duties[$key]) ? $user_duties[$key] : null;
            ?>
            <option value="<?php echo htmlspecialchars($key); ?>">
                <?php echo htmlspecialchars($value) . ' (' . htmlspecialchars($key) . ')'; ?>
                <?php if ($duties) { ?>
                    <?php //echo htmlspecialchars($duties->duty_description); // Adjust field name as necessary ?>
                <?php } ?>
            </option>
        <?php } 
    } else {
        echo 'No employees data available.';
    } ?>
</select>

                    </div>
                </div>

                <div class="col-xs-6 mb-20">
                    <div class="input-group d-flex align-items-center">
                        <span class="w-250 fw-700">Review Period :</span>

                        <select id="quarter_select" name="review_period" class="form-control"
                            aria-describedby="basic-addon1">
                            <option value="1st Quarter">1st Quarter</option>
                            <option value="2nd Quarter">2nd Quarter</option>
                            <option value="3rd Quarter">3rd Quarter</option>
                            <option value="4th Quarter">4th Quarter</option>
                        </select>
                    </div>
                </div>

                <div class="col-xs-12 mb-20">
                    <div class="input-group d-flex align-items-center">
                        <span class="w-620 fw-700">Name and Position of Supervisor/Head of Department :</span>
                        <input type="text" name="position_of_supervisor" class="form-control"
                            placeholder="Name and Position of Supervisor/Head of Department"
                            aria-describedby="basic-addon1">
                    </div>
                </div>

                <div class="col-xs-6 mb-20">
                </div>
                <div class="col-xs-6 mb-20">
                    <div class="input-group d-flex align-items-center" id="staff_designation_status">
                       
                        
                    </div>
                </div>
            </div>


            <div class="row" id="employee_info">
                <div class="col-sm-12 col-md-8 employee-cv-info">
                    <div>
                        <div class="col-sm-12 col-md-12 rating-block">
                            <div id="emp_details">
                           
                                <!-- Employee details will be inserted here by JavaScript -->
                            </div>
                        </div>
                    </div>
                </div>

                <div>
        
                    <h4>Academic Qualifications</h4>
                    <div class="table-responsive">
                        <table class="table table-bordered" id="academic_table">
                            <thead>
                                <tr>
                            

<?php 
$user_id_duties = '<span id="user_id_duties"></span>';
$userDuties = '<span id="userDuties"></span>';
echo $user_id_duties;
var_dump($user_duties[$user_id_duties]); 

?>
                                    <th>Name of Institution</th>
                                    <th>Duration (From)</th>
                                    <th>Duration (To)</th>
                                    <th>Qualification(s) Obtained</th>
                                </tr>
                            </thead>
                            <tbody>
                                <!-- Academic qualifications will be inserted here by JavaScript -->
                            </tbody>
                        </table>
                    </div>

                    <div class="table-responsive">
                        <h4>Professional Qualifications</h4>
                        <table class="table table-bordered" id="professional_table">
                            <thead>
                                <tr>
                                    <th>Qualifications</th>
                                    <th>Awarding Body/Society</th>
                                    <th>Date of Award</th>
                                </tr>
                            </thead>
                            <tbody>
                                <!-- Professional qualifications will be inserted here by JavaScript -->
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>

                               

            <div class="row" id="preliminary">
            <div id="new_junior" ></div>
                <!-- Duties will be inserted here by JavaScript -->
            </div>

            <div class="row" id="academic">
               <div id="new_academic">
                    <!-- Duties will be inserted here by JavaScript -->
               </div>
                <h4>3.9 (To be completed by the Head of Department)</h4>
                <table class="table table-bordered">
                    <thead>
                        <colgroup>
                            <col style="width: 40%;">
                            <col style="width: 10%;">
                            <col style="width: 10%;">
                            <col style="width: 10%;">
                            <col style="width: 10%;">
                            <col style="width: 10%;">
                        </colgroup>
                        <tr>
                            <th></th>
                            <th colspan="4" style="border: none; text-align: center;">General Evaluation Grade</th>
                        </tr>
                        <tr class="text-center">
                            <th></th>
                            <th>Poor</th>
                            <th>Fair</th>
                            <th>Good</th>
                            <th>Very Good</th>
                            <th>Excellent</th>
                            <th>Score</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>(a) Quality of Teaching</td>
                            <td><input type="radio" id="quality_teaching_1" name="quality_teaching"
                                    class="quality_teaching" value="1"></td>
                            <td><input type="radio" id="quality_teaching_2" name="quality_teaching"
                                    class="quality_teaching" value="2"></td>
                            <td><input type="radio" id="quality_teaching_3" name="quality_teaching"
                                    class="quality_teaching" value="3"></td>
                            <td><input type="radio" id="quality_teaching_4" name="quality_teaching"
                                    class="quality_teaching" value="4"></td>
                            <td><input type="radio" id="quality_teaching_5" name="quality_teaching"
                                    class="quality_teaching" value="5"></td>
                            <td><input type="number" id="quality_teaching_score" name="quality_teaching_score"
                                    class="form-control review-table assessment_d" aria-describedby="basic-addon1"
                                    value="0"></td>
                        </tr>
                        <tr>
                            <td>(b) Current Research/Exhibition/Innovation/Design</td>
                            <td><input type="radio" id="current_research_1" name="current_research"
                                    class="current_research" value="1"></td>
                            <td><input type="radio" id="current_research_2" name="current_research"
                                    class="current_research" value="2"></td>
                            <td><input type="radio" id="current_research_3" name="current_research"
                                    class="current_research" value="3"></td>
                            <td><input type="radio" id="current_research_4" name="current_research"
                                    class="current_research" value="4"></td>
                            <td><input type="radio" id="current_research_5" name="current_research"
                                    class="current_research" value="5"></td>
                            <td><input type="number" id="current_research_score" name="current_research_score"
                                    class="form-control review-table assessment_d" aria-describedby="basic-addon1"
                                    value="0"></td>
                        </tr>
                        <tr>
                            <td>(c) Quality of Research/Exhibition/Innovation/Design</td>
                            <td><input type="radio" id="quality_research_1" name="quality_research"
                                    class="quality_research" value="1"></td>
                            <td><input type="radio" id="quality_research_2" name="quality_research"
                                    class="quality_research" value="2"></td>
                            <td><input type="radio" id="quality_research_3" name="quality_research"
                                    class="quality_research" value="3"></td>
                            <td><input type="radio" id="quality_research_4" name="quality_research"
                                    class="quality_research" value="4"></td>
                            <td><input type="radio" id="quality_research_5" name="quality_research"
                                    class="quality_research" value="5"></td>
                            <td><input type="number" id="quality_research_score" name="quality_research_score"
                                    class="form-control review-table assessment_d" aria-describedby="basic-addon1"
                                    value="0"></td>
                        </tr>
                        <tr>
                            <td>(d) Quality of Publication/Exhibition/Innovation/Design</td>
                            <td><input type="radio" id="quality_publication_1" name="quality_publication"
                                    class="quality_publication" value="1"></td>
                            <td><input type="radio" id="quality_publication_2" name="quality_publication"
                                    class="quality_publication" value="2"></td>
                            <td><input type="radio" id="quality_publication_3" name="quality_publication"
                                    class="quality_publication" value="3"></td>
                            <td><input type="radio" id="quality_publication_4" name="quality_publication"
                                    class="quality_publication" value="4"></td>
                            <td><input type="radio" id="quality_publication_5" name="quality_publication"
                                    class="quality_publication" value="5"></td>
                            <td><input type="number" id="quality_publication_score" name="quality_publication_score"
                                    class="form-control review-table assessment_d" aria-describedby="basic-addon1"
                                    value="0"></td>
                        </tr>
                        <tr>
                            <td>(e) Other Departmental Responsibilities</td>
                            <td><input type="radio" id="department_responsibilities_1"
                                    name="department_responsibilities" class="department_responsibilities" value="1">
                            </td>
                            <td><input type="radio" id="department_responsibilities_2"
                                    name="department_responsibilities" class="department_responsibilities" value="2">
                            </td>
                            <td><input type="radio" id="department_responsibilities_3"
                                    name="department_responsibilities" class="department_responsibilities" value="3">
                            </td>
                            <td><input type="radio" id="department_responsibilities_4"
                                    name="department_responsibilities" class="department_responsibilities" value="4">
                            </td>
                            <td><input type="radio" id="department_responsibilities_5"
                                    name="department_responsibilities" class="department_responsibilities" value="5">
                            </td>
                            <td><input type="number" id="department_responsibilities_score"
                                    name="department_responsibilities_score"
                                    class="form-control review-table assessment_d" aria-describedby="basic-addon1"
                                    value="0"></td>
                        </tr>
                        <tr>
                            <td>(f) Contribution to the Institute or the Country</td>
                            <td><input type="radio" id="contribution_1" name="contribution" class="contribution"
                                    value="1"></td>
                            <td><input type="radio" id="contribution_2" name="contribution" class="contribution"
                                    value="2"></td>
                            <td><input type="radio" id="contribution_3" name="contribution" class="contribution"
                                    value="3"></td>
                            <td><input type="radio" id="contribution_4" name="contribution" class="contribution"
                                    value="4"></td>
                            <td><input type="radio" id="contribution_5" name="contribution" class="contribution"
                                    value="5"></td>
                            <td><input type="number" id="contribution_score" name="contribution_score"
                                    class="form-control review-table assessment_d" aria-describedby="basic-addon1"
                                    value="0"></td>
                        </tr>
                        <tr>
                            <td>(g) Relationship with Colleagues</td>
                            <td><input type="radio" id="relationship_colleagues_1" name="relationship_colleagues"
                                    class="relationship_colleagues" value="1"></td>
                            <td><input type="radio" id="relationship_colleagues_2" name="relationship_colleagues"
                                    class="relationship_colleagues" value="2"></td>
                            <td><input type="radio" id="relationship_colleagues_3" name="relationship_colleagues"
                                    class="relationship_colleagues" value="3"></td>
                            <td><input type="radio" id="relationship_colleagues_4" name="relationship_colleagues"
                                    class="relationship_colleagues" value="4"></td>
                            <td><input type="radio" id="relationship_colleagues_5" name="relationship_colleagues"
                                    class="relationship_colleagues" value="5"></td>
                            <td><input type="number" id="relationship_colleagues_score"
                                    name="relationship_colleagues_score" class="form-control review-table assessment_d"
                                    aria-describedby="basic-addon1" value="0"></td>
                        </tr>
                        <tr>
                            <td>(h) Acceptance of Responsibility</td>
                            <td><input type="radio" id="acceptance_responsibility_1" name="acceptance_responsibility"
                                    class="acceptance_responsibility" value="1"></td>
                            <td><input type="radio" id="acceptance_responsibility_2" name="acceptance_responsibility"
                                    class="acceptance_responsibility" value="2"></td>
                            <td><input type="radio" id="acceptance_responsibility_3" name="acceptance_responsibility"
                                    class="acceptance_responsibility" value="3"></td>
                            <td><input type="radio" id="acceptance_responsibility_4" name="acceptance_responsibility"
                                    class="acceptance_responsibility" value="4"></td>
                            <td><input type="radio" id="acceptance_responsibility_5" name="acceptance_responsibility"
                                    class="acceptance_responsibility" value="5"></td>
                            <td><input type="number" id="acceptance_responsibility_score"
                                    name="acceptance_responsibility_score"
                                    class="form-control review-table assessment_d" aria-describedby="basic-addon1"
                                    value="0"></td>
                        </tr>
                        <tr>
                            <td>(i) Management of Staff (if applicable)</td>
                            <td><input type="radio" id="management_staff_1" name="management_staff"
                                    class="management_staff" value="1"></td>
                            <td><input type="radio" id="management_staff_2" name="management_staff"
                                    class="management_staff" value="2"></td>
                            <td><input type="radio" id="management_staff_3" name="management_staff"
                                    class="management_staff" value="3"></td>
                            <td><input type="radio" id="management_staff_4" name="management_staff"
                                    class="management_staff" value="4"></td>
                            <td><input type="radio" id="management_staff_5" name="management_staff"
                                    class="management_staff" value="5"></td>
                            <td><input type="number" id="management_staff_score" name="management_staff_score"
                                    class="form-control review-table assessment_d" aria-describedby="basic-addon1"
                                    value="0"></td>
                        </tr>
                        <tr>
                            <td>(j) Punctuality</td>
                            <td><input type="radio" id="punctuality_1" name="punctuality" class="punctuality" value="1">
                            </td>
                            <td><input type="radio" id="punctuality_2" name="punctuality" class="punctuality" value="2">
                            </td>
                            <td><input type="radio" id="punctuality_3" name="punctuality" class="punctuality" value="3">
                            </td>
                            <td><input type="radio" id="punctuality_4" name="punctuality" class="punctuality" value="4">
                            </td>
                            <td><input type="radio" id="punctuality_5" name="punctuality" class="punctuality" value="5">
                            </td>
                            <td><input type="number" id="punctuality_score" name="punctuality_score"
                                    class="form-control review-table assessment_d" aria-describedby="basic-addon1"
                                    value="0"></td>
                        </tr>
                        <tr>
                            <td>(k) Appearance</td>
                            <td><input type="radio" id="appearance_1" name="appearance" class="appearance" value="1">
                            </td>
                            <td><input type="radio" id="appearance_2" name="appearance" class="appearance" value="2">
                            </td>
                            <td><input type="radio" id="appearance_3" name="appearance" class="appearance" value="3">
                            </td>
                            <td><input type="radio" id="appearance_4" name="appearance" class="appearance" value="4">
                            </td>
                            <td><input type="radio" id="appearance_5" name="appearance" class="appearance" value="5">
                            </td>
                            <td><input type="number" id="appearance_score" name="appearance_score"
                                    class="form-control review-table assessment_d" aria-describedby="basic-addon1"
                                    value="0"></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td colspan="5">Total Score </td>
                            <td><input class=" fw-700" style="border:0px; width: 45px;" id="assesment_d_total_score"
                                    name="assesment_d_total_score" value=""><b>%</b>
                            </td>

                        </tr>
                    </tbody>



                </table>
                <h4>General Remarks</h4>
                <table class="table table-bordered">

                    <textarea name="exp_general_remarks" class="form-control"
                        placeholder="Maximum 500 words"></textarea>

                </table>
                <h3>The officer has served under me from <input type="text" id="exp_serve_date_start"
                        name="exp_serve_date_start" class="form-control datepicker"
                        style="width:200px; display: inline-block;     height: 20px;"> to <input type="text"
                        id="exp_serve_date_end" name="exp_serve_date_end" class="form-control datepicker"
                        style="width:200px; display: inline-block;     height: 20px;"></h3>

                <table class="table ">

                    <thead>
                        <tr>
                            <th style="width:50%">Signature:<input type="text" id="exp_signature" name="exp_signature"
                                    class="form-control" style="width:200px; display: inline-block; height: 30px;"></th>
                            <th>Date:<input type="text" id="exp_signature_start" name="exp_signature_date"
                                    class="form-control pl-5 datepicker"
                                    style="width:200px; display: inline-block; height: 30px; padding-left:20px"></th>
                        </tr>
                    </thead>

                </table>
            </div>

            <div class="row" id="tbl">
                <div class="col-xs-12">
                    <p class="fs-17 mb-20 fs-i">Please provide a critical assessment of the performance of the employee
                        within the review period using the following rating scale. Provide examples where applicable.
                        Please use a separate sheet if .
                    </p>
                </div>
                <table class="table table-bordered w-65">
                    <thead>
                        <tr>
                            <th>P</th>
                            <th>FA</th>
                            <th>G</th>
                            <th>VG</th>
                            <th>E</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>Poor</td>
                            <td>Fair</td>
                            <td>Good</td>
                            <td>Very Good</td>
                            <td>Excellent</td>
                        </tr>
                    </tbody>
                </table>
            </div>

            <div class="row" id="annual_performance">
                <h3 class="mb-20"></h3>


                <h3 class="mb-20">B. JOB PERFORMANCE EVALUATION (To be completed by reporting officer)</h3>
                <table class="table table-bordered">
                    <thead>
                        <tr>
                            <th>Criteria</th>
                            <th>P <br> (1)</th>
                            <th>FA <br> (2)</th>
                            <th>G <br> (3)</th>
                            <th>VG <br> (4)</th>
                            <th>E <br> (5)</th>
                            <th>Scores Achieve</th>
                            <th>Comments </th>
                        </tr>
                    </thead>
                    <tbody>
                        <!-- Row 1.1: Quality -->
                        <tr>
                            <td><b>QUALITY</b> Degree to which employee meets established standard</td>
                            <td class="text-center">
                                <input type="radio" id="quality_p" class="quality" name="quality" checked="checked"
                                    value="1">
                                <p>Poor, generally not acceptable</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="quality_fa" class="quality" name="quality" value="2">
                                <p>Below standard, frequent errors</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="quality_g" class="quality" name="quality" value="3">
                                <p>Only normal amount of errors; Quality acceptable</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="quality_vg" class="quality" name="quality" value="4">
                                <p>Consistently good - Above average quality</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="quality_e" class="quality" name="quality" value="5">
                                <p>High quality. Meets all requirements.</p>
                            </td>
                            <td><input type="number" id="quality_score" name="quality_score"
                                    class="form-control review-table assessment_c" aria-describedby="basic-addon1"
                                    value="1"></td>
                            <td><input type="text" name="quality_comments" class="form-control review-table"
                                    aria-describedby="basic-addon1"></td>
                        </tr>

                        <!-- Row 1.2: Work Output -->
                        <tr>
                            <td><b>WORK OUTPUT</b> Amount of work regularly produced</td>
                            <td class="text-center">
                                <input type="radio" id="work_output_p" class="work_output" name="work_output"
                                    checked="checked" value="1">
                                <p>Very low output</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="work_output_ni" class="work_output" name="work_output"
                                    value="2">
                                <p>Fair, Below group average</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="work_output_g" class="work_output" name="work_output" value="3">
                                <p>Normal volume, maintains group average</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="work_output_vg" class="work_output" name="work_output"
                                    value="4">
                                <p>Good volume, above average</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="work_output_e" class="work_output" name="work_output" value="5">
                                <p>Gets a great deal done within a set time frame</p>
                            </td>
                            <td><input type="number" id="work_output_score" name="work_output_score"
                                    class="form-control review-table assessment_c" aria-describedby="basic-addon1"
                                    value="1"></td>
                            <td><input type="text" name="work_output_comments" class="form-control review-table"
                                    aria-describedby="basic-addon1"></td>
                        </tr>

                        <!-- Row 1.3: Dependability -->
                        <tr>
                            <td><b>DEPENDABILITY</b> Ability to do job well with minimum supervision</td>
                            <td class="text-center">
                                <input type="radio" id="dependability_p" class="dependability" name="dependability"
                                    checked="checked" value="1">
                                <p>Requires constant supervision</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="dependability_ni" class="dependability" name="dependability"
                                    value="2">
                                <p>Requires close supervision</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="dependability_g" class="dependability" name="dependability"
                                    value="3">
                                <p>Requires some supervision</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="dependability_vg" class="dependability" name="dependability"
                                    value="4">
                                <p>Requires little supervision</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="dependability_e" class="dependability" name="dependability"
                                    value="5">
                                <p>Requires minimum supervision</p>
                            </td>
                            <td><input type="number" id="dependability_score" name="dependability_score"
                                    class="form-control review-table assessment_c" aria-describedby="basic-addon1"
                                    value="1"></td>
                            <td><input type="text" name="dependability_comments" class="form-control review-table"
                                    aria-describedby="basic-addon1"></td>
                        </tr>

                        <!-- Row 1.4: Job Attitude -->
                        <tr>
                            <td><b>JOB ATTITUDE</b> The real enthusiasm with which he carries out his job</td>
                            <td class="text-center">
                                <input type="radio" id="job_attitude_p" class="job_attitude" name="job_attitude"
                                    checked="checked" value="1">
                                <p>Nonchalant</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="job_attitude_ni" class="job_attitude" name="job_attitude"
                                    value="2">
                                <p>Regularly reminded of his job</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="job_attitude_g" class="job_attitude" name="job_attitude"
                                    value="3">
                                <p>Shows enthusiasm on his job</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="job_attitude_vg" class="job_attitude" name="job_attitude"
                                    value="4">
                                <p>Dedicated to the job</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="job_attitude_e" class="job_attitude" name="job_attitude"
                                    value="5">
                                <p>Highly dedicated, committed to his job</p>
                            </td>
                            <td><input type="number" id="job_attitude_score" name="job_attitude_score"
                                    class="form-control review-table assessment_c" aria-describedby="basic-addon1"
                                    value="1"></td>
                            <td><input type="text" name="job_attitude_comments" class="form-control review-table"
                                    aria-describedby="basic-addon1"></td>
                        </tr>

                        <!-- Row 1.5: Adaptability -->
                        <tr>
                            <td><b>ADAPTABILITY</b> Ability to adjust quickly to job change</td>
                            <td class="text-center">
                                <input type="radio" id="adaptability_p" class="adaptability" name="adaptability"
                                    checked="checked" value="1">
                                <p>Does not adapt easily</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="adaptability_ni" class="adaptability" name="adaptability"
                                    value="2">
                                <p>Adjusts to new situations fairly easily</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="adaptability_g" class="adaptability" name="adaptability"
                                    value="3">
                                <p>Can be relied upon to adjust easily to new situations most of the time</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="adaptability_vg" class="adaptability" name="adaptability"
                                    value="4">
                                <p>Highly adaptable to all situations</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="adaptability_e" class="adaptability" name="adaptability"
                                    value="5">
                                <p>Highly adaptable to all situations</p>
                            </td>
                            <td><input type="number" id="adaptability_score" name="adaptability_score"
                                    class="form-control review-table assessment_c" aria-describedby="basic-addon1"
                                    value="1"></td>
                            <td><input type="text" name="adaptability_comments" class="form-control review-table"
                                    aria-describedby="basic-addon1"></td>
                        </tr>
                        <!-- Row 1.6: Job Knowledge -->
                        <tr>
                            <td><b>JOB KNOWLEDGE H</b> Possession of information & understanding of job requirements
                            </td>
                            <td class="text-center">
                                <input type="radio" id="job_knowledge_p" class="job_knowledge" name="job_knowledge"
                                    checked="checked" value="1">
                                <p>Has acquired no skills to do selected work</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="job_knowledge_ni" class="job_knowledge" name="job_knowledge"
                                    value="2">
                                <p>Has acquired enough skill to do selected work</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="job_knowledge_g" class="job_knowledge" name="job_knowledge"
                                    value="3">
                                <p>Has acquired enough skill to do just enough work</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="job_knowledge_vg" class="job_knowledge" name="job_knowledge"
                                    value="4">
                                <p>Has acquired enough skill to do most work </p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="job_knowledge_e" class="job_knowledge" name="job_knowledge"
                                    value="5">
                                <p>Has acquired all necessary skill to do all work </p>
                            </td>
                            <td><input type="number" id="job_knowledge_score" name="job_knowledge_score"
                                    class="form-control review-table assessment_c" aria-describedby="basic-addon1"
                                    value="1"></td>
                            <td><input type="text" name="job_knowledge_comments" class="form-control review-table"
                                    aria-describedby="basic-addon1"></td>
                        </tr>

                        <!-- Row 1.7: Attendance -->
                        <tr>
                            <td><b>ATTENDANCE</b> Faithfulness in coming to work daily and conforming to work</td>
                            <td class="text-center">
                                <input type="radio" id="attendance_p" class="attendance" name="attendance"
                                    checked="checked" value="1">
                                <p>Often absent without valid excuse and/or frequently late to work</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="attendance_ni" class="attendance" name="attendance" value="2">
                                <p>Occasionally lax in attendance and in timekeeping</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="attendance_g" class="attendance" name="attendance" value="3">
                                <p>Usually present and on time</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="attendance_vg" class="attendance" name="attendance" value="4">
                                <p>Regular and prompt, willing to work extra hours in the interest of the job</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="attendance_e" class="attendance" name="attendance" value="5">
                                <p>Inspiring, ready to help, an excellent team builder</p>
                            </td>
                            <td><input type="number" id="attendance_score" name="attendance_score"
                                    class="form-control review-table assessment_c" aria-describedby="basic-addon1"
                                    value="1"></td>
                            <td><input type="text" name="attendance_comments" class="form-control review-table"
                                    aria-describedby="basic-addon1"></td>
                        </tr>
                        <!-- Row 1.8: PHYSICAL FITNESS -->
                        <tr>
                            <td><b>PHYSICAL FITNESS</b> Endurance, Energy, Strength, Handicap or Disabilities, Frequency
                                of sick leave</td>
                            <td class="text-center">
                                <input type="radio" id="physical_fitness_p" class="physical_fitness"
                                    name="physical_fitness" checked="checked" value="1">
                                <p>Discourteous, antagonistic</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="physical_fitness_ni" class="physical_fitness"
                                    name="physical_fitness" value="2">
                                <p>Sometimes tactless</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="physical_fitness_g" class="physical_fitness"
                                    name="physical_fitness" value="3">
                                <p>Meets physical and energy job requirements</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="physical_fitness_vg" class="physical_fitness"
                                    name="physical_fitness" value="4">
                                <p>Energetic; seldom tires</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="physical_fitness_e" class="physical_fitness"
                                    name="physical_fitness" value="5">
                                <p>Excellent health; no fatigue</p>
                            </td>
                            <td><input type="number" id="physical_fitness_score" name="physical_fitness_score"
                                    class="form-control review-table assessment_c" aria-describedby="basic-addon1"
                                    value="1"></td>
                            <td><input type="text" name="physical_fitness_comments" class="form-control review-table"
                                    aria-describedby="basic-addon1"></td>
                        </tr>

                        <!-- Row 1.9: COOPERATIVENESS -->
                        <tr>
                            <td><b>COOPERATIVENESS</b> Attitude towards Institute's fellow employees and the public</td>
                            <td class="text-center">
                                <input type="radio" id="cooperativeness_p" class="cooperativeness"
                                    name="cooperativeness" checked="checked" value="1">
                                <p>Unable to learn and difficult to teach, forgetful</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="cooperativeness_ni" class="cooperativeness"
                                    name="cooperativeness" value="2">
                                <p>Slow to learn and to use past experience</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="cooperativeness_g" class="cooperativeness"
                                    name="cooperativeness" value="3">
                                <p>Agreeable and pleasant</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="cooperativeness_vg" class="cooperativeness"
                                    name="cooperativeness" value="4">
                                <p>Always polite and willing to help</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="cooperativeness_e" class="cooperativeness"
                                    name="cooperativeness" value="5">
                                <p>Inspiring to others, courteous, and very pleasant</p>
                            </td>
                            <td><input type="number" id="cooperativeness_score" name="cooperativeness_score"
                                    class="form-control review-table assessment_c" aria-describedby="basic-addon1"
                                    value="1"></td>
                            <td><input type="text" name="cooperativeness_comments" class="form-control review-table"
                                    aria-describedby="basic-addon1"></td>
                        </tr>

                        <!-- Row 1.10: LEARNING CAPACITY -->
                        <tr>
                            <td><b>LEARNING CAPACITY</b> Ability to learn new job procedures, instructions, speed,
                                retention of learning, profits from past mistakes</td>
                            <td class="text-center">
                                <input type="radio" id="learning_capacity_p" class="learning_capacity"
                                    name="learning_capacity" checked="checked" value="1">
                                <p>Unable to learn and difficult to teach, forgetful</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="learning_capacity_ni" class="learning_capacity"
                                    name="learning_capacity" value="2">
                                <p>Slow to learn and to use past experience</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="learning_capacity_g" class="learning_capacity"
                                    name="learning_capacity" value="3">
                                <p>Willing and able to learn under normal situations</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="learning_capacity_vg" class="learning_capacity"
                                    name="learning_capacity" value="4">
                                <p>Self-motivated to learn and use past knowledge and experience</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="learning_capacity_e" class="learning_capacity"
                                    name="learning_capacity" value="5">
                                <p>Highly intelligent, skilled, fast to learn</p>
                            </td>
                            <td><input type="number" id="learning_capacity_score" name="learning_capacity_score"
                                    class="form-control review-table assessment_c" aria-describedby="basic-addon1"
                                    value="1"></td>
                            <td><input type="text" name="learning_capacity_comments" class="form-control review-table"
                                    aria-describedby="basic-addon1"></td>
                        </tr>


                    </tbody>
                    <tfoot>
                        <tr>
                            <td colspan="6" class="text-right"><strong>Total Score:</strong></td>
                            <td><input class=" fw-700" style="border:0px; width: 45px;" id="assesment_c_total_score"
                                    name="assesment_c_total_score" value=""><b>%</b></td>
                            <td></td>
                        </tr>
                    </tfoot>
                </table>
            </div>

            <div class="row" id="academic_and_non_academic_1">
            <div id="new_academic_and_non_academic_1">
                <!-- Duties will be inserted here by JavaScript -->
            </div>
            </div>

            <div class="row" id="management_staff">
                <div id="new_management_staff">
                <h3 class="mb-20">PART 4 PERFORMANCE CRITERIA</h3>
                <h3>(To be completed by the Reporting Officer) Please tick the column that most accurately describe your
                    rating</h3>
                <table class="table table-bordered">
                    <thead>
                        <tr>
                            <th>4.1</th>
                            <th>LEADERSHIP/PERSONNEL BUILDING</th>
                            <th>P <br> (1)</th>
                            <th>FA <br> (2)</th>
                            <th>G <br> (3)</th>
                            <th>VG <br> (4)</th>
                            <th>E <br> (5)</th>
                            <th>Scores Achieve</th>
                            <th>Comments </th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td></td>
                            <td>Please consider the following factors: <br /><br />
                                Does he develop subordinates, build team morale, comunicate, motivate staff, command
                                respect and inspire; has he drive and determination; is he sympathetic yet firm and
                                decisive?
                            </td>
                            <td class="text-center"><input type="radio" id="leadership_p" class="leadership mt-5"
                                    name="leadership" checked="checked" value="1">

                            </td>
                            <td class="text-center"><input type="radio" id="leadership_ni" class="leadership"
                                    name="leadership" value="2">

                            </td>
                            <td class="text-center"><input type="radio" id="leadership_g" class="leadership"
                                    name="leadership" value="3">

                            </td>
                            <td class="text-center"><input type="radio" id="leadership_vg" class="leadership"
                                    name="leadership" value="4">

                            </td>
                            <td class="text-center"><input type="radio" id="leadership_e" class="leadership"
                                    name="leadership" value="5">

                            </td>
                            <td><input type="number" id="leadership_score" name="leadership_score"
                                    class="form-control review-table assessment_b" aria-describedby="basic-addon1"
                                    value="1"></td>
                            <td><input type="text" name="leadership_commnets" class="form-control review-table"
                                    aria-describedby="basic-addon1"></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>Examples of "DEMONSTRATED LEADERSHIP/PERSONNEL BUILDING" that describe your ratings:
                            </td>
                            <td colspan="7"><textarea id="leadership_build_p" class="form-control leadership_build "
                                    style=" border:1px solid #e4e5e7" name="leadership_build">
                            </textarea>


                            </td>
                            <!-- <td><input type="number" id="leadership_build_score" name="leadership_build_score"
                                    class="form-control review-table assessment_b" aria-describedby="basic-addon1"
                                    value="1" readonly></td>
                            <td><input type="text" name="leadership_build_commnets" class="form-control review-table"
                                    aria-describedby="basic-addon1"></td> -->
                        </tr>
                    </tbody>
                </table>

                <table class="table table-bordered">
                    <thead>
                        <tr>
                            <th>4.2</th>
                            <th>DECISION MAKING CAPABILITY</th>
                            <th>P <br> (1)</th>
                            <th>FA <br> (2)</th>
                            <th>G <br> (3)</th>
                            <th>VG <br> (4)</th>
                            <th>E <br> (5)</th>
                            <th>Scores Achieve</th>
                            <th>Comments </th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td></td>
                            <td>Please consider the following factors: <br /><br />
                                Has the ability to specify aims and objectives correctly, analyse issues, couageously
                                make correct decisions and follow through implementation
                            </td>
                            <td class="text-center"><input type="radio" id="decision_making_cap1_p"
                                    class="decision_making_cap1 mt-5" name="decision_making_cap1" checked="checked"
                                    value="1">

                            </td>
                            <td class="text-center"><input type="radio" id="decision_making_cap1_ni"
                                    class="decision_making_cap1" name="decision_making_cap1" value="2">

                            </td>
                            <td class="text-center"><input type="radio" id="decision_making_cap1_g"
                                    class="decision_making_cap1" name="decision_making_cap1" value="3">

                            </td>
                            <td class="text-center"><input type="radio" id="decision_making_cap1_vg"
                                    class="decision_making_cap1" name="decision_making_cap1" value="4">

                            </td>
                            <td class="text-center"><input type="radio" id="decision_making_cap1_e"
                                    class="decision_making_cap1" name="decision_making_cap1" value="5">

                            </td>
                            <td><input type="number" id="decision_making_cap1_score" name="decision_making_cap1_score"
                                    class="form-control review-table assessment_b" aria-describedby="basic-addon1"
                                    value="1"></td>
                            <td><input type="text" name="decision_making_cap1_commnets"
                                    class="form-control review-table" aria-describedby="basic-addon1"></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>Does he accept responsibility for his decisions?
                            </td>
                            <td class="text-center"><input type="radio" id="decision_making_cap2_p"
                                    class="decision_making_cap2 mt-5" name="decision_making_cap2" checked="checked"
                                    value="1">

                            </td>
                            <td class="text-center"><input type="radio" id="decision_making_cap2_ni"
                                    class="decision_making_cap2" name="decision_making_cap2" value="2">

                            </td>
                            <td class="text-center"><input type="radio" id="decision_making_cap2_g"
                                    class="decision_making_cap2" name="decision_making_cap2" value="3">

                            </td>
                            <td class="text-center"><input type="radio" id="decision_making_cap2_vg"
                                    class="decision_making_cap2" name="decision_making_cap2" value="4">

                            </td>
                            <td class="text-center"><input type="radio" id="decision_making_cap2_e"
                                    class="decision_making_cap2" name="decision_making_cap2" value="5">

                            </td>
                            <td><input type="number" id="decision_making_cap2_score" name="decision_making_cap2_score"
                                    class="form-control review-table assessment_b" aria-describedby="basic-addon1"
                                    value="1"></td>
                            <td><input type="text" name="decision_making_cap2_commnets"
                                    class="form-control review-table" aria-describedby="basic-addon1"></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>Does he encourage surbodinates to take decisions?
                            </td>
                            <td class="text-center"><input type="radio" id="decision_making_cap3_p"
                                    class="decision_making_cap3 mt-5" name="decision_making_cap3" checked="checked"
                                    value="1">

                            </td>
                            <td class="text-center"><input type="radio" id="decision_making_cap3_ni"
                                    class="decision_making_cap3" name="decision_making_cap2" value="2">

                            </td>
                            <td class="text-center"><input type="radio" id="decision_making_cap3_g"
                                    class="decision_making_cap3" name="decision_making_cap3" value="3">

                            </td>
                            <td class="text-center"><input type="radio" id="decision_making_cap3_vg"
                                    class="decision_making_cap3" name="decision_making_cap3" value="4">

                            </td>
                            <td class="text-center"><input type="radio" id="decision_making_cap3_e"
                                    class="decision_making_cap3" name="decision_making_cap3" value="5">

                            </td>
                            <td><input type="number" id="decision_making_cap3_score" name="decision_making_cap3_score"
                                    class="form-control review-table assessment_b" aria-describedby="basic-addon1"
                                    value="1"></td>
                            <td><input type="text" name="decision_making_cap3_commnets"
                                    class="form-control review-table" aria-describedby="basic-addon1"></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>Examples of "DECISION MAKING CAPABILITY" that describe your ratings:
                            </td>
                            <td colspan="7"><textarea id="decision_making_cap4_p"
                                    class="form-control decision_making_cap4 " style="border:1px solid #e4e5e7"
                                    name="decision_making_cap4">
                            </textarea>
                            </td>

                            <!-- <td><input type="number" id="decision_making_cap4_score" name="decision_making_cap4_score"
                                    class="form-control review-table assessment_b" aria-describedby="basic-addon1"
                                    value="1"></td>
                            <td><input type="text" name="decision_making_cap4_commnets"
                                    class="form-control review-table" aria-describedby="basic-addon1"></td>
                        -->
                        </tr>
                    </tbody>
                </table>

                <table class="table table-bordered">
                    <thead>
                        <tr>
                            <th>4.3</th>
                            <th>MANAGEMENT COMPETENCE</th>
                            <th>P <br> (1)</th>
                            <th>FA <br> (2)</th>
                            <th>G <br> (3)</th>
                            <th>VG <br> (4)</th>
                            <th>E <br> (5)</th>
                            <th>Scores Achieve</th>
                            <th>Comments </th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td></td>
                            <td>Please consider the following factors: <br /><br />
                                Does he analyse problems competently, set realistic goals, establish pirorities
                                correctly?
                            </td>
                            <td class="text-center"><input type="radio" id="management_com1_p"
                                    class="management_com1 mt-5" name="management_com1" checked="checked" value="1">

                            </td>
                            <td class="text-center"><input type="radio" id="management_com1_ni" class="management_com1"
                                    name="management_com1" value="2">

                            </td>
                            <td class="text-center"><input type="radio" id="management_com1_g" class="management_com1"
                                    name="management_com1" value="3">

                            </td>
                            <td class="text-center"><input type="radio" id="management_com1_vg" class="management_com1"
                                    name="management_com1" value="4">

                            </td>
                            <td class="text-center"><input type="radio" id="management_com1_e" class="management_com1"
                                    name="management_com1" value="5">

                            </td>
                            <td><input type="number" id="management_com1_score" name="management_com1_score"
                                    class="form-control review-table assessment_b" aria-describedby="basic-addon1"
                                    value="1"></td>
                            <td><input type="text" name="management_com1_commnets" class="form-control review-table"
                                    aria-describedby="basic-addon1"></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>How does he organise resources, evaluate results?
                            </td>
                            <td class="text-center"><input type="radio" id="management_com2_p"
                                    class="management_com2 mt-5" name="management_com2" checked="checked" value="1">

                            </td>
                            <td class="text-center"><input type="radio" id="management_com2_ni" class="management_com2"
                                    name="management_com2" value="2">

                            </td>
                            <td class="text-center"><input type="radio" id="management_com2_g" class="management_com2"
                                    name="management_com2" value="3">

                            </td>
                            <td class="text-center"><input type="radio" id="management_com2_vg" class="management_com2"
                                    name="management_com2" value="4">

                            </td>
                            <td class="text-center"><input type="radio" id="management_com2_e" class="management_com2"
                                    name="management_com2" value="5">

                            </td>
                            <td><input type="number" id="management_com2_score" name="management_com2_score"
                                    class="form-control review-table assessment_b" aria-describedby="basic-addon1"
                                    value="1"></td>
                            <td><input type="text" name="management_com2_commnets" class="form-control review-table"
                                    aria-describedby="basic-addon1"></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>Is he innovative and creative
                            </td>
                            <td class="text-center"><input type="radio" id="management_com3_p"
                                    class="management_com3 mt-5" name="management_com3" checked="checked" value="1">

                            </td>
                            <td class="text-center"><input type="radio" id="management_com3_ni" class="management_com3"
                                    name="management_com3" value="2">

                            </td>
                            <td class="text-center"><input type="radio" id="management_com3_g" class="management_com3"
                                    name="management_com3" value="3">

                            </td>
                            <td class="text-center"><input type="radio" id="management_com3_vg" class="management_com3"
                                    name="management_com3" value="4">

                            </td>
                            <td class="text-center"><input type="radio" id="management_com3_e" class="management_com3"
                                    name="management_com3" value="5">

                            </td>
                            <td><input type="number" id="management_com3_score" name="management_com3_score"
                                    class="form-control review-table assessment_b" aria-describedby="basic-addon1"
                                    value="1"></td>
                            <td><input type="text" name="management_com3_commnets" class="form-control review-table"
                                    aria-describedby="basic-addon1"></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>Examples of "DEMOSTRATED MANAGEMENT COMPETENCE" that describe your ratings:
                            </td>
                            <td colspan="7"><textarea id="management_com4_p" class="form-control management_com4 "
                                    style="border:1px solid #e4e5e7" name="management_com4">
                            </textarea>
                            </td>

                            <!-- <td><input type="number" id="management_com4_score" name="management_com4_score"
                                    class="form-control review-table assessment_b" aria-describedby="basic-addon1"
                                    value="1"></td>
                            <td><input type="text" name="management_com4_commnets" class="form-control review-table"
                                    aria-describedby="basic-addon1"></td> -->
                        </tr>
                    </tbody>
                </table>

                <table class="table table-bordered">
                    <thead>
                        <tr>
                            <th>4.4</th>
                            <th>FUNCTIONAL EFFECTIVENESS</th>
                            <th>P <br> (1)</th>
                            <th>FA <br> (2)</th>
                            <th>G <br> (3)</th>
                            <th>VG <br> (4)</th>
                            <th>E <br> (5)</th>
                            <th>Scores Achieve</th>
                            <th>Comments </th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td></td>
                            <td>Please consider the following factors: <br /><br />
                                Does he meet deadlines, initiate solutions, achieve customer satisfaction, generate
                                profit, effectivly manaage budget?
                            </td>
                            <td class="text-center"><input type="radio" id="functional1_p" class="functional1 mt-5"
                                    name="functional1" checked="checked" value="1">

                            </td>
                            <td class="text-center"><input type="radio" id="functional1_ni" class="functional1"
                                    name="functional1" value="2">

                            </td>
                            <td class="text-center"><input type="radio" id="functional1_g" class="functional1"
                                    name="functional1" value="3">

                            </td>
                            <td class="text-center"><input type="radio" id="functional1_vg" class="functional1"
                                    name="functional1" value="4">

                            </td>
                            <td class="text-center"><input type="radio" id="functional1_e" class="functional1"
                                    name="functional1" value="5">

                            </td>
                            <td><input type="number" id="functional1_score" name="functional1_score"
                                    class="form-control review-table assessment_b" aria-describedby="basic-addon1"
                                    value="1"></td>
                            <td><input type="text" name="functional1_commnets" class="form-control review-table"
                                    aria-describedby="basic-addon1"></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>Does he achieve balance between, job quality and quantity?
                            </td>
                            <td class="text-center"><input type="radio" id="functional2_p" class="functional2 mt-5"
                                    name="functional2" checked="checked" value="1">

                            </td>
                            <td class="text-center"><input type="radio" id="functional2_ni" class="functional2"
                                    name="functional2" value="2">

                            </td>
                            <td class="text-center"><input type="radio" id="functional2_g" class="functional2"
                                    name="functional2" value="3">

                            </td>
                            <td class="text-center"><input type="radio" id="functional2_vg" class="functional2"
                                    name="functional2" value="4">

                            </td>
                            <td class="text-center"><input type="radio" id="functional2_e" class="functional2"
                                    name="functional2" value="5">

                            </td>
                            <td><input type="number" id="functional2_score" name="functional2_score"
                                    class="form-control review-table assessment_b" aria-describedby="basic-addon1"
                                    value="1"></td>
                            <td><input type="text" name="functional2_commnets" class="form-control review-table"
                                    aria-describedby="basic-addon1"></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>Is he efficient (input / output on time basis)?
                            </td>
                            <td class="text-center"><input type="radio" id="functional3_p" class="functional3 mt-5"
                                    name="functional3" checked="checked" value="1">

                            </td>
                            <td class="text-center"><input type="radio" id="functional3_ni" class="functional3"
                                    name="functional2" value="2">

                            </td>
                            <td class="text-center"><input type="radio" id="functional3_g" class="functional3"
                                    name="functional3" value="3">

                            </td>
                            <td class="text-center"><input type="radio" id="functional3_vg" class="functional3"
                                    name="functional3" value="4">

                            </td>
                            <td class="text-center"><input type="radio" id="functional3_e" class="functional3"
                                    name="functional3" value="5">

                            </td>
                            <td><input type="number" id="functional3_score" name="functional3_score"
                                    class="form-control review-table assessment_b" aria-describedby="basic-addon1"
                                    value="1"></td>
                            <td><input type="text" name="functional3_commnets" class="form-control review-table"
                                    aria-describedby="basic-addon1"></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>Examples of "DEMOSTRATED MANAGEMENT COMPETENCE" that describe your ratings:
                            </td>
                            <td colspan="7"><textarea id="functional4_p" class="form-control functional4 "
                                    style=" border:1px solid #e4e5e7" name="functional4">
                            </textarea>
                            </td>

                            <!-- <td><input type="number" id="functional4_score" name="functional4_score"
                                    class="form-control review-table assessment_b" aria-describedby="basic-addon1"
                                    value="1"></td>
                            <td><input type="text" name="functional4_commnets" class="form-control review-table"
                                    aria-describedby="basic-addon1"></td> -->
                        </tr>
                        <tr>
                            <!-- <td></td>
                            <td colspan="5">Total Score </td>
                            <td><span class="pl-15 fw-700" id="assesment_b_total_score">%</span></td>

                        </tr> -->
                    </tbody>
                    <tfoot>
                        <tr>
                            <td></td>
                            <td>Total Score:</td>
                            <td><input style="border:0px; width: 45px;" class="pl-15 fw-700"
                                    id="assesment_b_total_score" name="assesment_b_total_score">%</td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td></td>
                        </tr>
                    </tfoot>
                </table>
            </div>
            </div>


            <div class="row" id="tb">
                <div class="col-xs-12">
                    <p class="fs-17 mb-20 fs-i">Please provide a critical assessment of the performance of the employee
                        within the review period using the following rating scale. Provide examples where applicable.
                        Please use a separate sheet if .
                    </p>
                </div>
                <table class="table table-bordered w-65">
                    <thead>
                        <tr>
                            <th>P</th>
                            <th>FA</th>
                            <th>G</th>
                            <th>VG</th>
                            <th>E</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>Poor</td>
                            <td>Fair</td>
                            <td>Good</td>
                            <td>Very Good</td>
                            <td>Excellent</td>
                        </tr>
                    </tbody>
                </table>
            </div>


            <div class="row" id="academic_and_non_academic_2">
                <h3 class="mb-20">PART 4: PERFORMANCE CRITERIA (to be comleted by reporting officer) <br> (Tick the
                    appropriate column that best describes the officers rating)</h3>
                <table class="table table-bordered">
                    <thead>
                        <tr>
                            <th>Criteria</th>
                            <th>P <br> (1)</th>
                            <th>FA <br> (2)</th>
                            <th>G <br> (3)</th>
                            <th>VG <br> (4)</th>
                            <th>E <br> (5)</th>
                            <th>Scores Achieve</th>
                            <th>Comments </th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td><b>JOB KNOWLEDGE</b> Posession of information , and understanding of job requirements
                            </td>
                            <td class="text-center"><input type="radio" id="demonstrated_p" class="demonstrated"
                                    name="demonstrated" checked="checked" value="1">
                                <p>Has acquied no skill and can do little work</p>
                            </td>
                            <td class="text-center"><input type="radio" id="demonstrated_ni" class="demonstrated"
                                    name="demonstrated" value="2">
                                <p>Has acquied enough skill to do selected work</p>
                            </td>
                            <td class="text-center"><input type="radio" id="demonstrated_g" class="demonstrated"
                                    name="demonstrated" value="3">
                                <p>Has acquied enough skill to do just enough work</p>
                            </td>
                            <td class="text-center"><input type="radio" id="demonstrated_vg" class="demonstrated"
                                    name="demonstrated" value="4">
                                <p>Has acquied enough skill to do most work </p>
                            </td>
                            <td class="text-center"><input type="radio" id="demonstrated_e" class="demonstrated"
                                    name="demonstrated" value="5">
                                <p>Has acquied all necessary skill to do all work </p>
                            </td>
                            <td><input type="number" id="demonstrated_score" name="demonstrated_score"
                                    class="form-control review-table assessment_a" aria-describedby="basic-addon1"
                                    value="1"></td>
                            <td><input type="text" name="demonstrated_comments" class="form-control review-table"
                                    aria-describedby="basic-addon1"></td>
                        </tr>
                        <tr>
                            <td><b>Oranization </b>Effectiveness in controlling and completing tasks according to
                                priority</td>
                            <td class="text-center"><input type="radio" id="timeliness_p" class="timeliness"
                                    name="timeliness" checked="checked" value="1">
                                <p>Unorganized; often confused and unable to identify priorities</p>
                            </td>
                            <td class="text-center"><input type="radio" id="timeliness_ni" class="timeliness"
                                    name="timeliness" value="2">
                                <p>Some times shows evidence of being in control of situations data and resources.</p>
                            </td>
                            <td class="text-center"><input type="radio" id="timeliness_g" class="timeliness"
                                    name="timeliness" value="3">
                                <p>Show ability to plan and control activities according to priority</p>
                            </td>
                            <td class="text-center"><input type="radio" id="timeliness_vg" class="timeliness"
                                    name="timeliness" value="4">
                                <p>Effective in identifying most priority areas and information</p>
                            </td>
                            <td class="text-center"><input type="radio" id="timeliness_e" class="timeliness"
                                    name="timeliness" value="5">
                                <p>Always very effective in ordering his priorities and outstanding in ability to use
                                    time and resources
                            </td>
                            <td><input type="number" id="timeliness_score" name="timeliness_score"
                                    class="form-control review-table assessment_a" aria-describedby="basic-addon1"
                                    value="1"></td>
                            <td><input type="text" name="timeliness_score_commnets" class="form-control review-table"
                                    aria-describedby="basic-addon1"></td>
                        </tr>
                        <tr>
                            <td><b>Job Skills</b> Proficiency in major job related skills e.g record-keeping, typing,
                                short hand, transcription etc</td>
                            <td class="text-center"><input type="radio" id="impact_p" class="impact" name="impact"
                                    checked="checked" value="1">
                                <p>Lack the necessary skills needed for the job</p>
                            </td>
                            <td class="text-center"><input type="radio" id="impact_ni" class="impact" name="impact"
                                    value="2">
                                <p>Has some skills needed for efficient performance of the job</p>
                            </td>
                            <td class="text-center"><input type="radio" id="impact_g" class="impact" name="impact"
                                    value="3">
                                <p>Shows enough proficiency in the skill needed for the job</p>
                            </td>
                            <td class="text-center"><input type="radio" id="impact_vg" class="impact" name="impact"
                                    value="4">
                                <p>Very proficient in he skills needed for the job</p>
                            </td>
                            <td class="text-center"><input type="radio" id="impact_e" class="impact" name="impact"
                                    value="5">
                                <p>outstandingly proficient in all the skills needed for the job</p>
                            </td>
                            <td><input type="number" id="impact_score" name="impact_score"
                                    class="form-control review-table assessment_a" aria-describedby="basic-addon1"
                                    value="1"></td>
                            <td><input type="text" name="impact_score_commnets" class="form-control review-table"
                                    aria-describedby="basic-addon1"></td>
                        </tr>
                        <tr>
                            <td><b>Initiative</b> Ability to take independent actions as by the job,
                                self-motivating</td>
                            <td class="text-center"><input type="radio" id="overall_p" class="overall" name="overall"
                                    checked="checked" value="1">
                                <p>Does not work well even under guidance</p>
                            </td>
                            <td class="text-center"><input type="radio" id="overall_ni" class="overall" name="overall"
                                    value="2">
                                <p>Only works well under guidance</p>
                            </td>
                            <td class="text-center"><input type="radio" id="overall_g" class="overall" name="overall"
                                    value="3">
                                <p>Shows satisfactory initiative and acceptance of responsibility</p>
                            </td>
                            <td class="text-center"><input type="radio" id="overall_vg" class="overall" name="overall"
                                    value="4">
                                <p>Demostrate high degree of initiative and acceptance of responsibility</p>
                            </td>
                            <td class="text-center"><input type="radio" id="overall_e" class="overall" name="overall"
                                    value="5">
                                <p>Always shows outstanding initiative and high degree of acceptance of responsibility
                                    self-motivating</p>
                            </td>
                            <td><input type="number" id="overall_score" name="overall_score"
                                    class="form-control review-table assessment_a" aria-describedby="basic-addon1"
                                    value="1"></td>
                            <td><input type="text" name="overall_score_commnets" class="form-control review-table"
                                    aria-describedby="basic-addon1"></td>
                        </tr>
                        <tr>
                            <td><b>Leadership</b> Skills in supervising, coaching and develop others</td>
                            <td class="text-center"><input type="radio" id="interpersonal_p" class="interpersonal"
                                    name="interpersonal" checked="checked" value="1">
                                <p>frustrate subordinate, lacks drive and initiative</p>
                            </td>
                            <td class="text-center"><input type="radio" id="interpersonal_ni" class="interpersonal"
                                    name="interpersonal" value="2">
                                <p>Shows concessional intiative, control and drive</p>
                            </td>
                            <td class="text-center"><input type="radio" id="interpersonal_g" class="interpersonal"
                                    name="interpersonal" value="3">
                                <p>Demostrate enough initiative, control and drive</p>
                            </td>
                            <td class="text-center"><input type="radio" id="interpersonal_vg" class="interpersonal"
                                    name="interpersonal" value="4">
                                <p>Has a high degree of initiative, control and drive</p>
                            </td>
                            <td class="text-center"><input type="radio" id="interpersonal_e" class="interpersonal"
                                    name="interpersonal" value="5">
                                <p>Has a high degree of initiative, control and drive
                            </td>
                            <td><input type="number" id="interpersonal_score" name="interpersonal_score"
                                    class="form-control review-table assessment_a" aria-describedby="basic-addon1"
                                    value="1"></td>
                            <td><input type="text" name="interpersonal_commnets" class="form-control review-table"
                                    aria-describedby="basic-addon1"></td>
                        </tr>
                        <tr>
                            <td><b>Work Relationship</b> Effectiveness in working with other employees to accomplish
                                objectives</td>
                            <td class="text-center">
                                <input type="radio" id="work_relationship_p" class="work_relationship"
                                    name="work_relationship" checked="checked" value="1">
                                <p>Very distant and aloof usually antagonistic and uncooperative</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="work_relationship_ni" class="work_relationship"
                                    name="work_relationship" value="2">
                                <p>Shows concessional initiative, control and drive</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="work_relationship_g" class="work_relationship"
                                    name="work_relationship" value="3">
                                <p>One of the team warm, cooperative and sociable</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="work_relationship_vg" class="work_relationship"
                                    name="work_relationship" value="4">
                                <p>Always friendly and cooperative. A team man tactful</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="work_relationship_e" class="work_relationship"
                                    name="work_relationship" value="5">
                                <p>Inspiring ready to help an excellent team builder</p>
                            </td>
                            <td>
                                <input type="number" id="work_relationship_score" name="work_relationship_score"
                                    class="form-control review-table assessment_a" aria-describedby="basic-addon1"
                                    value="1">
                            </td>
                            <td>
                                <input type="text" name="work_relationship_comments" class="form-control review-table"
                                    aria-describedby="basic-addon1">
                            </td>
                        </tr>

                        <tr>
                            <td><b>Reliability</b> Flexibility to commit experience and times the job demand punctually
                                and regularity</td>
                            <td class="text-center"><input type="radio" id="communication_p" class="communication"
                                    name="communication" checked="checked" value="1">
                                <p>Can hardly be depended upon to perform outside routine situation</p>
                            </td>
                            <td class="text-center"><input type="radio" id="communication_ni" class="communication"
                                    name="communication" value="2">
                                <p>Just able to perform under pressure</p>
                            </td>
                            <td class="text-center"><input type="radio" id="communication_g" class="communication"
                                    name="communication" value="3">
                                <p>Does perform well under pressure and in change circumstances</p>
                            </td>
                            <td class="text-center"><input type="radio" id="communication_vg" class="communication"
                                    name="communication" value="4">
                                <p>Perform very well in all situations, even under pressure</p>
                            </td>
                            <td class="text-center"><input type="radio" id="communication_e" class="communication"
                                    name="communication" value="5">
                                <p>Can be relied upon for outstanding performance in all situations</p>
                            </td>
                            <td><input type="number" id="communication_score" name="communication_score"
                                    class="form-control review-table assessment_a" aria-describedby="basic-addon1"
                                    value="1"></td>
                            <td><input type="text" name="communication_commnets" class="form-control review-table"
                                    aria-describedby="basic-addon1"></td>
                        </tr>
                        <tr>
                            <td><b>Communication Skills</b> Ability to present ideas and information concisely and
                                effectively, orally in writing, ability to listen to others and understand their views
                            </td>
                            <td class="text-center"><input type="radio" id="contributing_p" class="contributing"
                                    name="contributing" checked="checked" value="1">
                                <p>Unable to express thoughts, lack organization. A poor listener unable to understand
                                    the views of others</p>
                            </td>
                            <td class="text-center"><input type="radio" id="contributing_ni" class="contributing"
                                    name="contributing" value="2">
                                <p>Thoughts express after guidance, considerable vetting a fire listener, just
                                    able to understand views of others</p>
                            </td>
                            <td class="text-center"><input type="radio" id="contributing_g" class="contributing"
                                    name="contributing" value="3">
                                <p>Usually organizes and expresses thoughts clearly and concisely in speech and writing.
                                    A good listener, recognizes others views</p>
                            </td>
                            <td class="text-center"><input type="radio" id="contributing_vg" class="contributing"
                                    name="contributing" value="4">
                                <p>Consistently able to express ideas clearly andconcisely in speech and in writing
                                    listen to and appreciate others view point</p>
                            </td>
                            <td class="text-center"><input type="radio" id="contributing_e" class="contributing"
                                    name="contributing" value="5">
                                <p>Has outstanding ability to communicate ideas to others in speech and in writing.
                                    Excellent listener, sympathetic to others viw point</p>
                            </td>
                            <td><input type="number" id="contributing_score" name="contributing_score"
                                    class="form-control review-table assessment_a" aria-describedby="basic-addon1"
                                    value="1"></td>
                            <td><input type="text" name="contributing_commnets" class="form-control review-table"
                                    aria-describedby="basic-addon1"></td>
                        </tr>
                        <tr>
                            <td><b>Problem Solving</b> Possession of Analytical and conceptual skills, creativity,
                                ability to identify new opportunities</td>
                            <td class="text-center">
                                <input type="radio" id="problem_solving_p" class="problem_solving"
                                    name="problem_solving" checked="checked" value="1">
                                <p>Overwhelmed by every problem unable to see different aspects of an issue</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="problem_solving_ni" class="problem_solving"
                                    name="problem_solving" value="2">
                                <p>Able to see through some issues and solve simple problems</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="problem_solving_g" class="problem_solving"
                                    name="problem_solving" value="3">
                                <p>Has ability to analyze problems and solve most of them</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="problem_solving_vg" class="problem_solving"
                                    name="problem_solving" value="4">
                                <p>Has an analytical mind and skill to identify and solve all problems</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="problem_solving_e" class="problem_solving"
                                    name="problem_solving" value="5">
                                <p>Exceptionally capable of solving even complex problems and identify new opportunities
                                </p>
                            </td>
                            <td><input type="number" id="problem_solving_score" name="problem_solving_score"
                                    class="form-control review-table assessment_a" aria-describedby="basic-addon1"
                                    value="1"></td>
                            <td><input type="text" name="problem_solving_comments" class="form-control review-table"
                                    aria-describedby="basic-addon1"></td>
                        </tr>

                        <tr>
                            <td><b>Decision Making</b> Possession of sound judgment as reflected in results</td>
                            <td class="text-center">
                                <input type="radio" id="decision_making_p" class="decision_making"
                                    name="decision_making" checked="checked" value="1">
                                <p>Decisions and recommendations are wrong most of the time</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="decision_making_ni" class="decision_making"
                                    name="decision_making" value="2">
                                <p>Judgment is generally fair and occasional errors are common</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="decision_making_g" class="decision_making"
                                    name="decision_making" value="3">
                                <p>Judgment and assessment are regularly sound</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="decision_making_vg" class="decision_making"
                                    name="decision_making" value="4">
                                <p>A sound and logical thinker who assesses all factors effectively even on complex
                                    issues</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="decision_making_e" class="decision_making"
                                    name="decision_making" value="5">
                                <p>Consistently arrives at right decisions</p>
                            </td>
                            <td><input type="number" id="decision_making_score" name="decision_making_score"
                                    class="form-control review-table assessment_a" aria-describedby="basic-addon1"
                                    value="1"></td>
                            <td><input type="text" name="decision_making_comments" class="form-control review-table"
                                    aria-describedby="basic-addon1"></td>
                        </tr>

                        <tr>
                            <td><b>Managerial Potentials</b> Ability to organize, delegate, and control; being aware of
                                the cost, commercial, and political implications of decisions</td>
                            <td class="text-center">
                                <input type="radio" id="managerial_potentials_p" class="managerial_potentials"
                                    name="managerial_potentials" checked="checked" value="1">
                                <p>Unable to plan, control, or use resources efficiently</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="managerial_potentials_ni" class="managerial_potentials"
                                    name="managerial_potentials" value="2">
                                <p>Shows some ability at organization, control, and use of resources</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="managerial_potentials_g" class="managerial_potentials"
                                    name="managerial_potentials" value="3">
                                <p>Able to organize, control, monitor, and use resources efficiently</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="managerial_potentials_vg" class="managerial_potentials"
                                    name="managerial_potentials" value="4">
                                <p>Proficient in the arts of planning, organizing, controlling, and monitoring; uses
                                    resources very efficiently</p>
                            </td>
                            <td class="text-center">
                                <input type="radio" id="managerial_potentials_e" class="managerial_potentials"
                                    name="managerial_potentials" value="5">
                                <p>Exceptionally competent in organization, planning, and monitoring, and the
                                    maximization of resources</p>
                            </td>
                            <td><input type="number" id="managerial_potentials_score" name="managerial_potentials_score"
                                    class="form-control review-table assessment_a" aria-describedby="basic-addon1"
                                    value="1"></td>
                            <td><input type="text" name="managerial_potentials_comments"
                                    class="form-control review-table" aria-describedby="basic-addon1"></td>
                        </tr>



                        <tr>
                            <td></td>
                            <td colspan="5">Total Score </td>
                            <td><input class="pl-15 fw-700" style="border:0px; width: 45px;"
                                    name="assesment_a_total_score" id="assesment_a_total_score">%</td>
                            <td><input type="text" class="form-control review-table assesment_total_score_commnets"
                                    aria-describedby="basic-addon1"></td>
                        </tr>



                    </tbody>

                </table>

            </div>

            <div class="row" id="general2">
                <h3 class="mb-20">PART 5: EMPLOYEE'S STRENGHT <br> (To be completed by reporting officer) </h3>
                <table class="table table-bordered" id="request_table_strenght">
                    <thead>
                        <tr>
                        <tr>
                            <th>MAJOR STRENGHT</th>
                            <th>CAN BE USED MORE EFFECTIVELY BY DOING THE FOLLOWING</th>

                            <!-- <tr>
                            <td><b>Briefly List the major responsibilities, in order of importance for each responsibility. Note specific goals set during period under review<b></td>
                            <td><b>Rating the employee on each task and target by commenting the grade that most accurately describe your rating.<br><br> Rating Criteria:POOR, FAIR, GOOD, VERY GOOD, EXCLELENT</b>
                            </td> -->
                            <!-- <th class="text-center"><?//php echo display('action') ?> <i class="text-danger"></i></th> -->
                        </tr>


                        </tr>
                    </thead>
                    <tbody id="request_item">
                        <tr>
                            <td><textarea id="major_strength" name="major_strength[]" class="form-control" rows="2"
                                    placeholder=""></textarea></td>
                            <td><input type="text" id="strenght" name="major_strenght_effect[]" class="form-control">
                            </td>

                            <td width="100">
                                <a id="add_major_strength" class="btn btn-info btn-sm" name="add-invoice-item"
                                    onClick="add_major_strength('request_item')" tabindex="9"><i
                                        class="fa fa-plus-square" aria-hidden="true"></i></a>
                                <a class="btn btn-danger btn-sm" value="<?php echo display('delete') ?>"
                                    onclick="deleteRow(this)" tabindex="3"><i class="fa fa-trash"
                                        aria-hidden="true"></i></a>
                            </td>
                        </tr>
                    </tbody>


                </table>



            </div>

            <div class="row" id="general3">
                <h3 class="mb-20">EMPLOYEE'S WEAKNESSES</h3>
                <table class="table table-bordered" id="request_table">
                    <thead>
                        <tr>
                        <tr>
                            <th>MAJOR WEAKNESSES</th>
                            <th>CAN BE CORRECTED BY DOING THE FOLLOWING</th>

                            <!-- <tr>
                            <td><b>Briefly List the major responsibilities, in order of importance for each responsibility. Note specific goals set during period under review<b></td>
                            <td><b>Rating the employee on each task and target by commenting the grade that most accurately describe your rating.<br><br> Rating Criteria:POOR, FAIR, GOOD, VERY GOOD, EXCLELENT</b>
                            </td> -->
                            <!-- <th class="text-center"><?//php echo display('action') ?> <i class="text-danger"></i></th> -->
                        </tr>


                        </tr>
                    </thead>
                    <tbody id="request_item_weak">
                        <tr>
                            <td><textarea id="major_weakness" name="major_weakness[]" class="form-control" rows="2"
                                    placeholder=""></textarea></td>
                            <td><input type="text" id="weakness" name="major_weakness_correction[]"
                                    class="form-control"></td>

                            <td width="100">
                                <a id="add_major_weakness" class="btn btn-info btn-sm" name="add-invoice-item"
                                    onClick="add_major_weakness('request_item_weak')" tabindex="9"><i
                                        class="fa fa-plus-square" aria-hidden="true"></i></a>
                                <a class="btn btn-danger btn-sm" value="<?php echo display('delete') ?>"
                                    onclick="deleteRow(this)" tabindex="3"><i class="fa fa-trash"
                                        aria-hidden="true"></i></a>
                            </td>
                        </tr>
                    </tbody>

                </table>



            </div>

            <div class="row" id="general4">
                <h3 class="mb-20">C: ASSESSMENT OF EMPLOYEE'S POTENTIAL FOR GROWTH <br> (To be completed by reporting
                    officer)</h3>
                <div id="checkbox-container">
                    <label><input type="checkbox" name="very_high" class="checkbox" value="4"> VERY HIGH</label>
                    <label><input type="checkbox" name="above_average" class="checkbox" value="3"> ABOVE AVERAGE</label>
                    <label><input type="checkbox" name="average" class="checkbox" value="2"> AVERAGE</label>
                    <label><input type="checkbox" name="limited" class="checkbox" value="1"> LIMITED</label>

                    <input type="text" style="border:0px; width: 45px;" id="employee_growth" name="employee_growth"
                        value="" style="border:0px" readonly>
                </div>
                <h4 class="mb-20">Please comment and make recommedations</h4>
                <textarea name="growth_comments" class="form-control mb-20" placeholder="Maximum 500 words"></textarea>
            </div>

            <div class="row" id="general5">
                <h3 class="mb-20">Part 6: OVERALL EVALUATION <br> (To be completed by reporting officer)</h3>
                <div id="checkbox-container-2">
                    <div class="checkbox-2">
                        <input type="checkbox" id="checkbox-1-2" name="checkbox-group-2" class="checkbox-group-2"
                            value="1">
                        <label for="checkbox-1-2">Definitely Unsatisfactory</label>
                    </div>
                    <div class="checkbox-2">
                        <input type="checkbox" id="checkbox-2-2" name="checkbox-group-2" class="checkbox-group-2"
                            value="2">
                        <label for="checkbox-2-2">Substandard but making progress</label>
                    </div>
                    <div class="checkbox-2">
                        <input type="checkbox" id="checkbox-3-2" name="checkbox-group-2" class="checkbox-group-2"
                            value="2">
                        <label for="checkbox-3-2">Doing an Average job</label>
                    </div>
                    <div class="checkbox-2">
                        <input type="checkbox" id="checkbox-4-2" name="checkbox-group-2" class="checkbox-group-2"
                            value="4">
                        <label for="checkbox-4-2">Definitely above Average</label>
                    </div>
                    <div class="checkbox-2">
                        <input type="checkbox" id="checkbox-5-2" name="checkbox-group-2" class="checkbox-group-2"
                            value="5">
                        <label for="checkbox-5-2">Outstanding</label>
                    </div>
                </div>
                <input type="text" style="border:0px; width: 45px;" id="overall_evaluation" name="overall_evaluation"
                    value="" style="border:0px" readonly>
            </div>

            <div class="row" id="general6">
                <h3 class="mb-20" style="margin-top:20px">E. COMMENTS BY EMPLOYEE</h3>
                <table class="table table-bordered">

                    <textarea id="employee_comments" name="employee_comments" class="form-control" placeholder="Maximum 500 words" value="N/A" readonly></textarea>

                </table>

            </div>

            <div class="row" id="general7">
                <h3 class="mb-20">F. TRAINING NEEDS</h3>
                <table class="table table-bordered" id="request_table_dev_plan">
                    <thead>
                        <tr>
                            <th width="20%">TRAINING RECOMMENDATIONS</th>
                            <th width="20%">OBJECTIVES TO BE ACHIEVED AS A RESULT OF THE TRAINING</th>
                            <th width="20%"> Responsible Person(s) to assist in the achievement of the Plan</th>
                            <th width="13%">Start Date</th>
                            <th width="13%">End Date</th>
                            <th width="13%">Action</th>
                        </tr>
                    </thead>
                    <tbody id="key_dev_plan_item">
                        <tr>
                            <td>
                                <textarea name="recommand_areas[]" class="form-control" placeholder=""></textarea>
                            </td>
                            <td>
                                <textarea name="expected_outcomes[]" class="form-control" placeholder=""></textarea>
                            </td>
                            <td><input type="text" id="responsible_person" name="responsible_person[]"
                                    class="form-control"></td>
                            <td><input type="text" id="start_date" name="start_date[]" class="form-control datepicker">
                            </td>
                            <td><input type="text" id="end_date" name="end_date[]" class="form-control datepicker"></td>

                            <td width="100">

                                <a id="add_dev_plan" class="btn btn-info btn-sm" name="add-invoice-item"
                                    onClick="add_dev_plans('request_item')" tabindex="9"><i class="fa fa-plus-square"
                                        aria-hidden="true"></i></a>
                                <a class="btn btn-danger btn-sm" value="<?php echo display('delete') ?>"
                                    onclick="deleteDevPlanRow(this)" tabindex="3"><i class="fa fa-trash"
                                        aria-hidden="true"></i></a>

                            </td>
                        </tr>
                    </tbody>
                </table>

            </div>

            <div class="row" id="general8">
                <h3>Part 9: REWARD AND MOTIVATION RECOMMENDATION</h3>
                <h4>(To be completed by reporting officer) Taking Cognisance of the overall performance individual
                    circumstances of the employee and the Corporate Policy on Reward and Motivation (Tick the
                    appropriate box(es))</h4>
                <table>
                    <tr>
                        <td><label><input type="checkbox" name="promotion" class="checkbox1" value="1">
                                Promotion</label></td>
                        <td style="padding:10px">Post <input type="text" id="reward_promotion" name="reward_promotion"
                                class="form-control"></td>
                        <td>Salary Category <input type="text" id="reward_salary" name="reward_salary"
                                class="form-control"></td>
                    </tr>
                    <tr>
                        <td><label><input type="checkbox" name="merit_award" class="checkbox1" value="2"> Merit
                                Award</label></td>
                        <td style="padding:10px">Amount <input type="text" id="reward_amount_merit"
                                name="reward_amount_merit" class="form-control"></td>
                        <td>Also attach citation <input type="text" id="reward_citation" name="reward_citation"
                                class="form-control"></td>
                    </tr>
                    <tr>
                        <td><label><input type="checkbox" name="annual_increment" class="checkbox1" value="3"> Annual
                                Increment</label></td>
                        <td style="padding:10px">% Amount <input type="text" id="reward_amount_annual"
                                name="reward_amount_annual" class="form-control"></td>

                    </tr>
                    <tr>
                        <td><label><input type="checkbox" name="other_increment" class="checkbox1" value="4"> Other
                                Increment</label></td>
                        <td style="padding:10px">Specify <input type="text" id="reward_sprcify" name="reward_sprcify"
                                class="form-control"></td>

                    </tr>
                    <tr>
                        <td><label><input type="checkbox" name="redeployment" class="checkbox1" value="5">
                                Redeployment</label></td>
                        <td style="padding:10px">To what job <input type="text" id="reward_job" name="reward_job"
                                class="form-control"></td>

                    </tr>
                    <tr>
                        <td><label><input type="checkbox" name="disciplinary_action" class="checkbox1" value="6">
                                Disciplinary Action</label></td>
                        <td style="padding:10px">Department <input type="text" id="reward_dept" name="reward_dept"
                                class="form-control"></td>
                        <td>Specify <input type="text" id="reward_specify" name="reward_specify" class="form-control">
                        </td>
                    </tr>
                </table>
                <h4 class="mb-20">Please comment and make recommedations</h4>
                <textarea name="reward_comments" class="form-control mb-20" placeholder="Maximum 500 words"></textarea>
            </div>

            <div class="row" id="general9">
                <h3 class="mb-20">F. TOTAL SCORE</h3>
                <table class="table table-bordered">
                    <thead>
                        <tr>
                            <th>Total Score: <input class="pl-15 fw-700" style="border:0px; width: 45px;"
                                    id="calculatedScore" name="calculatedScore" value="" />%</th>
                            <th>Reporting Officer </th>
                            <th>Countersigning Officer<br>
                                <label>
                                    <input type="checkbox" id="counter"> same as Reporting officer
                                </label>
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>
                                <!-- <div class="d-flex">
                                    <p class="fw-700" id="score_a">0</p>
                                    <span>&nbsp;+</span>
                                    <p class="pl-15 fw-700" id="score_b">0</p>
                                    <span>&nbsp;=</span>
                                     <p class="pl-15 fw-700" id="score_final">0</p>
                                </div> -->
                                <div>
                                    <p class="fw-700">Classification of Employee:</p>
                                </div>
                                <div class="d-flex">
                                    <p class="fw-700">EE <br> (80-100)</p>
                                    <p class="pl-15 fw-700">AE <br> (75-85)</p>
                                    <p class="pl-15 fw-700">UE <br> (0-70)</p>
                                </div>
                            </td>
                            <td id="sign">
                                <div>
                                    <p class="fw-700">Name: <input class="pl-15 fw-700" style="border:0px; "
                                            id="signingOfficerName" name="signingOfficerName"
                                            value="<?php echo $this->session->userdata('fullname') ?>" /></p>
                                </div>
                                <div>
                                    <p class="fw-700">Signature:
                                        <input class="pl-15 fw-700" style="border:0px; " id="signingOfficerSignature"
                                            name="signingOfficerSignature"
                                            value="<?php echo $this->session->userdata('fullname') ?>" />
                                    </p>
                                </div>
                                <div>
                                    <p class="fw-700">Date: <input class="pl-15 fw-700" style="border:0px; "
                                            id="signingOfficerDate" name="signingOfficerDate"
                                            value="<?php echo date('d/M/y')  ?>" /></p>
                                </div>
                                <div>
                                    <p class="fw-700">Designation: <input class="pl-15 fw-700" style="border:0px; "
                                            id="signingOfficerDesignation" name="signingOfficerDesignation" value="<?php if ($this->session->userdata('userRole') == 1) {
                                        echo "";
                                    } else{
                                        echo "Appraisal Officer"; echo $this->session->userdata('userRole');
                                    } ?>" /></p>
                                </div>
                                <div>
                                    <p class="fw-700">Next Review Period: <input class="pl-15 fw-700"
                                            style="border:0px; " id="signingOfficerNRDate" name="signingOfficerNRDate"
                                            value=" <?php 
                                    $date = new DateTime();
                                    $date->modify('+3 months');
                                    echo $date->format('M/Y');
                                ?>" /></p>
                                 <input type="hidden" name="signingOfficeremail" value="<?php echo $this->session->userdata('email') ?>">
                                </div>
                            </td>
                            <td id="counter-sign">
                                <div>
                                    <p class="fw-700">Name: <input class="pl-15 fw-700" style="border:0px; "
                                            id="counterOfficerName" name="counterOfficerName" value="" /></p>
                                </div>
                                <div>
                                    <p class="fw-700">Signature:
                                        <input class="pl-15 fw-700" style="border:0px; " id="counterOfficerSignature"
                                            name="counterOfficerSignature" value="" />
                                    </p>
                                </div>
                                <div>
                                    <p class="fw-700">Date: <input class="pl-15 fw-700" style="border:0px; "
                                            id="counterOfficerDate" name="counterOfficerDate" value="" /></p>
                                </div>
                                <div>
                                    <p class="fw-700">Designation: <input class="pl-15 fw-700" style="border:0px; "
                                            id="counterOfficerDesignation" name="counterOfficerDesignation" value="" />
                                    </p>
                                </div>
                                <div>
                                    <p class="fw-700">Next Review Period: <input class="pl-15 fw-700"
                                            style="border:0px; " id="counterOfficerNRDate" name="counterOfficerNRDate"
                                            value="" /></p>
                                            
                                </div>
                            </td>

                        </tr>

                    </tbody>
                </table>

            </div>


            <div class="form-group form-group-margin text-right">

                <button type="submit" class="btn btn-success w-md m-b-5"><?php echo display('save') ?></button>
            </div>
            <?php echo form_close() ?>

        </div>

    </div>

</div>

<script src="<?php echo MOD_URL . 'employee/assets/js/add_emp_appraisal.js'; ?>" type="text/javascript"></script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script>
// Get all checkboxes
const checkboxes = document.querySelectorAll('.checkbox');

// Variable to store the selected option
let selectedOption = null;

// Function to handle checkbox change event
function handleCheckboxChange() {
    // Uncheck all checkboxes except the one clicked
    checkboxes.forEach(cb => {
        if (cb !== this) {
            cb.checked = false;
        }
    });
    // Update the selected option
    selectedOption = this.value;
    // Update the demo text
    document.getElementById('employee_growth').value = selectedOption;
}

// Add event listener to each checkbox
checkboxes.forEach(checkbox => {
    checkbox.addEventListener('change', handleCheckboxChange);
});

// Get all checkboxes
const checkboxes2 = document.querySelectorAll('.checkbox-group-2');

// Variable to store the selected option
let selectedOption2 = null;

// Function to handle checkbox change event
function handleCheckboxChange2(event) {
    if (event.target.checked) {
        // Uncheck all checkboxes except the one clicked
        checkboxes2.forEach(item => {
            if (item !== event.target) {
                item.checked = false;
            }
        });
        // Update the selected option
        selectedOption2 = event.target.value;
        // Update the demo text
        document.getElementById('overall_evaluation').value = selectedOption2;
    }
}

// Add event listener to each checkbox
checkboxes2.forEach(checkbox => {
    checkbox.addEventListener('click', handleCheckboxChange2);
});


document.getElementById('counter').addEventListener('change', function() {
    if (this.checked) {
        // Get the content from the "sign" td
        var signContent = document.getElementById('sign').innerHTML;

        // Set the content to the "counter-sign" td
        document.getElementById('counter-sign').innerHTML = signContent;
    } else {
        // Optionally clear the content of "counter-sign" if unchecked
        document.getElementById('counter-sign').innerHTML = `
            <div>
                <p class="fw-700">Name:</p>
            </div>
            <div>
                <p class="fw-700">Signature:</p>
            </div>
            <div>
                <p class="fw-700">Date:</p>
            </div>
            <div>
                <p class="fw-700">Designation:</p>
            </div>
            <div>
                <p class="fw-700">Next Review Period:</p>
            </div>
        `;
    }
});
$(document).ready(function() {
    $('#employeeSelect').change(function() {
        var employeeID = $(this).val();

        if (employeeID) {
            $.ajax({
                type: 'POST',
                url: '<?php echo site_url('employee/Employees_performance/fetch_employee_info') ?>',
                data: {
                    employee_id: employeeID
                },
                dataType: 'json',
                success: function(response) {
                    if (response.error) {
                        alert(response.error);
                    } else {
                        
                        $('#user_id_duties').html(response.duties_id);
                        // Show the div with the employee select dropdown
                        $('#selectStaffApp').show();

                        // Populate the employee select dropdown
                        $('#staff_designation_status').html(response.emp_select_html);

                        // Show the employee info section
                        $('#employee_info').show();

                        // Populate employee details
                        $('#emp_details').html(response.emp_details_html);

                        // Populate academic qualifications
                        $('#academic_table tbody').html(response.academic_html);

                        // Populate professional qualifications
                        $('#professional_table tbody').html(response.professional_html);
                      
                        sendUpdatedValue();
                          $('employee_comments').value = "N/A";

                    }
                },
                error: function(xhr, status, error) {
                    alert('Failed to fetch employee info. Status: ' + status + ', Error: ' + error);
                }
            });
        } else {
            // Hide the employee info section if no employee is selected
            $('#employee_info').hide();
        }
    });



    // Function to send updated value to server
    function sendUpdatedValue() {
        var updatedValue = $('#user_id_duties').text(); // Get updated text

        $.ajax({
            type: 'POST',
            url: '<?php echo site_url('employee/Employees_performance/getduties') ?>',
            data: {
                updated_value: updatedValue
            },
            dataType: 'json',
            success: function(response) {
               // initializeJavaScriptFunctions();
                $('#new_junior').html(response.preliminary);
                $('#new_academic').html(response.academic);
                $('#new_academic_and_non_academic_1').html(response.non_academic);
                //$('#new_management_staff').html(response.management_staff)
                
                //console.log(response)
 
            },
            error: function(xhr, status, error) {
                console.error('Failed to send updated value:', status, error);
            }
        });
    }

    
});

$(document).ready(function() {
    initializeJavaScriptFunctions();
});
</script>
