Location: PHPKode > projects > The Community Wish List Server > wlserver/friendlylist.php
<?php

// friendlylist.php
// Displays a printer-friendly version of a selected wish list

require("../config.php");

$myList = new WishList($_SESSION['currentView']);
$recipientName = $myList->name;
$blurb = $myList->blurb;
$birthdate = $myList->bDay;

if ($blurb != "") {
	if (!ereg("<[^>]*>",$blurb)) $blurb="<table border=\"1\" cellpadding=\"5\" cellspacing=\"0\"><tr><td>".nl2br($blurb)."</td></tr></table>";
}

print("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
print("<!DOCTYPE html\n");
print("PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n");
print("\t\" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\" >\n");
print("\t<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n");
print("\t\t<head>\n");
print("\t\t\t<title>$recipientName's Wish List at StoneGoose.com</title>\n");
print("\t\t</head>\n");
print("\t<body>\n");
?>

<center>
<font size="+2"><b><?php print ($recipientName); ?>'s Wish List</b></font><br>
<font size="+1">Birthday: <?php print($birthdate); ?></font><br>
(<a href="javascript:history.back();">back</a>)
</center>

<?php
if ($blurb != "") {
	print ("<p><b>Notes:</b><br>\n");
	print ("$blurb</p>\n");
}?>

<?php printList($myList,$_SESSION['currentUser'],$_SESSION['currentView'],1,1); ?>

</body>
</html>
Return current item: The Community Wish List Server