mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
c34bebf428
commit
7f9e498e48
14 changed files with 170 additions and 154 deletions
|
@ -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>";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue