<html>
<head>
<title>Edit Room Status</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 Edit Room Status</h2>

</center>

<?php
	$login=mysql_connect('localhost', 'wauhaha_karaoke', 'cross123','wauhaha_karaoke');
	
	mysql_selectDB("wauhaha_karaoke",$login);
	
	
	$result = mysql_query("select * from room");
	
	
	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=1px bordercolor=black cellpadding=0 cellspacing=0 style='font-size:14pt'>
	<tr>
		<td align=center width=150>Room Num</td>
		<td align=center width=150>Room Type</td>
		<td align=center width=150>Status</td>
		
		<td align=center width=50>Edit</td>
		<td align=center width=50>Delete</td>
	</tr>";
	while($row = mysql_fetch_array($result)){
	$RoomNo= $row['RoomNo'];
	echo "<tr>

	<td align=center>".$row['RoomNum']."</td>
		<td align=center>".$row['roomtype']."</td>
	<td align=center>".$row['status']."</td>
	<td align=center><a href='http://www.wauhaha.com/karaoke/editroom1.php?RoomNo=$RoomNo'><img src=edit.png width=20 height=20></a></td>
	<td align=center><a href='http://www.wauhaha.com/karaoke/deleteroom.php?RoomNo=$RoomNo'><img src=delete.png width=20 height=20></a></td>
	</tr>";
	
	
	}

	echo "</table>";
	
	
	?>