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

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