summaryrefslogtreecommitdiff
path: root/web/template/pkg_comments.php
diff options
context:
space:
mode:
Diffstat (limited to 'web/template/pkg_comments.php')
-rw-r--r--web/template/pkg_comments.php38
1 files changed, 38 insertions, 0 deletions
diff --git a/web/template/pkg_comments.php b/web/template/pkg_comments.php
new file mode 100644
index 0000000..7bcf708
--- /dev/null
+++ b/web/template/pkg_comments.php
@@ -0,0 +1,38 @@
+<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: %h%s%h 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: %h%s%h on %s",
+ "<b>", $carr["UserName"], "</b>",
+ gmdate("Y m d [H:i:s]", $carr["CommentTS"]));
+ }
+?>
+ </span>
+ </td>
+ </tr>
+ <tr>
+ <td class="boxSoft">
+ <pre><?php echo htmlspecialchars($carr["Comments"]) ?></pre>
+ </td>
+ </tr>
+<?php
+}
+?>
+</table>
+</div>