<html>
<head>
<title>SOUTHERN Karaoke SYSTEM</title>
</head>
<body style="background-color: #ffffff;background-image:url(rail.jpg);background-repeat: repeat-y">
<table align="center" width=70% border=0>
<tr>
<td><center><img src="37.gif"></center></td>
</tr>
</table>

<?php
	$login=mysql_connect('localhost', 'wauhaha_karaoke', 'cross123','wauhaha_karaoke');
	
	mysql_selectDB("wauhaha_karaoke",$login);
	$result =mysql_query('select * from admin');
	$r = mysql_fetch_array($result);
	$id = $r['Username'];

	
	echo "<h3 align=center> You are login as admin</h3><h4 align=center><a href=index.php>Logout</a> ";
?>
<?php

/*echo "<form action=http://www.wauhaha.com/karaoke/bookingaction.php  method=post>";

$time_offset ="600"; 
$time_a = ($time_offset * 120);
$time = date("h:i",time() + $time_a);
$date = date("d/m/y",time());
echo "Current time is : $time";
echo "Current date is : $date";

echo "<p><select name=time>
							<option value=9 >9</option>
							<option value=10 >10</option>
							<option value=11.30 >11.30</option>
							<option value=12 >12</option>
							<option value=12.30 >12.30</option>
							<option value=13 >13</option>
							</select></p>
						
							<p><input type=submit name=submit value=ok></p>
							
							
			</form>	";*/

			
?>
 
	
<table border="0" align="center">
<tr>
	
	<td width=200 align=center ><a href="http://www.wauhaha.com/karaoke/adminviewmem.php" Title="View Member" ><img src=member.gif width=140 height=140 border=0  /><br/></a></td>
	<td width=200 align=center ><a href="http://www.wauhaha.com/karaoke/adminviewstaff.php" Title="View Staff"><img src=staff.gif width=140 height=140 border=0/><br/></a></td>
	<td width=200 align=center ><a href="http://www.wauhaha.com/karaoke/dutytime.php" Title="View Duty Time"><img src=duty.gif width=140 height=140 border=0/><br/></a></td>

</tr>
<tr>
		<td width=200 align=center ><a href="http://www.wauhaha.com/karaoke/salary.php" Title="View Salary"><img src=salary.gif width=140 height=140 border=0/><br/></a></td>
	<td width=200 align=center ><a href="leave.php?<?php echo"id=$id"; ?>" Title="View Leave"><img src=leave.gif width=140 height=140 border=0/><br/></a></td>
	<td width=200 align=center ><a href=viewapplyjob.php Title="View Job Application"><img src=job.gif width=140 height=140 border=0/><br/></a></td>
</tr>
<tr >

	<td width=200 align=center><a href="http://www.wauhaha.com/karaoke/room.php" Title="Arrange Room"><img src=room.gif width=140 height=140 border=0/><br/></a></td>
	<td width=200 align=center><a href=choosestock.php Title="View Stock"><img src=box.jpg width=140 height=140 border=0/><br/></a></td>
	<td width=200 align=center><a href=credit.php Title="View Credit Transaction"><img src=Money1.jpg width=140 height=140 border=0/><br/></a></td>
	
</tr>
</table>


</body>
</html>