- Player polls are now displayed in a table with alternating row colors.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4215 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
baloh.matevz
2012-07-29 10:57:07 +00:00
parent 4fcbd6e169
commit 4b41009ee9

View File

@@ -79,10 +79,19 @@
var/pollid
var/pollquestion
output += "<table>"
var/color1 = "#ececec"
var/color2 = "#e2e2e2"
var/i = 0
while(select_query.NextRow())
pollid = select_query.item[1]
pollquestion = select_query.item[2]
output += "<a href=\"byond://?src=\ref[src];pollid=[pollid]\"><b>[pollquestion]</b></a><br>"
output += "<tr bgcolor='[ (i % 2 == 1) ? color1 : color2 ]'><td><a href=\"byond://?src=\ref[src];pollid=[pollid]\"><b>[pollquestion]</b></a></td></tr>"
i++
output += "</table>"
src << browse(output,"window=playerpolllist;size=500x300")