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 5eab234..45bc09b 100644 --- a/web/template/actions_form.php +++ b/web/template/actions_form.php @@ -1,7 +1,8 @@
- ]' value='1'> - +
+ ]' value='1' /> + "; + echo " value='".__("Vote")."' /> "; } else { echo " "; + echo " value='".__("UnVote")."' /> "; } # Comment Notify Button @@ -21,36 +22,36 @@ $q.= " AND PkgID = ".$row["ID"]; if (!mysql_num_rows(db_query($q, $dbh))) { echo " "; + echo " value='".__("Notify")."' title='".__("New Comment Notification")."' /> "; } else { echo " "; + echo " value='".__("UnNotify")."' title='".__("No New Comment Notification")."' /> "; } if ($row["OutOfDateTS"] === NULL) { echo "\n"; + echo " value='".__("Flag Out-of-date")."' />\n"; } else { echo "\n"; + echo " value='".__("UnFlag Out-of-date")."' />\n"; } if ($row["MaintainerUID"] === NULL) { echo "\n"; + echo " value='".__("Adopt Packages")."' />\n"; } else if ($uid == $row["MaintainerUID"] || $atype == "Trusted User" || $atype == "Developer") { echo "\n"; + echo " value='".__("Disown Packages")."' />\n"; } if ($atype == "Trusted User" || $atype == "Developer") { echo "\n"; + echo " value='".__("Delete Packages")."' />\n"; echo " "; echo __("Confirm")."\n"; } ?> - +
diff --git a/web/template/header.php b/web/template/header.php index 8169df1..4939b57 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 368d49b..346fb6a 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 dce3a17..8e64e11 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 = '
    '; - $durl.= ''; - $durl.= ''; - $durl.= ''; + $durl.= '
    '; + $durl.= ''; + $durl.= ''; + $durl.= '"; } diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php index 6a624e9..3b96791 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 = "\n"; - $edit_cat.= ""; - $edit_cat.= "Category: "; + $edit_cat = "\n"; + $edit_cat.= "

    "; + $edit_cat.= ""; + $edit_cat.= "Category: "; $edit_cat.= " "; + $edit_cat.= " "; + $edit_cat.= "

    "; $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 c8c29f2..40ad029 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 17be75e..9d6c40d 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 315e1b9..7d6c305 100644 --- a/web/template/tu_details.php +++ b/web/template/tu_details.php @@ -65,10 +65,12 @@ if (!$isrunning) { ?>
    ' method='post'> - - - - +
    + + + + +
    diff --git a/web/template/tu_list.php b/web/template/tu_list.php index f64d383..3a927d9 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-70-g09d2