Location: PHPKode > projects > Multi-lingual E-Commerce System > admin/inc/submit_Sale.xml.inc
<?php
require_once('Sale.class');
if (isset($_POST['Sale']))
{
	$obj = new Sale();
	$obj->Sale_ID = $_POST['Sale'];
	if (isset($_POST['delete']) && $_POST['delete'] !='' )
	{
		$obj->delete();
	}

	else {
		$obj->Currency_Code = $_POST['Currency_Code'];
		$obj->Affiliate_ID = $_POST['Affiliate_ID'];
		$obj->Basket_ID = $_POST['Basket_ID'];
		$obj->Address_ID = $_POST['Address_ID'];
		$obj->Customer_ID = $_POST['Customer_ID'];
		$obj->Sale_Value = $_POST['Sale_Value'];
		$obj->Sale_Weight = $_POST['Sale_Weight'];
		$obj->Sale_Postage = $_POST['Sale_Postage'];
		$obj->Sale_Date = $_POST['Sale_Date'];

		$obj->store();
} # end else

} # end if

?>
Return current item: Multi-lingual E-Commerce System