<h1 id="page_content_heading"> Identity </h1>
<?php $Display->ShowProfileIdentity();
if($Display->ShowIdentity == false)
print ' <p> User hasn\'t yet created his Identity page </p> ';
else
{
print " <table> ";
foreach($Display->ShowIdentity as $Key => $KeyValue)
{
$IdentityElement = 'show';
if(strtolower($KeyValue['name']) == 'dateofbirth')
{
if($Display->ShowDOB == 'yes')
{
//todo
}
else
$IdentityElement = 'dontshow';
}
if($IdentityElement == 'show')
{
//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++;
print " <tr> <td class='category_element_heading' style='background-color:{$BackgroundColour}'> ".ucfirst($KeyValue['name']).": </td> <td class='category_element_content' style='background-color:{$BackgroundColour}'> ".ucfirst($KeyValue['value'])." </td> </tr> ";
}
}
print " </table> ";
}
?>
<h1 id="page_content_heading"> <a href="./friend/" style="color:black;">Friends</a> </h1>
<p> under development </p>
<h1 id="page_content_heading"> <a href="./scratch/" style="color:black;">Scratches</a> </h1>
<?php
$Display->ShowProfileScratch(4);
if($Display->ShowScratch == false) print " <p> no scratches yet. <a href='".$Display->PrsaarURL."/scratch/addscratch/'>Write a scratch</a> ";
else
{
if($Display->ShowScratch == false) print ' <p> no scratch yet. <a href="./?page=addscratch">Add a scratch </a> </p> ';
else
{
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
}
}
print " <p> <a href='".$Display->PrsaarURL."/scratch/'>Click here to see more scratches</a> </p> "; //am i lazy? maybe.
}