<?php
$Username = $_GET["Username"];
?>
<html>
<head>
<link rel="stylesheet" href="styles.css" type="text/css">
<script language="javascript" type="text/javascript">
 function playSound(soundfile) {
 document.getElementById("dummy").innerHTML=
 "<embed src=\""+soundfile+"\" hidden=\"true\" autostart=\"true\" loop=\"false\" />";
 }
 
</script>
		<style type="text/css">
  #tabs {
      float:left;
      width:100%;
      background:purple;
      font-size:93%;
      line-height:normal;
      }
    #tabs ul {
	margin:0;
	padding:10px 10px 0px 100px;
	list-style:none;
      }
    #tabs li {
      display:inline;
      margin:;
      padding:0;
      }
    #tabs a {
      float:left;
      background:url("tableft.gif") no-repeat left top;
      margin:0;
      padding:0 0 0 2px;
      text-decoration:none;
      }
    #tabs a span {
      float:left;
      display:block;
      background:url("tabright.gif") no-repeat right top;
      padding:5px 15px 4px 20px;
      color:#666;

      }
    /* Commented Backslash Hack hides rule from IE5-Mac \*/
    #tabs a span {float:none;}
    /* End IE5-Mac hack */
    #tabs a:hover span {
      color:#FF9834;
      }
    #tabs a:hover {
      background-position:0% -42px;
      }
    #tabs a:hover span {
      background-position:100% -42px;
      }


	  
</style>
</head>
<?php
$login=mysql_connect('localhost', 'wauhaha_karaoke', 'cross123','wauhaha_karaoke');
mysql_selectDB("wauhaha_karaoke",$login);
$re = mysql_query("select * from regmember where Username='$Username'");
$r = mysql_fetch_array($re);

echo "<table align='center' class='header' >
	<tr>
		<td ><img src=banner1.gif width=700 height=120 style='margin-left:'></td>
		<td><fieldset><form method=post action='http://www.wauhaha.com/konline/LogonAction.php'>
		<table><tr><td>Username :</td><td>$Username</td></tr><tr><td></td></tr><tr><td colspan=2 align=center><a href=adminaccdetails.php?Username=$Username>Account Manage</a></td></tr><tr><td colspan=2 align=center><a href=index.php>Log Out</a></td></tr></table></form></fieldset></td>
	</tr>
	<tr>
		<td colspan=2><center><div id='tabs'>
  <ul>
    <li><a href='adminindex.php?Username=$Username'><span>Home</span></a></li>
    <li><a href='adminAbtUs.php?Username=$Username'><span>About Us</span></a></li>
    <li><a href='adminroom.php?Username=$Username'><span>Room</span></a></li>
    <li><a href='admin1.php?Username=$Username'><span>Member</span></a></li>

    <li><a href='adminsong.php?Username=$Username'><span>New Songs</span></a></li>
	<li><a href='adminprom.php?Username=$Username'><span>Promotion</span></a></li>
	<li><a href='adminjob.php?Username=$Username'><span>Job Application</span></a></li>
  </ul>
</div></center></td>
	</tr>
</table>
</div>";
?>
<!-- body!-->
<div align=center>
<table align=center class="body">
<?php
$login=mysql_connect('localhost', 'wauhaha_karaoke', 'cross123','wauhaha_karaoke');
	
mysql_selectDB("wauhaha_karaoke",$login);
echo "<tr>
<td width='450' align=center height=40><u style='font-size:16pt'>English Songs</td>
<td width='450' align=center><u style='font-size:16pt'>Chinese Songs</td></tr>
<tr>

<td align=center ><table >";
			$result = mysql_query("select * from song where language = 'English' ORDER BY no DESC Limit 8");
			
			while($row=mysql_fetch_array($result)){
			$song = $row['song'];
			echo"			<tr>
							<td height=40 align=center>
							"; ?> <span id='dummy'></span><a href='#' onclick="playSound('<?php echo $song;?>');"><?php echo "".$row['songName']."</a> 
							</td>
							</tr>
							";
} 
echo "</table>
</td> 
<td align=center ><table>";
			$result = mysql_query("select * from song where language = 'Chinese' ORDER BY no DESC Limit 8");
			
			while($row=mysql_fetch_array($result)){
			$song = $row['song'];
			echo"			<tr>
							<td height=40 align=center>
							"; ?> <span id='dummy'></span><a href='#' onclick="playSound('<?php echo $song;?>');"><?php echo "".$row['songName']."</a> 
							</td>
							</tr> ";
} 
echo "</table>
</td> ";
?>


</table>
</div>
<!--footer!-->
<div align=center>
<table align="center" class="footer" style="font-size:6pt" >
	 <td><hr></td>
	</tr>
   <tr>
      <td style="padding: 10px">
	  
	  <p align="center">FOOTER GOES HERE</p>
	  
	  <p align="center">
	  
	  <a href="contact.html">Contact us</a>&nbsp;&nbsp;&nbsp;
	  <a href="privacy.html">Disclaimers and Privacy Policy</a>&nbsp;&nbsp;&nbsp;
	  <a href="resources.html">Resources</a>&nbsp;&nbsp;&nbsp;
	  <br><br>
	  &copy; 2005 - www.yourwebsite.com</p>
	  
	  </td>
   </tr>

</table>
</div>
</body>
</html>