<?php

if (!empty($$class->hr_payroll_id)) {
 $hr_payslip_header_object = hr_payroll_schedule::find_by_parent_id($$class->hr_payroll_id);
 $total_count = count($hr_payslip_header_object);
}else{
 $total_count = 0;
}
 $pageno = !empty($_GET['pageno']) && !is_array($_GET['pageno']) ? $_GET['pageno'] : 1;
 $per_page = (!empty($_GET['per_page'])  && !is_array($_GET['per_page'])) ? $_GET['per_page'] : 10;
 $pagination = new pagination($pageno, $per_page, $total_count);
 $pagination->setProperty('_path', 'form.php?');
 $position = ($pageno - 1) * $per_page;

?>
