* @copyright Copyright 2009-2011
* @license http://www.gnu.org/licenses/gpl.txt GNU General Public License V2.0
*/
print '
' . $ppoll['question'] . '
';
foreach($ppoll['option'] as $index => $option) {
print '' . html_entity_decode($option['text']) . '
';
$perc = round($option['count'] / $vtotal * 100, 0);
print "
get_template_dir(PM_FILENAME_VOTE_BAR, DIR_WS_TEMPLATE, $current_page_base, 'images/') . PM_FILENAME_VOTE_BAR . ");\"> ";
print "
" . ($_GET['poll_type'] == '0' ? $perc . "%" : $option['count']) . "
";
}
print "