<?php

$mode = 2;
$readonly = 1;

if (!empty($_GET['fa_asset_id'])) {
 $fa_asset_transaction_object = fa_asset_transaction_v::find_by_assetId($_GET['fa_asset_id']);
}

if (empty($fa_asset_transaction_object)) {
 $fa_asset_transaction_object = [new fa_asset_transaction_v()];
 if (!empty($$class->fa_asset_transaction_id)) {
  $fa_asset_transaction_object = [$$class];
 }
} else {
 $$class = $fa_asset_transaction_object[0];
}

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