changeset 712:61c8bbc80e94

Some work on voting page.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 11 Nov 2014 01:15:42 +0200
parents e8a115e222dc
children e60ca82d9491
files pages/vote.inc.php
diffstat 1 files changed, 12 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/pages/vote.inc.php	Tue Nov 11 01:14:20 2014 +0200
+++ b/pages/vote.inc.php	Tue Nov 11 01:15:42 2014 +0200
@@ -130,13 +130,10 @@
     {
       echo
       " <table class=\"vote\">\n".
-      "  <tr><th colspan=\"".($compo["show_authors"] ? "3" : "2")."\">".chentities($compo["name"])."</th></tr>\n".
+      "  <tr><th colspan=\"2\">".chentities($compo["name"])."</th></tr>\n".
       "  <tr>\n".
       "   <th class=\"vshown\">#</th>\n".
-      "   <th class=\"vtitle\">Title</th>\n".
-      ($compo["show_authors"] ? "   <th class=\"vauthor\">Author</th>\n" : "").
-      "   ";
-
+      "   <th class=\"ventry\">Entry</th>\n";
       for ($i = stGetSetting("voteMax"); $i >= stGetSetting("voteMin"); $i--)
       {
         echo "   <th class=\"vvalue\">".$i."</th>\n";
@@ -151,9 +148,16 @@
         echo
           "  <tr class=\"".($row % 2 == 1 ? "rodd" : "reven")."\">\n".
           "   <td class=\"vshown\">".($entry["show_id"] > 0 ? $entry["show_id"] : "-")."</td>\n".
-          "   <td class=\"vtitle\">".$entry["name"]."</td>\n".
-          ($compo["show_authors"] ? "   <td class=\"vauthor\">".$entry["author"]."</td>\n" : "").
-          "   ";
+          "   <td class=\"ventry\">\n".
+          "    <div class=\"vpreview\">\n".
+          "     ";
+
+        echo
+          "    </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";
 
         $val = isset($votes[$eid]) ? $votes[$eid] : 0;