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