<?php

if (!empty($_GET['country_code'])) {
 $country_code_h = $_GET['country_code'];
 $sales_region_object = ar_sales_region::find_all_by_countryCode($country_code_h);
} else {
 $country_code_h = null;
 }

 
if(empty($sales_region_object)){
 $sales_region_object = [new ar_sales_region()];
}

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

?>