Created
November 8, 2011 23:10
-
-
Save compil3/1349626 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> | |
<meta name="author" content="LTenuta" /> | |
<link href="ryform.css" rel="stylesheet" type="text/css" /> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.min.js"></script> | |
<script type="text/javascript"> | |
$(function() | |
{ | |
$('#addField').click(function() | |
{ | |
$('#theTable').append('<tr><td><input type="text" name="quant[]" class="smallinput" /></td><td><input type="text" name="product" class="input" /></td><td><input type="text" name="pib" class="input" /></td><td><input type="text" name="ppu" class="input" /></td><td></td></tr>'); | |
}); | |
}); | |
</script> | |
<title>Ryding Regency Production Purchase Log</title> | |
</head> | |
<?php | |
include 'sani.php'; | |
if (isset($_POST['Submit'])) { | |
$pnumber = (int)$_POST['pnumber']; //purchase order number | |
$vend = $_POST['vend']; //vendor | |
$prod = $_POST['product']; //product | |
$ppu = (float)$_POST['ppu']; //price per unit | |
$pib = (float)$_POST['pib']; //number of units in a box/crate | |
$quant = (int)$_POST['quant']; //how many boxes/crates | |
$amount = $ppu * pib * 1.13; | |
} | |
?> | |
<form action="input.php" method="POST"> | |
<table id="table1" border="3"> | |
<tr> | |
<td><label><font size=2>DATE:</label> <?php print date("l F j, Y g:i:s A"); ?> </font></td> | |
</tr> | |
<tr> | |
<td><label><font size=1>ORDER NO.: </label><input type="text" name="pnumber" class="input"/></font></td> | |
</tr> | |
<tr> | |
<td width="263"><label><font size=1>COMPANY: </label><input type="text" name="vend" class="input" /></font></tr> | |
</td> | |
</table> | |
<table id="theTable" width="1003" border="3"> | |
<tr> | |
<td height="64"><div align="center">QUANTITY</div></td> | |
<td width="542"><div align="center">DESCRIPTION</div></td> | |
<td width="100"><font size=1>PIECES IN BOX OR # PIECES</font></td> | |
<td width="95"><div align="center">PRICE</div></td> | |
<td width="198"><div align="center">AMOUNT</div></td> | |
</tr> | |
<tr> | |
<td><input type="text" name="quant[]" /></td> | |
<td><input type="text" name="product[]" /></td> | |
<td><input type="text" name="pib[]" /></td> | |
<td><input type="text" name="ppu[]" /></td> | |
<td></td> | |
</tr> | |
<tr> | |
<td><input type="text" name="quant[]" /></td> | |
<td><input type="text" name="product[]" /></td> | |
<td><input type="text" name="pib[]" /></td> | |
<td><input type="text" name="ppu[]" /></td> | |
<td></td> | |
</tr> | |
<tr> | |
<td><input type="text" name="quant[]" /></td> | |
<td><input type="text" name="product[]" /></td> | |
<td><input type="text" name="pib[]" /></td> | |
<td><input type="text" name="ppu[]" /></td> | |
<td></td> | |
</tr> | |
</table> | |
<br /> | |
<button id="addField">Add Field</button><br /><br /> | |
<form> | |
<input type="submit" value="Submit" class="submit"/></form> <a href="field.php"><button>Reset Form</button></a> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment