<?php

if (!empty($_GET['hr_location_id'])) {
 $hr_location_id_h = $_GET['hr_location_id'];
 $perdiem_rate_object = hr_perdiem_rate::find_by_hrLocationId($hr_location_id_h);
} else {
 $hr_location_id_h = null;
 }

 
if(empty($perdiem_rate_object)){
 $perdiem_rate_object = [new hr_perdiem_rate()];
}

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

?>