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

/* Class: Skin_Log
 * Description:
 *   The generic skin parts class.
 */
class Skin_Log
{
	function body_top( $name )
	{
		return <<<EOF
<td class="main" valign="top">

<big><b>$name</b></big>
<br /><br />
	
EOF;
	}
	
	function body_bottom()
	{
		return <<<EOF
</td>

<td class="space">&nbsp;</td>
</tr>		
EOF;
	}
	
	function stats( $auth_count, $post_count, $com_count )
	{
		return <<<EOF
<div class="box">
<big><b>Log Stats</b></big>
<br /><br />

<b>Authors:</b> $auth_count<br />
<b>Posts:</b> $post_count<br />
<b>Comments:</b> $com_count<br />

</div>
EOF;
	}
	
	
	function comments_head()
	{
		return <<<EOF
<table width="85%" cellspacing="0" cellpadding="3" style="border: solid 1px black">	
<tr class="dark">
<td colspan="2">Recent Comments:</td>
</tr>		
EOF;
	}
	
	function comments_row( $author, $date, $post_id)
	{
		return <<<EOF
<tr>
<td class="bevel">
<a href="?Action=NewPost&amp;post_id=$post_id#comments">$author</a>
</td>
<td class="bevel" width="20%">$date</td>
</tr>		
EOF;
	}
	
	function comments_foot()
	{
		return <<<EOF
</table><br />
<br />	
EOF;
	}

}

?>
Return current item: Write2Left