Location: PHPKode > projects > Prsaar Social Networking Platform > PrsaarColour-0.7.alpha.6.3/pr-layout/scratch.php
<?php
	$Display->ShowProfileScratch();
	if($Display->ShowScratch == false) print ' <p> no scratch yet. <a href="./?page=addscratch">Add a scratch </a> </p> ';
	else
	{
		print '<p> <a href="write-scratch.php">Click here to write a scratch</a> </p>';
		foreach($Display->ShowScratch as $key => $KeyValue)
		{
			//trying to produce an alternate background effect, someday I'll replace it by javascript
					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;'>
			 <strong>By:</strong>
			<?php if(!empty($KeyValue['user_url'])) print "<a href='{$KeyValue['user_url']}'>{$KeyValue['user_name']}</a>";
			else print "{$KeyValue['user_name']}"; ?>
			
			|| <strong>Time:</strong> <?php _P($KeyValue['time']); ?> <blockquote style="padding:10px; font-family:Georgia, 'Times New Roman', Times, serif; text-indent:10px;"><?php _P($KeyValue['value']); ?></blockquote>
			</div>
<?php
		}
	}
?>
Return current item: Prsaar Social Networking Platform