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