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

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