<?php /* $Id: commentbox.inc,v 1.8 2003/07/28 09:49:16 jefmcg Exp $ */ ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
  <td width="100%">
  <span class="admin">
  <?php echo _("From:") ?> <?php echo $comment->getName() ?> @ <?php echo removeTags($comment->getIPNumber())?> (<?php echo $comment->getDatePosted() ?>)
  </span>
</td>
</tr><tr>
<td width="100%" height="20" valign="top"><?php echo $comment->getCommentText() ?><td>
</tr>
<?php
if ($gallery->user->canWriteToAlbum($gallery->album)) {
	$url = "do_command.php?cmd=delete-comment&index=$index&comment_index=$j";
	$buf = '<span class="admin"> <a href="#" onClick="' . popup($url) . '">[' . _("delete comment") .']</a></span>';
	echo "<tr><td>$buf</td></tr>";
}
?>
<tr>
<td width=100%><img src="<?php echo $gallery->app->photoAlbumURL ?>/images/pixel_trans.gif" width="1" height="6"></td>
</tr>
</table>
