<?php 
session_start();
include_once("conn/conn.php");
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<style type="text/css">
<!--
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}
body {
	margin-left: 0px;
	margin-top: 00px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style></head>

<body>
 
<table width="1004" height="720" border="0" cellpadding="0" cellspacing="0" background="images/116.jpg">
  <tr>
    <td>&nbsp;</td>
    <td height="241" align="center" valign="bottom">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td width="271">&nbsp;</td>
    <td width="440" height="357" align="center" valign="top">

<table width="420" border="0" align="center" cellpadding="0" cellspacing="0">
           
	<form name="form1" method="post" action="realplay.php">		
            <tr>
              <td width="58" height="22"><div align="center">操作</div></td>
              <td width="73"><div align="center">ID</div></td>
              <td width="146"><div align="center">歌曲名称</div></td>
              <td width="120"><div align="center">主唱</div></td>
            </tr>
			<?php
			 $array=explode("@",$_SESSION["music_list"]);
			 $markid=0;
			 for($i=0;$i<count($array);$i++){
			   if($array[$i]!=""){
			     $markid++;
			   }
			 }
			 if($markid==0){ 
			?>
			<tr>
              <td height="22" colspan="4" bgcolor="#FFFFFF"><div align="center">您的播放列表中没有数据！</div></td>
            </tr>
			<?php
			}else{
			   for($i=1;$i<count($array);$i++){
			     if($array[$i]!=""){
	$sql = "select id,style,name,actor,remark,address from tb_video where id='".$array[$i]."' order by id";
	$l_rst = $conn->execute($sql);	
?>
            <tr>
              <td height="22" align="center" bgcolor="#FFFFFF"><input type="checkbox" name="checkbox[]" value="<?php echo $l_rst->fields[0]; ?>"></td>
              <td height="22" align="center" bgcolor="#FFFFFF"><?php echo $l_rst->fields[0];?></td>
              <td height="22" align="center" bgcolor="#FFFFFF"><?php echo $l_rst->fields[2];?></td>
              <td height="22" align="center" bgcolor="#FFFFFF"><?php echo $l_rst->fields[3];?></td>
			</tr>
         
			<?php 
			
			     }
			   }   
?>
			<tr>
              <td height="22" colspan="4" align="center" bgcolor="#FFFFFF"><a href="index.php">继续添加</a>&nbsp;
                <input type="submit" name="Submit2" value="循环播放" />                &nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" name="Submit" value="连续播放">
			  <a href="clear_music_list.php">清空播放列表</a></td>
            </tr>
	<?php } ?>
</form>
</table>


</td>
    <td width="280">&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td height="122">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
</body>
</html>
