changeset 729:0d064dcef03e

Vote page layout adjustments and add missing </td> tag for entries.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 18 Nov 2014 23:00:57 +0200
parents 8b1abca34033
children c71948773f03
files pages/vote.inc.php
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/pages/vote.inc.php	Tue Nov 18 22:54:06 2014 +0200
+++ b/pages/vote.inc.php	Tue Nov 18 23:00:57 2014 +0200
@@ -148,8 +148,7 @@
           "  <tr class=\"".($row % 2 == 1 ? "rodd" : "reven")."\">\n".
           "   <td class=\"vshown\">".($entry["show_id"] > 0 ? $entry["show_id"] : "-")."</td>\n".
           "   <td class=\"ventry\">\n".
-          "    <div class=\"vpreview\">\n".
-          "     ";
+          "    <div class=\"vpreview\">";
 
         // The preview type can be overriden by the entry
         if (($pdata = stGetEntryPreviewData($compo, $entry, FALSE, TRUE)) !== false)
@@ -160,14 +159,14 @@
               if ($pdata["previewSize"] === FALSE || $pdata["thumbSize"] === FALSE)
               {
                 echo
-                  "<img class=\"imagePreview\" src=\"img/nopreview_tn.png\" alt=\"Preview\"/>";
+                  "<img class=\"imagePreview\" src=\"img/nopreview_tn.png\" alt=\"Preview\" />";
               }
               else
               {
                 echo
                   "<a href=\"".ihentities($pdata["previewURL"])."\">".
                   "<img class=\"imagePreview\" src=\"".ihentities($pdata["thumbURL"]).
-                  "\" alt=\"Preview\"/></a>";
+                  "\" alt=\"Preview\" /></a>";
               }
               break;
 
@@ -184,11 +183,12 @@
         }
 
         echo
-          "    </div>\n".
+          "</div>\n".
           "    <div class=\"vinfo\">".
           "<span class=\"vtitle\">".$entry["name"]."</span>".
           ($compo["show_authors"] ? "<span class=\"vby\"> by </span><span class=\"vauthor\">".$entry["author"]."</span>" : "").
-          "</div>\n";
+          "</div>\n".
+          "   </td>\n";
 
         $val = isset($votes[$eid]) ? $votes[$eid] : 0;
 
@@ -196,7 +196,7 @@
         {
           $nid = "ve".$eid."_".$i;
           echo
-            "    <td class=\"vvalue\">".
+            "   <td class=\"vvalue\">".
             "<input type=\"radio\" id=\"".$nid.
             "\" name=\"ventry".$eid."\" value=\"".$i."\" ".
             "onClick=\"updateVote(".$eid.",".$i.")\" ".