%%F9^F92^F92FFC1F%%forum.tpl.php 12.5 KB
<?php /* Smarty version 2.6.16, created on 2012-01-27 10:14:55
         compiled from forum.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'forum.tpl', 18, false),array('modifier', 'stripslashes', 'forum.tpl', 40, false),array('modifier', 'truncate', 'forum.tpl', 40, false),array('modifier', 'default', 'forum.tpl', 40, false),array('modifier', 'smile', 'forum.tpl', 41, false),array('function', 'cycle', 'forum.tpl', 38, false),)), $this); ?>
<div class="title3 mt">Ôîðóì</div>
 <br />
<table style="border: 1px solid #A79787;font-family:tahoma;font-size:12px" bgcolor="#ffffff" border="0" cellpadding="4" cellspacing="1" width="100%">
<tr><td class="title2_2"><b>Ðåãèñòðàöèÿ íà ôîðóìå</b></td></tr>
<tr bgcolor="#F5F5F5" height="34">
<td width="80%">Ðåãèñòðàöèÿ íà ôîðóìå íå ÿâëÿåòñÿ îáÿçàòåëüíîé, ëþáîé ïîñåòèòåëü ôîðóìà ìîæåò îñòàâèòü ñâîé êîììåíòàðèé ïî çàèíòåðåñîâàâøåé åãî òåìå. </td>
</tr>
</table><br>

<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td valign="top">
<table style="border: 1px solid #A79787;font-family:tahoma;font-size:12px" bgcolor="#ffffff" border="0" cellpadding="4" cellspacing="1" width="200">
<form method="post" action="<?php echo @URL;  echo $this->_tpl_vars['rules_info_one']['action']; ?>
/">
<tr><td colspan="2" align="center" class="title2_2"><b>Ñëóæåáíûé âõîä</b></td></tr>
<?php if ($this->_tpl_vars['user']['id'] > 0): ?>
<tr bgcolor="#F5F5F5">
 <td width="100%" align="center" style="font-family:tahoma;font-size:12px" height="70"><center><!--<img src="/img/angry_smile.gif" border="0" vspace="1"><br>--><?php if ($this->_tpl_vars['user']['pic']): ?><img src="<?php echo @URL; ?>
uploaded/pic/forum/user/<?php echo $this->_tpl_vars['user']['pic']; ?>
" border="0" vspace="1"><br><?php endif; ?>Çäðàâñòâóéòå <b><?php echo ((is_array($_tmp=$this->_tpl_vars['user']['login'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
</b>!<center><a href="<?php echo @URL;  echo $this->_tpl_vars['rules_info_one']['action']; ?>
/?modAction=register" style="font-size:11px;">Ðåäàêòèðîâàòü</a></td></tr>
 <tr bgcolor="#F5F5F5" height="33"><td colspan="2" align="center"><center><input style="border:1px solid #A79787;background:#d6d6d9;font-family:tahoma;font-size:11px;text-align:center" value=" Âûéòè " name="exit" type="submit"></center></td></tr>
<?php else: ?>
<tr bgcolor="#F5F5F5" height="27"><td>Ëîãèí:</td><td width="100%"><input name="forum_login" class="input_form" type="text"></td></tr>
<tr bgcolor="#F5F5F5" height="27"><td>Ïàðîëü:</td><td width="100%"><input name="forum_psw" class="input_form" type="password"></td></tr>
<tr bgcolor="#F5F5F5" height="13"><td style="font-family:tahoma;font-size:9px" colspan="2">
<center><a href="<?php echo @URL;  echo $this->_tpl_vars['rules_info_one']['action']; ?>
/?modAction=register" style="font-size:9px;color:#989797;text-align:center;">Ðåãèñòðàöèÿ</a></center>
</td>
<tr bgcolor="#F5F5F5"><td colspan="2" align="center" height="28"><center>
<input class="submit" value=" Âîéòè " type="submit">
</center></td></tr>
<?php endif; ?>
</form>
</table>
</td>
<td>&nbsp;</td>
<td width="100%" valign="top">
<table style="border: 1px solid #A79787;font-family:tahoma;font-size:12px" bgcolor="#ffffff" border="0" cellpadding="4" cellspacing="1" width="100%">
<tr><td colspan="3" class="title2_2"><b>Ïîñëåäíèå êîììåíòàðèè</b></td></tr>
<?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['last_comments']) ? 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']);
?>
<tr bgcolor="<?php echo smarty_function_cycle(array('values' => "#F5F3E1,#FFFFEF"), $this);?>
" height="34">
<td><img src='<?php echo @URL; ?>
img/lightbulb.gif' hspace=4 vspace=0></td>
<td style="font-family:tahoma;font-size:12px;" noWrap><?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['last_comments'][$this->_sections['i']['index']]['login'])) ? $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('truncate', true, $_tmp, 13) : smarty_modifier_truncate($_tmp, 13)))) ? $this->_run_mod_handler('default', true, $_tmp, 'Áåç èìåíè') : smarty_modifier_default($_tmp, 'Áåç èìåíè')); ?>
</td>
<td width="100%"  style="font-family:tahoma;font-size:12px;"><a href="<?php echo @URL;  echo $this->_tpl_vars['rules_info_one']['action']; ?>
/?topicID=<?php echo $this->_tpl_vars['last_comments'][$this->_sections['i']['index']]['topic_id']; ?>
"><font color="#000000"></b><?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['last_comments'][$this->_sections['i']['index']]['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('truncate', true, $_tmp, 40) : smarty_modifier_truncate($_tmp, 40)))) ? $this->_run_mod_handler('smile', true, $_tmp) : smarty_modifier_smile($_tmp)); ?>
</b></font></a></td>
</tr>
<?php endfor; endif; ?>
</table>
</td>
</tr>
</table>
<br>

<?php if ($this->_tpl_vars['user']['id'] > 0): ?>
<table style="border: 1px solid #969696;font-family:tahoma;font-size:12px" bgcolor="#ffffff" border="0" cellpadding="4" cellspacing="1" width="100%">
<form method="post" action="<?php echo @URL;  echo $this->_tpl_vars['rules_info_one']['action']; ?>
/">
<input type="hidden" name="update_id" value="<?php echo $this->_tpl_vars['topic']['id']; ?>
" />
<tr><td colspan="3" class="title2_2"><b>Íîâàÿ òåìà</b></td></tr>
</tr><tr bgcolor="#F5F5F5"><td  style="font-family:tahoma;font-size:12px;">Çàãëàâèå:</td><td width="100%"><input class="input_form" size="40" name="title" value="<?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')); ?>
" type="text"></td></tr>
<tr bgcolor="#F5F5F5"><td valign="top" style="font-family:tahoma;font-size:12px;">Îïèñàíèå:</td><td><textarea name="about" cols="70" class="input_form"  rows="5"><?php echo ((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')); ?>
</textarea></td></tr>
       <tr bgcolor="#F5F5F5"><td colspan="2" align="center"><center><input type="hidden" name="save_topic"><input style="border:1px solid #A79787;background:#d6d6d9;font-family:tahoma;font-size:11px;text-align:center" value="Ñîçäàòü" type="submit" onClick="return topic(this.form)"></center></td></tr>
</form>
</table>
<br>
<?php endif; ?>

<?php if (count ( $this->_tpl_vars['topicData']['data'] )): ?>
<table border="0" cellpadding="4" cellspacing="1" width="100%" align="center" bgcolor="#C4BAAA" style="color:#988576;font-weight:bold;">
   <tr bgcolor="#FFFFEF">
    <td class="title2_2">&nbsp;</td>
    <td class="title2_2">Íàçâàíèå</td>
    <td class="title2_2">Ïðîñìîòðîâ</td>
    <td class="title2_2">Îòâåòîâ</td>
   </tr>

 <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['topicData']['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']);
?>

   <tr bgcolor="#F5F5F5">
    <td><img src="/img/topic_ar.jpg" align="left" hspace="5" vspace="2"></td>
    <td width="100%">
    <a href="<?php echo @URL;  echo $this->_tpl_vars['rules_info_one']['action']; ?>
/?topicID=<?php echo $this->_tpl_vars['topicData']['data'][$this->_sections['i']['index']]['id']; ?>
" class="link2"><u><strong><?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['topicData']['data'][$this->_sections['i']['index']]['title'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 70) : smarty_modifier_truncate($_tmp, 70)))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
<strong></u></a>
        <?php if ($this->_tpl_vars['user']['type'] == 1): ?><br /><a href="<?php echo @URL; ?>
forum/?deleteID=<?php echo $this->_tpl_vars['topicData']['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="<?php echo @URL; ?>
forum/?editID=<?php echo $this->_tpl_vars['topicData']['data'][$this->_sections['i']['index']]['id']; ?>
">Ïðàâèòü</a><?php endif; ?>

   <?php if ($this->_tpl_vars['topicData']['data'][$this->_sections['i']['index']]['comment_str']): ?>

       <div style="border:1px solid #BEBEBE;background:#F1F1F1;padding:2px;"><?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['topicData']['data'][$this->_sections['i']['index']]['comment_str'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 140) : smarty_modifier_truncate($_tmp, 140)))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
</div>

   <?php endif; ?>
   </td>
    <td align="center"><b><?php echo $this->_tpl_vars['topicData']['data'][$this->_sections['i']['index']]['view']; ?>
</b></td><td align="center"><b><?php echo $this->_tpl_vars['topicData']['data'][$this->_sections['i']['index']]['comments']; ?>
</b></td>

 <?php endfor; endif; ?>
   </tr>
</table>
<br>
<?php endif; ?>
 
<br>
<?php if ($this->_tpl_vars['topicData']['links']): ?><div class="pager"><?php echo $this->_tpl_vars['topicData']['links']; ?>
</div><?php endif; ?>