<?phpif (!empty($_GET['fa_depreciation_header_id']) && empty($fa_depreciation_line_object)) { $fa_depreciation_line_object = fa_depreciation_line::find_by_parent_id($_GET['fa_depreciation_header_id']);}if (empty($fa_depreciation_line_object)) { $fa_depreciation_line_object = [new fa_depreciation_line()];}$pageno = !empty($_GET['pageno']) ? $_GET['pageno'] : 1;$per_page = !empty($_GET['per_page']) ? $_GET['per_page'] : 10;$total_count = count($fa_depreciation_line_object);$pagination = new pagination($pageno, $per_page, $total_count);$pagination->setProperty('_path', 'form');$position = ($pageno - 1) * $per_page;if (empty($$class->status)) { $$class->status = 'ENTERED';}$f = new inoform();$period_stmt = '';if (!empty($$class->gl_period_id)) { $gl_period_i = gl_period::find_by_id($$class->gl_period_id); if (!empty($gl_period_i->period_name)) {  $period_stmt = $f->text_field('period_name', $gl_period_i->period_name, '', 'period_name', '', 1, 1);  $period_stmt .= $f->hidden_field_withId('gl_period_id', $$class->gl_period_id); }}if (empty($period_stmt)) { $period_stmt = $f->text_field('gl_period_id', '', '', 'gl_period_id', '', 1);}if($$class->status == 'CLOSED'){ $mode = 2; $readonly = 1;}?>