Advertisement
Guest User

Untitled

a guest
Feb 24th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.98 KB | None | 0 0
  1. <form action="" method="post" name="Input">
  2.               <legend>Detail Customer</legend>
  3.                 <table class="table table-condensed">
  4.                 <tr>
  5.                     <td><label for="customer">Customer</label></td>
  6.                     <td><input name="customer" type="text" class="form-control" id="customer" placeholder="Customer"/></td>
  7.                     <td><label for="company">Company</label></td>
  8.                     <td><input name="company" type="text" class="form-control" id="company" placeholder="Company"/></td>
  9.                    </tr>
  10.                     <tr>
  11.                     <td><label for="vat">VAT (%)</label></td>
  12.                     <td><input name="vat" type="text" class="form-control" id="vat" placeholder="VAT" /></td>
  13.                     <td><label for="termofpayments">TOP (Days)</label> </td>
  14.                     <td><input name="termofpayments" type="text" class="form-control" id="termofpayments" placeholder="TOP"/></td>
  15.                   </tr>
  16.                   <tr>
  17.                    
  18.                    </tr>
  19.                  
  20.                   </table>
  21.                <table class="table table-condensed">
  22.                <legend>Detail Order</legend>
  23.                   <tr>
  24.                     <td><label for="itemcode">Item Code</label></td>
  25.                     <td><input name="itemcode" type="text" class="form-control" id="itemcode" placeholder="Item Code" required/>
  26.                     </td>
  27.                   </tr>
  28.                   <tr>
  29.                     <td><label for="description">Description</label></td>
  30.                     <td><input name="description" type="text" class="form-control" id="description" placeholder="Description" required/></td>
  31.                   </tr>
  32.                   <tr>
  33.                     <td><label for="quantity">Quantity</label></td>
  34.                     <td><input name="quantity" type="text" class="form-control" id="quantity" placeholder="Quantity" required/></td>
  35.                   </tr>
  36.                   <tr>
  37.                     <td><label for="price">Price</label></td>
  38.                     <td><input name="price" type="text" class="form-control" id="price" placeholder="price" required/></td>
  39.                   </tr>
  40.                   <tr><td colspan="2" align="right"><input type="submit" name="Input" value="Tambah" class="btn btn-sm btn-primary"></td></tr>
  41.                </table>
  42.                 <div class="table-responsive">
  43.                   <table class="table table-bordered table-hover table-striped tablesorter">
  44.                       <tr>
  45.                         <th>Item Code</th>
  46.                         <th>Description</th>
  47.                         <th>Quantity</th>
  48.                         <th>Price</th>
  49.                         <th>Subtotal</th>
  50.                       </tr>
  51.                     <tr lass="header">
  52.                     <td align="left">
  53.                     <?php
  54.                         if (isset($_POST['Input'])) {
  55.                         $itemcode = $_POST['itemcode'];
  56.                         echo "$itemcode";
  57.                         }
  58.                        
  59.                     ?>
  60.                     </td>
  61.                     <td align="center">
  62.                     <?php
  63.                         if (isset($_POST['Input'])) {
  64.                         $description = $_POST['description'];
  65.                         echo "$description";
  66.                         }
  67.                     ?>
  68.                     </td>
  69.                     <td align="center">
  70.                     <?php
  71.                         if (isset($_POST['Input'])) {
  72.                         $quantity = $_POST['quantity'];
  73.                         echo "$quantity";
  74.                         }
  75.                     ?>
  76.                     </td>
  77.                     <td align="center">
  78.                     <?php
  79.                         if (isset($_POST['Input'])) {
  80.                         $price = $_POST['price'];
  81.                         echo "$price";
  82.                         }
  83.                     ?>
  84.                     </td>
  85.                     <td align="center">
  86.                    
  87.                     </td>
  88.                     </tr>
  89.                     <tr lass="header">
  90.                     <td colspan="4" align="right"><b>TOTAL</b></td>
  91.                     <td>   </td>
  92.                     </tr>
  93.                    </table>
  94.             </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement