summaryrefslogtreecommitdiff
path: root/UI/ct-form.html
blob: de9a3f52952f38cfa4494475bd4318f1683336c9 (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>
  9. <td>
  10. <table width="100%">
  11. <tr valign="top">
  12. <td width="50%">
  13. <table width="100%">
  14. <tr class="listheading">
  15. <th class="listheading" colspan="2" width="50%"><?lsmb text('Billing Address') ?></th>
  16. </tr>
  17. <tr>
  18. <th align="right"><?lsmb text("${form.label} Number") ?></th>
  19. <td><?lsmb PROCESS input element_data={
  20. name => form.dbnumber,
  21. size => '35',
  22. maxlength => '32',
  23. value => form.${form.dbnumber},
  24. } -?></td>
  25. </tr>
  26. <tr>
  27. <th align="right"><?lsmb text('Company Name') ?></th>
  28. <td><?lsmb PROCESS input element_data={
  29. name => 'name',
  30. size => '35',
  31. maxlength => '64',
  32. value => form.name,
  33. } -?></td>
  34. </tr>
  35. <tr>
  36. <th align="right"><?lsmb text('Address') ?></th>
  37. <td><?lsmb PROCESS input element_data={
  38. name => 'address1',
  39. size => '35',
  40. maxlength => '32',
  41. value => form.address1,
  42. } -?></td>
  43. </tr>
  44. <tr>
  45. <th />
  46. <td><?lsmb PROCESS input element_data={
  47. name => 'address2',
  48. size => '35',
  49. maxlength => '32',
  50. value => form.address2,
  51. } -?></td>
  52. </tr>
  53. <tr>
  54. <th align="right"><?lsmb text('City') ?></th>
  55. <td><?lsmb PROCESS input element_data={
  56. name => 'city',
  57. size => '35',
  58. maxlength => '32',
  59. value => form.city,
  60. } -?></td>
  61. </tr>
  62. <tr>
  63. <th align="right"><?lsmb text('State/Province') ?></th>
  64. <td><?lsmb PROCESS input element_data={
  65. name => 'state',
  66. size => '35',
  67. maxlength => '32',
  68. value => form.state,
  69. } -?></td>
  70. </tr>
  71. <tr>
  72. <th align="right"><?lsmb text('Zip/Postal Code') ?></th>
  73. <td><?lsmb PROCESS input element_data={
  74. name => 'zipcode',
  75. size => '10',
  76. maxlength => '10',
  77. value => form.zipcode,
  78. } -?></td>
  79. </tr>
  80. <tr>
  81. <th align="right"><?lsmb text('Country') ?></th>
  82. <td><?lsmb PROCESS input element_data={
  83. name => 'country',
  84. size => '35',
  85. maxlength => '32',
  86. value => form.country,
  87. } -?></td>
  88. </tr>
  89. <tr>
  90. <th align="right"><?lsmb text('Contact') ?></th>
  91. <td><?lsmb PROCESS input element_data={
  92. name => 'contact',
  93. size => '35',
  94. maxlength => '64',
  95. value => form.contact,
  96. } -?></td>
  97. </tr>
  98. <tr>
  99. <th align="right"><?lsmb text('Phone') ?></th>
  100. <td><?lsmb PROCESS input element_data={
  101. name => 'phone',
  102. size => '20',
  103. maxlength => '20',
  104. value => form.phone,
  105. } -?></td>
  106. </tr>
  107. <tr>
  108. <th align="right"><?lsmb text('Fax') ?></th>
  109. <td><?lsmb PROCESS input element_data={
  110. name => 'fax',
  111. size => '20',
  112. maxlength => '20',
  113. value => form.fax,
  114. } -?></td>
  115. </tr>
  116. <tr>
  117. <th align="right"><?lsmb text('E-mail') ?></th>
  118. <td><?lsmb PROCESS input element_data={
  119. name => 'email',
  120. size => '35',
  121. value => form.email,
  122. } -?></td>
  123. </tr>
  124. <tr>
  125. <th align="right"><?lsmb text('Cc') ?></th>
  126. <td><?lsmb PROCESS input element_data={
  127. name => 'cc',
  128. size => '35',
  129. value => form.cc,
  130. } -?></td>
  131. </tr>
  132. <?lsmb IF user.role.matches('(admin|manager)') -?>
  133. <tr>
  134. <th align="right"><?lsmb text('Bcc') ?></th>
  135. <td><?lsmb PROCESS input element_data={
  136. name => 'bcc',
  137. size => '35',
  138. value => form.bcc,
  139. } -?></td>
  140. </tr>
  141. <?lsmb END -?>
  142. </table>
  143. </td>
  144. <td width="50%">
  145. <table width="100%">
  146. <tr>
  147. <th class="listheading" colspan="2">
  148. <?lsmb text('Shipping Address') ?>
  149. </th>
  150. </tr>
  151. <tr><td>&nbsp;<br />&nbsp;</td></tr>
  152. <tr>
  153. <td><?lsmb PROCESS input element_data={
  154. name => 'shiptoname',
  155. size => '35',
  156. maxlength => '64',
  157. value => form.shiptoname,
  158. } -?></td>
  159. </tr>
  160. <tr>
  161. <td><?lsmb PROCESS input element_data={
  162. name => 'shiptoaddress1',
  163. size => '35',
  164. maxlength => '32',
  165. value => form.shiptoaddress1,
  166. } -?></td>
  167. </tr>
  168. <tr>
  169. <td><?lsmb PROCESS input element_data={
  170. name => 'shiptoaddress2',
  171. size => '35',
  172. maxlength => '32',
  173. value => form.shiptoaddress2,
  174. } -?></td>
  175. </tr>
  176. <tr>
  177. <td><?lsmb PROCESS input element_data={
  178. name => 'shiptocity',
  179. size => '35',
  180. maxlength => '32',
  181. value => form.shiptocity,
  182. } -?></td>
  183. </tr>
  184. <tr>
  185. <td><?lsmb PROCESS input element_data={
  186. name => 'shiptostate',
  187. size => '35',
  188. maxlength => '32',
  189. value => form.shiptostate,
  190. } -?></td>
  191. </tr>
  192. <tr>
  193. <td><?lsmb PROCESS input element_data={
  194. name => 'shiptozipcode',
  195. size => '10',
  196. maxlength => '10',
  197. value => form.shiptozipcode,
  198. } -?></td>
  199. </tr>
  200. <tr>
  201. <td><?lsmb PROCESS input element_data={
  202. name => 'shiptocountry',
  203. size => '35',
  204. maxlength => '32',
  205. value => form.shiptocountry,
  206. } -?></td>
  207. </tr>
  208. <tr>
  209. <td><?lsmb PROCESS input element_data={
  210. name => 'shiptocontact',
  211. size => '35',
  212. maxlength => '32',
  213. value => form.shiptocontact,
  214. } -?></td>
  215. </tr>
  216. <tr>
  217. <td><?lsmb PROCESS input element_data={
  218. name => 'shiptophone',
  219. size => '20',
  220. maxlength => '20',
  221. value => form.shiptophone,
  222. } -?></td>
  223. </tr>
  224. <tr>
  225. <td><?lsmb PROCESS input element_data={
  226. name => 'shiptofax',
  227. size => '20',
  228. maxlength => '20',
  229. value => form.shiptofax,
  230. } -?></td>
  231. </tr>
  232. <tr>
  233. <td><?lsmb PROCESS input element_data={
  234. name => 'shiptoemail',
  235. size => '35',
  236. value => form.shiptoemail,
  237. } -?></td>
  238. </tr>
  239. </table>
  240. </td>
  241. </tr>
  242. </table>
  243. </td>
  244. </tr>
  245. <tr>
  246. <td>
  247. <table>
  248. <?lsmb IF form.taxable -?>
  249. <tr>
  250. <th align="right"><?lsmb text('Taxable') ?></th>
  251. <td colspan="5">
  252. <table>
  253. <tr>
  254. <td>
  255. <?lsmb FOREACH tax IN form.taxable;
  256. PROCESS input element_data=tax;
  257. END -?>
  258. </td>
  259. <td>
  260. <?lsmb PROCESS input element_data={
  261. name => 'taxincluded',
  262. type => 'checkbox',
  263. value => '1',
  264. label => text('Tax Included'),
  265. ${form.taxincluded} => form.taxincluded
  266. } -?>
  267. </td>
  268. </tr>
  269. </table>
  270. </td>
  271. </tr>
  272. <?lsmb END -?>
  273. <tr>
  274. <th align="right"><?lsmb text('Startdate') ?></th>
  275. <td><?lsmb PROCESS input element_data={
  276. class => 'date',
  277. name => 'startdate',
  278. size => '11',
  279. value => form.startdate,
  280. title => user.dateformat,
  281. } -?></td>
  282. <th align="right"><?lsmb text('Enddate') ?></th>
  283. <td><?lsmb PROCESS input element_data={
  284. class => 'date',
  285. name => 'enddate',
  286. size => '11',
  287. value => form.enddate,
  288. title => user.dateformat,
  289. } -?></td>
  290. </tr>
  291. <tr>
  292. <th align="right"><?lsmb text('Credit Limit') ?></th>
  293. <td><?lsmb PROCESS input element_data={
  294. name => 'creditlimit',
  295. size => '9',
  296. value => form.creditlimit,
  297. } -?></td>
  298. <th align="right"><?lsmb text('Terms') ?></th>
  299. <td><?lsmb PROCESS input element_data={
  300. name => 'terms',
  301. size => '2',
  302. value => form.terms,
  303. }; text('days') -?></td>
  304. <th align="right"><?lsmb text('Discount') ?></th>
  305. <td><?lsmb PROCESS input element_data={
  306. name => 'discount',
  307. size => '4',
  308. value => form.discount,
  309. } -?>%</td>
  310. </tr>
  311. <tr>
  312. <th align="right"><?lsmb text('Tax Number / SSN') ?></th>
  313. <td><?lsmb PROCESS input element_data={
  314. name => 'taxnumber',
  315. size => '20',
  316. value => form.taxnumber,
  317. } -?></td>
  318. <?lsmb IF form.db == 'vendor' ?>
  319. <th align="right"><?lsmb text('Sub-contract GIFI') ?></th>
  320. <td><?lsmb PROCESS input element_data={
  321. name => 'gifi_accno',
  322. size => '9',
  323. value => form.gifi_accno,
  324. } -?></td>
  325. <?lsmb ELSE ?>
  326. <th />
  327. <td />
  328. <?lsmb END ?>
  329. <th align="right"><?lsmb text('SIC') ?></th>
  330. <td><?lsmb PROCESS input element_data={
  331. name => 'sic_code',
  332. size => '6',
  333. maxlength => '6',
  334. value => form.sic_code,
  335. } -?>%</td>
  336. </tr>
  337. <tr>
  338. <?lsmb IF form.all_business -?>
  339. <th align="right"><?lsmb text('Type of Business') ?></th>
  340. <td><?lsmb PROCESS select element_data=form.selectbusiness -?></td>
  341. <?lsmb ELSE -?>
  342. <th />
  343. <td />
  344. <?lsmb END -?>
  345. <th align="right"><?lsmb text('BIC') ?></th>
  346. <td><?lsmb PROCESS input element_data={
  347. name => 'bic',
  348. size => '11',
  349. maxlength => '11',
  350. value => form.bic,
  351. } -?></td>
  352. <th align="right"><?lsmb text('IBAN') ?></th>
  353. <td><?lsmb PROCESS input element_data={
  354. name => 'iban',
  355. size => '24',
  356. maxlength => '24',
  357. value => form.iban,
  358. } -?></td>
  359. </tr>
  360. <tr>
  361. <?lsmb IF form.all_pricegroup AND form.db == 'customer' -?>
  362. <th align="right"><?lsmb text('Pricegroup') ?></th>
  363. <td><?lsmb PROCESS select element_data=form.selectpricegroup -?></td>
  364. <?lsmb ELSE -?>
  365. <th />
  366. <td />
  367. <?lsmb END -?>
  368. <?lsmb IF form.all_language -?>
  369. <th align="right"><?lsmb text('Language') ?></th>
  370. <td><?lsmb PROCESS select element_data=form.selectlanguage -?></td>
  371. <?lsmb ELSE -?>
  372. <th />
  373. <td />
  374. <?lsmb END -?>
  375. <?lsmb IF form.currencies -?>
  376. <th align="right"><?lsmb text('Currency') ?></th>
  377. <td><?lsmb PROCESS select element_data=form.selectcurrency -?></td>
  378. <?lsmb ELSE -?>
  379. <th />
  380. <td />
  381. <?lsmb END -?>
  382. </tr>
  383. <tr valign="top">
  384. <?lsmb IF form.all_employee -?>
  385. <th align="right">
  386. <?lsmb IF form.db == 'vendor' -?>
  387. <?lsmb text('Employee') -?>
  388. <?lsmb ELSE -?>
  389. <?lsmb text('Salesperson') -?>
  390. <?lsmb END -?>
  391. </th>
  392. <td>
  393. <?lsmb IF user.role != 'user' OR !form.id -?>
  394. <?lsmb PROCESS select element_data=form.selectemployee -?>
  395. <?lsmb ELSE -?>
  396. <?lsmb form.employee -?>
  397. <?lsmb END -?>
  398. </td>
  399. <?lsmb ELSE -?>
  400. <th />
  401. <td />
  402. <?lsmb END -?>
  403. <td colspan="4">
  404. <table>
  405. <tr valign="top">
  406. <th align="left"><?lsmb text('Notes') ?></th>
  407. <td>
  408. <?lsmb PROCESS textarea element_data={
  409. name => 'notes',
  410. rows => '3',
  411. cols => '40',
  412. text => form.notes,
  413. } -?>
  414. </td>
  415. </tr>
  416. </table>
  417. </td>
  418. </tr>
  419. </table>
  420. </td>
  421. </tr>
  422. <tr><td><hr size="3" noshade="noshade" /></td></tr>
  423. </table>
  424. <?lsmb FOREACH hidden IN hiddens.keys;
  425. PROCESS input element_data={
  426. type => 'hidden',
  427. name => hidden,
  428. value => hiddens.item(hidden)
  429. }; END ?>
  430. <?lsmb FOREACH button IN buttons; PROCESS button element_data=button; END ?>
  431. </form>
  432. </body>
  433. </html>