<html>
<head>
<title>
Edit Room Status
</title>



	
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

	<link rel="stylesheet" href="style.css" type="text/css" media="screen" />
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
	<script type="text/javascript" src="js/jquery.cookie.js"></script>
	<script type="text/javascript" src="js/control.js"></script>
	
</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);
	$RoomNo = $_GET['RoomNo'];
	
	$result = mysql_query("select * from room where RoomNo='$RoomNo'");
	$row = mysql_fetch_array($result);
	$RoomNum = $row['RoomNum'];
	$result2 = mysql_query("select * from roomtype");
	
	$rt = $row['roomtype'];
	echo "

	<center><h4><a href=http://www.wauhaha.com/karaoke/editroom.php title=Back><img src=back.jpg width=40 height=40></a></h4></center>
		<form method=post action=http://www.wauhaha.com/karaoke/editroomaction.php?RoomNo=$RoomNo>
	<table align=center >
		<tr>
		<td>Room Type:</td>
		<td>$rt</td>
	</tr>	
	<tr>
		<td>Room Num :</td>
		<td><input type=text name=r size=5 value=".$RoomNum."></td>
	</tr>

	<tr>	
		<td>Status :</td>
		<td><select name=s>
		<option>Available</option>
		<option>Unavailable</option>
		<option>Maintence</option>
		</select></td>
	</tr>
	<tr>
		<td>Note:</td>
		<td><textarea	name=n rows='3' cols='20'></textarea></td>
	</tr>
	<tr>
		<td align=center colspan=2><input type=submit value=Ok></td>
	</tr>
	</table>";
	
	?>
	<script>

$(document).ready(function(){
    $("#parent1").css("display","none");
        $(".aboveage1").click(function(){
        if ($('input[name=age1]:checked').val() == "No" ) {
            $("#parent1").slideDown("fast"); //Slide Down Effect
        } else {
            $("#parent1").slideUp("fast");  //Slide Up Effect
        }
     });
});
</script>
<body>
	


		<ol class="formset">
				<li><label for="fname1">First Name: </label>
				<input type="text" id="fname1" value="" name="fname1"/></li>
			
				<li><label for="lname1">Last Name: </label>
				<input type="text" id="lname1" value="" name="lname1"/></li>
				
				<li><label for="email1">Email Address: </label>
				<input type="text" id="email1" value="" name="email1" /></li>
				
				<li><label for="age1">Are you above 21 yrs old?</label> 
				<input type="radio" name="age1" value="Yes" class="aboveage1" /> Yes
				<input type="radio" name="age1" value="No" class="aboveage1" /> No</li>
			</ol>
			
			<ol id="parent1" class="formset">
				<li><strong>Parent/Guardian Information:</strong></li>
				<li><label for="pname1">Parent Name: </label>
				<input type="text" id="pname1" value="" name="pname1"/></li>
				
				<li><label for="contact1">Contact No.: </label>
				<input type="text" id="contact1" value="" name="contact1"/></li>
			</ol>
			<input type="submit" name="submit" value="Submit" class="submitbtn" />

		