module_name . '/images/leftbar.gif'; $mainbar = 'modules/' . $this->module_name . '/images/mainbar.gif'; $rightbar = 'modules/' . $this->module_name . '/images/rightbar.gif'; } $l_size = getimagesize($leftbar); $m_size = getimagesize($mainbar); $r_size = getimagesize($rightbar); $rows = ''; foreach ($this->options as $voteID => $object) { if ($this->voters) { $percent = 100 * $object['optionCount'] / $this->voters; } else { $percent = 0; } $percentInt = intval($percent * 2.5); $percent2 = intval($percent); $var = ($percent > 0) ? $percentInt : $m_size[0]; $rows .= " " . $object['optionText'] . " \"{$percent2}%\" \"{$percent2}%\" \"{$percent2}%\" " . sprintf(" %.2f%% (%s)", $percent, $object['optionCount']) . " "; } /* Leerzeichen zwischen entfernen */ $rows = preg_replace('#>\s+<#', '><', $rows); ?>