<?php /* Smarty version 2.6.19, created on 2008-09-02 18:38:08
         compiled from manage_discuss.tpl */ ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>评论内容管理</title>
</head>

<body>
<table width="88%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="25" align="center" bgcolor="#F0F0F0">评论对象</td>
    <td height="25" align="center" bgcolor="#F0F0F0"><span class="admin_STYLE3">评论内容</span></td>
    <td height="25" align="center" bgcolor="#F0F0F0"><span class="admin_STYLE3">评论人</span></td>
    <td height="25" align="center" bgcolor="#F0F0F0"><span class="admin_STYLE3">评论时间</span></td>
    <td height="25" align="center" bgcolor="#F0F0F0"><span class="admin_STYLE3">操作</span></td>
  </tr>
<?php unset($this->_sections['video_discuss_id']);
$this->_sections['video_discuss_id']['name'] = 'video_discuss_id';
$this->_sections['video_discuss_id']['loop'] = is_array($_loop=$this->_tpl_vars['video_discuss']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['video_discuss_id']['show'] = true;
$this->_sections['video_discuss_id']['max'] = $this->_sections['video_discuss_id']['loop'];
$this->_sections['video_discuss_id']['step'] = 1;
$this->_sections['video_discuss_id']['start'] = $this->_sections['video_discuss_id']['step'] > 0 ? 0 : $this->_sections['video_discuss_id']['loop']-1;
if ($this->_sections['video_discuss_id']['show']) {
    $this->_sections['video_discuss_id']['total'] = $this->_sections['video_discuss_id']['loop'];
    if ($this->_sections['video_discuss_id']['total'] == 0)
        $this->_sections['video_discuss_id']['show'] = false;
} else
    $this->_sections['video_discuss_id']['total'] = 0;
if ($this->_sections['video_discuss_id']['show']):

            for ($this->_sections['video_discuss_id']['index'] = $this->_sections['video_discuss_id']['start'], $this->_sections['video_discuss_id']['iteration'] = 1;
                 $this->_sections['video_discuss_id']['iteration'] <= $this->_sections['video_discuss_id']['total'];
                 $this->_sections['video_discuss_id']['index'] += $this->_sections['video_discuss_id']['step'], $this->_sections['video_discuss_id']['iteration']++):
$this->_sections['video_discuss_id']['rownum'] = $this->_sections['video_discuss_id']['iteration'];
$this->_sections['video_discuss_id']['index_prev'] = $this->_sections['video_discuss_id']['index'] - $this->_sections['video_discuss_id']['step'];
$this->_sections['video_discuss_id']['index_next'] = $this->_sections['video_discuss_id']['index'] + $this->_sections['video_discuss_id']['step'];
$this->_sections['video_discuss_id']['first']      = ($this->_sections['video_discuss_id']['iteration'] == 1);
$this->_sections['video_discuss_id']['last']       = ($this->_sections['video_discuss_id']['iteration'] == $this->_sections['video_discuss_id']['total']);
?>

  <tr>
    <td align="center">
<?php unset($this->_sections['video_id']);
$this->_sections['video_id']['name'] = 'video_id';
$this->_sections['video_id']['loop'] = is_array($_loop=$this->_tpl_vars['video']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['video_id']['show'] = true;
$this->_sections['video_id']['max'] = $this->_sections['video_id']['loop'];
$this->_sections['video_id']['step'] = 1;
$this->_sections['video_id']['start'] = $this->_sections['video_id']['step'] > 0 ? 0 : $this->_sections['video_id']['loop']-1;
if ($this->_sections['video_id']['show']) {
    $this->_sections['video_id']['total'] = $this->_sections['video_id']['loop'];
    if ($this->_sections['video_id']['total'] == 0)
        $this->_sections['video_id']['show'] = false;
} else
    $this->_sections['video_id']['total'] = 0;
if ($this->_sections['video_id']['show']):

            for ($this->_sections['video_id']['index'] = $this->_sections['video_id']['start'], $this->_sections['video_id']['iteration'] = 1;
                 $this->_sections['video_id']['iteration'] <= $this->_sections['video_id']['total'];
                 $this->_sections['video_id']['index'] += $this->_sections['video_id']['step'], $this->_sections['video_id']['iteration']++):
$this->_sections['video_id']['rownum'] = $this->_sections['video_id']['iteration'];
$this->_sections['video_id']['index_prev'] = $this->_sections['video_id']['index'] - $this->_sections['video_id']['step'];
$this->_sections['video_id']['index_next'] = $this->_sections['video_id']['index'] + $this->_sections['video_id']['step'];
$this->_sections['video_id']['first']      = ($this->_sections['video_id']['iteration'] == 1);
$this->_sections['video_id']['last']       = ($this->_sections['video_id']['iteration'] == $this->_sections['video_id']['total']);
?>
<?php if ($this->_tpl_vars['video'][$this->_sections['video_id']['index']]['tb_video_id'] == $this->_tpl_vars['video_discuss'][$this->_sections['video_discuss_id']['index']]['tb_video_id']): ?>
<?php echo $this->_tpl_vars['video'][$this->_sections['video_id']['index']]['tb_video_name']; ?>

<?php endif; ?>
<?php endfor; endif; ?>	</td>
    <td height="20" align="center"><?php echo $this->_tpl_vars['video_discuss'][$this->_sections['video_discuss_id']['index']]['tb_discuss_content']; ?>
</td>
    <td align="center"><?php echo $this->_tpl_vars['video_discuss'][$this->_sections['video_discuss_id']['index']]['tb_discuss_user']; ?>
</td>
    <td align="center"><?php echo $this->_tpl_vars['video_discuss'][$this->_sections['video_discuss_id']['index']]['tb_discuss_date']; ?>
</td>
    <td align="center"><a href="delete_discuss.php?discuss_id=<?php echo $this->_tpl_vars['video_discuss'][$this->_sections['video_discuss_id']['index']]['tb_discuss_id']; ?>
" onClick="return del_discuss();">删除</a></td>
  </tr>

<?php endfor; endif; ?>
</table>
</body>
</html>
