summaryrefslogtreecommitdiffstats
path: root/web/template/pkg_comments.php
blob: 518876460f45dfb571b45bfce27e2afcecff70ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<div class="pgbox">
<table width="100%">
<?php while (list($indx, $carr) = each($comments)) { ?>
	<tr class='boxSoft'>
	<td class='boxSoftTitle' valign='top' style='padding-right: 10' colspan='2'>
	<span class='f3'>
<?php
	if (canDeleteComment($carr['ID'], $atype, $SID)) {
		$durl = '<a href="pkgedit.php?del_Comment=1';
		$durl.= '&comment_id=' . $carr['ID'] . '&ID=' . $row['ID'];
		$durl.= '"><img src="images/x.png" border="0"';
		$durl.= ' alt="' . __("Delete comment") . '"></a> ';

	  echo $durl;
	}
	if ($SID) {
		echo __("Comment by: %s on %s",
			"<a href='account.php?Action=AccountInfo&ID=" . $carr["UsersID"] . "'><b>" . $carr["UserName"] . "</b></a>", gmdate("Y m d [H:i:s]", $carr["CommentTS"]));
	} else {
		echo __("Comment by: %s on %s",
			'<b>' . $carr['UserName'] . '</b>',
			gmdate("Y m d [H:i:s]", $carr["CommentTS"]));
	}
?>
	</span>
	</td>
	</tr>
	<tr>
	<td class="boxSoft">
	<code><?php echo nl2br(htmlspecialchars($carr["Comments"])) ?></code>
	</td>
	</tr>
<?php
}
?>
</table>
</div>