%
Dim showpollid,arrpoll, printable
Dim pollEditAllowed, pollCreator, lastVoteDate, allowMultiple
Dim choiceID, choice, counts, resultPage, iChoice
%>
<% if not messageNotAvailable and rights <> 0 and isPoll=1 then %>
<% if isArray(showPoll(showpollid)) then%>
<% if printable then
titlefontcolor="000000"
tabletitle = "ffffff"
end if
%>
|
<%= ttPollTopic %>
|
align="center">
<% if ubound(arrPoll,1) = 2 then 'Show Poll Voting Interface %>
<% elseif ubound(arrPoll,1) = 4 then 'Show Poll Result%>
<%= arrPoll(0,0) %>
|
<% for iChoice = 0 to ubound(arrPoll,2) %>
| <%= HTMLEncode(""&arrPoll(1,iChoice)) %> |
|
<% counts = counts + arrPoll(2,iChoice) %>
<% next %>
<%=pgdPollTotalVotes & counts %>
<% if not printable then %>
<% if pollEditAllowed then %>
[<%= tmPollEditDesc %>]
<% end if %>
<% if mode or isAdmin then %>
[<%= tmStripPollDesc %>]
<% end if %>
<% end if %>
|
<% end if %>
| colspan=2>
(<%= tmPollLastVote &" : "& SQLDate(lastVoteDate, Application(dbName&"timeoffset"), true) %>)
|
|
<% end if %>
<% End If %>