Viewing file: 9971a8da1c244cf27bc4005a2fbc608cdeca65f9.file.pollslist.tpl.php (2.17 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /* Smarty version Smarty3-RC3, created on 2011-05-11 00:39:02 compiled from "user/templates/polls/pollslist.tpl" */ ?> <?php /*%%SmartyHeaderCode:2637653324dc9b076eb3336-56480939%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( '9971a8da1c244cf27bc4005a2fbc608cdeca65f9' => array ( 0 => 'user/templates/polls/pollslist.tpl', 1 => 1305061757, ), ), 'nocache_hash' => '2637653324dc9b076eb3336-56480939', 'function' => array ( ), 'has_nocache_code' => false, )); /*/%%SmartyHeaderCode%%*/?> <table cellspacing="1" align="center" align="center" class="default-table">
<tr>
<th></th>
<th><?php echo $_smarty_tpl->getVariable('PollsQuestion')->value;?> </th>
<th>Голосов</th>
<th>Открыт</th>
</tr>
<?php $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_from = $_smarty_tpl->getVariable('rows')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} if (count($_from) > 0){ foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){ ?>
<?php if ($_smarty_tpl->tpl_vars['row']->value['poll_state']!='H'){?>
<tr valign="top">
<td>
<?php if ($_smarty_tpl->tpl_vars['row']->value['poll_state']=='Y'){?>
<img src="/user/images/polls/open.gif" title="<?php echo $_smarty_tpl->getVariable('state')->value;?> " />
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['row']->value['poll_state']=='N'){?>
<img src="/user/images/polls/close.gif" title="<?php echo $_smarty_tpl->getVariable('state')->value;?> " />
<?php }?>
</td>
<td><a href="/polls/<?php echo $_smarty_tpl->tpl_vars['row']->value['poll_id'];?> "><?php echo $_smarty_tpl->tpl_vars['row']->value["poll_question_".($_smarty_tpl->getVariable('ulang')->value)];?> </a></td>
<td align="right"><?php echo array_sum(json_decode($_smarty_tpl->tpl_vars['row']->value['poll_results'],true));?> </td>
<td nowrap="nowrap"><?php echo GetUsefulDate($_smarty_tpl->tpl_vars['row']->value['poll_date_of_creation'],true,false);?> </td>
</tr>
<?php }?>
<?php }} ?>
</table>
|