db_Select_gen($query)) { $row = $sql -> db_Fetch(); extract($row); $optionArray = explode(chr(1), $poll_options); $optionArray = array_slice($optionArray, 0, -1); $voteArray = explode(chr(1), $poll_votes); $voteArray = array_slice($voteArray, 0, -1); $voteTotal = array_sum($voteArray); $percentage = array(); foreach($voteArray as $votes) { $percentage[] = round(($votes/$voteTotal) * 100, 2); } $start_datestamp = $gen->convert_date($poll_datestamp, "long"); $end_datestamp = $gen->convert_date($poll_end_datestamp, "long"); $text = "
".$tp -> toHTML($poll_title,TRUE,'TITLE')."
".POLLAN_35." ".$user_name.".
".POLLAN_37." ".$start_datestamp." ".POLLAN_38." ".$end_datestamp.". ".POLLAN_26.": {$voteTotal} |
|
".$tp -> toHTML($option, TRUE, 'TITLE')." |
|
"; while ($row = $sql->db_Fetch()) { $text .= $cobj->render_comment($row); } $text .= " |
".POLLAN_34." | ".POLLAN_35." | ".POLLAN_36." |
{$poll_title} | {$user_name} | {$from} ".POLLAN_38." {$to} |