<?php /* Smarty version 2.6.19, created on 2008-07-01 15:37:34
         compiled from index.tpl */ ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<script src="js/chk.js"></script>
<link rel="stylesheet" href="css/reg.css"/>
<link rel="stylesheet" href="css/style.css"/>
<body>
<table width="100%" height="175" border="1" cellpadding="1" cellspacing="1">
  <tr>
    <td colspan="3">&nbsp;</td><form name="form1" method="post" action="select_video.php"> 
    <td colspan="4">  
站内搜索   
        <input type="text" name="select_video">
        <input type="submit" name="Submit" value="视频搜索"></td></form>
  </tr>
 <tr>
    <td width="172"><a href="index.php" target="_blank">首页</a></td>
    <td width="128"><a href="video.php" target="_blank">视频</a></td>
    <td width="110"><a href="play_user.php" target="_blank">播客</a></td>
    <td width="50">&nbsp;</td>
    <td width="108">&nbsp;</td>
    <td width="234">&nbsp;</td>
    <td width="229">&nbsp;</td>
 </tr>
<tr>
  <td colspan="7"><table width="100%" height="30" border="0" cellpadding="0" cellspacing="0">
    <tr>
 <td width="172"><a href="hot_play.php?video_type=热播排行">热播排行</a></td>
