summaryrefslogtreecommitdiff
path: root/UI/Customer/customer.html
blob: 88020d1dce5e6d79ead122480e7385b2e0a40a3f (plain)
  1. <?lsmb PROCESS 'ui-header.html' ?>
  2. <body>
  3. <div class="listtop"><strong><?lsmb text('Add/Edit Customer') ?></strong></div>
  4. <div class="customer">
  5. <?lsmb IF name ?>
  6. <font size="17"><?lsmb name?></font>
  7. <?lsmb END ?>
  8. <form name="customer" method="POST" action="vendor.pl">
  9. <label for="name"><?lsmb text('Name:') ?></label>
  10. <input name="name" id="name" type="text" value="<?lsmb name ?>"><br/>
  11. <table>
  12. <?lsmb IF ordered ?>
  13. <tr>
  14. <td><b><?lsmb text('Shipping Address') ?></b></td>
  15. <td><b><?lsmb text('Billing Address (if different)') ?></p></td>
  16. </tr>
  17. <?lsmb END ?>
  18. <?lsmb FOREACH entry = ordered ?>
  19. <tr>
  20. <td>
  21. <label for="shipping_<?lsmb entry ?>"><?lsmb text(entry) ?>:
  22. </label>
  23. <input id="shipping_<?lsmb entry ?>" type="text"
  24. name="shipping_<?lsmb entry ?>"
  25. value="<?lsmb entry ?>">
  26. </td>
  27. <td>
  28. <input type="text" name="billing_<?lsmb entry ?>"
  29. value="<?lsmb entry ?>">
  30. </td>
  31. </tr>
  32. <?lsmb END ?>
  33. <tr>
  34. <td>
  35. <label for="startdate"><?lsmb text('Starting Date:') ?></label>
  36. <input id="startdate" type="text" name="startdate"
  37. class="date" value="<?lsmb startdate ?>">
  38. </td>
  39. <td>
  40. <label for="enddate"><?lsmb('End date:') ?></label>
  41. <input id="enddate" type="text" name="startdate"
  42. class="date" value="<?lsmb enddate ?>">
  43. </td>
  44. </tr>
  45. <tr>
  46. <td>
  47. <label for"creditlimit"><?lsmb text('Credit Limit:') ?></label>
  48. <input id="creditlimit" name="creditlimit" type="text"
  49. value="<?lsmb creditlimit ?>">
  50. </td>
  51. <td>
  52. <label for="terms"><?lsmb text('Terms:') ?></label>
  53. <input id="terms" name="terms" type="text"
  54. value="<?lsmb terms ?>"> days
  55. </td>
  56. </tr>
  57. <tr>
  58. <td>
  59. <label for="taxnumber"><?lsmb text('Tax Number/SSN:') ?></label>
  60. <input id="taxnumber" name="taxnumber" type="text"
  61. value="<?lsmb taxnumber ?>">
  62. </td>
  63. <td>
  64. <label for"gifi_accno"><?lsmb text('Subcontract GIFI:') ?>
  65. </label>
  66. <input id="gifi_accno" name="gifi_accno" type="text"
  67. value="<?lsmb gifi_accno ?>">
  68. </td>
  69. </tr>
  70. <tr>
  71. <td>
  72. <label for="discount"><?lsmb text('Discount %:') ?></label>
  73. <input id="discount" name="discount" type="text" size="3"
  74. maxlength="3" value="<?lsmb discount ?>">/
  75. <input id="discountdays" name="discountdays" type="text"
  76. size="3" value="<?lsmb discount_days ?>">
  77. </td>
  78. <td>
  79. <label for"sic_code"><?lsmb text('SIC Code:') ?></label>
  80. <input id="sic_code" name="sic_code" type="text"
  81. value="<?lsmb sic_code ?>">
  82. </td>
  83. </tr>
  84. <tr>
  85. <td>
  86. <label for"bic"><?lsmb text('BIC:') ?></label>
  87. <input id="bic" name="bic" type="text"
  88. value="<?lsmb bic ?>">
  89. </td>
  90. <td>
  91. <label for="iban"><?lsmb text('IBAN:') ?></label>
  92. <input id="iban" name="iban" type="text"
  93. value="<?lsmb iban ?>">
  94. </td>
  95. </tr>
  96. <tr>
  97. <td>
  98. <label for="notes"><?lsmb text('Notes:') ?></label><br/>
  99. <textarea name="notes" rows="3" cols="40" id="notes"><?lsmb
  100. notes
  101. ?></textarea>
  102. <!-- The prior funny whitespace may look funny but it prevents
  103. additional whitespace from being added to the data every time
  104. it is saved -->
  105. </td>
  106. </tr>
  107. </table>
  108. <hr/>
  109. <button class="submit"
  110. type="submit"
  111. name="action"
  112. value="save"
  113. accesskey="S"
  114. title="Save [Alt-S]"><?lsmb text('Save') ?></button>
  115. <button class="submit"
  116. type="submit"
  117. name="action"
  118. value="ap_transaction"
  119. accesskey="A"
  120. title="AP Transaction [Alt-A]">
  121. <?lsmb text('AP Transaction') ?></button>
  122. <button class="submit"
  123. type="submit"
  124. name="action"
  125. value="customer_invoice"
  126. accesskey="I"
  127. title="customer Invoice [Alt-I]">
  128. <?lsmb text('Customer Invoice') ?></button>
  129. <button class="submit"
  130. type="submit"
  131. name="action"
  132. value="purchase_order"
  133. accesskey="O"
  134. title="Purchase Order [Alt-O]">
  135. <?lsmb text('Purchase Order') ?></button>
  136. <button class="submit"
  137. type="submit"
  138. name="action"
  139. value="rfq"
  140. accesskey="Q"
  141. title="RFQ [Alt-Q]"><?lsmb text('RFQ') ?></button>
  142. <button class="submit"
  143. type="submit"
  144. name="action"
  145. value="pricelist"
  146. accesskey="P"
  147. title="Pricelist [Alt-P]">
  148. <?lsmb text('Pricelist') ?></button>
  149. </form>
  150. </div>
  151. <div id="locations">
  152. <div class="listtop"><?lsmb text('Locations') ?></div>
  153. <!-- This entire form should probably be optionaly automated with AJAX
  154. in oder to prevent user confusion -->
  155. <form id="location_form" action="vendor.pl">
  156. <!-- todo, add location management! -->
  157. </form>
  158. </div>
  159. </body>
  160. </html>