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_list.php

<?php
include ("classes/poll.class.php");
$poll = new Poll ();


$poll_info = $poll->get_poll ($_GET['id'], 2);
$poll_is_voted = $poll->is_voted ($poll_info['id']);
?>

<table width="90%" cellspacing="2" cellpadding="2" border="0">
<tr>
	<td class="style3"><?=$poll_info['theme']; ?></td>
</tr>
<tr>
	<?php
  if (is_array($poll_info['votes']))
  foreach ($poll_info['votes'] as $vot_id => $vot_val) {?>
<td class="style3">	
&nbsp;<?= $vot_val['vot']; ?> - &nbsp;<?= $vot_val['percent'];?>%; гласували: <?=$vot_val['counter']?>
</td>
	</tr>
<?php
    }?>
							
</table><br>

<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
	<td  bgcolor="#e6e6e6" valign="top"><font size="2">&nbsp;</font><strong>Всички анкети</strong></td></td>
</tr>
</table>

<?
$poll->set_condition(NULL);
$poll->set_records(-1);
$poll->set_order('id DESC');
$poll_list = $poll->list_themes (true);?>
<table width="90%" cellspacing="2" cellpadding="2" border="0">

<?if (is_array($poll_list['data']))
  foreach ($poll_list['data'] as $id => $p_i) {
?><tr>
<td><img src="pic/mi_mini.gif" width="12" height="7" border="0"></td>
<td><a href="index2.php?lang=bg&page=84&id=<?= $p_i['id']; ?>"><?= $p_i['theme']; ?></a></td>
</tr>
<?php
  }
?>

</table>
</td>
</tr>
</table>