X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Fpurchasing_data.php;h=96b205e076ee93b383f27c2d00782951bf6d8d6f;hb=a9e2c0e710a5431ce3c31ef89d4c94bf69538238;hp=3f85c0376f522bec9e744933eced092c58ed81c0;hpb=5d3fcb9c57e586c20651594edf91a2dccb08df00;p=fa-stable.git diff --git a/inventory/purchasing_data.php b/inventory/purchasing_data.php index 3f85c037..96b205e0 100644 --- a/inventory/purchasing_data.php +++ b/inventory/purchasing_data.php @@ -106,10 +106,8 @@ if (list_updated('stock_id')) $Ajax->activate('price_table'); //-------------------------------------------------------------------------------------------------- -$action = $_SERVER['PHP_SELF']; -if (@$_GET['popup']) - $action .= "?stock_id=".get_post('stock_id'); -start_form(false, false, $action); +if (!@$_GET['popup']) + start_form(); if (!isset($_POST['stock_id'])) $_POST['stock_id'] = get_global_stock_item(); @@ -144,7 +142,7 @@ else } else { - start_table(TABLESTYLE, "width=65%"); + start_table(TABLESTYLE, "width='65%'"); $th = array(_("Supplier"), _("Price"), _("Currency"), _("Supplier's Unit"), _("Conversion Factor"), _("Supplier's Description"), "", ""); @@ -197,7 +195,10 @@ if ($Mode =='Edit') br(); hidden('selected_id', $selected_id); if (@$_GET['popup']) +{ hidden('_tabs_sel', get_post('_tabs_sel')); + hidden('popup', @$_GET['popup']); +} start_table(TABLESTYLE2); @@ -226,8 +227,9 @@ end_table(1); submit_add_or_update_center($selected_id == -1, '', 'both'); -end_form(); if (!@$_GET['popup']) +{ + end_form(); end_page(@$_GET['popup'], false, false); - +} ?>