$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();
email_row(_("E-mail:"), 'email', null, 35, 55);
link_row(_("Website:"), 'website', null, 35, 55);
-text_row(_("Supplier Account No.:"), 'supp_account_no', null, 42, 40);
+text_row(_("Our Customer No:"), 'supp_account_no', null, 42, 40);
table_section_title(_("Addresses"));
textarea_row(_("Mailing Address:"), 'address', null, 35, 5);
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();