Location: PHPKode > projects > Write2Left > Skin/Skin.php
<?php
/*
+------------------------------------------------------
| Write2Left
| (c) timdorr
| http://www.write2left.com
| hide@address.com
| See License.txt for license info
|------------------------------------------------------
| Script: Skin.php
| Description:
|   Contains part of the interface's skin's default output parts
| Created Jun-28-03
+------------------------------------------------------
*/

/* Class: Skin
 * Description:
 *   The generic skin parts class.
 */
class Skin
{
	function page_head( $title, $loc, $user, $error )
	{
		return <<<EOF
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Write2Left :: $title</title>
<link rel="stylesheet" href="./Skin/files/main.css" type="text/css" />
</head>

<body>
$error
<table width="100%" cellpadding="0" cellspacing="0">

<tr class="logo">
<td class="logo" colspan="5" valign="top">
&nbsp;<a href="http://write2left.com"><img src="./Skin/files/logo.png" alt="logo!" /></a>
</td>
</tr>

<tr class="header">
<td colspan="4">&nbsp;$loc</td>
<td align="right">$user&nbsp;</td>
</tr>

<tr class="spacer"><td colspan="5">&nbsp;</td></tr>

EOF;
	}

	function page_foot()
	{
		return <<<EOF
<tr class="spacer"><td colspan="5">&nbsp;</td></tr>

<tr class="header"><td colspan="5">
&nbsp;Copyright <a href="http://timdorr.com" class="header">timdorr.com</a> scripting
</td></tr>

<table>
</body>
</html>
EOF;
	}
	
	function menu( $menu )
	{
		return <<<EOF
<tr>
<td class="space"></td>

<td class="menu" valign="top">

$menu

</td>

<td class="space">&nbsp;</td>

EOF;
	}

}

?>
Return current item: Write2Left