if (count($results) > 0) { ?>
Made on =$month?>, in a representative sample of the =number_format($population,0)?> voters thought to match the criteria given:
foreach($criterias as $criteria): ?>
- =$criteria?>
endforeach; ?>
=$graphtitle?>
if ($god == 0) { ?>
Margin of error: +/- =$errormargin?> %
} ?>
|
if ($graphtype == "opinion") { ?>
foreach($results as $line): ?>
|
endforeach; ?>
|
if ($graphtype=="opinion") { ?>
=$recideology['Min']?> - =$recideology['Max']?> |
} ?>
} else { ?>
} ?>
|
foreach($results as $line): ?>
if ($graphtype!="opinion")
print ' | ';
print '';
if ($graphtype=="opinion") {
if ($line['ideo']<5)
print str_replace( "*" , $recideology['MinAdj'] , $ideologyadjectives[$line['ideo']] );
else
print str_replace( "*" , $recideology['MaxAdj'] , $ideologyadjectives[9-$line['ideo']] );
} else if ($graphtype=="vote") {
print ''.$line['partyname'].'';
} else {
if ($line['Voted'] == 0)
print 'Abstained';
else
print 'Voted';
}
?>
| =round($line['percent']*10)/10?>% |
endforeach; ?>
|
} else { ?>
Too few citizens matched the criteria given; no poll was possible.
} ?>