% $cookiename = "CPLC51polls"; $pollsvoted = $CPLC51polls; function sqldate($d) { list($year,$month,$day,$hour,$minute,$second) = split("([^0-9])", $d ); return date("F j, Y",mktime($hour,$minute,$second,$month,$day,$year)); } function sqltime($d) { list($year,$month,$day,$hour,$minute,$second) = split("([^0-9])", $d ); return date("g:ia T, D, M j, Y",mktime($hour,$minute,$second,$month,$day,$year)); } %>
|
What are the latest results of all polls?
Latest activity: <%=sqltime($row[0]) %>
Sorry, there are currently no questions open for voting. <% } else { echo "
Add your vote to ";
if ($qcount == 1)
echo "this informal, unscientific poll.";
else
echo "these informal, unscientific polls.";
%>
Please only vote once for each question.
\nWe are currently asking the following questions:\n\n\n"; } %>\n"; for ($r = 0; $r < $qcount; $r++) { $qrow = pg_fetch_array($rs_q, $r); echo "
- ", htmlspecialchars($qrow["question"]), "
\n"; } echo "
| Question <%=htmlspecialchars($qrow["qname"]) %>: | <% if (($d = $qrow[("enddate")]) == NULL) echo "(no defined time limit)"; else echo "vote before ", sqldate($d), ""; %> |
|
|
You can comment more extensively in our discussion forum.
<% pg_close($cnx); %>