Location: PHPKode > projects > Prsaar Social Networking Platform > PrsaarColour-0.7.alpha.6.3/pr-admin/profile.php
<?php
	//initialise----------------------------------------------
	require_once('admin.php');
	$Display->Title = 'Profile';
	$Display->Subtitle = 'General';
	
	//database quries ----------------------------------------
	$TypeCount = $DC->Result('SELECT COUNT(DISTINCT profile_category) FROM '.PR_DATABASE_PREFIX.'profile');
	$TypeCount = $TypeCount[0]['COUNT(DISTINCT profile_category)']+1;
	$Types = $DC->Result('SELECT DISTINCT profile_category FROM '.PR_DATABASE_PREFIX.'profile');
?>
<?php require('./admin-display-header.php'); ?>
<h2> Profile Options &raquo;</h2>
You Have Currently <?php echo $TypeCount ?> Profile Categorie(s)
<ol> <li> <a href='profile-identity.php'>Identity</a>
<?php	if($Types != false)
	{
		foreach($Types as $Key => $Value)
		{
?>
		<li> <a href='profile-category.php?category=<?php print $Value['profile_category']."'>".$Value['profile_category']; ?></a> </li>
<?php
		}
	}
?>
</ol>

<hr /> 
<p> <a href='profile-new.php'> Create new Profile Element &raquo; </a> </p>

<?php require('./admin-display-footer.php'); ?>
Return current item: Prsaar Social Networking Platform