<?php
	session_start();
	include "conn/conn.php";
?>
<script src="js/chk.js" language="javascript"></script>
<link rel="stylesheet" href="css/style.css" />
<center>

<table width="500" border="0" cellspacing="0" cellpadding="0" class="right_table">
			<tr>
				<td height="30" colspan="6" align="center" valign="middle" background="images/new_file_left.jpg"><div style="font-size:15px; color:#ffffff;">查询结果</div></td>
			</tr>
 <form name="form1" method="post" action="realplay.php">			
<?php
if($_POST[action] == "l_found"){
	$l_sqlstr = "select id,style,name,actor,remark,address from tb_video  where name like '%".$_POST[k_word]."%' order by id";
	$l_rst = $conn->execute($l_sqlstr);
	if($l_rst->EOF){
?>
<tr><td width="59" height="25" align="center" valign="middle">没有数据</td></tr>
<?php
	}else{
?>
<tr>
	<td width="50" height="25" align="center" valign="middle">操作</td>
	<td width="150" align="center" valign="middle">歌曲名称</td>
	<td width="150" align="center" valign="middle">主唱</td>
	<td width="50" align="center" valign="middle">在线试听</td>
	<td width="50" align="center" valign="middle">下载</td>
	<td width="50" align="center" valign="middle">介绍</td> 
</tr>
<?php 
	while(!$l_rst->EOF){
?>
<tr onmouseover="this.style.backgroundColor='#deebef'" onmouseout="this.style.backgroundColor=''">
	<td height="25" align="center" valign="middle" >
		<input type="checkbox" name="checkbox[]" value="<?php echo $l_rst->fields[0]; ?>">			    </td>
	<td align="center" valign="middle"><?php echo $l_rst->fields[2]; ?></td>
	<td align="center" valign="middle"><?php echo $l_rst->fields[3]; ?></td>
	<td align="center" valign="middle">
		<a href="#" onclick="javascript:Wopen=open('listens.php?id=<?php echo $l_rst->fields[5]; ?>','','height=720,width=1004,scrollbars=no');">
		<img src="images/首页_24.jpg" width="28" height="23" border="0" alt="在线播放"></a>	</td>
	<td align="center" valign="middle">
		<a href="download.php?id=<?php echo $l_rst->fields[5] ?>&action=video">
		<img src=images/首页_26.jpg width=28 height=23 border=0 alt=下载/></a>	</td>
	<td align="center" valign="middle">
		<a href="#" onclick="javascript:Wopen=open('v_intro.php?id=<?php echo $l_rst->fields[0]; ?>','','height=720,width=1004,scrollbars=no');">
		<img src="images/首页_28.jpg" width="28" height="23" border="0" alt="介绍"></a>	</td>
</tr>
<?php			
		$l_rst->movenext();
	}
?>	
<tr onmouseover="this.style.backgroundColor='#deebef'" onmouseout="this.style.backgroundColor=''">
	<td height="25" align="center" valign="middle" ></td>
	<td colspan="5" align="center" valign="middle"><input type="submit" name="Submit2" value="循环播放" />
			  &nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" name="Submit" value="连续播放"></td>
</tr>
<?php
	}
}else if($_GET[action] == "high"){
	$h_sql=$_SESSION[sql];
	$ll_rst = $conn->execute($h_sql);
	if($ll_rst->EOF){
?>
<tr><td width="59" height="25" align="center" valign="middle">没有数据</td></tr>
<?php
	}else{
?>
<tr>
	<td width="50" height="25" align="center" valign="middle">操作</td>
	<td width="150" align="center" valign="middle">歌曲名称</td>
	<td width="150" align="center" valign="middle">主唱</td>
	<td width="50" align="center" valign="middle">在线试听</td>
	<td width="50" align="center" valign="middle">下载</td>
	<td width="50" align="center" valign="middle">介绍</td> 
</tr>
<?php
	while(!$ll_rst->EOF){
?>
<tr onmouseover="this.style.backgroundColor='#deebef'" onmouseout="this.style.backgroundColor=''">
	<td height="25" align="center" valign="middle" >
		<input type="checkbox" name="checkbox[]" value="<?php echo $ll_rst->fields[0]; ?>">			    </td>
	<td align="center" valign="middle"><?php echo $ll_rst->fields[2]; ?></td>
	<td align="center" valign="middle"><?php echo $ll_rst->fields[3]; ?></td>
	<td align="center" valign="middle">
		<a href="#" onclick="javascript:Wopen=open('listens.php?id=<?php echo $ll_rst->fields[5]; ?>','','height=720,width=1004,scrollbars=no');">
		<img src="images/首页_24.jpg" width="28" height="23" border="0" alt="在线播放"></a>
	<td align="center" valign="middle">
		<a href="download.php?id=<?php echo $ll_rst->fields[5] ?>&action=video"><img src=images/首页_26.jpg width=28 height=23 border=0 alt=下载/></a></td>
	<td align="center" valign="middle"><a href="#" onclick="javascript:Wopen=open('v_intro.php?id=<?php echo $l_rst->fields[0]; ?>','','height=720,width=1004,scrollbars=no');"><img src="images/首页_28.jpg" width="28" height="23" border="0" alt="介绍"></a></td>
</tr>	
<?php			
		$ll_rst->movenext();
	}
?>		
<tr onmouseover="this.style.backgroundColor='#deebef'" onmouseout="this.style.backgroundColor=''">
	<td height="25" align="center" valign="middle" ><!--播放方式循环：是
          <input type="radio" name="radiobutton" value="true" />
否
<input name="radiobutton" type="radio" value="false" checked="checked" />--></td>
	<td colspan="5" align="center" valign="middle"><input type="submit" name="Submit2" value="循环播放" />
			  &nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" name="Submit" value="连续播放"></td>
	  </tr>
<?php 
	}
}
?> 
</form>

  </table>




</center>

