<?php /* Smarty version 2.6.19, created on 2008-09-20 09:52:25
         compiled from manage_up_video.tpl */ ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>上传视频管理</title>
</head>
<script type="text/javascript" src="js/check_auditing.js"></script>
<script type="text/javascript" src="js/xmlHttpRequest.js"></script>
<body>
<table width="88%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="25" align="center" bgcolor="#F0F0F0">视频名称</td>
    <td align="center" bgcolor="#F0F0F0">类型</td>
    <td align="center" bgcolor="#F0F0F0">作者</td>
    <td align="center" bgcolor="#F0F0F0">上传时间</td>
    <td align="center" bgcolor="#F0F0F0">操作</td>
    <td bgcolor="#F0F0F0">&nbsp;</td>
  </tr>
<?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']);
?>
  
 <tr>
    <td height="20" align="center"><a href="look.php?video_id=<?php echo $this->_tpl_vars['video'][$this->_sections['video_id']['index']]['tb_video_id']; ?>
" title="视频预览" target="_blank"><?php echo $this->_tpl_vars['video'][$this->_sections['video_id']['index']]['tb_video_name']; ?>
</a></td>

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

            for ($this->_sections['video_type_id']['index'] = $this->_sections['video_type_id']['start'], $this->_sections['video_type_id']['iteration'] = 1;
                 $this->_sections['video_type_id']['iteration'] <= $this->_sections['video_type_id']['total'];
                 $this->_sections['video_type_id']['index'] += $this->_sections['video_type_id']['step'], $this->_sections['video_type_id']['iteration']++):
$this->_sections['video_type_id']['rownum'] = $this->_sections['video_type_id']['iteration'];
$this->_sections['video_type_id']['index_prev'] = $this->_sections['video_type_id']['index'] - $this->_sections['video_type_id']['step'];
$this->_sections['video_type_id']['index_next'] = $this->_sections['video_type_id']['index'] + $this->_sections['video_type_id']['step'];
$this->_sections['video_type_id']['first']      = ($this->_sections['video_type_id']['iteration'] == 1);
$this->_sections['video_type_id']['last']       = ($this->_sections['video_type_id']['iteration'] == $this->_sections['video_type_id']['total']);
?>
<?php if ($this->_tpl_vars['video_type'][$this->_sections['video_type_id']['index']]['tb_type_id'] == $this->_tpl_vars['video'][$this->_sections['video_id']['index']]['tb_video_type']): ?>
    <td align="center"><?php echo $this->_tpl_vars['video_type'][$this->_sections['video_type_id']['index']]['tb_type_name']; ?>
</td>
<?php endif; ?>
<?php endfor; endif; ?>
    <td align="center"><?php echo $this->_tpl_vars['video'][$this->_sections['video_id']['index']]['tb_video_author']; ?>
</td>
    <td align="center"><?php echo $this->_tpl_vars['video'][$this->_sections['video_id']['index']]['tb_video_date']; ?>
</td>
    <td align="center">
<?php if ($this->_tpl_vars['video'][$this->_sections['video_id']['index']]['tb_video_auditing'] == 0): ?>
 <a href="auditing_ok.php?video_id=<?php echo $this->_tpl_vars['video'][$this->_sections['video_id']['index']]['tb_video_id']; ?>
">审核</a> 
<?php else: ?>
 <a href="auditing_ok.php?video_ids=<?php echo $this->_tpl_vars['video'][$this->_sections['video_id']['index']]['tb_video_id']; ?>
" onClick="return auditing_chk();">通过</a> 

<?php endif; ?></td>
    <td align="center"><a href="delete_video.php?video_id=<?php echo $this->_tpl_vars['video'][$this->_sections['video_id']['index']]['tb_video_id']; ?>
&video_file=<?php echo $this->_tpl_vars['video'][$this->_sections['video_id']['index']]['tb_video_address']; ?>
&video_picture=<?php echo $this->_tpl_vars['video'][$this->_sections['video_id']['index']]['tb_video_picture']; ?>
" onClick="return del_chk();">删除</a></td>
  </tr>
<?php endfor; endif; ?>
</table>
</body>
</html>
