$path_to_root="../..";
include($path_to_root . "/includes/session.inc");
-page(_("Suppliers"));
+page(_("Suppliers"), @$_REQUEST['popup']);
//include($path_to_root . "/includes/date_functions.inc");
$Ajax->activate('_page_body');
} //end if Delete supplier
}
-elseif (isset($_POST['select']))
-{
- context_return(array('supplier_id' => $_POST['supplier_id']));
-}
start_form();
if (!$new_supplier)
{
submit_center_first('submit', _("Update Supplier"),
- _('Update supplier data'), 'default');
- submit_return('select', _("Return"), _("Select this supplier and return to document entry."), 'cancel');
+ _('Update supplier data'), true);
+ 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);
}
submit_center('submit', _("Add New Supplier Details"), true, '', 'default');
}
div_end();
+hidden('popup', @$_REQUEST['popup']);
end_form();
end_page();