Viewing file: b384de74340ced122970506e2c9b483778232792.file.rows.tpl.php (1.54 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /* Smarty version Smarty3-RC3, created on 2011-05-11 00:09:29 compiled from "user/templates/questions/rows.tpl" */ ?> <?php /*%%SmartyHeaderCode:1723393724dc9a989b0b510-60479820%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( 'b384de74340ced122970506e2c9b483778232792' => array ( 0 => 'user/templates/questions/rows.tpl', 1 => 1305061757, ), ), 'nocache_hash' => '1723393724dc9a989b0b510-60479820', 'function' => array ( ), 'has_nocache_code' => false, )); /*/%%SmartyHeaderCode%%*/?> <?php $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['key'] = 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){ $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['row']->key; ?>
<div class="answer-block">
<div class="answer-header">
<div class="question"><?php echo $_smarty_tpl->tpl_vars['row']->value['index'];?> . <?php echo $_smarty_tpl->tpl_vars['row']->value['question_text'];?> </div>
<div class="author"><?php echo $_smarty_tpl->tpl_vars['row']->value['question_author_name'];?> </div>
</div>
<div class="answer-text">
<div class="answer"><?php echo $_smarty_tpl->tpl_vars['row']->value['question_answer'];?> </div>
</div>
</div>
<?php }} ?>
|