Location: PHPKode > projects > Prsaar Social Networking Platform > PrsaarColour-0.7.alpha.6.3/pr-admin/scratch-manage.php
<?php
	require_once('./admin.php');
	//_____________________________________________________________________________________
	$Display->Title = "Scratches";
	$Display->Subtitle = "Manage Scratches";
	//_______________________________________________________________________________________
	require('./admin-display-header.php');
	
	//database------------------------------------------------------------
	$Scratch = $DC->Result("SELECT * FROM ".PR_DATABASE_PREFIX."scratch WHERE scratch_status = 'okay' ORDER BY scratch_time DESC");
	//------------------------------------------
?>
<h2> Manage Scratches &raquo; </h2>
<?php
	
	if($Scratch == false)
	{
?>
No scratches yet. <a href="scratch-new.php">Moderate new scratches</a>
<?php
	}
	else
	{
		foreach($Scratch as $Key => $KeyValue)
		{
			if(empty($i)) $i = 0;
					if($i%2 == 0) $BackgroundColour = '#F1F1F1';
					else $BackgroundColour = '#E2E2E2';
					$i++;
?>
			<div style='background-color:<?php _P($BackgroundColour); ?>; padding:8px; margin:4px; border:solid 1px grey;'>
<strong>Name:</strong> <?php _p($KeyValue['scratch_user_name']) ?> |
<strong>URL:</strong> <a href='<?php _p($KeyValue['scratch_user_url']); ?>'><?php _p($KeyValue['scratch_user_url']); ?></a> | 
<strong>E-mail:</strong> <a href='mailto:<?php _p($KeyValue['scratch_user_mail']); ?>'><?php _p($KeyValue['scratch_user_mail']); ?></a> | 
<strong>Time:</strong> <?php _p($KeyValue['scratch_time']); ?>
<blockquote style="font-family:Georgia, 'Times New Roman', Times, serif; text-indent:10px;"><?php _p($KeyValue['scratch_value']); ?> </blockquote>
<a href='scratch-manage-update.php?action=delete&id=<?php _p($KeyValue['scratch_id']); ?>'>Delete this scratch</a>
			</div>
<?php
		}
	}
	
require('./admin-display-footer.php'); ?>
Return current item: Prsaar Social Networking Platform