From 7f9e498e48c4e5d056ee988a23dedb8ca98b11cd Mon Sep 17 00:00:00 2001
From: Lukas Fleischer
Date: Fri, 11 Mar 2011 18:54:44 +0100
Subject: 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
---
web/template/actions_form.php | 25 +++----
web/template/header.php | 4 +-
web/template/pkg_comment_form.php | 8 +--
web/template/pkg_comments.php | 14 ++--
web/template/pkg_details.php | 17 +++--
web/template/pkg_search_results.php | 10 +--
web/template/search_accounts_form.php | 130 +++++++++++++++++-----------------
web/template/tu_details.php | 10 +--
web/template/tu_list.php | 4 +-
9 files changed, 114 insertions(+), 108 deletions(-)
(limited to 'web/template')
diff --git a/web/template/actions_form.php b/web/template/actions_form.php
index 5eab2340..45bc09bc 100644
--- a/web/template/actions_form.php
+++ b/web/template/actions_form.php
@@ -1,7 +1,8 @@
diff --git a/web/template/header.php b/web/template/header.php
index 8169df17..4939b574 100644
--- a/web/template/header.php
+++ b/web/template/header.php
@@ -37,8 +37,8 @@
-
- ">
+
+ ">
diff --git a/web/template/pkg_comment_form.php b/web/template/pkg_comment_form.php
index 368d49bf..346fb6a8 100644
--- a/web/template/pkg_comment_form.php
+++ b/web/template/pkg_comment_form.php
@@ -57,11 +57,11 @@ if (isset($_REQUEST['comment'])) {
echo '' . __('Comment has been added.') . '';
}
?>
-
+
-
- ">
- ">
+
+ " />
+ " />
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'] = "{$carr['UserName']}";
}
- $commentHeader =__('Comment by: %s on %s', $carr['UserName'], gmdate('r', $carr['CommentTS']));
+ $commentHeader = '' . __('Comment by: %s on %s', $carr['UserName'], gmdate('r', $carr['CommentTS'])) . '
';
if (canDeleteCommentArray($carr, $atype, $uid)) {
- $durl = '";
}
diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php
index 6a624e9c..3b96791f 100644
--- a/web/template/pkg_details.php
+++ b/web/template/pkg_details.php
@@ -5,23 +5,25 @@ if ($uid == $row["MaintainerUID"] or
($atype == "Developer" or $atype == "Trusted User")) {
$catarr = pkgCategories();
- $edit_cat = "";
}
else {
- $edit_cat = "Category: ".$row['Category'];
+ $edit_cat = "Category: " . $row['Category'] . "";
}
if ($row["SubmitterUID"]) {
@@ -69,8 +71,9 @@ $out_of_date_time = ($row["OutOfDateTS"] == 0) ? $msg : gmdate("r", intval($row[
+
+
-
diff --git a/web/template/pkg_search_results.php b/web/template/pkg_search_results.php
index c8c29f2c..40ad029f 100644
--- a/web/template/pkg_search_results.php
+++ b/web/template/pkg_search_results.php
@@ -54,7 +54,7 @@ for ($i = 0; $row = mysql_fetch_assoc($result); $i++) {
?>
- |
+ |
|
|
@@ -62,15 +62,15 @@ for ($i = 0; $row = mysql_fetch_assoc($result); $i++) {
- |
+
-
+
- |
+
-
+
diff --git a/web/template/search_accounts_form.php b/web/template/search_accounts_form.php
index 17be75ee..9d6c40d0 100644
--- a/web/template/search_accounts_form.php
+++ b/web/template/search_accounts_form.php
@@ -1,78 +1,76 @@
diff --git a/web/template/tu_details.php b/web/template/tu_details.php
index 315e1b90..7d6c305d 100644
--- a/web/template/tu_details.php
+++ b/web/template/tu_details.php
@@ -65,10 +65,12 @@ if (!$isrunning) { ?>
diff --git a/web/template/tu_list.php b/web/template/tu_list.php
index f64d3834..3a927d9a 100644
--- a/web/template/tu_list.php
+++ b/web/template/tu_list.php
@@ -1,5 +1,5 @@
-
+
@@ -29,7 +29,7 @@
" . $row['User'] . "";
+ print "" . $row['User'] . "";
} else {
print "N/A";
}
--
cgit v1.2.3-24-g4f1b
| |