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