F2 - Customers/Suppliers; F4 - Items. Removed Menu in popup windows.
[fa-stable.git] / purchasing / manage / suppliers.php
index b0c7c35b338523a950e38da6f53a6e94e42c3632..fb2409ee6f73a446e053c1d2988eeed1141ea00b 100644 (file)
@@ -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();
 }