Sorry, you are not authorized to access this page.
Please contact your system support for assistance.
Thank you!
Sorry, you are not authorized to access this page.
Please contact your system support for assistance.
Thank you!
Sorry, you are not authorized to access this page.
Please contact your system support for assistance.
Thank you!
Sorry, you are not authorized to access this page.
Please contact your system support for assistance.
Thank you!
Sorry, you are not authorized to access this page.
Please contact your system support for assistance.
Thank you!
Sorry, you are not authorized to access this page.
Please contact your system support for assistance.
Thank you!
KRA DESCIPRTION | WEIGHT | KPI DESCRIPTION | TARGET | ACTUAL | A. RATE | AVG. SCORE | W.POINT | "; echo "".getEmpKRAName($kraID)[0]." | "; echo ""; $wpoint = $row['pcp_weight']; echo $wpoint; echo " | "; echo "";
echo "
| ";
echo "";
echo "
| ";
echo "";
echo "
| ";
echo "";
echo "
| ";
echo ""; if($sem == 0){ $getActualVG ="SELECT AVG(`my_score`) AS 'myAVGScore' FROM `mar_emp_data` WHERE `emp_rec_id`='$empID' AND `deleted`=0 AND `kra_id`='$kraID' AND `mar_year_data`='$rptYear' LIMIT 1"; }else{ $getActualVG ="SELECT AVG(`my_score`) AS 'myAVGScore' FROM `mar_emp_data` WHERE `emp_rec_id`='$empID' AND `deleted`=0 AND `kra_id`='$kraID' AND `mar_year_data`='$rptYear' AND `mar_semester_data`='$sem' LIMIT 1"; } $qActualVG = mysqli_query($conn,$getActualVG); while($act = mysqli_fetch_array($qActualVG)){ $wp =number_format(($act['myAVGScore']),2,'.','')."%"; echo $wp; } echo " | "; echo ""; $As = str_replace("%","",$wp); $Bs = str_replace("%","",$wpoint); $weightedPoints = ($As / $Bs) ; $weightedPoints = ($As/100) / ($Bs/100); $weightedPointsTotal =$weightedPointsTotal + $weightedPoints; echo number_format($weightedPoints,3,'.') ."%"; echo " | "; echo ""; } ?>
---|