<html>
<head>
<title>Edited Room</title>
</head>
<body style="background-color: #ffffff;background-image:url(rail.jpg);background-repeat: repeat-y">
<center>
<?php include('link.php');?>
</center>

<center><h2>Admin View Edit Room Status</h2>

</center>

<?php
	$login=mysql_connect('localhost', 'wauhaha_karaoke', 'cross123','wauhaha_karaoke');
	
	mysql_selectDB("wauhaha_karaoke",$login);
	
	

	$result2 = mysql_query("select * from roomproblem");
	$result3= mysql_query("select * from roomproblem");
	$row =mysql_fetch_array($result3);
	
	$RoomNo = $row['RoomNo'];
	$no = $row['no'];
	echo "
	<center><h4><a href=http://www.wauhaha.com/karaoke/roomsetting.php title=Back ><img src=back.jpg width=40 height=40></a></h4></center>
	<table align=center border='1' cellspacing='0' cellpadding='5' ><tr>
			<td width=100 bgcolor=lightblue align=center>Room No</td>
			<td width=100 bgcolor=lightblue align=center>Status</td>
			<td width=100 bgcolor=lightblue align=center>Note</td>
			<td width=100 bgcolor=lightblue align=center>Start Date</td>
			<td width=100 bgcolor=lightblue align=center>End Date</td>
			<td width=100 bgcolor=lightblue align=center>Start Time</td>
			<td width=100 bgcolor=lightblue align=center>Edit</td>
			</tr>";
			
			while($row=mysql_fetch_array($result2)){
			
			echo "<tr>
			<td align=center>".$row['RoomNum']."</td>
			<td align=center>".$row['status']."</td>
			<td align=center>".$row['note']."</td>
			<td align=center>".$row['sdate']."</td>
			<td align=center>".$row['edate']."</td>
			<td align=center>".$row['time']."</td>
			<td align=center><a href=http://www.wauhaha.com/karaoke/editstatus.php?no=$no title=Edit ><img src=edit.png width=20 height=20></td>
				
			</tr>";
			
			}
			
			