<td width="172"><a href="new_play.php?video_type=最新推出">最新推出</a></td>
<?php unset($this->_sections['type_id']);
$this->_sections['type_id']['name'] = 'type_id';
$this->_sections['type_id']['loop'] = is_array($_loop=$this->_tpl_vars['video_type']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['type_id']['show'] = true;
$this->_sections['type_id']['max'] = $this->_sections['type_id']['loop'];
$this->_sections['type_id']['step'] = 1;
$this->_sections['type_id']['start'] = $this->_sections['type_id']['step'] > 0 ? 0 : $this->_sections['type_id']['loop']-1;
if ($this->_sections['type_id']['show']) {
    $this->_sections['type_id']['total'] = $this->_sections['type_id']['loop'];
    if ($this->_sections['type_id']['total'] == 0)
        $this->_sections['type_id']['show'] = false;
} else
    $this->_sections['type_id']['total'] = 0;
if ($this->_sections['type_id']['show']):

            for ($this->_sections['type_id']['index'] = $this->_sections['type_id']['start'], $this->_sections['type_id']['iteration'] = 1;
                 $this->_sections['type_id']['iteration'] <= $this->_sections['type_id']['total'];
                 $this->_sections['type_id']['index'] += $this->_sections['type_id']['step'], $this->_sections['type_id']['iteration']++):
$this->_sections['type_id']['rownum'] = $this->_sections['type_id']['iteration'];
$this->_sections['type_id']['index_prev'] = $this->_sections['type_id']['index'] - $this->_sections['type_id']['step'];
$this->_sections['type_id']['index_next'] = $this->_sections['type_id']['index'] + $this->_sections['type_id']['step'];
$this->_sections['type_id']['first']      = ($this->_sections['type_id']['iteration'] == 1);
$this->_sections['type_id']['last']       = ($this->_sections['type_id']['iteration'] == $this->_sections['type_id']['total']);
?>      
<td>
<a href="include.php?video_type=<?php echo $this->_tpl_vars['video_type'][$this->_sections['type_id']['index']]['tb_type_id']; ?>
"><?php echo $this->_tpl_vars['video_type'][$this->_sections['type_id']['index']]['tb_type_name']; ?>
</a></td>
<?php endfor; endif; ?>        </tr>
       
  </table></td>
</tr>
<?php if ($this->_tpl_vars['session_name'] == 'T'): ?>
  <tr>
<td colspan="7">
<table width="950" height="50" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="121" align="right"><span class="l_td">用户名：</span></td>
    <td width="106" height="25"><span class="l_td"><?php echo $this->_tpl_vars['name']; ?>
</span></td>
    <td width="107"><a href="cancel_subscibe.php?video_user=<?php echo $this->_tpl_vars['name']; ?>
">我的订阅</a></td>
    <td width="124"><span class="l_td"><a href="mod_vip.php" target="_blank">修改会员资料</a></span></td>
    <td width="128"><a href="individualism.php?user_id=<?php echo $this->_tpl_vars['id']; ?>
&&video_user=<?php echo $this->_tpl_vars['name']; ?>
" target="_blank"><?php echo $this->_tpl_vars['name']; ?>
的个人主页</a></td>
    <td width="121"><a href="my_video_manage.php?video_user=<?php echo $this->_tpl_vars['name']; ?>
">我的视频</a></td>
    <td width="121"><a href="trans.php" target="_blank">上传文件</a></td>
    <td width="122"><span class="l_td"><a href="#" onClick="return l_chk();">退出登录</a></span></td>
  </tr>
</table>



</td>
  </tr>
<?php else: ?>
<tr>
    <td colspan="7"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "login.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
  </tr>
<?php endif; ?>
  <tr>
    <td colspan="3" valign="top"><table width="400" height="400" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="400" height="340" bgcolor="#000000"><div align="center">
            <object classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" name="rp1" width="400" height="280" id="rp1">
              <param name="_extentx" value="12000">
              <param name="_extenty" value="7500">
              <param name="shuffle" value="0">
              <param name="nolabels" value="0">
              <param name="autostart" value="-1">
              <param name="prefetch" value="0">
              <param name="controls" value="imagewindow">
              <param name="console" value="clip1">
              <param name="loop" value="0">
              <param name="numloop" value="0">
              <param name="center" value="0">
              <param name="maintainaspect" value="0">
              <param name="backgroundcolor" value="#000000">
              <param name="src" value="rtsp://127.0.0.1/MR/sl/21/21/sss.avi">
            </object>
        </div></td>
      </tr>
      <tr>
        <td height="60" bgcolor="#000000"><div align="center">
            <object classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" name="rp2" width="400" height="60" id="rp2">
              <param name="_extentx" value="12000">
              <param name="_extenty" value="1500">
              <param name="shuffle" value="0">
              <param name="nolabels" value="0">
              <param name="autostart" value="-1">
              <param name="prefetch" value="0">
              <param name="controls" value="controlpanel,statusbar">
              <param name="console" value="clip1">
              <param name="loop" value="0">
              <param name="numloop" value="0">
              <param name="center" value="0">
              <param name="maintainaspect" value="0">
              <param name="backgroundcolor" value="#000000">
            </object>
        </div></td>
      </tr>
    </table></td>
    <td colspan="4" align="left" valign="top"><table width="100%" height="34" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
<?php if ($this->_tpl_vars['videos'] == 'F'): ?>
   <tr>
        <td colspan="5">没有数据！</td>
   </tr>
<?php else: ?>
<?php $number=0; ?>
<?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(($number % 2) == 0){  ?>
	<tr>
<?php } ?>
        <td colspan="5"><table width="100%" border="0" cellspacing="0" cellpadding="0">
		  	<tr>
				<td width="166" align="center" valign="middle"><img name="news" src="<?php echo $this->_tpl_vars['video'][$this->_sections['video_id']['index']]['tb_video_picture']; ?>
" width="130" height="150" alt="" border="3" style=" border-color:#CCCCCC; margin-top:5px; margin-left:5px; margin-bottom:5px; margin-right:5px;" /></td>
				<td width="278" align="center" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td height="25" colspan="2"><?php echo $this->_tpl_vars['video'][$this->_sections['video_id']['index']]['tb_video_name']; ?>
</td>
                  </tr>
                  <tr>
                    <td width="35%" height="25" align="right" valign="middle">类型：</td>
                    <td width="65%"><div>

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

            for ($this->_sections['type_ids']['index'] = $this->_sections['type_ids']['start'], $this->_sections['type_ids']['iteration'] = 1;
                 $this->_sections['type_ids']['iteration'] <= $this->_sections['type_ids']['total'];
                 $this->_sections['type_ids']['index'] += $this->_sections['type_ids']['step'], $this->_sections['type_ids']['iteration']++):
$this->_sections['type_ids']['rownum'] = $this->_sections['type_ids']['iteration'];
$this->_sections['type_ids']['index_prev'] = $this->_sections['type_ids']['index'] - $this->_sections['type_ids']['step'];
$this->_sections['type_ids']['index_next'] = $this->_sections['type_ids']['index'] + $this->_sections['type_ids']['step'];
$this->_sections['type_ids']['first']      = ($this->_sections['type_ids']['iteration'] == 1);
$this->_sections['type_ids']['last']       = ($this->_sections['type_ids']['iteration'] == $this->_sections['type_ids']['total']);
?>
<?php if ($this->_tpl_vars['video_type'][$this->_sections['type_ids']['index']]['tb_type_id'] == $this->_tpl_vars['video'][$this->_sections['video_id']['index']]['tb_video_type']): ?>
<?php echo $this->_tpl_vars['video_type'][$this->_sections['type_ids']['index']]['tb_type_name']; ?>

<?php endif; ?> 
<?php endfor; endif; ?>


</div></td>
                  </tr>
                  <tr>
                    <td height="25" align="right" valign="middle">简介：</td>
                    <td><div style=" width:50px; height:12px; "><?php echo $this->_tpl_vars['video'][$this->_sections['video_id']['index']]['tb_video_explain']; ?>
</div></td>
                  </tr>
                  <tr>
                    <td height="25" align="right" valign="middle">时间：</td>
                    <td><?php echo $this->_tpl_vars['video'][$this->_sections['video_id']['index']]['tb_video_date']; ?>
</td>
                  </tr>
                  <tr>
                    <td height="25" align="right" valign="middle">播客：</td>
                    <td><?php echo $this->_tpl_vars['video'][$this->_sections['video_id']['index']]['tb_video_author']; ?>
</td>
                  </tr>
                  <tr>
                    <td height="25" colspan="2" align="center" valign="middle"><a href="look.php?video_id=<?php echo $this->_tpl_vars['video'][$this->_sections['video_id']['index']]['tb_video_id']; ?>
&video_name=<?php echo $this->_tpl_vars['video'][$this->_sections['video_id']['index']]['tb_video_name']; ?>
" target="_blank"><img src="images/online_icon.jpg" width="21" height="20" border="0" alt="在线观看" /></a> <a href="download.php?id=<?php echo $this->_tpl_vars['video'][$this->_sections['video_id']['index']]['tb_video_id']; ?>
"><img src="images/down.jpg" width="20" height="18" border=0 alt="下载" /></a>
                        
                      &nbsp;<a href="#" onClick="javascript:Wopen=open('intro.php?id=<?php echo $this->_tpl_vars['video'][$this->_sections['video_id']['index']]['tb_video_id']; ?>
','','height=700,width=665,scrollbars=no');"><img src="images/show_icon.jpg" width="20" height="20" alt="介绍" border="0" /></a></td>
                  </tr>
                </table></td>
		  	</tr>
		  </table></td>
       
	<?php if(($number %2) != 0){ ?>	</tr>
	<?php }
$number++;
 ?>
<?php endfor; endif; ?>
    </table></td>
  </tr>
<?php endif; ?>
  <tr>
    <td colspan="7">播客人气排行榜</td>
  </tr>
  <tr>
    <td colspan="7">
<table width="100%" height="49%" border="0" align="center" cellpadding="0" cellspacing="0">
      <?php if ($this->_tpl_vars['discuss_false'] == 'F'): ?>
      <tr>
        <td colspan="5">没有数据！</td>
      </tr>
      <?php else: ?>


 <tr>
        <td colspan="5"><div align="center">人气风云榜</div></td>



      <?php $number=0; ?>
      <?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_user']) ? 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(($number % 3) == 0){  ?>
</tr>      
<tr> <?php 
} ?>
        <td colspan="5"><table width="334" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="150" align="center" valign="middle"><a href="individualism.php?user_id=<?php echo $this->_tpl_vars['video_user'][$this->_sections['video_id']['index']]['tb_user_id']; ?>
