diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-03-11 18:54:44 +0100 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-03-11 19:00:50 +0100 |
commit | 7f9e498e48c4e5d056ee988a23dedb8ca98b11cd (patch) | |
tree | 2207b70001651eca6ac8f9500ec679e8edf98382 /web/template/pkg_comments.php | |
parent | c34bebf42859019998c7ff3c03b570295ae83ebe (diff) | |
download | aur-7f9e498e48c4e5d056ee988a23dedb8ca98b11cd.tar.gz aur-7f9e498e48c4e5d056ee988a23dedb8ca98b11cd.tar.xz |
Fix broken XHTML.
Fix a lot of invalid XHTML in the templates and actions. There might
still be some legacy code left, but this should cover most of it.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template/pkg_comments.php')
-rw-r--r-- | web/template/pkg_comments.php | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/web/template/pkg_comments.php b/web/template/pkg_comments.php index dce3a171..8e64e11a 100644 --- a/web/template/pkg_comments.php +++ b/web/template/pkg_comments.php @@ -8,15 +8,17 @@ while (list($indx, $carr) = each($comments)) { ?> $carr['UserName'] = "<a href=\"account.php?Action=AccountInfo&ID={$carr['UsersID']}\">{$carr['UserName']}</a>"; } - $commentHeader =__('Comment by: %s on %s', $carr['UserName'], gmdate('r', $carr['CommentTS'])); + $commentHeader = '<p style="display:inline;">' . __('Comment by: %s on %s', $carr['UserName'], gmdate('r', $carr['CommentTS'])) . '</p>'; if (canDeleteCommentArray($carr, $atype, $uid)) { - $durl = '<form method="POST" action="packages.php?ID='.$row['ID'].'">'; - $durl.= '<input type="hidden" name="action" value="do_DeleteComment">'; - $durl.= '<input type="hidden" name="comment_id" value="'.$carr['ID'].'">'; - $durl.= '<input type="image" src="images/x.png" border="0" '; + $durl = '<form method="post" action="packages.php?ID='.$row['ID'].'">'; + $durl.= '<fieldset style="display:inline;">'; + $durl.= '<input type="hidden" name="action" value="do_DeleteComment" />'; + $durl.= '<input type="hidden" name="comment_id" value="'.$carr['ID'].'" />'; + $durl.= '<input type="image" src="images/x.png" '; $durl.= ' alt="'.__("Delete comment").'" name="submit" value="1" '; - $durl.= ' width="19" height="18"> '; + $durl.= ' /> '; + $durl.= '</fieldset>'; $commentHeader = $durl.$commentHeader."</form>"; } |