File size: 4.39Kb
<?php /* Smarty version Smarty3-RC3, created on 2010-10-10 17:33:25
compiled from "X:/home/biling.ru/www/sys/smarty/templates/komm.tpl" */ ?>
<?php /*%%SmartyHeaderCode:142074cb1ceb503e394-21424509%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'ebdc95399e30b44c8f1251081c041b26ac3a9e41' =>
array (
0 => 'X:/home/biling.ru/www/sys/smarty/templates/komm.tpl',
1 => 1286650918,
),
),
'nocache_hash' => '142074cb1ceb503e394-21424509',
'function' =>
array (
),
'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_block_php')) include 'X:\home\biling.ru\www\sys\smarty\plugins\block.php.php';
if (!is_callable('smarty_modifier_date_format')) include 'X:\home\biling.ru\www\sys\smarty\plugins\modifier.date_format.php';
if (!is_callable('smarty_modifier_escape')) include 'X:\home\biling.ru\www\sys\smarty\plugins\modifier.escape.php';
?><div class="title">Комментарии</div>
<?php ob_start();?><?php echo $_smarty_tpl->getVariable('vse')->value;?>
<?php $_tmp1=ob_get_clean();?><?php if ($_tmp1>0){?>
<?php $_smarty_tpl->tpl_vars['comm'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('komm')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
foreach ($_from as $_smarty_tpl->tpl_vars['comm']->key => $_smarty_tpl->tpl_vars['comm']->value){
?>
<div class="main">
<a href="anketa-<?php echo $_smarty_tpl->tpl_vars['comm']->value['user_id'];?>
">
<?php $_smarty_tpl->smarty->_tag_stack[] = array('php', array()); $_block_repeat=true; smarty_block_php(array(), null, $_smarty_tpl->smarty, $_block_repeat, $_smarty_tpl);while ($_block_repeat) { ob_start();?>
global $sql;
$ll = $sql->query('SELECT `nick` FROM `acc` WHERE `id`="<?php echo $_smarty_tpl->tpl_vars['comm']->value['user_id'];?>
"')->fetch_assoc();
echo $ll['nick'];
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_php(array(), $_block_content, $_smarty_tpl->smarty, $_block_repeat, $_smarty_tpl); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
</a> [<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['comm']->value['time'],"%d.%m.%y %H:%M");?>
]<br/>
<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['comm']->value['text'],'html');?>
</div>
<?php }} ?>
<?php }?>
<?php ob_start();?><?php echo $_smarty_tpl->getVariable('vse')->value;?>
<?php $_tmp2=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->getVariable('vse')->value;?>
<?php $_tmp3=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->getVariable('one')->value;?>
<?php $_tmp4=ob_get_clean();?><?php if ($_tmp2>0&&$_tmp3>$_tmp4){?>
<div class="ads">
<?php ob_start();?><?php echo $_smarty_tpl->getVariable('page')->value;?>
<?php $_tmp5=ob_get_clean();?><?php if ($_tmp5>1){?>
<a href="comments.php?page=<?php echo $_smarty_tpl->getVariable('page')->value-1;?>
&id=<?php echo $_smarty_tpl->getVariable('id')->value;?>
">Пред.</a>
<?php }?>
<?php ob_start();?><?php echo $_smarty_tpl->getVariable('page')->value;?>
<?php $_tmp6=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->getVariable('all')->value;?>
<?php $_tmp7=ob_get_clean();?><?php if ($_tmp6<$_tmp7){?>
<a href="comments.php?page=<?php echo $_smarty_tpl->getVariable('page')->value+1;?>
&id=<?php echo $_smarty_tpl->getVariable('id')->value;?>
">След.</a><br/>
<?php }?>
<form action="comments.php" method="get">Стр. <input type="text" size="2" name="page" />
<input type="hidden" name="id" value="<?php echo $_smarty_tpl->getVariable('if')->value;?>
" />
<input type="submit" value="go" /></form>
</div>
<?php }?>
<?php ob_start();?><?php echo $_smarty_tpl->getVariable('user')->value['id'];?>
<?php $_tmp8=ob_get_clean();?><?php if (!empty($_tmp8)){?>
<form action="comments.php?id=<?php echo $_smarty_tpl->getVariable('id')->value;?>
" method="post">
<div class="main">
Введите комментарий:<br/>
<textarea name="text" cols="13" rows="4"></textarea>
<br/>
<img src="captcha.php" alt="wait" /><br/>
Код с картинки:<br/>
<input type="text" name="kod" />
<br/>
<input type="submit" name="go" value="Отправить" />
</div></form>
<?php }?>
<div class="ads"><a href="/file-<?php echo $_smarty_tpl->getVariable('id')->value;?>
">K файлу</a></div>