<?php

if (!empty($_GET['org_id'])) {
 $org_id_h = $_GET['org_id'];
 $location_default_object = inv_location_default::find_all_by_OrgId($org_id_h);
} else if (!empty($_GET['inv_location_default_id'])) {
 $org_id_h = $$class->org_id;
 $location_default_object  = [$$class];
} else {
 $org_id_h = null;
}


if (empty($location_default_object)) {
 $location_default_object = [new inv_location_default()];
}

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