<?php
if (!empty($_GET['employee_id'])) {
 $employee_id_h = $_GET['employee_id'];
 $employee_experience_object = hr_employee_experience::find_by_employeeId($employee_id_h);
} else {
 $employee_id_h = null;
 
}
if(empty($employee_experience_object)){
 $employee_experience_object = [new hr_employee_experience()];
}

$pageno = !empty($_GET['pageno']) ? $_GET['pageno'] : 1;
$per_page = !empty($_GET['per_page']) ? $_GET['per_page'] : 10;
$total_count = count($employee_experience_object);
$pagination = new pagination($pageno, $per_page, $total_count);
$pagination->setProperty('_path', 'form');
$position = ($pageno - 1) * $per_page;

if(!empty($_SESSION['user_id'])){
 $hr_emp_list = array(hr_employee::find_by_userId($_SESSION['user_id']));
}else{
 $hr_emp_list = array(new hr_employee());
}

?>