<?php
	session_start();
	include "conn/conn.php";
	include "inc/chec.php";
?>
<table width="450" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td height="10" colspan="5" align="center" valign="middle">音 频 数 据 管 理</td>
              </tr>
              <tr>
                <td height="10" colspan="5" align="right" valign="middle"><a href="#" onclick="javacript:Wopen=open('trans.php','添加视频','height=700,width=665,scrollbars=no');">数据添加</a></td>
              </tr>
              <tr>
                <td width="22" height="30" align="center" valign="middle">ID</td>
                <td width="123" height="30" align="center" valign="middle">名称</td>
                <td width="78" height="30" align="center" valign="middle">类别</td>
                <td width="78" height="30" align="center" valign="middle">歌手</td>
                <td width="117" height="30" align="center" valign="middle">操作</td>
              </tr>
              <?php
					$sqlstr = "select * from tb_video";
					$rst = $conn->execute($sqlstr);
					While(!$rst->EOF){
				?>
              <tr>
                <td height="18" align="center" valign="middle"><?php echo $rst->fields[0]; ?></td>
                <td height="18" align="center" valign="middle"><a href="listens.php?id=<?php echo $rst->fields[16]; ?>" target="_blank"><?php echo $rst->fields[1]; ?></a></td>
				<td height="18" align="center" valign="middle"><?php echo $rst->fields[7]; ?></td>
                <td height="18" align="center" valign="middle"><?php echo $rst->fields[3]; ?></td>
				 <td height="18" align="center" valign="middle"><a href="del_video_chk.php?id=<?php echo $rst->fields[0]; ?>" onclick="return del_chk();">删除</a></td> 
			  </tr>
              <?php $rst->MoveNext();}
				?>
          </table>
