Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form action="" method="post" name="Input">
- <legend>Detail Customer</legend>
- <table class="table table-condensed">
- <tr>
- <td><label for="customer">Customer</label></td>
- <td><input name="customer" type="text" class="form-control" id="customer" placeholder="Customer"/></td>
- <td><label for="company">Company</label></td>
- <td><input name="company" type="text" class="form-control" id="company" placeholder="Company"/></td>
- </tr>
- <tr>
- <td><label for="vat">VAT (%)</label></td>
- <td><input name="vat" type="text" class="form-control" id="vat" placeholder="VAT" /></td>
- <td><label for="termofpayments">TOP (Days)</label> </td>
- <td><input name="termofpayments" type="text" class="form-control" id="termofpayments" placeholder="TOP"/></td>
- </tr>
- <tr>
- </tr>
- </table>
- <table class="table table-condensed">
- <legend>Detail Order</legend>
- <tr>
- <td><label for="itemcode">Item Code</label></td>
- <td><input name="itemcode" type="text" class="form-control" id="itemcode" placeholder="Item Code" required/>
- </td>
- </tr>
- <tr>
- <td><label for="description">Description</label></td>
- <td><input name="description" type="text" class="form-control" id="description" placeholder="Description" required/></td>
- </tr>
- <tr>
- <td><label for="quantity">Quantity</label></td>
- <td><input name="quantity" type="text" class="form-control" id="quantity" placeholder="Quantity" required/></td>
- </tr>
- <tr>
- <td><label for="price">Price</label></td>
- <td><input name="price" type="text" class="form-control" id="price" placeholder="price" required/></td>
- </tr>
- <tr><td colspan="2" align="right"><input type="submit" name="Input" value="Tambah" class="btn btn-sm btn-primary"></td></tr>
- </table>
- <div class="table-responsive">
- <table class="table table-bordered table-hover table-striped tablesorter">
- <tr>
- <th>Item Code</th>
- <th>Description</th>
- <th>Quantity</th>
- <th>Price</th>
- <th>Subtotal</th>
- </tr>
- <tr lass="header">
- <td align="left">
- <?php
- if (isset($_POST['Input'])) {
- $itemcode = $_POST['itemcode'];
- echo "$itemcode";
- }
- ?>
- </td>
- <td align="center">
- <?php
- if (isset($_POST['Input'])) {
- $description = $_POST['description'];
- echo "$description";
- }
- ?>
- </td>
- <td align="center">
- <?php
- if (isset($_POST['Input'])) {
- $quantity = $_POST['quantity'];
- echo "$quantity";
- }
- ?>
- </td>
- <td align="center">
- <?php
- if (isset($_POST['Input'])) {
- $price = $_POST['price'];
- echo "$price";
- }
- ?>
- </td>
- <td align="center">
- </td>
- </tr>
- <tr lass="header">
- <td colspan="4" align="right"><b>TOTAL</b></td>
- <td> </td>
- </tr>
- </table>
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement