<?php /* Smarty version 2.6.12, created on 2011-01-18 14:25:56
         compiled from bbs_view_main_thread.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'bbs_view_main_thread.html', 3, false),array('modifier', 'get_modules_image', 'bbs_view_main_thread.html', 13, false),array('modifier', 'cat', 'bbs_view_main_thread.html', 16, false),array('modifier', 'timezone_date_format', 'bbs_view_main_thread.html', 31, false),array('modifier', 'sprintf', 'bbs_view_main_thread.html', 36, false),)), $this); ?>
<?php echo '';  echo '';  if (empty ( $this->_tpl_vars['parents'] ) && count ( ((is_array($_tmp=$this->_tpl_vars['action']['topics'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) ) > 0):  echo '<table class="bbs_thread" summary="';  echo $this->_tpl_vars['lang']['bbs_post_list_summary'];  echo '">';  $this->assign('parents', ((is_array($_tmp=$this->_tpl_vars['action']['topics']['0'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')));  echo '';  $this->assign('depth', 0);  echo '';  endif;  echo '';  $_from = $this->_tpl_vars['parents']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['postID'] => $this->_tpl_vars['post']):
 echo '<tr id="bbs_post_row';  echo ((is_array($_tmp=$this->_tpl_vars['post']['post_id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '';  echo ((is_array($_tmp=$this->_tpl_vars['id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '" class="bbs_post_row';  if (((is_array($_tmp=$this->_tpl_vars['post']['parent_id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == '0'):  echo ' bbs_topic';  endif;  echo '';  if (((is_array($_tmp=$this->_tpl_vars['post']['read_flag'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == _ON):  echo ' bbs_read';  endif;  echo '"><td class="bbs_subject">';  if (((is_array($_tmp=$this->_tpl_vars['post']['parent_id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == '0'):  echo '<img class="icon" src="';  echo ((is_array($_tmp="topic.gif")) ? $this->_run_mod_handler('get_modules_image', true, $_tmp) : get_modules_image($_tmp));  echo '" alt="" />';  endif;  echo '';  $_from = ((is_array($_tmp=$this->_tpl_vars['post']['branches'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['branch']):
 echo '<img class="icon" src="';  echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['branch'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')))) ? $this->_run_mod_handler('cat', true, $_tmp, ".gif") : smarty_modifier_cat($_tmp, ".gif")))) ? $this->_run_mod_handler('get_modules_image', true, $_tmp) : get_modules_image($_tmp));  echo '" alt="&nbsp;" />';  endforeach; endif; unset($_from);  echo '';  if (empty ( $this->_tpl_vars['action']['topics'][$this->_tpl_vars['postID']] ) && ((is_array($_tmp=$this->_tpl_vars['post']['parent_id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) != '0'):  echo '<img class="icon" src="';  echo ((is_array($_tmp="-.gif")) ? $this->_run_mod_handler('get_modules_image', true, $_tmp) : get_modules_image($_tmp));  echo '" alt="&nbsp;" />';  elseif (((is_array($_tmp=$this->_tpl_vars['post']['parent_id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) != '0'):  echo '<img class="icon" src="';  echo ((is_array($_tmp="T.gif")) ? $this->_run_mod_handler('get_modules_image', true, $_tmp) : get_modules_image($_tmp));  echo '" alt="&nbsp;" />';  endif;  echo '';  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "bbs_view_main_subject.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  echo '</td><td class="bbs_user">';  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "bbs_view_handle.html", 'smarty_include_vars' => array('handle' => $this->_tpl_vars['post']['insert_user_name'],'user_id' => ((is_array($_tmp=$this->_tpl_vars['post']['insert_user_id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')))));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  echo '</td><td class="bbs_date">';  echo ((is_array($_tmp=$this->_tpl_vars['post']['insert_time'])) ? $this->_run_mod_handler('timezone_date_format', true, $_tmp, ((is_array($_tmp=$this->_tpl_vars['lang']['_date_format'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))) : timezone_date_format($_tmp, ((is_array($_tmp=$this->_tpl_vars['lang']['_date_format'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))));  echo '</td><td class="bbs_note">';  if (((is_array($_tmp=$this->_tpl_vars['action']['bbs']['vote_flag'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == _ON):  echo '';  echo ((is_array($_tmp=$this->_tpl_vars['lang']['bbs_vote_unit'])) ? $this->_run_mod_handler('sprintf', true, $_tmp, ((is_array($_tmp=$this->_tpl_vars['post']['vote_num'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))) : sprintf($_tmp, ((is_array($_tmp=$this->_tpl_vars['post']['vote_num'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))));  echo '';  endif;  echo '</td></tr>';  if (! empty ( $this->_tpl_vars['action']['topics'][$this->_tpl_vars['postID']] )):  echo '';  $this->assign('parents', ((is_array($_tmp=$this->_tpl_vars['action']['topics'][$this->_tpl_vars['postID']])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')));  echo '';  $this->assign('depth', ($this->_tpl_vars['depth']+1));  echo '';  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "bbs_view_main_thread.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  echo '';  $this->assign('depth', ($this->_tpl_vars['depth']-1));  echo '';  endif;  echo '';  endforeach; else:  echo '';  endif; unset($_from);  echo '';  if ($this->_tpl_vars['depth'] === 0):  echo '</table>';  endif;  echo ''; ?>