edit_button_cell("Edit" . $myrow['id'], _("Edit")); delete_button_cell("Delete" . $myrow['id'], _("Delete")); end_row(); } inactive_control_row($th); end_table(); br(); start_table(TABLESTYLE2); if ($selected_id != -1) { if ($Mode == 'Edit') { $myrow = get_selected_booklet($selected_id); //$_POST['no'] = $myrow['no']; $_POST['type'] = $myrow['type']; $_POST['begin'] = $myrow['begin']; $_POST['end'] = $myrow['end']; $_POST['year'] = $myrow['year']; $_POST['status'] = $myrow['stat']; } hidden('selected_id', $selected_id); label_row(_("ID"), $myrow["id"]); } //text_row_ex(_("No:"), 'no', 25); booklet_type_row_list(_("Type:"), 'type', $_POST['type']); text_row_ex(_("Begin:"), 'begin', 25); text_row_ex(_("End:"), 'end', 25); text_row_ex(_("Year:"), 'year', 30); status_row_list(_("Status:"), 'status', $_POST['status']); end_table(1); submit_add_or_update_center($selected_id == -1, '', 'both'); end_form(); end_page();
$js = ""; if ($use_date_picker) { $js .= get_js_date_picker(); } if ($use_popup_windows) { $js .= get_js_open_window(900, 500); } page(_($help_context = "Disbursement/Journal Voucher Inquiry"), false, false, "", $js); if (isset($_GET['UpdatedID'])) { $trans_no = $_GET['AddedID']; display_notification_centered(_("Check voucher entry has been edited") . " #{$trans_no}"); } start_form(); start_table(TABLESTYLE_NOBORDER); start_row(); booklet_type_row_list(_("Select type: "), 'type'); text_cells(_("Voucher #"), 'voucher_no'); date_cells(_("From:"), 'FromDate', '', null, 0, -1, 0); submit_cells('RefreshInquiry', _("Search"), '', _('Refresh Inquiry'), 'default'); end_row(); end_table(); br(3); //------------------------------------------------------------------------------------------------ function type_name($dummy, $type) { global $systypes_array; return $systypes_array[$type]; } function voucher($row) { $vouch = substr($row['YearDate'], 2) . "-" . str_pad($row['customized_no'], 4, 0, STR_PAD_LEFT);