Location: PHPKode > projects > Multi-lingual E-Commerce System > admin/inc/admin_Sale.xml.inc
<?php
require_once('Sale.class');
if (!isset($_GET['Sale']))
{
	$array = array() ;
	$obj = new Sale();
	$array = $obj->retrieveAll();
	foreach ($array as $member) {
		$obj = new Sale();
		$obj->Sale_ID = $member;
		$obj->retrieve();
		echo "<p>OBJ_NAME";
		echo "<a href=\"PAGE_NAME?Sale=$member\">PAGE_NAME_EDIT</a></p>";
	}
}

else
{
	$obj = new Sale();
	$obj->Sale_ID = $_GET['Sale'];
	$obj->retrieve();
?>
<form method="post" action="PAGE_NAME">
<input type="hidden" name="Sale" value="<? echo $_POST['Sale'] ?>"><br>
Sale, Currency_Code : <input type="text" name="Currency_Code" value="<? echo $obj->Currency_Code; ?>"><br>
Sale, Affiliate_ID : <input type="text" name="Affiliate_ID" value="<? echo $obj->Affiliate_ID; ?>"><br>
Sale, Basket_ID : <input type="text" name="Basket_ID" value="<? echo $obj->Basket_ID; ?>"><br>
Sale, Address_ID : <input type="text" name="Address_ID" value="<? echo $obj->Address_ID; ?>"><br>
Sale, Customer_ID : <input type="text" name="Customer_ID" value="<? echo $obj->Customer_ID; ?>"><br>
Sale, Sale_Value : <input type="text" name="Sale_Value" value="<? echo $obj->Sale_Value; ?>"><br>
Sale, Sale_Weight : <input type="text" name="Sale_Weight" value="<? echo $obj->Sale_Weight; ?>"><br>
Sale, Sale_Postage : <input type="text" name="Sale_Postage" value="<? echo $obj->Sale_Postage; ?>"><br>
Sale, Sale_Date : <input type="text" name="Sale_Date" value="<? echo $obj->Sale_Date; ?>"><br>
<p>Delete <input type="checkbox" name="delete"></p>
<input type="submit">
</form>
<?php
}
?>
Return current item: Multi-lingual E-Commerce System