- <?lsmb INCLUDE 'ui-header.html' ?>
- <?lsmb PROCESS elements.html ?>
- <body>
- <?lsmb IF account_class == 1 -?>
- <?lsmb entity_type = 'Vendor' -?>
- <?lsmb ELSIF account_class == 2 -?>
- <?lsmb entity_type = 'Customer' -?>
- <?lsmb ELSIF account_class == 3 -?>
- <?lsmb entity_type = 'Employee' -?>
- <?lsmb ELSE -?>
- <?lsmb entity_type = 'Unsupported' -?>
- <?lsmb END -?>
- <?lsmb title = text("$entity_type Search") # " -?>
- <form method="post" action="<?lsmb script ?>">
- <?lsmb INCLUDE input element_data = {
- type = "hidden"
- name = "account_class"
- value = account_class
- } -?>
- <table width="100%">
- <tr><th class="listtop"><?lsmb title ?></th></tr>
- <tr><td /></tr>
- <tr valign="top">
- <td>
- <table>
- <tr valign="top">
- <td>
- <table>
- <tr>
- <th align="right"><?lsmb text('Company Name') ?></th>
- <td><?lsmb INCLUDE input element_data={size = '32', name = 'legal_name'} ?></td>
- </tr>
- <tr>
- <th align="right"><?lsmb text('Control Code') ?></th>
- <td><?lsmb PROCESS input element_data = {
- size = 32
- name = "control_code"
- type = "text"
- value = control_code
- } ?></td>
- </tr>
- <tr>
- <th align="right"><?lsmb text('Contact') ?></th>
- <td><?lsmb INCLUDE input element_data={size = '32', name = 'contact'} ?></td>
- </tr>
- <tr>
- <th align="right"><?lsmb text('E-mail') ?></th>
- <td><?lsmb INCLUDE input element_data={size = '32', name = 'email'} ?></td>
- </tr>
- <tr>
- <th align="right"><?lsmb text('Phone') ?></th>
- <td><?lsmb INCLUDE input element_data={size = '20', name = 'phone'} ?></td>
- </tr>
- <tr>
- <?lsmb IF entity_type == 'Customer' -?>
- <th align="right"><?lsmb text('Salesperson') ?></th>
- <td><?lsmb INCLUDE input element_data={size = '32', name = 'employee'} ?></td>
- <?lsmb ELSIF entity_type == 'Vendor' -?>
- <th align="right"><?lsmb text('Employee') ?></th>
- <td><?lsmb INCLUDE input element_data={size = '32', name = 'employee'} ?></td>
- <?lsmb END -?>
- </tr>
- <!-- tr>
- <th align="right"><?lsmb text('Notes') ?></th>
- <td><?lsmb INCLUDE textarea element_data={
- rows = '3', cols = '32', name = 'notes'} ?></td>
- </tr -->
- </table>
- </td>
- <td>
- <table>
- <tr>
- <th align="right"><?lsmb text("$entity_type Number") ?></th>
- <td><?lsmb INCLUDE input element_data={
- size = '32', name = "meta_number"} ?></td>
- </tr>
- <tr>
- <th align="right"><?lsmb text('Address') ?></th>
- <td><?lsmb INCLUDE input element_data={
- size = '32', name = 'address'} ?></td>
- </tr>
- <tr>
- <th align="right"><?lsmb text('City') ?></th>
- <td><?lsmb INCLUDE input element_data={
- size = '32', name = 'city'} ?></td>
- </tr>
- <tr>
- <th align="right"><?lsmb text('State/Province') ?></th>
- <td><?lsmb INCLUDE input element_data={
- size = '32', name = 'state'} ?></td>
- </tr>
- <tr>
- <th align="right"><?lsmb text('Zip/Postal Code') ?></th>
- <td><?lsmb INCLUDE input element_data={
- size = '10', name = 'mail_code'} ?></td>
- </tr>
- <tr>
- <th align="right"><?lsmb text('Country') ?></th>
- <td><?lsmb INCLUDE input element_data={
- size = '32', name = 'country'} ?></td>
- </tr>
- <tr>
- <th align="right"><?lsmb text('Active') ?></th>
- <td>
- <?lsmb text('From'); ' '; INCLUDE input element_data={
- size = '11', name = 'startdatefrom', class = 'date', title = user.dateformat};
- text('To'); ' '; INCLUDE input element_data={
- size = '11', name = 'startdateto', class = 'date', title = user.dateformat} ?>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td>
- <table>
- <?lsmb IF target == 'list_history' -?>
- <tr>
- <td />
- <td>
- <table>
- <tr>
- <td>
- <table>
- <tr>
- <td align="right">
- <?lsmb INCLUDE input element_data={
- type = 'radio',
- name = 'type',
- value = 'invoice',
- label = text('Invoice'),
- checked = 'checked',
- } -?>
- </td>
- </tr>
- <tr>
- <td align="right">
- <?lsmb INCLUDE input element_data={
- type = 'radio',
- name = 'type',
- value = 'order',
- label = text('Order'),
- } -?>
- </td>
- </tr>
- <tr>
- <td align="right">
- <?lsmb INCLUDE input element_data={
- type = 'radio',
- name = 'type',
- value = 'quotation',
- label = text('Quotation'),
- } -?>
- </td>
- </tr>
- </table>
- </td>
- <td>
- <table>
- <tr>
- <th><?lsmb text('From') ?></th>
- <td><?lsmb INCLUDE input element_data={
- size = '11', name = 'transdatefrom', class = 'date', title = user.dateformat} -?></td>
- <th><?lsmb text('To') ?></th>
- <td><?lsmb INCLUDE input element_data={
- size = '11', name = 'transdateto', class = 'date', title = user.dateformat} -?></td>
- </tr>
- <tr>
- <td />
- <td colspan="3">
- <?lsmb INCLUDE input element_data={
- name = 'open',
- type = 'checkbox',
- value = 'Y',
- label = text('Open'),
- checked = 'checked'
- } -?>
- <?lsmb INCLUDE input element_data={
- name = 'closed',
- type = 'checkbox',
- value = 'Y',
- label = text('Closed'),
- } -?>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <th align="right"><?lsmb text('Include in Report') ?></th>
- <td>
- <table>
- <tr>
- <td align="right">
- <?lsmb INCLUDE input element_data={
- name = 'history',
- type = 'radio',
- value = 'summary',
- label = text('Summary'),
- checked = 'checked',
- } -?>
- </td>
- <td align="right">
- <?lsmb INCLUDE input element_data={
- name = 'history',
- type = 'radio',
- value = 'detail',
- label = text('Detail'),
- } -?>
- </td>
- </tr>
- <tr>
- <td align="right">
- <?lsmb INCLUDE input element_data={
- name = 'l_partnumber',
- type = 'checkbox',
- value = 'Y',
- label = text('Part Number'), # '
- checked = 'checked',
- } -?>
- </td>
- <td align="right">
- <?lsmb INCLUDE input element_data={
- name = 'l_description',
- type = 'checkbox',
- value = 'Y',
- label = text('Description'),
- checked = 'checked',
- } -?>
- </td>
- <td align="right">
- <?lsmb INCLUDE input element_data={
- name = 'l_sellprice',
- type = 'checkbox',
- value = 'Y',
- label = text('Sell Price'), # '
- checked = 'checked',
- } -?>
- </td>
- <td align="right">
- <?lsmb INCLUDE input element_data={
- name = 'l_curr',
- type = 'checkbox',
- value = 'Y',
- label = text('Currency'),
- } -?>
- </td>
- </tr>
- <tr>
- <td align="right">
- <?lsmb INCLUDE input element_data={
- name = 'l_qty',
- type = 'checkbox',
- value = 'Y',
- label = text('Qty'),
- } -?>
- </td>
- <td align="right">
- <?lsmb INCLUDE input element_data={
- name = 'l_unit',
- type = 'checkbox',
- value = 'Y',
- label = text('Unit'),
- } -?>
- </td>
- <td align="right">
- <?lsmb INCLUDE input element_data={
- name = 'l_discount',
- type = 'checkbox',
- value = 'Y',
- label = text('Discount'),
- } -?>
- </td>
- </tr>
- <tr>
- <td align="right">
- <?lsmb INCLUDE input element_data={
- name = 'l_deliverydate',
- type = 'checkbox',
- value = 'Y',
- label = text('Delivery Date'), # '
- } -?>
- </td>
- <td align="right">
- <?lsmb INCLUDE input element_data={
- name = 'l_projectnumber',
- type = 'checkbox',
- value = 'Y',
- label = text('Project Number'), # '
- } -?>
- </td>
- <td align="right">
- <?lsmb INCLUDE input element_data={
- name = 'l_serialnumber',
- type = 'checkbox',
- value = 'Y',
- label = text('Serial Number'), # '
- } -?>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <?lsmb ELSIF target == 'list_names' ?>
- <tr>
- <td />
- <td>
- <?lsmb INCLUDE input element_data={name = 'status', type = 'radio', value = 'all', label = text('All'), checked = 'checked'} -?>
- <?lsmb INCLUDE input element_data={name = 'status', type = 'radio', value = 'active', label = text('Active')} -?>
- <?lsmb INCLUDE input element_data={name = 'status', type = 'radio', value = 'inactive', label = text('Inactive')} -?>
- <?lsmb INCLUDE input element_data={name = 'status', type = 'radio', value = 'orphaned', label = text('Orphaned')} -?>
- </td>
- </tr>
- <tr>
- <td />
- <td>
- <table>
- <tr>
- <td>
- <table>
- <tr>
- <td align="right">
- <?lsmb INCLUDE input element_data={
- name = 'l_transnumber',
- type = 'checkbox',
- value = 'Y',
- label = form.translabel,
- } -?>
- </td>
- </tr>
- <tr>
- <td align="right">
- <?lsmb INCLUDE input element_data={
- name = 'l_invnumber',
- type = 'checkbox',
- value = 'Y',
- label = form.invlabel,
- } -?>
- </td>
- </tr>
- <tr>
- <td align="right">
- <?lsmb INCLUDE input element_data={
- name = 'l_ordnumber',
- type = 'checkbox',
- value = 'Y',
- label = form.ordlabel,
- } -?>
- </td>
- </tr>
- <tr>
- <td align="right">
- <?lsmb INCLUDE input element_data={
- name = 'l_quonumber',
- type = 'checkbox',
- value = 'Y',
- label = form.quolabel,
- } -?>
- </td>
- </tr>
- </table>
- </td>
- <td>
- <table>
- <tr>
- <th><?lsmb text('From') ?></th>
- <td>
- <?lsmb INCLUDE input element_data={
- name = 'transdatefrom',
- class = 'date'
- size = '11',
- title = user.dateformat,
- } -?>
- </td>
- <th><?lsmb text('To') ?></th>
- <td>
- <?lsmb INCLUDE input element_data={
- name = 'transdateto',
- class = 'date'
- size = '11',
- title = user.dateformat,
- } -?>
- </td>
- </tr>
- <tr>
- <td />
- <td colspan="3">
- <?lsmb INCLUDE input element_data={
- name = 'open',
- type = 'checkbox',
- value = 'Y',
- label = text('Open'),
- checked = 'checked'
- } -?>
- <?lsmb INCLUDE input element_data={
- name = 'closed',
- type = 'checkbox',
- value = 'Y',
- label = text('Closed'),
- } -?>
- </td>
- </tr>
- <tr>
- <td />
- <td colspan="3">
- <?lsmb INCLUDE input element_data={
- name = 'l_amount',
- type = 'checkbox',
- value = 'Y',
- label = text('Amount'),
- checked = 'checked'
- } -?>
- <?lsmb INCLUDE input element_data={
- name = 'l_tax',
- type = 'checkbox',
- value = 'Y',
- label = text('Tax'),
- checked = 'checked'
- } -?>
- <?lsmb INCLUDE input element_data={
- name = 'l_total',
- type = 'checkbox',
- value = 'Y',
- label = text('Total'),
- checked = 'checked'
- } -?>
- <?lsmb INCLUDE input element_data={
- name = 'l_subtotal',
- type = 'checkbox',
- value = 'Y',
- label = text('Subtotal'),
- } -?>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <th align="right"><?lsmb text('Include in Report') ?></th>
- <td>
- <table>
- <?lsmb FOREACH line IN form.includes -?>
- <tr>
- <?lsmb FOREACH item IN line -?>
- <td align="right">
- <?lsmb INCLUDE input element_data=item -?>
- </td>
- <?lsmb END -?>
- </tr>
- <?lsmb END -?>
- </table>
- </td>
- </tr>
- <?lsmb END ?>
- </table>
- </td>
- </tr>
- <tr>
- <td><hr size="3" noshade="noshade" /></td>
- </tr>
- </table>
- <?lsmb INCLUDE button element_data = {
- text = text('Search')
- name = "action"
- value = 'get_results'
- class = "submit"
- type = "submit"
- } ?>
- </form>
- </body>
- </html>
|