<?php

// -----------------------------------------------------------------------
// This file is part of AROUNDMe
// 
// Copyright (C) 2003 - 2006 Barnraiser
// http://www.barnraiser.org/
// info@barnraiser.org
// 
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the
// Free Software Foundation; either version 2, or (at your option) any
// later version.
// 
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License for more details.
// 
// You should have received a copy of the GNU General Public License
// along with program; see the file COPYING. If not, write to the Free
// Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
// 02110-1301, USA.
// -----------------------------------------------------------------------

?>


<table cellpadding="2" cellspacing="0" border="0" width="100%">
	<tr>
		<td colspan="3">
			<b><?php echo $i['poll_question'];?></b><br />
		</td>
	</tr>
	<?php
		unset($voted);
		if (isset($i['options'])) {
		foreach($i['options'] as $key => $p):
	?>
	<tr>
		<td width="20%" valign="bottom">
			<table border="0" cellspacing="0" cellpadding="0" width="100%">
				<tr>
					<td width="<?php echo $p['percent'];?>%" class="bg1">
						<img src="<?php echo $templatePath;?>img/pixel.png" width="1" height="9" /><br />
					</td>
					<td width="<?php echo 100-$p['percent'];?>%" class="bg2">
						<img src="<?php echo $templatePath;?>img/pixel.png" width="1" height="9" /><br />
					</td>
				</tr>
			</table>
		</td>
		<td valign="top">
			<?php echo $p['option_body'];?><br />
		</td>
		<td valign="top" nowrap="nowrap" width="3%">
			<?php echo $p['percent'];?>&#37;<br />
		</td>
	</tr>
	<?php 
	endforeach;
	}
	?>
	<tr>
</table>
<table cellpadding="2" cellspacing="0" border="0" width="100%">
	<tr>
		<td colspan="2">
			<hr />
		</td>
	</tr>
	<tr>
		<td>
			<?php echo $i['total_votes'];?>&nbsp;<?php echo $lang['txt_votes'];?><br />
		</td>
		<td valign="top" align="right">
 			<a href="<?php echo $poll_url;?>" class="txt_footer_lnk"><?php echo $lang['href_visit_poll'];?></a><br />
 		</td>
 	</tr>
</table>