Location: PHPKode > projects > Write2Left > Skin/EditPosts.php
<?php
/*
+------------------------------------------------------
| Write2Left
| (c) timdorr
| http://www.write2left.com
| hide@address.com
| See License.txt for license info
|------------------------------------------------------
| Script: EditPosts.php
| Description:
|   Contains the edit posts skin parts
| Created Sep-09-2002
+------------------------------------------------------
*/

/* Class: Skin_EditPosts
 * Description:
 *   The new post skin parts class.
 */
class Skin_EditPosts
{
	function body_top()
	{
		return <<<EOF
<td class="main" valign="top">

<big><b>Manage Posts</b></big>
<br />
	
EOF;
	}

	function body_posts_head( $prev, $next, $pages )
	{
		return <<<EOF
<br />
<table width="85%"><tr>
<td width="20%">$prev</td>
<td width="60%" align="center">$pages</td>
<td width="20%" align="right">$next</td>
</tr></table>

<table width="85%" cellspacing="0" cellpadding="3" style="border: solid 1px black">	

<tr class="dark">
<td width="75">&nbsp;</td>
<td width="40%">Title</td>
<td width="10%">Date</td>
<td>Author</td>
<td>Category</td>
</tr>

EOF;
	}	
	
	function body_posts_row( $id, $title, $date, $author, $category )
	{
		return <<<EOF
<tr>
<td class="bevel" align="Center">
<a href="index.php?Action=NewPost&amp;post_id=$id">Edit</a> 
<a href="index.php?Action=EditPosts&amp;M=del&amp;id=$id">Delete</a> 
</td>
<td class="bevel">$title</td>
<td class="bevel">$date</td>
<td class="bevel">$author</td>
<td class="bevel">&nbsp;$category</td>
</tr>	
EOF;
	}
	
	function body_posts_foot( $prev, $next, $pages )
	{
		return <<<EOF
</table>

<table width="85%"><tr>
<td width="20%">$prev</td>
<td width="60%" align="center">$pages</td>
<td width="20%" align="right">$next</td>
</tr></table>
EOF;
	}
	
	function body_bottom()
	{
		return <<<EOF
</td>

<td class="space">&nbsp;</td>
</tr>		
EOF;
	}
}
Return current item: Write2Left