&&video_user=<?php echo $this->_tpl_vars['video_user'][$this->_sections['video_id']['index']]['tb_video_user']; ?>
">
<!--从数据库中读取出以二进制格式存储的图片-->
<img src="head_picture.php?recid=<?php echo $this->_tpl_vars['video_user'][$this->_sections['video_id']['index']]['tb_user_id']; ?>
" width="120" height="135" border="3" style=" border-color:#CCCCCC; margin-top:5px; margin-left:5px; margin-bottom:5px; margin-right:5px;" >
</a></td>
                  <td width="184" align="center" valign="middle"><table width="184" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td height="25" align="right">播客：</td>
                        <td height="25"><a href="individualism.php?user_id=<?php echo $this->_tpl_vars['video_user'][$this->_sections['video_id']['index']]['tb_user_id']; ?>
&&video_user=<?php echo $this->_tpl_vars['video_user'][$this->_sections['video_id']['index']]['tb_video_user']; ?>
" target="_blank"><?php echo $this->_tpl_vars['video_user'][$this->_sections['video_id']['index']]['tb_video_user']; ?>
</a></td>
                      </tr>
                      <tr>
                        <td width="54" height="25" align="right" valign="middle">QQ：</td>
                        <td width="130"><div> <?php echo $this->_tpl_vars['video_user'][$this->_sections['video_id']['index']]['tb_video_email']; ?>
 </div></td>
                      </tr>
                      <tr>
                        <td height="25" align="right" valign="middle">E_mail：</td>
                        <td><div style=" width:50px; height:12px; "><?php echo $this->_tpl_vars['video_user'][$this->_sections['video_id']['index']]['tb_video_qq']; ?>
</div></td>
                      </tr>
                  </table></td>
                </tr>
            </table>

</td>
        <?php if(($number %3) != 0){ ?> 
      <?php 

}
      $number++;
       ?>
      <?php endfor; endif; ?>
  </tr> 
<?php endif; ?>
</table>
	</td>
  </tr>
</table>
</body>
</html>
