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

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