Viewing file: b384de74340ced122970506e2c9b483778232792.file.rows.tpl.php (1.53 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /* Smarty version Smarty3-RC3, created on 2012-02-26 12:28:46 compiled from "user/templates/questions/rows.tpl" */ ?> <?php /*%%SmartyHeaderCode:8060734484f4a095ed31948-65955428%%*/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 => 1330251713, ), ), 'nocache_hash' => '8060734484f4a095ed31948-65955428', '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 }} ?>
|