<html>
<head>
<title>Edit Stock</title>
</head>
<body style="background-color: #ffffff;background-image:url(rail.jpg);background-repeat: repeat-y">
<center>
<table>
	<tr>	
		<td><a href="http://www.wauhaha.com/karaoke/adminaccount.php"><img src=admin.gif width=140 height=140 border=0/><br/></a></td>
		<td><a href="http://www.wauhaha.com/karaoke/adminviewmem.php"><img src=member.gif width=140 height=140 border=0/><br/></a></td>
		<td><a href="http://www.wauhaha.com/karaoke/adminviewstaff.php"><img src=staff.gif width=140 height=140 border=0/><br/></a></td>
		<td><a href="http://www.wauhaha.com/karaoke/dutytime.php"><img src=duty.gif width=140 height=140 border=0/><br/></a></td>
		<td><a href="http://www.wauhaha.com/karaoke/salary.php"><img src=salary.gif width=140 height=140 border=0/><br/></a></td>
		<td><a href=adminhistory.php><img src=leave.gif width=140 height=140 border=0/><br/></a></td>
		<td><a href=adminhistory.php><img src=job.gif width=140 height=140 border=0/><br/></a></td>
		<td><a href=adminhistory.php><img src=advertisement.gif width=140 height=140 border=0/><br/></a></td>
		<td><a href="http://www.wauhaha.com/karaoke/room.php"><img src=room.gif width=140 height=140 border=0/><br/></a></td>
		
	</tr>
</table>
</center>
<center><h1>Admin Edit Transaction</h1></center>

<?php

	$login=mysql_connect('localhost', 'wauhaha_karaoke', 'cross123','wauhaha_karaoke');

	mysql_selectDB("wauhaha_karaoke",$login);
	$TID = $_GET['TID'];
	$result2=mysql_query("select * from stocktran where TID='$TID' ");
	$row3=mysql_fetch_array($result2);
	$time = date("d/m/Y");
	
	
	
	echo "<center><a href='http://www.wauhaha.com/karaoke/viewtrans.php'><img src=back.jpg width=40 height=40></a>&nbsp;";
echo"<form method=post action='http://www.wauhaha.com/karaoke/editranaction.php?TID=$TID '>";
echo "<table align=center style='font-size:18pt'>
						<tr>
							<td>Tran ID</td>
							<td>"; include('tid.php'); echo"</td>
						</tr>
						<tr>
							<td>Supplier Name:</td>
							<td>".$row3['SupName']."</td>
						</tr>
						<tr>
							<td>Product ID:</td>
							<td>".$row3['ProID']."</td>
						</tr>
						<tr>
							<td>Product Name:</td>
							<td>".$row3['ProName']."</td>
						</tr>
						
						<tr>
							<td>Add Quantity:</td>
							<td><input type=text name=AddQuan value=".$row3['ProAddQuan']." > </td>
						</tr>
				
						<tr>
							<td>Product Price:</td>
							<td><input type=text name=ProPrice value=".$row3['ProPrice']." > </td>
						</tr>
							<tr>
							<td>Product Total Price:</td>
							<td><input type=text name=ProTPrice value=".$row3['ProTPrice']." > </td>
						</tr>
							
						<tr>
							<td>Date:</td>
							<td><input type=text name=Date value=".$row3['Date']." > </td>
						</tr>
						<tr>
							<td>Edit Date</td>
							<td>$time <input type=hidden name=time value=".$time."></td>
						</tr>
						<tr>
							<td colspan=2 align=center><input type=submit value=Edit style='width:60;height:40'><input type=reset value=Reset style='width:60;height:40'></td>
						
						</tr>";
















?>