Mercurial > hg > fapweb
changeset 127:6b71472cda77
A tiny bit of work on voting.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 22 Oct 2013 17:16:03 +0300 |
parents | 71c35d5302c2 |
children | dcf701c7f249 |
files | vote.inc.php |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/vote.inc.php Tue Oct 22 17:00:49 2013 +0300 +++ b/vote.inc.php Tue Oct 22 17:16:03 2013 +0300 @@ -12,6 +12,7 @@ "</div>\n"; } + // Check if voting is enabled if (!stChkSetting("allowVoting")) { @@ -59,7 +60,7 @@ echo "<h1>Voting system</h1>\n". stGetFormStart("vote", "usrvote.php"). - " ".stGetFormHiddenInput("mode", "vote")."\n". + " ".stGetFormHiddenInput("mode", "done")."\n". " ".stGetFormHiddenInput("goto", "vote")."\n". " ".stGetFormHiddenInput("key", stGetSessionItem("key"))."\n". stGetVoteButton(); @@ -69,8 +70,9 @@ { echo " <table class=\"vote\">\n". - " <tr><th colspan=\"3\">".chentities($compo["name"])."</th></tr>\n". + " <tr><th colspan=\"".($compo["showAuthors"] ? "3" : "2")."\">".chentities($compo["name"])."</th></tr>\n". " <tr>\n". + " <th class=\"vshown\">#</th>\n". " <th class=\"vtitle\">Title</th>\n". ($compo["showAuthors"] ? " <th class=\"vauthor\">Author</th>\n" : ""). " "; @@ -88,7 +90,7 @@ { echo " <tr class=\"".($row % 2 == 1 ? "rodd" : "reven")."\">\n". - " <td class=\"show_id\">".($entry["show_id"] > 0 ? $entry["show_id"] : "-")."</td>\n". + " <td class=\"vshown\">".($entry["show_id"] > 0 ? $entry["show_id"] : "-")."</td>\n". " <td class=\"vtitle\">".$entry["name"]."</td>\n". ($compo["showAuthors"] ? " <td class=\"vauthor\">".$entry["author"]."</td>\n" : ""). " ";