X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=inline;f=purchasing%2Fmanage%2Fsuppliers.php;h=8999fd2a2200ff416ccd2e20db8ff5e9c694b5dc;hb=95ff74b5722826544743a01daf527aa3c9efe11a;hp=6e2867ffaeb5729983d7f9f650c2bc91d770b39e;hpb=e9ad9e87f5eb2682d2e91c93134250fd8a8d2ad9;p=fa-stable.git diff --git a/purchasing/manage/suppliers.php b/purchasing/manage/suppliers.php index 6e2867ff..8999fd2a 100644 --- a/purchasing/manage/suppliers.php +++ b/purchasing/manage/suppliers.php @@ -19,7 +19,7 @@ if ($SysPrefs->use_popup_windows) if (user_use_date_picker()) $js .= get_js_date_picker(); -page(_($help_context = "Suppliers"), @$_REQUEST['popup'], false, "", $js); +page(_($help_context = "Suppliers"), false, false, "", $js); include_once($path_to_root . "/includes/ui.inc"); include_once($path_to_root . "/includes/ui/contacts_view.inc"); @@ -35,7 +35,8 @@ $supplier_id = get_post('supplier_id'); //-------------------------------------------------------------------------------------------- function supplier_settings(&$supplier_id) { - + global $page_nested; + start_outer_table(TABLESTYLE2); table_section(1); @@ -169,7 +170,7 @@ function supplier_settings(&$supplier_id) if ($supplier_id) { submit_center_first('submit', _("Update Supplier"), - _('Update supplier data'), @$_REQUEST['popup'] ? true : 'default'); + _('Update supplier data'), $page_nested ? true : 'default'); 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); @@ -307,8 +308,8 @@ if (!$supplier_id) tabbed_content_start('tabs', array( 'settings' => array(_('&General settings'), $supplier_id), 'contacts' => array(_('&Contacts'), $supplier_id), - 'transactions' => array(_('&Transactions'), $supplier_id), - 'orders' => array(_('Purchase &Orders'), $supplier_id), + 'transactions' => array(_('&Transactions'), (user_check_access('SA_SUPPTRANSVIEW') ? $supplier_id : null)), + 'orders' => array(_('Purchase &Orders'), (user_check_access('SA_SUPPTRANSVIEW') ? $supplier_id : null)), )); switch (get_post('_tabs_sel')) { @@ -322,19 +323,15 @@ tabbed_content_start('tabs', array( break; case 'transactions': $_GET['supplier_id'] = $supplier_id; - $_GET['popup'] = 1; include_once($path_to_root."/purchasing/inquiry/supplier_inquiry.php"); break; case 'orders': $_GET['supplier_id'] = $supplier_id; - $_GET['popup'] = 1; include_once($path_to_root."/purchasing/inquiry/po_search_completed.php"); break; }; br(); tabbed_content_end(); -hidden('popup', @$_REQUEST['popup']); end_form(); - -end_page(@$_REQUEST['popup']); +end_page();