function gl_inquiry_controls() { $dim = get_company_pref('use_dimension'); start_form(); start_table(TABLESTYLE_NOBORDER); start_row(); gl_all_accounts_list_cells(_("Account:"), 'account', null, false, false, _("All Accounts")); date_cells(_("from:"), 'TransFromDate', '', null, -30); date_cells(_("to:"), 'TransToDate'); end_row(); end_table(); start_table(TABLESTYLE_NOBORDER); start_row(); if ($dim >= 1) { dimensions_list_cells(_("Dimension") . " 1:", 'Dimension', null, true, " ", false, 1); } if ($dim > 1) { dimensions_list_cells(_("Dimension") . " 2:", 'Dimension2', null, true, " ", false, 2); } small_amount_cells(_("Amount min:"), 'amount_min', null, " "); small_amount_cells(_("Amount max:"), 'amount_max', null, " "); submit_cells('Show', _("Show"), '', '', 'default'); end_row(); end_table(); echo '<hr>'; end_form(); }
function gl_inquiry_controls() { global $table_style2; $dim = get_company_pref('use_dimension'); start_form(); //start_table($table_style2); start_table("class='tablestyle_noborder'"); start_row(); gl_all_accounts_list_cells(tr("Account:"), 'account', null); date_cells(tr("from:"), 'TransFromDate', null, -30); date_cells(tr("to:"), 'TransToDate'); submit_cells('Show', tr("Show")); end_row(); if ($dim >= 1) { dimensions_list_row(tr("Dimension") . " 1", 'Dimension', null, true, " ", false, 1); } if ($dim > 1) { dimensions_list_row(tr("Dimension") . " 2", 'Dimension2', null, true, " ", false, 2); } end_table(); end_form(); }
{ echo "<tr>\n"; label_cell($label, "class='label'"); echo "<td>\n"; $freq = array('1' => _("Weekly"), '2' => _("Bi-weekly"), '3' => _("Monthly"), '4' => _("Quarterly")); echo array_selector($name, $selected, $freq); echo "</td>\n"; echo "</tr\n"; } $dim = get_company_pref('use_dimension'); start_form(false, false, "", "accrual"); start_table(TABLESTYLE2); date_row(_("Date"), 'date_', _('First date of Accruals'), true, 0, 0, 0, null, true); start_row(); label_cell(_("Accrued Balance Account"), "class='label'"); gl_all_accounts_list_cells(null, 'acc_act', null, true, false, false, true); end_row(); gl_all_accounts_list_row(_("Revenue / Cost Account"), 'res_act', null, true); if ($dim >= 1) { dimensions_list_row(_("Dimension"), 'dimension_id', null, true, " ", false, 1); } if ($dim > 1) { dimensions_list_row(_("Dimension") . " 2", 'dimension2_id', null, true, " ", false, 2); } $url = "gl/view/accrual_trans.php?act=" . get_post('acc_act') . "&date=" . get_post('date_'); amount_row(_("Amount"), 'amount', null, null, viewer_link(_("Search Amount"), $url, "", "", ICON_VIEW)); frequency_list_row(_("Frequency"), 'freq', null); text_row(_("Periods"), 'periods', null, 3, 3); textarea_row(_("Memo"), 'memo_', null, 35, 3); end_table(1); submit_center_first('show', _("Show GL Rows"));
if (can_delete($selected_account)) { delete_gl_account($selected_account); $selected_account = $_POST['AccountList'] = ''; delete_tag_associations(TAG_ACCOUNT, $selected_account, true); $selected_account = $_POST['AccountList'] = ''; display_notification(_("Selected account has been deleted")); unset($_POST['account_code']); $Ajax->activate('_page_body'); } } //------------------------------------------------------------------------------------- start_form(); if (db_has_gl_accounts()) { start_table(TABLESTYLE_NOBORDER); start_row(); gl_all_accounts_list_cells(null, 'AccountList', null, false, false, _('New account'), true, check_value('show_inactive')); check_cells(_("Show inactive:"), 'show_inactive', null, true); end_row(); end_table(); if (get_post('_show_inactive_update')) { $Ajax->activate('AccountList'); set_focus('AccountList'); } } br(1); start_table(TABLESTYLE2); if ($selected_account != "") { //editing an existing account $myrow = get_gl_account($selected_account); $_POST['account_code'] = $myrow["account_code"]; $_POST['account_code2'] = $myrow["account_code2"];