<?php

if (!empty($_GET['org_id'])) {
 $org_id_h = $_GET['org_id'];
 $document_sequence_object = sys_document_sequence::find_all($org_id_h);
} else {
 $org_id_h = null;
 }

 
if(empty($document_sequence_object)){
 $document_sequence_object = [new sys_document_sequence()];
}

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

?>