Location: PHPKode > projects > Prsaar Social Networking Platform > PrsaarColour-0.7.alpha.6.3/pr-admin/friend-manage.php
<?php
	require_once('./admin.php');
	//______________________________________________________________
	$Display->Title = 'Friends';
	$Display->Subtitle = 'Manage friends';
	$UpdateFile = 'friend-manage-update.php';
	//_________________________________________________________________
	
	
	require_once('./admin-display-header.php');
	
	//------------------------ Display quries
	$Friend = $DC->Result("SELECT * FROM ".PR_DATABASE_PREFIX."friend");
	//---------------------------------------
	if($Friend == false) $Collect = " <p> No friend yet. <a href='friend.php?page=new'>Add friends</a> </p> ";
	else
	{
		$Collect = " <table> ";
		foreach($Friend as $Key => $KeyValue)
		{
			$Piece = " <tr> <td> {$KeyValue['friend_name']} </td> <td> <a href='{$KeyValue['friend_connect_url']}'>{$KeyValue['friend_connect_url']}</a> </td> <td> <a href='./friend.php?update=delete'> Delete </a> </td> </tr> ";
			$Collect = $Collect.$Piece;
		}
		$Collect = $Collect." </table> ";
	}
	print "
	<h2> Manage Friends &raquo;&raquo; </h2> <p> Modifying/deleting friends is currently under-development </p> ".$Collect;
	
	require_once('./admin-display-footer.php');
?>
Return current item: Prsaar Social Networking Platform