Location: PHPKode > projects > HyperBook Guestbook > display_template.php
<?
$website = "None";
if ($record_url != "") { $website = "<a href=\"$record_url\" target=\"_blank\">" . wordbreak($record_url, 25) . "</a>"; }
if ($record_url != "" AND $record_website != "") { $website = "<a href=\"$record_url\" target=\"_blank\">$record_website</a>"; }

?>

<table cellpadding="3" cellspacing="0" border="2" bgcolor="<? echo $bordercolor ?>" width="600" align="center"><tr><td>
<table cellpadding="5" cellspacing="0" border="0" bgcolor="<? echo $tablecolor ?>" width="100%">

<tr><td colspan="2" bgcolor="<? echo $barcolor ?>">
<table cellpadding="1" cellspacing="0" border="0" width="100%"><tr><td align="left">
<font size="2" face="Arial" color="<? echo $bartextcolor ?>"><b>&nbsp;<? echo $lang[11] ?>: <? echo $record_number ?></b> </font>
</td><td align="right">
<font size="1" face="Arial" color="<? echo $bartextcolor ?>"><? echo $lang[12] ?>: <? echo $record_date ?>&nbsp; </font>
</td></tr></table>

</td></tr><tr><td valign="top" align="left">

<table cellpadding="0" cellspacing="0" border="0"><tr><td valign="top">

<font size="2" face="Arial" color="<? echo $textcolor ?>"><b><? echo $lang[13] ?>:</b> <? echo $record_name ?> <br></font>

<? if ($website != "" AND $no_urls != "true") { # Display Website ?>
<font size="2" face="Arial" color="<? echo $textcolor ?>"><b><? echo $lang[14] ?>: </b><? echo $website ?> <br></font>
<? } # End If - Display Website ?>

<? if ($record_found != "") { # Display Found ?>
<font size="2" face="Arial" color="<? echo $textcolor ?>"><b><? echo $lang[15] ?>: </b><? echo $record_found ?> </font>
<? } # End If - Display Found ?>

</td></tr></table>

</td><td valign="top" align="right">

<table cellpadding="0" cellspacing="0" border="0"><tr><td valign="top">

<? if ($record_email != "") { # Display E-mail ?>
<font size="2" face="Arial" color="<? echo $textcolor ?>">
<b><? echo $lang[16] ?>:</b> <a href="mailto:<? echo $record_email ?>"><? echo wordbreak($record_email, 27) ?></a> <br></font>
<? } # End If - Display E-mail ?>

<? if ($record_icq != "" AND $displayuin == "true") { # Display UIN ?>
<font size="2" face="Arial" color="<? echo $textcolor ?>">
<b><? echo $lang[5] ?>:</b> <a href="http://wwp.mirabilis.com/<? echo $record_icq ?>" target="_blank"><? echo $record_icq ?></a> <br></font> 
<? } # End If - Display UIN ?>

<? if ($record_location != "") { # Display Location ?>
<font size="2" face="Arial" color="<? echo $textcolor ?>">
<b><? echo $lang[17] ?>:</b> <? echo $record_location ?> </font>
<? } # End If - Display Location ?>

</td></tr></table>

</td></tr><tr><td colspan="2">

<font size="2" face="Arial" color="<? echo $textcolor ?>">

<?
if ($displayadd1 == "true" AND $record_answer1 != "") { print "<b>$record_question1</b> <br>$record_answer1 <br>\n"; } # Display additional question 1
if ($displayadd2 == "true" AND $record_answer2 != "") { print "<b>$record_question2</b> <br>$record_answer2 <br>\n"; } # Display additional question 2
if ($displayadd3 == "true" AND $record_answer3 != "") { print "<b>$record_question3</b> <br>$record_answer3 <br>\n"; } # Display additional question 3
?>

<b><? echo $lang[18] ?>:</b><br><? echo $record_comments ?><br>

<? if ($record_adminmsg != "") { # Display Admin's Comment ?>
<br><i><b><? echo $lang[19] ?>:</b><br><? echo $record_adminmsg ?></i> <br>
<? } # End If - Display Admin's Comment ?>

</font>
</td></tr></table>
</td></tr></table>
<?
Return current item: HyperBook Guestbook