<TABLE align="center" width="90%" cellspacing="0" cellpadding="0" border="0">
  <TR>
	<TD class="m_head"><img src="./img/h_poll.gif" width="28" height="29" alt="Poll results" border="0" align="absmiddle">&nbsp;&nbsp;Previous Poll Results &raquo;</TD>
  </TR>
  <TR>
	<TD class="m_text"><br>The polls are sorted by date, and you'll always find the latest 
	poll right here on top. Please notice that we reserve the right to remove polls that 
	we consider to be uninteresting, or polls that didn't receive enough votes. Whatever comes first!<br><br>
	Feel free to <a class="m_text" href="?view=contact" 
	onMouseOver="window.status='Send us your opinion'; return true" 
	onMouseOut="window.status=' '">suggest a new poll session</a> if you believe you 
	have some great new questions to feed the crowd. But before you do so, PLEASE see to it that your 
	brilliant idea isn't listed below, or glimmering to the left...</TD>
  </TR>
</TABLE>
<br>
<?php

// Display previous poll results...
if ($view == "poll_previous" ) {
    $file_contents = file("admin/".$archive_poll);
        if (sizeof($file_contents) == 0) {
            echo "<p class=\"poll_status\" align=\"center\">" . $no_previous . "</p>";
			}
			else
			{
            for ($i=sizeof($file_contents)-1; $i>=0; $i--) {
//          for ($i=0;$i<sizeof($file_contents);$i++) {
                $each_poll = explode("|", $file_contents[$i]);
				echo "<TABLE align=\"center\" class=\"poll_vtable\" width=\"90%\" cellspacing=\"0\" cellpadding=\"5\" border=\"0\">\n";
				echo "  <TR class=\"poll_vtitle\">\n";
				echo "    <TD align=\"left\" colspan=\"3\"><b>Poll Title: " . $each_poll[0] . "</b></TD>\n";
				echo $each_poll[1];
				echo "</TABLE><br><br>\n";
				}
        }
}

?>