<?php
include ("connect.php");
?>
<html>
<head>

<title>
Sin Lieng vegetable wholesale computer system
</title>

		<a href="purcheseo.php">Purchase order</a>
			<a href="deliveryo.php">Delivery order</a>
				<a href="receiving.php">Receiving</a>
					<a href="orderform2.php">Order</a>
						<a href="invoice.php">Invoice</a>
							<a href="logout.php">Logout</a>


</head>
<body><center>
<form name="insertForm" method="post" action="invoiceAction.php">
<table border="0" align="center" cellpadding="5" cellspacing="0" bordercolor="white" bgcolor="lightcyan" width="60%" rules="all">
<tr>
	<td>Invoice no</td>
	<td><?php
	include("invIDincrement.php");
	?></td>
</tr>
<tr>
	<td>Date:</td>
	<td> <input type="hidden" maxlength="10" size="10" name="date" value="<?php
  echo gmdate("d M Y");
  ?>"/><?php
  echo gmdate("d M Y");
  ?></td>

<tr>

<tr>
	<td>P.O. :</td>
	<td> <input type="text" maxlength="10" size="10" name="po" </td>
<tr>

<tr>
	<td>D.O. :</td>
	<td> <input type="text" maxlength="10" size="10" name="do" </td>

</tr>
<tr><td>Bill to:</td><td><textarea name="bill_to" rows="5" cols="30"></textarea></td>&#160;&#160;&#160;

<td>Ship to:</td><td><textarea name="ship_to" rows="5" cols="30"></textarea><br><br></td>

</tr>

<tr>
	<td>Product</td>



	<td>Quanlity</td>
	
	
	<td>Unit Price(RM) </td>
	
	
	<td>Line Total(RM) </td>
	

</tr>
<tr>

	<td><input type="text" maxlength="10" size="15" name="product" </td>
	<td><input type="text" maxlength="10" size="15" name="quanlity" </td>
	<td><input type="text" maxlength="10" size="15" name="unit_price" </td>
	<td><input type="hidden" maxlength="10" size="15" name="line_total" </td>
</tr>
<tr>
	<td colspan="3"align="right">Sub Total: RM</td>
	<td> <input type="hidden" maxlength="10" size="10" name="sub_total" </td>
<tr>

<tr>
	<td colspan="3"align="right">Discount:</td>
	<td> <input type="text" maxlength="10" size="10" name="discount" /> %</td>
<tr>
<tr>
	<td colspan="3"align="right">Shipping & handing: RM</td>
	<td> <input type="text" maxlength="10" size="10" name="Shipping" </td>
<tr>
<tr>
	<td colspan="3"align="right">Total: RM</td>
	<td> <input type="hidden" maxlength="10" size="10" name="total" </td>
<tr>










<tr>
			
			<td colspan="2" align="center">
			<input type="Submit" name="Submit" value="Submit"/>
			<input type="reset" value="Reset"/>
			</td>
		</tr>
</table>
</form>
</center>
</body>
</html>