PageRenderTime 103ms CodeModel.GetById 60ms RepoModel.GetById 0ms app.codeStats 0ms

/themes/default/blocks/account_billing/add.tpl

https://github.com/axxtel/agilebill
Smarty Template | 269 lines | 265 code | 4 blank | 0 comment | 38 complexity | 6799663c6b90c297d44255fcc45491b4 MD5 | raw file
  1. <!-- Display the form validation -->
  2. {if $form_validation}
  3. { $block->display("core:alert_fields") }
  4. {/if}
  5. <!-- Display the form to collect the input values -->
  6. <form id="account_billing_add" name="account_billing_add" method="post" action="">
  7. <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
  8. <tr>
  9. <td>
  10. <table width="100%" border="0" cellspacing="1" cellpadding="0">
  11. <tr valign="top">
  12. <td width="65%" class="table_heading">
  13. <center>
  14. {translate module=account_billing}title_add{/translate}
  15. </center>
  16. </td>
  17. </tr>
  18. <tr valign="top">
  19. <td width="65%" class="row1">
  20. <table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
  21. <tr valign="top">
  22. <td width="35%">
  23. {translate module=account_billing}
  24. field_account_id
  25. {/translate}
  26. </td>
  27. <td width="65%">
  28. {html_select_account name="account_billing_accout_id" default=$VAR.account_billing_account_id}
  29. </td>
  30. </tr>
  31. <tr valign="top">
  32. <td width="35%">
  33. {translate module=account_billing}
  34. field_card_type
  35. {/translate}
  36. </td>
  37. <td width="65%">
  38. <select name="account_billing_card_type" >
  39. <option value="" {if $VAR.account_billing_card_type == ""}selected{/if}></option>
  40. <option value="visa" {if $VAR.account_billing_card_type == "visa"}selected{/if}>
  41. {translate module=checkout}
  42. card_type_visa
  43. {/translate}
  44. </option>
  45. <option value="mc" {if $VAR.account_billing_card_type == "mc"}selected{/if}>
  46. {translate module=checkout}
  47. card_type_mc
  48. {/translate}
  49. </option>
  50. <option value="amex" {if $VAR.account_billing_card_type == "amex"}selected{/if}>
  51. {translate module=checkout}
  52. card_type_amex
  53. {/translate}
  54. </option>
  55. <option value="discover" {if $VAR.account_billing_card_type == "discover"}selected{/if}>
  56. {translate module=checkout}
  57. card_type_discover
  58. {/translate}
  59. </option>
  60. <option value="delta" {if $VAR.account_billing_card_type == "delta"}selected{/if}>
  61. {translate module=checkout}
  62. card_type_delta
  63. {/translate}
  64. </option>
  65. <option value="solo" {if $VAR.account_billing_card_type == "solo"}selected{/if}>
  66. {translate module=checkout}
  67. card_type_solo
  68. {/translate}
  69. </option>
  70. <option value="switch" {if $VAR.account_billing_card_type == "switch"}selected{/if}>
  71. {translate module=checkout}
  72. card_type_switch
  73. {/translate}
  74. </option>
  75. <option value="jcb" {if $VAR.account_billing_card_type == "jcb"}selected{/if}>
  76. {translate module=checkout}
  77. card_type_jcb
  78. {/translate}
  79. </option>
  80. <option value="diners" {if $VAR.account_billing_card_type == "diners"}selected{/if}>
  81. {translate module=checkout}
  82. card_type_diners
  83. {/translate}
  84. </option>
  85. <option value="carteblanche" {if $VAR.account_billing_card_type == "carteblanche"}selected{/if}>
  86. {translate module=checkout}
  87. card_type_carteblanche
  88. {/translate}
  89. </option>
  90. <option value="enroute" {if $VAR.account_billing_card_type == "enroute"}selected{/if}>
  91. {translate module=checkout}
  92. card_type_enroute
  93. {/translate}
  94. </option>
  95. </select>
  96. </td>
  97. </tr>
  98. <tr valign="top">
  99. <td width="35%">
  100. {translate module=account_billing}
  101. field_card_num
  102. {/translate}
  103. </td>
  104. <td width="65%">
  105. <input type="text" name="account_billing_card_num" value="{$VAR.account_billing_card_num}" {if $account_billing_card_num == true}class="form_field_error"{/if} maxlength="16" size="24">
  106. </td>
  107. </tr>
  108. <tr valign="top">
  109. <td width="35%">
  110. {translate module=account_billing}
  111. field_card_exp_month
  112. {/translate}
  113. </td>
  114. <td width="65%">
  115. {translate module=account_billing}
  116. field_card_exp_year
  117. {/translate}
  118. </td>
  119. </tr>
  120. <tr valign="top">
  121. <td width="35%">
  122. <select name="account_billing_card_exp_month" >
  123. <option value="01" {if $VAR.account_billing_card_exp_month == "1"}selected{/if}>1
  124. (Jan)</option>
  125. <option value="02" {if $VAR.account_billing_card_exp_month == "2"}selected{/if}>2
  126. (Feb)</option>
  127. <option value="03" {if $VAR.account_billing_card_exp_month == "3"}selected{/if}>3
  128. (Mar)</option>
  129. <option value="04" {if $VAR.account_billing_card_exp_month == "4"}selected{/if}>4
  130. (Apr)</option>
  131. <option value="05" {if $VAR.account_billing_card_exp_month == "5"}selected{/if}>5
  132. (May)</option>
  133. <option value="06" {if $VAR.account_billing_card_exp_month == "6"}selected{/if}>6
  134. (Jun)</option>
  135. <option value="07" {if $VAR.account_billing_card_exp_month == "7"}selected{/if}>7
  136. (Jul)</option>
  137. <option value="08" {if $VAR.account_billing_card_exp_month == "8"}selected{/if}>8
  138. (Aug)</option>
  139. <option value="09" {if $VAR.account_billing_card_exp_month == "9"}selected{/if}>9
  140. (Sep)</option>
  141. <option value="10" {if $VAR.account_billing_card_exp_month == "10"}selected{/if}>10
  142. (Oct)</option>
  143. <option value="11" {if $VAR.account_billing_card_exp_month == "11"}selected{/if}>11
  144. (Nov)</option>
  145. <option value="12" {if $VAR.account_billing_card_exp_month == "12"}selected{/if}>12
  146. (Dec)</option>
  147. </select>
  148. </td>
  149. <td width="65%"> 20
  150. <input type="text" name="account_billing_card_exp_year" value="{$VAR.account_billing_card_exp_year}" size="2" maxlength="2">
  151. </td>
  152. </tr>
  153. <tr valign="top">
  154. <td width="35%">
  155. {translate module=account_billing}
  156. field_card_start_month
  157. {/translate}
  158. </td>
  159. <td width="65%">
  160. {translate module=account_billing}
  161. field_card_start_year
  162. {/translate}
  163. </td>
  164. </tr>
  165. <tr valign="top">
  166. <td width="35%">
  167. <select name="account_billing_card_start_month" >
  168. <option value="01" {if $VAR.account_billing_card_start_month == "1"}selected{/if}>1
  169. (Jan)</option>
  170. <option value="02" {if $VAR.account_billing_card_start_month == "2"}selected{/if}>2
  171. (Feb)</option>
  172. <option value="03" {if $VAR.account_billing_card_start_month == "3"}selected{/if}>3
  173. (Mar)</option>
  174. <option value="04" {if $VAR.account_billing_card_start_month == "4"}selected{/if}>4
  175. (Apr)</option>
  176. <option value="05" {if $VAR.account_billing_card_start_month == "5"}selected{/if}>5
  177. (May)</option>
  178. <option value="06" {if $VAR.account_billing_card_start_month == "6"}selected{/if}>6
  179. (Jun)</option>
  180. <option value="07" {if $VAR.account_billing_card_start_month == "7"}selected{/if}>7
  181. (Jul)</option>
  182. <option value="08" {if $VAR.account_billing_card_start_month == "8"}selected{/if}>8
  183. (Aug)</option>
  184. <option value="09" {if $VAR.account_billing_card_start_month == "9"}selected{/if}>9
  185. (Sep)</option>
  186. <option value="10" {if $VAR.account_billing_card_start_month == "10"}selected{/if}>10
  187. (Oct)</option>
  188. <option value="11" {if $VAR.account_billing_card_start_month == "11"}selected{/if}>11
  189. (Nov)</option>
  190. <option value="12" {if $VAR.account_billing_card_start_month == "12"}selected{/if}>12
  191. (Dec)</option>
  192. </select>
  193. </td>
  194. <td width="65%"> 20
  195. <input type="text" name="account_billing_card_start_year" value="{$VAR.account_billing_card_start_year}" size="2" maxlength="2">
  196. </td>
  197. </tr>
  198. <tr>
  199. <td width="17%">{translate module=account} field_first_name {/translate}{if $VAR.first_name_error}<font color="#FF0000">*</font>{/if}</td>
  200. <td width="17%"><input type="text" name="checkout_plugin_data[first_name]" value="{$VAR.first_name}" size="12"></td>
  201. <tr>
  202. <td width="16%">{translate module=account} field_last_name {/translate}{if $VAR.last_name_error}<font color="#FF0000">*</font>{/if}</td>
  203. <td width="16%"><input type="text" name="checkout_plugin_data[last_name]" value="{$VAR.last_name}" size="12"></td>
  204. </tr>
  205. <tr>
  206. <td width="17%">{translate module=account} field_company {/translate}</td>
  207. <td width="17%"><input type="text" name="checkout_plugin_data[company]" value="{$VAR.company}" size="20"></td>
  208. </tr>
  209. <tr>
  210. <td width="17%">{translate module=account} field_address1 {/translate}{if $VAR.address1_error}<font color="#FF0000">*</font>{/if}</td>
  211. <td width="17%"><input type="text" name="checkout_plugin_data[address1]" value="{$VAR.address1}" size="12"></td>
  212. </tr>
  213. <tr>
  214. <td width="16%">{translate module=account} field_address2{/translate}</td>
  215. <td width="16%"><input type="text" name="checkout_plugin_data[address2]" value="{$VAR.address2}" size="12"></td>
  216. </tr>
  217. <tr>
  218. <td width="17%">{translate module=account} field_city {/translate}</td>
  219. <td width="17%"><input type="text" name="checkout_plugin_data[city]" value="{$VAR.city}" size="20"></td>
  220. </tr>
  221. <tr>
  222. <td width="17%">{translate module=account} field_state {/translate}{if $VAR.state_error}<font color="#FF0000">*</font>{/if}</td>
  223. <td width="17%"><input type="text" name="checkout_plugin_data[state]" value="{$VAR.state}" size="12"></td>
  224. </tr>
  225. <tr>
  226. <td width="16%">{translate module=account} field_zip{/translate}{if $VAR.zip_error}<font color="#FF0000">*</font>{/if}</td>
  227. <td width="16%"><input type="text" name="checkout_plugin_data[zip]" value="{$VAR.zip}" size="12"></td>
  228. </tr>
  229. <tr>
  230. <td width="17%">{translate module=account} field_country_id{/translate}</td>
  231. <td width="17%">
  232. {if $VAR.country_id != ""}
  233. { $list->menu("no", "checkout_plugin_data[country_id]", "country", "name", $VAR.country_id, "") }
  234. {else}
  235. { $list->menu("no", "checkout_plugin_data[country_id]", "country", "name", $smarty.const.DEFAULT_COUNTRY, "") }
  236. {/if}
  237. </td>
  238. </tr>
  239. <tr valign="top">
  240. <td width="35%">
  241. {translate module=account_billing}
  242. field_checkout_plugin_id
  243. {/translate}
  244. </td>
  245. <td width="65%">
  246. { $list->menu("", "account_billing_checkout_plugin_id", "checkout", "name", $VAR.account_billing_checkout_plugin_id, "form_field") }
  247. </td>
  248. </tr>
  249. <tr valign="top">
  250. <td width="35%"></td>
  251. <td width="65%">
  252. <input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
  253. <input type="hidden" name="_page" value="account_billing:view">
  254. <input type="hidden" name="_page_current" value="account_billing:add">
  255. <input type="hidden" name="do[]" value="account_billing:add">
  256. </td>
  257. </tr>
  258. </table>
  259. </td>
  260. </tr>
  261. </table>
  262. </td>
  263. </tr>
  264. </table>
  265. </form>