<?lsmb PROCESS 'ui-header.html' ?> <body> <div class="listtop"><strong><?lsmb text('Add/Edit Customer') ?></strong></div> <div class="customer"> <?lsmb IF name ?> <font size="17"><?lsmb name?></font> <?lsmb END ?> <form name="customer" method="POST" action="vendor.pl"> <label for="name"><?lsmb text('Name:') ?></label> <input name="name" id="name" type="text" value="<?lsmb name ?>"><br/> <table> <?lsmb IF ordered ?> <tr> <td><b><?lsmb text('Shipping Address') ?></b></td> <td><b><?lsmb text('Billing Address (if different)') ?></p></td> </tr> <?lsmb END ?> <?lsmb FOREACH entry = ordered ?> <tr> <td> <label for="shipping_<?lsmb entry ?>"><?lsmb text(entry) ?>: </label> <input id="shipping_<?lsmb entry ?>" type="text" name="shipping_<?lsmb entry ?>" value="<?lsmb entry ?>"> </td> <td> <input type="text" name="billing_<?lsmb entry ?>" value="<?lsmb entry ?>"> </td> </tr> <?lsmb END ?> <tr> <td> <label for="startdate"><?lsmb text('Starting Date:') ?></label> <input id="startdate" type="text" name="startdate" class="date" value="<?lsmb startdate ?>"> </td> <td> <label for="enddate"><?lsmb('End date:') ?></label> <input id="enddate" type="text" name="startdate" class="date" value="<?lsmb enddate ?>"> </td> </tr> <tr> <td> <label for"creditlimit"><?lsmb text('Credit Limit:') ?></label> <input id="creditlimit" name="creditlimit" type="text" value="<?lsmb creditlimit ?>"> </td> <td> <label for="terms"><?lsmb text('Terms:') ?></label> <input id="terms" name="terms" type="text" value="<?lsmb terms ?>"> days </td> </tr> <tr> <td> <label for="taxnumber"><?lsmb text('Tax Number/SSN:') ?></label> <input id="taxnumber" name="taxnumber" type="text" value="<?lsmb taxnumber ?>"> </td> <td> <label for"gifi_accno"><?lsmb text('Subcontract GIFI:') ?> </label> <input id="gifi_accno" name="gifi_accno" type="text" value="<?lsmb gifi_accno ?>"> </td> </tr> <tr> <td> <label for="discount"><?lsmb text('Discount %:') ?></label> <input id="discount" name="discount" type="text" size="3" maxlength="3" value="<?lsmb discount ?>">/ <input id="discountdays" name="discountdays" type="text" size="3" value="<?lsmb discount_days ?>"> </td> <td> <label for"sic_code"><?lsmb text('SIC Code:') ?></label> <input id="sic_code" name="sic_code" type="text" value="<?lsmb sic_code ?>"> </td> </tr> <tr> <td> <label for"bic"><?lsmb text('BIC:') ?></label> <input id="bic" name="bic" type="text" value="<?lsmb bic ?>"> </td> <td> <label for="iban"><?lsmb text('IBAN:') ?></label> <input id="iban" name="iban" type="text" value="<?lsmb iban ?>"> </td> </tr> <tr> <td> <label for="notes"><?lsmb text('Notes:') ?></label><br/> <textarea name="notes" rows="3" cols="40" id="notes"><?lsmb notes ?></textarea> <!-- The prior funny whitespace may look funny but it prevents additional whitespace from being added to the data every time it is saved --> </td> </tr> </table> <hr/> <button class="submit" type="submit" name="action" value="save" accesskey="S" title="Save [Alt-S]"><?lsmb text('Save') ?></button> <button class="submit" type="submit" name="action" value="ap_transaction" accesskey="A" title="AP Transaction [Alt-A]"> <?lsmb text('AP Transaction') ?></button> <button class="submit" type="submit" name="action" value="customer_invoice" accesskey="I" title="customer Invoice [Alt-I]"> <?lsmb text('Customer Invoice') ?></button> <button class="submit" type="submit" name="action" value="purchase_order" accesskey="O" title="Purchase Order [Alt-O]"> <?lsmb text('Purchase Order') ?></button> <button class="submit" type="submit" name="action" value="rfq" accesskey="Q" title="RFQ [Alt-Q]"><?lsmb text('RFQ') ?></button> <button class="submit" type="submit" name="action" value="pricelist" accesskey="P" title="Pricelist [Alt-P]"> <?lsmb text('Pricelist') ?></button> </form> </div> <div id="locations"> <div class="listtop"><?lsmb text('Locations') ?></div> <!-- This entire form should probably be optionaly automated with AJAX in oder to prevent user confusion --> <form id="location_form" action="vendor.pl"> <!-- todo, add location management! --> </form> </div> </body> </html>