<?php

if (!empty($_GET['prj_project_type_header_id'])) {
 $prj_project_type_header_id_h = $_GET['prj_project_type_header_id'];
} else {
 $prj_project_type_header_id_h = null;
}

if (!empty($_GET['accounting_group'])) {
 $accounting_group_h = $_GET['accounting_group'];
} else {
 $accounting_group_h = null;
}

$default_account_object = prj_default_account::find_all_by_projectTypeHeaderId($prj_project_type_header_id_h, $accounting_group_h);

if (empty($default_account_object)) {
 $default_account_object = [new prj_default_account()];
}

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