LONTE SHELL EDITION


Dashboard -*- SHOW INFO -*- HASH identify -*- Config -*- Jumping

You Are Here : /var/www/virtual/tvarditsa.org/pages/
Upload File :
Current File : /var/www/virtual/tvarditsa.org/pages/anketa.php

<?php
include ('pages/poll.cfg.php');
include ("classes/poll.class.php");

$poll = new Poll ();
if ($poll_visible > 0) {
$poll_info = $poll->get_poll ($poll_visible, 2);
//error_reporting(E_ALL);
$poll_is_voted = $poll->is_voted ($poll_info['id']);
?>
<form action="?lang=<?= $language; ?>&page=83" method="post">
        <input type="hidden" name="url" value="index.php">
<table align="center" width="90%" cellspacing="0" cellpadding="0" border="1">
<tr>
	<td>
	<table width="99%" cellspacing="1" cellpadding="1" border="0">
		<tr>
			<td class="style2">
			<strong><div align="center"><?=$poll_info['theme']; ?></div></strong>
			</td>
		</tr>
		<tr>
	<?php
  if (is_array($poll_info['votes']))
  foreach ($poll_info['votes'] as $vot_id => $vot_val) {?>
				<td valign="top" class="style2"><?php if (!$poll_is_voted) {
?>&nbsp;<input type="radio" name="vot" value="<?= $vot_val['id']; ?>" style="background-color: #F5E5E2; height: 12px; width: 12px;"><?php
}
?>&nbsp;<?= $vot_val['vot']; ?> - &nbsp;<?= $vot_val['percent']; ?>%</td>
							</tr>
<?php
    }?>
							
		</table>
	
	</td>
</tr>
<tr>
	<td align="right" valign="middle"><br>
<? if (!$poll_is_voted) {?>
<input type="submit" value="гласувай" style="font-size: 12px; border: 1px solid #000000; background: White; font-weight: bold; width: 70px;">
<?}?><input type="button" value="резултати" style="font-size: 12px; border: 1px solid #000000; background: White; font-weight: bold; width: 70px;" onclick="javascript:window.location =  '?lang=<?=$lang?>&page=84&id=<?=$poll_info['id'];?>';">
	</td>
</tr>
</table></form>
<?}?>