<table width="100%" cellpadding="0" cellspacing="0" border="0">
	<tr><td class="nav"><a href="index.php?section=home">Home</a>&nbsp;&gt;&nbsp;<a href="index.php?section=manage_blogs">Manage Blogs</a>&nbsp;&gt;&nbsp;Edit Blog</td></tr>		
	<tr><td>&nbsp;</td></tr>
	<tr><td>
		<table cellpadding="0" cellspacing="3" border="0" width="450" align="center">
		<form action="index.php" method="post" enctype="multipart/form-data" name="blogs_edit">
		<input type="hidden" name="section" value="manage_blogs">
		<input type="hidden" name="action" value="save">
		<input type="hidden" name="blg_id" value="<?php echo $data["blg_id"]; ?>">
		<input type="hidden" name="ret_link" value="<?php echo $data["link"]; ?>">
		<?php
			while(list($key,$val) = each($GLOBALS["forms"][blogs_edit][labels])){
				?><tr><td class="body" valign="top"><?php echo $val; ?></td><?php
				?><td class="highlight" valign="top"><?php echo $GLOBALS["forms"][blogs_edit][elements][$key]; ?></td></tr><?php
			}//while
		?>
		<tr><td colspan="2" align="center"><?php
		admin_form_element( array ("type" => "button", "value" => "Back", "link" => $data["link"]) );
		echo "&nbsp;";
		admin_form_element( array ("type" => "button", "value" => "Update") );
		?></td></tr>
		</form>
		</table>
	</td></tr>
	<?php if(count($data["posts"])){ ?>
	<tr><td>
	<table align="center" cellpadding="2" cellspacing="2" border="0">			
		<tr>
			<td class="list_header" align="center" nowrap>Entry Type</td>
			<td class="list_header" align="center">Title</td>
			<td class="list_header" align="center">Message</td>
			<td class="list_header" align="center">Action</td>
		</tr>
		<?php while(list($key,$post) = each($data["posts"])){ ?>
		<tr>
			<td class="list_cell" align="center">Post</td>
			<td class="list_cell" align="center"><?php echo $post["title"]; ?></td>
			<td class="list_cell" align="center"><?php echo $post["message"]; ?></td>
			<td class="list_cell" align="right"><?php
			admin_output_image("buttons/but_view_small.gif",$post["view"],0,"view",1);
			admin_output_image("buttons/but_edit_small.gif",$post["edit"],0,"edit");
			admin_output_image("buttons/but_delete_small.gif",$post["delete"],0,"delete");
			?></td>
		</tr>
			<?php if (count($data["comments"][$key])) {
				foreach($data["comments"][$key] as $comment){
					?><tr>
						<td class="list_cell" align="center">Comment</td>
						<td class="list_cell" align="center">posted by: <?php echo $comment["author"]; ?></td>
						<td class="list_cell" align="center"><?php echo $comment["comment"]; ?></td>
						<td class="list_cell" align="right"><?php						
						admin_output_image("buttons/but_delete_small.gif",$comment["delete"],0,"delete");
						?></td>
					</tr><?php
				}//foreach			
			}//if
		}//while
		?>
	</table>
	</td></tr>
	<?php } ?>
</table>