%%27^27A^27A2FB40%%topic.tpl.php 13.2 KB
<?php /* Smarty version 2.6.16, created on 2012-02-14 11:47:08
         compiled from topic.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'stripslashes', 'topic.tpl', 2, false),array('modifier', 'escape', 'topic.tpl', 2, false),array('modifier', 'nl2br', 'topic.tpl', 3, false),array('modifier', 'date_format', 'topic.tpl', 5, false),array('modifier', 'smile', 'topic.tpl', 50, false),array('modifier', 'capitalize', 'topic.tpl', 61, false),)), $this); ?>
<table border="0" cellpadding="2" cellspacing="0" width="100%" align="center" class="topic">
<tr><td><img src="img/black_strelki.gif" align="left" hspace="5" vspace="2"><strong><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['topic']['title'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
11<?php echo $this->_tpl_vars['topic']['parent_table']; ?>
</strong></td></tr>
<tr><td><?php if ($this->_tpl_vars['topic']['pic']): ?><img src="<?php echo @URL; ?>
pic/forum/<?php echo $this->_tpl_vars['topic']['pic']; ?>
" align="left" border="0"><?php endif;  if ($this->_tpl_vars['topic']['parent_table'] != 'topic'):  echo ((is_array($_tmp=$this->_tpl_vars['topic']['about'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp));  else:  echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['topic']['about'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')))) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp));  endif; ?></td></tr>
<tr>
    <td>&nbsp;<?php echo ((is_array($_tmp=$this->_tpl_vars['topic']['mktime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d-%m-%Y") : smarty_modifier_date_format($_tmp, "%d-%m-%Y")); ?>
, Êîììåíòàðèåâ:<?php echo $this->_tpl_vars['topic']['comments']; ?>
, Ïðîñìîòðîâ:<?php echo $this->_tpl_vars['topic']['view']; ?>
&nbsp;<a href="javascript:popup_forum(<?php echo $this->_tpl_vars['topic']['tree_id']; ?>
,<?php echo $this->_tpl_vars['topic']['id']; ?>
);" id="link_comment"><b>Êîììåíòèðîâàòü</b></a></td>
   </tr>
   
<?php if ($this->_tpl_vars['topic']['parent_table'] == 'topic'): ?>
<tr>
    <td align="right"><input type="button" class="button_delete" value="Óäàëèòü" onClick="del('<?php echo @URL; ?>
admin.php?action=forum&deleteID=<?php echo $this->_tpl_vars['topic']['id']; ?>
');"></td>
   </tr>
<?php endif; ?>
</table><br />

<?php if (count ( $this->_tpl_vars['commentsData']['data'] )): ?>
        <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['commentsData']['data']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
        <table border='0' cellpadding='2' cellspacing='0' width='100%' style="font-family:tahoma;">

        <?php unset($this->_sections['j']);
$this->_sections['j']['name'] = 'j';
$this->_sections['j']['loop'] = is_array($_loop=$this->_tpl_vars['commentsData']['data'][$this->_sections['i']['index']]['child']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['j']['show'] = true;
$this->_sections['j']['max'] = $this->_sections['j']['loop'];
$this->_sections['j']['step'] = 1;
$this->_sections['j']['start'] = $this->_sections['j']['step'] > 0 ? 0 : $this->_sections['j']['loop']-1;
if ($this->_sections['j']['show']) {
    $this->_sections['j']['total'] = $this->_sections['j']['loop'];
    if ($this->_sections['j']['total'] == 0)
        $this->_sections['j']['show'] = false;
} else
    $this->_sections['j']['total'] = 0;
if ($this->_sections['j']['show']):

            for ($this->_sections['j']['index'] = $this->_sections['j']['start'], $this->_sections['j']['iteration'] = 1;
                 $this->_sections['j']['iteration'] <= $this->_sections['j']['total'];
                 $this->_sections['j']['index'] += $this->_sections['j']['step'], $this->_sections['j']['iteration']++):
$this->_sections['j']['rownum'] = $this->_sections['j']['iteration'];
$this->_sections['j']['index_prev'] = $this->_sections['j']['index'] - $this->_sections['j']['step'];
$this->_sections['j']['index_next'] = $this->_sections['j']['index'] + $this->_sections['j']['step'];
$this->_sections['j']['first']      = ($this->_sections['j']['iteration'] == 1);
$this->_sections['j']['last']       = ($this->_sections['j']['iteration'] == $this->_sections['j']['total']);
?><tr><td bgcolor="#EEEEEE" colspan="2"><p>Öèòàòà:</p><p>Ñîîáùåíèå îò <?php echo $this->_tpl_vars['commentsData']['data'][$this->_sections['i']['index']]['login']; ?>
</p><p style="font-size:11px;color:#858585;"><?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['commentsData']['data'][$this->_sections['i']['index']]['about'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')))) ? $this->_run_mod_handler('smile', true, $_tmp) : smarty_modifier_smile($_tmp)))) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
</p><p style="color:#057DA4"><?php echo $this->_tpl_vars['commentsData']['data'][$this->_sections['i']['index']]['child'][$this->_sections['j']['index']]['login']; ?>
</p><?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['commentsData']['data'][$this->_sections['i']['index']]['child'][$this->_sections['j']['index']]['about'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')))) ? $this->_run_mod_handler('smile', true, $_tmp) : smarty_modifier_smile($_tmp)))) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
<p style="color:#989797;font-size:10px;"><?php echo ((is_array($_tmp=$this->_tpl_vars['commentsData']['data'][$this->_sections['i']['index']]['mktime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d-%m-%Y %H-%M") : smarty_modifier_date_format($_tmp, "%d-%m-%Y %H-%M")); ?>
</p></td></tr>
        <tr><td>
                <a href="admin.php?action=forum&topicID=<?php echo $this->_tpl_vars['topic']['id']; ?>
&commentDeleteID=<?php echo $this->_tpl_vars['commentsData']['data'][$this->_sections['i']['index']]['child'][$this->_sections['j']['index']]['id']; ?>
" onClick="return del()" style='color:#d52222;font-family:tahoma;font-size:11px;TEXT-DECORATION: underline;font-weight:normal'>Óäàëèòü</a>
                ,<a href='javascript:popup_forum_edit(<?php echo $this->_tpl_vars['commentsData']['data'][$this->_sections['i']['index']]['child'][$this->_sections['j']['index']]['id']; ?>
)'>Ïðàâèòü</a>
        </td></tr>
        <tr><td>&nbsp;</td></tr><?php endfor; endif; ?>


        <tr>
        <td width="<?php echo $this->_tpl_vars['commentsData']['data'][$this->_sections['i']['index']]['_level']*15; ?>
"></td><td>
        <table width='100%' BORDER=0 CELLPADDING=2 CELLSPACING=0 style="font-family:tahoma;">
        <tr><td valign="top"><?php if ($this->_tpl_vars['commentsData']['data'][$this->_sections['i']['index']]['pic1'] != NULL): ?><img align="right" src='<?php echo @URL; ?>
uploaded/pic/forum/user/<?php echo $this->_tpl_vars['commentsData']['data'][$this->_sections['i']['index']]['pic1']; ?>
' alt="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['forum'][$this->_sections['i']['index']]['name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')))) ? $this->_run_mod_handler('capitalize', true, $_tmp) : smarty_modifier_capitalize($_tmp)); ?>
" vspace="0" hspace="0" width="60" id="bor"><?php else: ?><img src='<?php echo @URL; ?>
img/lightbulb.gif' align="right" hspace="0" vspace="0"><?php endif; ?></td><td valign="top" width="100%"><p align="justify"><a name="cm<?php echo $this->_tpl_vars['forum'][$this->_sections['i']['index']]['id']; ?>
"><?php if ($this->_tpl_vars['commentsData']['data'][$this->_sections['i']['index']]['login'] != NULL): ?><span style="font-family:tahoma;font-size:14px;font-weight:bold;color:#008000"><u><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['commentsData']['data'][$this->_sections['i']['index']]['login'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')))) ? $this->_run_mod_handler('capitalize', true, $_tmp) : smarty_modifier_capitalize($_tmp)); ?>
</u></span><?php else: ?><span style="font-family:tahoma;font-size:14px;font-weight:bold;color:#008000">Áåç èìåíè</span><?php endif; ?>,</a>&nbsp;&nbsp;<a href='javascript:popup_forum(<?php echo $this->_tpl_vars['commentsData']['data'][$this->_sections['i']['index']]['id']; ?>
,<?php echo $this->_tpl_vars['topic']['id']; ?>
)' style='color:#CD5C5C;font-family:tahoma;font-size:14px;TEXT-DECORATION: underline;font-weight:bold'>Êîììåíòèðîâàòü</a>
        <?php if ($this->_tpl_vars['user']['type'] == 1): ?><a href="<?php echo @URL; ?>
forum/?topicID=<?php echo $this->_tpl_vars['topic']['id']; ?>
&commentDeleteID=<?php echo $this->_tpl_vars['commentsData']['data'][$this->_sections['i']['index']]['id']; ?>
" onClick="return del()" style='color:#d52222;font-family:tahoma;font-size:11px;TEXT-DECORATION: underline;font-weight:normal'>Óäàëèòü</a>, <a href='javascript:popup_forum_edit(<?php echo $this->_tpl_vars['commentsData']['data'][$this->_sections['i']['index']]['id']; ?>
)'>Ïðàâèòü</a><?php endif; ?>
        <div style="color:#619ab5;font-family:tahoma;font-weight:bold"><?php echo ((is_array($_tmp=$this->_tpl_vars['commentsData']['data'][$this->_sections['i']['index']]['title'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
</div>
        <div style='color:#000000;font-size:11px;font-family:tahoma;padding-left:20px'><?php if ($this->_tpl_vars['commentsData']['data'][$this->_sections['i']['index']]['pic'] != NULL): ?><img align="right" border="0" src="<?php echo @URL; ?>
uploaded/pic/forum/<?php echo $this->_tpl_vars['commentsData']['data'][$this->_sections['i']['index']]['pic']; ?>
" /><?php endif;  echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['commentsData']['data'][$this->_sections['i']['index']]['about'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')))) ? $this->_run_mod_handler('smile', true, $_tmp) : smarty_modifier_smile($_tmp)))) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
</div>
        </p>
        </td></tr>
        <tr><td style='border-bottom:2px solid #e1e9ee;color:#989797;font-family:tahoma;font-size:11px;' colspan="2">&nbsp;<?php echo ((is_array($_tmp=$this->_tpl_vars['commentsData']['data'][$this->_sections['i']['index']]['mktime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d-%m-%Y %H-%M") : smarty_modifier_date_format($_tmp, "%d-%m-%Y %H-%M")); ?>

                <a href="admin.php?action=forum&topicID=<?php echo $this->_tpl_vars['topic']['id']; ?>
&commentDeleteID=<?php echo $this->_tpl_vars['commentsData']['data'][$this->_sections['i']['index']]['id']; ?>
" onClick="return del()" style='color:#d52222;font-family:tahoma;font-size:11px;TEXT-DECORATION: underline;font-weight:normal'>Óäàëèòü</a>
                ,<a href='javascript:popup_forum_edit(<?php echo $this->_tpl_vars['commentsData']['data'][$this->_sections['i']['index']]['id']; ?>
)'>Ïðàâèòü</a>
        </td></tr>
        </tr></table>
        </td>
        </tr>
        </table>
        <?php endfor; endif; ?>
        <br>
        <?php if ($this->_tpl_vars['commentsData']['links']): ?>
        <table border='0' cellpadding='0' cellspacing='2' width='100%' style="background:#e8e8e8;border-bottom:1px solid #cacaca;font-family:tahoma;font-size:12px">
        <tr><td>&nbsp;Ñòðàíèöû:</td><td width='100%'><?php echo $this->_tpl_vars['commentsData']['links']; ?>
</td></tr>
        </table>
        <?php endif;  endif; ?>