X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fmanage%2Fsuppliers.php;h=3be5bc5f6a9367545a859934f6bb5a11c67f698c;hb=490690013b7bb161ee2295b89cb18e1a88cae2af;hp=b0c7c35b338523a950e38da6f53a6e94e42c3632;hpb=3d95c6844745f183ebab970251cd254dd6cbdcec;p=fa-stable.git diff --git a/purchasing/manage/suppliers.php b/purchasing/manage/suppliers.php index b0c7c35b..3be5bc5f 100644 --- a/purchasing/manage/suppliers.php +++ b/purchasing/manage/suppliers.php @@ -13,17 +13,18 @@ $page_security = 'SA_SUPPLIER'; $path_to_root = "../.."; include($path_to_root . "/includes/db_pager.inc"); include_once($path_to_root . "/includes/session.inc"); -include_once($path_to_root . "/includes/ui/attachment.inc"); + $js = ""; if ($SysPrefs->use_popup_windows) $js .= get_js_open_window(900, 500); if (user_use_date_picker()) $js .= get_js_date_picker(); -page(_($help_context = "Suppliers"), false, false, "", $js); +page(_($help_context = "Suppliers"), @$_REQUEST['popup'], false, "", $js); include_once($path_to_root . "/includes/ui.inc"); include_once($path_to_root . "/includes/ui/contacts_view.inc"); +include_once($path_to_root . "/includes/ui/attachment.inc"); check_db_has_tax_groups(_("There are no tax groups defined in the system. At least one tax group is required before proceeding.")); @@ -280,14 +281,14 @@ function supplier_settings(&$supplier_id) if ($supplier_id) { submit_center_first('submit', _("Update Supplier"), - _('Update supplier data'), $page_nested ? true : 'false'); + _('Update supplier data'), $page_nested ? true : false); submit_return('select', get_post('supplier_id'), _("Select this supplier and return to document entry.")); submit_center_last('delete', _("Delete Supplier"), _('Delete supplier data if have been never used'), true); } else { - submit_center('submit', _("Add New Supplier Details"), true, '', 'false'); + submit_center('submit', _("Add New Supplier Details"), true, '', false); } div_end(); } @@ -350,5 +351,5 @@ tabbed_content_start('tabs', array( br(); tabbed_content_end(); end_form(); -end_page(); +end_page(@$_REQUEST['popup']);