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