summaryrefslogtreecommitdiff
path: root/UI/Contact/search.html
blob: bf6207a7b86f33d15ec1bcc36c92534807b819d1 (plain)
  1. <?lsmb INCLUDE 'ui-header.html' ?>
  2. <?lsmb PROCESS elements.html ?>
  3. <body>
  4. <?lsmb IF account_class == 1 -?>
  5. <?lsmb entity_type = 'Vendor' -?>
  6. <?lsmb ELSIF account_class == 2 -?>
  7. <?lsmb entity_type = 'Customer' -?>
  8. <?lsmb ELSIF account_class == 3 -?>
  9. <?lsmb entity_type = 'Employee' -?>
  10. <?lsmb ELSE -?>
  11. <?lsmb entity_type = 'Unsupported' -?>
  12. <?lsmb END -?>
  13. <?lsmb title = text("$entity_type Search") # " -?>
  14. <form method="post" action="<?lsmb script ?>">
  15. <?lsmb INCLUDE input element_data = {
  16. type = "hidden"
  17. name = "account_class"
  18. value = account_class
  19. } -?>
  20. <table width="100%">
  21. <tr><th class="listtop"><?lsmb title ?></th></tr>
  22. <tr><td /></tr>
  23. <tr valign="top">
  24. <td>
  25. <table>
  26. <tr valign="top">
  27. <td>
  28. <table>
  29. <tr>
  30. <th align="right"><?lsmb text('Company Name') ?></th>
  31. <td><?lsmb INCLUDE input element_data={size = '32', name = 'legal_name'} ?></td>
  32. </tr>
  33. <tr>
  34. <th align="right"><?lsmb text('Contact') ?></th>
  35. <td><?lsmb INCLUDE input element_data={size = '32', name = 'contact'} ?></td>
  36. </tr>
  37. <tr>
  38. <th align="right"><?lsmb text('E-mail') ?></th>
  39. <td><?lsmb INCLUDE input element_data={size = '32', name = 'email'} ?></td>
  40. </tr>
  41. <tr>
  42. <th align="right"><?lsmb text('Phone') ?></th>
  43. <td><?lsmb INCLUDE input element_data={size = '20', name = 'phone'} ?></td>
  44. </tr>
  45. <tr>
  46. <?lsmb IF entity_type == 'Customer' -?>
  47. <th align="right"><?lsmb text('Salesperson') ?></th>
  48. <td><?lsmb INCLUDE input element_data={size = '32', name = 'employee'} ?></td>
  49. <?lsmb ELSIF entity_type == 'Vendor' -?>
  50. <th align="right"><?lsmb text('Employee') ?></th>
  51. <td><?lsmb INCLUDE input element_data={size = '32', name = 'employee'} ?></td>
  52. <?lsmb END -?>
  53. </tr>
  54. <!-- tr>
  55. <th align="right"><?lsmb text('Notes') ?></th>
  56. <td><?lsmb INCLUDE textarea element_data={
  57. rows = '3', cols = '32', name = 'notes'} ?></td>
  58. </tr -->
  59. </table>
  60. </td>
  61. <td>
  62. <table>
  63. <tr>
  64. <th align="right"><?lsmb text("$entity_type Number") ?></th>
  65. <td><?lsmb INCLUDE input element_data={
  66. size = '32', name = "meta_number"} ?></td>
  67. </tr>
  68. <tr>
  69. <th align="right"><?lsmb text('Address') ?></th>
  70. <td><?lsmb INCLUDE input element_data={
  71. size = '32', name = 'address'} ?></td>
  72. </tr>
  73. <tr>
  74. <th align="right"><?lsmb text('City') ?></th>
  75. <td><?lsmb INCLUDE input element_data={
  76. size = '32', name = 'city'} ?></td>
  77. </tr>
  78. <tr>
  79. <th align="right"><?lsmb text('State/Province') ?></th>
  80. <td><?lsmb INCLUDE input element_data={
  81. size = '32', name = 'state'} ?></td>
  82. </tr>
  83. <tr>
  84. <th align="right"><?lsmb text('Zip/Postal Code') ?></th>
  85. <td><?lsmb INCLUDE input element_data={
  86. size = '10', name = 'mail_code'} ?></td>
  87. </tr>
  88. <tr>
  89. <th align="right"><?lsmb text('Country') ?></th>
  90. <td><?lsmb INCLUDE input element_data={
  91. size = '32', name = 'country'} ?></td>
  92. </tr>
  93. <tr>
  94. <th align="right"><?lsmb text('Active') ?></th>
  95. <td>
  96. <?lsmb text('From'); ' '; INCLUDE input element_data={
  97. size = '11', name = 'startdatefrom', class = 'date', title = user.dateformat};
  98. text('To'); ' '; INCLUDE input element_data={
  99. size = '11', name = 'startdateto', class = 'date', title = user.dateformat} ?>
  100. </td>
  101. </tr>
  102. </table>
  103. </td>
  104. </tr>
  105. </table>
  106. </td>
  107. </tr>
  108. <tr>
  109. <td>
  110. <table>
  111. <?lsmb IF target == 'list_history' -?>
  112. <tr>
  113. <td />
  114. <td>
  115. <table>
  116. <tr>
  117. <td>
  118. <table>
  119. <tr>
  120. <td align="right">
  121. <?lsmb INCLUDE input element_data={
  122. type = 'radio',
  123. name = 'type',
  124. value = 'invoice',
  125. label = text('Invoice'),
  126. checked = 'checked',
  127. } -?>
  128. </td>
  129. </tr>
  130. <tr>
  131. <td align="right">
  132. <?lsmb INCLUDE input element_data={
  133. type = 'radio',
  134. name = 'type',
  135. value = 'order',
  136. label = text('Order'),
  137. } -?>
  138. </td>
  139. </tr>
  140. <tr>
  141. <td align="right">
  142. <?lsmb INCLUDE input element_data={
  143. type = 'radio',
  144. name = 'type',
  145. value = 'quotation',
  146. label = text('Quotation'),
  147. } -?>
  148. </td>
  149. </tr>
  150. </table>
  151. </td>
  152. <td>
  153. <table>
  154. <tr>
  155. <th><?lsmb text('From') ?></th>
  156. <td><?lsmb INCLUDE input element_data={
  157. size = '11', name = 'transdatefrom', class = 'date', title = user.dateformat} -?></td>
  158. <th><?lsmb text('To') ?></th>
  159. <td><?lsmb INCLUDE input element_data={
  160. size = '11', name = 'transdateto', class = 'date', title = user.dateformat} -?></td>
  161. </tr>
  162. <tr>
  163. <td />
  164. <td colspan="3">
  165. <?lsmb INCLUDE input element_data={
  166. name = 'open',
  167. type = 'checkbox',
  168. value = 'Y',
  169. label = text('Open'),
  170. checked = 'checked'
  171. } -?>
  172. <?lsmb INCLUDE input element_data={
  173. name = 'closed',
  174. type = 'checkbox',
  175. value = 'Y',
  176. label = text('Closed'),
  177. } -?>
  178. </td>
  179. </tr>
  180. </table>
  181. </td>
  182. </tr>
  183. </table>
  184. </td>
  185. </tr>
  186. <tr>
  187. <th align="right"><?lsmb text('Include in Report') ?></th>
  188. <td>
  189. <table>
  190. <tr>
  191. <td align="right">
  192. <?lsmb INCLUDE input element_data={
  193. name = 'history',
  194. type = 'radio',
  195. value = 'summary',
  196. label = text('Summary'),
  197. checked = 'checked',
  198. } -?>
  199. </td>
  200. <td align="right">
  201. <?lsmb INCLUDE input element_data={
  202. name = 'history',
  203. type = 'radio',
  204. value = 'detail',
  205. label = text('Detail'),
  206. } -?>
  207. </td>
  208. </tr>
  209. <tr>
  210. <td align="right">
  211. <?lsmb INCLUDE input element_data={
  212. name = 'l_partnumber',
  213. type = 'checkbox',
  214. value = 'Y',
  215. label = text('Part Number'), # '
  216. checked = 'checked',
  217. } -?>
  218. </td>
  219. <td align="right">
  220. <?lsmb INCLUDE input element_data={
  221. name = 'l_description',
  222. type = 'checkbox',
  223. value = 'Y',
  224. label = text('Description'),
  225. checked = 'checked',
  226. } -?>
  227. </td>
  228. <td align="right">
  229. <?lsmb INCLUDE input element_data={
  230. name = 'l_sellprice',
  231. type = 'checkbox',
  232. value = 'Y',
  233. label = text('Sell Price'), # '
  234. checked = 'checked',
  235. } -?>
  236. </td>
  237. <td align="right">
  238. <?lsmb INCLUDE input element_data={
  239. name = 'l_curr',
  240. type = 'checkbox',
  241. value = 'Y',
  242. label = text('Currency'),
  243. } -?>
  244. </td>
  245. </tr>
  246. <tr>
  247. <td align="right">
  248. <?lsmb INCLUDE input element_data={
  249. name = 'l_qty',
  250. type = 'checkbox',
  251. value = 'Y',
  252. label = text('Qty'),
  253. } -?>
  254. </td>
  255. <td align="right">
  256. <?lsmb INCLUDE input element_data={
  257. name = 'l_unit',
  258. type = 'checkbox',
  259. value = 'Y',
  260. label = text('Unit'),
  261. } -?>
  262. </td>
  263. <td align="right">
  264. <?lsmb INCLUDE input element_data={
  265. name = 'l_discount',
  266. type = 'checkbox',
  267. value = 'Y',
  268. label = text('Discount'),
  269. } -?>
  270. </td>
  271. </tr>
  272. <tr>
  273. <td align="right">
  274. <?lsmb INCLUDE input element_data={
  275. name = 'l_deliverydate',
  276. type = 'checkbox',
  277. value = 'Y',
  278. label = text('Delivery Date'), # '
  279. } -?>
  280. </td>
  281. <td align="right">
  282. <?lsmb INCLUDE input element_data={
  283. name = 'l_projectnumber',
  284. type = 'checkbox',
  285. value = 'Y',
  286. label = text('Project Number'), # '
  287. } -?>
  288. </td>
  289. <td align="right">
  290. <?lsmb INCLUDE input element_data={
  291. name = 'l_serialnumber',
  292. type = 'checkbox',
  293. value = 'Y',
  294. label = text('Serial Number'), # '
  295. } -?>
  296. </td>
  297. </tr>
  298. </table>
  299. </td>
  300. </tr>
  301. <?lsmb ELSIF target == 'list_names' ?>
  302. <tr>
  303. <td />
  304. <td>
  305. <?lsmb INCLUDE input element_data={name = 'status', type = 'radio', value = 'all', label = text('All'), checked = 'checked'} -?>
  306. <?lsmb INCLUDE input element_data={name = 'status', type = 'radio', value = 'active', label = text('Active')} -?>
  307. <?lsmb INCLUDE input element_data={name = 'status', type = 'radio', value = 'inactive', label = text('Inactive')} -?>
  308. <?lsmb INCLUDE input element_data={name = 'status', type = 'radio', value = 'orphaned', label = text('Orphaned')} -?>
  309. </td>
  310. </tr>
  311. <tr>
  312. <td />
  313. <td>
  314. <table>
  315. <tr>
  316. <td>
  317. <table>
  318. <tr>
  319. <td align="right">
  320. <?lsmb INCLUDE input element_data={
  321. name = 'l_transnumber',
  322. type = 'checkbox',
  323. value = 'Y',
  324. label = form.translabel,
  325. } -?>
  326. </td>
  327. </tr>
  328. <tr>
  329. <td align="right">
  330. <?lsmb INCLUDE input element_data={
  331. name = 'l_invnumber',
  332. type = 'checkbox',
  333. value = 'Y',
  334. label = form.invlabel,
  335. } -?>
  336. </td>
  337. </tr>
  338. <tr>
  339. <td align="right">
  340. <?lsmb INCLUDE input element_data={
  341. name = 'l_ordnumber',
  342. type = 'checkbox',
  343. value = 'Y',
  344. label = form.ordlabel,
  345. } -?>
  346. </td>
  347. </tr>
  348. <tr>
  349. <td align="right">
  350. <?lsmb INCLUDE input element_data={
  351. name = 'l_quonumber',
  352. type = 'checkbox',
  353. value = 'Y',
  354. label = form.quolabel,
  355. } -?>
  356. </td>
  357. </tr>
  358. </table>
  359. </td>
  360. <td>
  361. <table>
  362. <tr>
  363. <th><?lsmb text('From') ?></th>
  364. <td>
  365. <?lsmb INCLUDE input element_data={
  366. name = 'transdatefrom',
  367. class = 'date'
  368. size = '11',
  369. title = user.dateformat,
  370. } -?>
  371. </td>
  372. <th><?lsmb text('To') ?></th>
  373. <td>
  374. <?lsmb INCLUDE input element_data={
  375. name = 'transdateto',
  376. class = 'date'
  377. size = '11',
  378. title = user.dateformat,
  379. } -?>
  380. </td>
  381. </tr>
  382. <tr>
  383. <td />
  384. <td colspan="3">
  385. <?lsmb INCLUDE input element_data={
  386. name = 'open',
  387. type = 'checkbox',
  388. value = 'Y',
  389. label = text('Open'),
  390. checked = 'checked'
  391. } -?>
  392. <?lsmb INCLUDE input element_data={
  393. name = 'closed',
  394. type = 'checkbox',
  395. value = 'Y',
  396. label = text('Closed'),
  397. } -?>
  398. </td>
  399. </tr>
  400. <tr>
  401. <td />
  402. <td colspan="3">
  403. <?lsmb INCLUDE input element_data={
  404. name = 'l_amount',
  405. type = 'checkbox',
  406. value = 'Y',
  407. label = text('Amount'),
  408. checked = 'checked'
  409. } -?>
  410. <?lsmb INCLUDE input element_data={
  411. name = 'l_tax',
  412. type = 'checkbox',
  413. value = 'Y',
  414. label = text('Tax'),
  415. checked = 'checked'
  416. } -?>
  417. <?lsmb INCLUDE input element_data={
  418. name = 'l_total',
  419. type = 'checkbox',
  420. value = 'Y',
  421. label = text('Total'),
  422. checked = 'checked'
  423. } -?>
  424. <?lsmb INCLUDE input element_data={
  425. name = 'l_subtotal',
  426. type = 'checkbox',
  427. value = 'Y',
  428. label = text('Subtotal'),
  429. } -?>
  430. </td>
  431. </tr>
  432. </table>
  433. </td>
  434. </tr>
  435. </table>
  436. </td>
  437. </tr>
  438. <tr>
  439. <th align="right"><?lsmb text('Include in Report') ?></th>
  440. <td>
  441. <table>
  442. <?lsmb FOREACH line IN form.includes -?>
  443. <tr>
  444. <?lsmb FOREACH item IN line -?>
  445. <td align="right">
  446. <?lsmb INCLUDE input element_data=item -?>
  447. </td>
  448. <?lsmb END -?>
  449. </tr>
  450. <?lsmb END -?>
  451. </table>
  452. </td>
  453. </tr>
  454. <?lsmb END ?>
  455. </table>
  456. </td>
  457. </tr>
  458. <tr>
  459. <td><hr size="3" noshade="noshade" /></td>
  460. </tr>
  461. </table>
  462. <?lsmb INCLUDE button element_data = {
  463. text = text('Search')
  464. name = "action"
  465. value = 'get_results'
  466. class = "submit"
  467. type = "submit"
  468. } ?>
  469. </form>
  470. </body>
  471. </html>