Here are the designs we're considering for the next Mud Dud. Cast your vote, get your friends on board and chances are you could be wearing your new favorite tee soon!
if (isset($HTTP_GET_VARS['pollid'])) {
$pollid=$HTTP_GET_VARS['pollid'];
} else {
$pollid=1;
}
$poll_query=tep_db_query("select voters from phesis_poll_desc where pollid=$pollid and poll_open='0'");
$poll_details=tep_db_fetch_array($poll_query);
$title_query = tep_db_query("select optionText from phesis_poll_data where pollid=$pollid and voteid='0' and language_id = '" . $languages_id . "'");
$title = tep_db_fetch_array($title_query);
$info_box_contents = array();
$url = tep_href_link('pollbooth.php', 'op=results&pollid='.$pollid);
$content = "
" . $title['optionText'] . "
";
$content .= "\n";
$content .= "\n";
for ($i=1;$i<=8;$i++) {
$query=tep_db_query("select pollid, optiontext, optioncount, voteid, imgurl from phesis_poll_data where (pollid=$pollid) and (voteid=$i) and (language_id=$languages_id)");
if ($result=tep_db_fetch_array($query)) {
if ($result['optiontext']) {
if( $odd = $i%2 )
{
$content.= "
";
$query=tep_db_query("select sum(optioncount) as sum from phesis_poll_data where pollid=$pollid");
$query1=tep_db_query("select count(pollid) as comments from phesis_comments where pollid=$pollid and language_id=$languages_id");
$result1 = tep_db_fetch_array($query1);
$comments1 = $result1['comments'];
if ($result=tep_db_fetch_array($query)) {
$sum=$result['sum'];
}
$info_box_contents = array();
$info_box_contents[] = array('form' => '