/mall/upload/admin/view/template/setting/store_form.tpl

https://bitbucket.org/allanxyh/uniquemall · Smarty Template · 573 lines · 565 code · 8 blank · 0 comment · 86 complexity · 8b20a2471c9785bcf9f61450681df136 MD5 · raw file

  1. <?php echo $header; ?>
  2. <div id="content">
  3. <div class="breadcrumb">
  4. <?php foreach ($breadcrumbs as $breadcrumb) { ?>
  5. <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
  6. <?php } ?>
  7. </div>
  8. <?php if ($error_warning) { ?>
  9. <div class="warning"><?php echo $error_warning; ?></div>
  10. <?php } ?>
  11. <?php if ($success) { ?>
  12. <div class="success"><?php echo $success; ?></div>
  13. <?php } ?>
  14. <div class="box">
  15. <div class="heading">
  16. <h1><img src="view/image/setting.png" alt="" /> <?php echo $heading_title; ?></h1>
  17. <div class="buttons"><a onclick="$('#form').submit();" class="button"><?php echo $button_save; ?></a><a href="<?php echo $cancel; ?>" class="button"><?php echo $button_cancel; ?></a></div>
  18. </div>
  19. <div class="content">
  20. <div id="tabs" class="htabs"><a href="#tab-general"><?php echo $tab_general; ?></a><a href="#tab-store"><?php echo $tab_store; ?></a><a href="#tab-local"><?php echo $tab_local; ?></a><a href="#tab-option"><?php echo $tab_option; ?></a><a href="#tab-image"><?php echo $tab_image; ?></a><a href="#tab-server"><?php echo $tab_server; ?></a></div>
  21. <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form">
  22. <div id="tab-general">
  23. <table class="form">
  24. <tr>
  25. <td><span class="required">*</span> <?php echo $entry_url; ?></td>
  26. <td><input type="text" name="config_url" value="<?php echo $config_url; ?>" size="40" />
  27. <?php if ($error_url) { ?>
  28. <span class="error"><?php echo $error_url; ?></span>
  29. <?php } ?></td>
  30. </tr>
  31. <tr>
  32. <td><?php echo $entry_ssl; ?></td>
  33. <td><input type="text" name="config_ssl" value="<?php echo $config_ssl; ?>" size="40" /></td>
  34. </tr>
  35. <tr>
  36. <td><span class="required">*</span> <?php echo $entry_name; ?></td>
  37. <td><input type="text" name="config_name" value="<?php echo $config_name; ?>" size="40" />
  38. <?php if ($error_name) { ?>
  39. <span class="error"><?php echo $error_name; ?></span>
  40. <?php } ?></td>
  41. </tr>
  42. <tr>
  43. <td><span class="required">*</span> <?php echo $entry_owner; ?></td>
  44. <td><input type="text" name="config_owner" value="<?php echo $config_owner; ?>" size="40" />
  45. <?php if ($error_owner) { ?>
  46. <span class="error"><?php echo $error_owner; ?></span>
  47. <?php } ?></td>
  48. </tr>
  49. <tr>
  50. <td><span class="required">*</span> <?php echo $entry_address; ?></td>
  51. <td><textarea name="config_address" cols="40" rows="5"><?php echo $config_address; ?></textarea>
  52. <?php if ($error_address) { ?>
  53. <span class="error"><?php echo $error_address; ?></span>
  54. <?php } ?></td>
  55. </tr>
  56. <tr>
  57. <td><span class="required">*</span> <?php echo $entry_email; ?></td>
  58. <td><input type="text" name="config_email" value="<?php echo $config_email; ?>" size="40" />
  59. <?php if ($error_email) { ?>
  60. <span class="error"><?php echo $error_email; ?></span>
  61. <?php } ?></td>
  62. </tr>
  63. <tr>
  64. <td><span class="required">*</span> <?php echo $entry_telephone; ?></td>
  65. <td><input type="text" name="config_telephone" value="<?php echo $config_telephone; ?>" />
  66. <?php if ($error_telephone) { ?>
  67. <span class="error"><?php echo $error_telephone; ?></span>
  68. <?php } ?></td>
  69. </tr>
  70. <tr>
  71. <td><?php echo $entry_fax; ?></td>
  72. <td><input type="text" name="config_fax" value="<?php echo $config_fax; ?>" /></td>
  73. </tr>
  74. </table>
  75. </div>
  76. <div id="tab-store">
  77. <table class="form">
  78. <tr>
  79. <td><span class="required">*</span> <?php echo $entry_title; ?></td>
  80. <td><input type="text" name="config_title" value="<?php echo $config_title; ?>" />
  81. <?php if ($error_title) { ?>
  82. <span class="error"><?php echo $error_title; ?></span>
  83. <?php } ?></td>
  84. </tr>
  85. <tr>
  86. <td><?php echo $entry_meta_description; ?></td>
  87. <td><textarea name="config_meta_description" cols="40" rows="5"><?php echo $config_meta_description; ?></textarea></td>
  88. </tr>
  89. <tr>
  90. <td><?php echo $entry_template; ?></td>
  91. <td><select name="config_template" onchange="$('#template').load('index.php?route=setting/store/template&token=<?php echo $token; ?>&template=' + encodeURIComponent(this.value));">
  92. <?php foreach ($templates as $template) { ?>
  93. <?php if ($template == $config_template) { ?>
  94. <option value="<?php echo $template; ?>" selected="selected"><?php echo $template; ?></option>
  95. <?php } else { ?>
  96. <option value="<?php echo $template; ?>"><?php echo $template; ?></option>
  97. <?php } ?>
  98. <?php } ?>
  99. </select></td>
  100. </tr>
  101. <tr>
  102. <td></td>
  103. <td id="template"></td>
  104. </tr>
  105. <tr>
  106. <td><?php echo $entry_layout; ?></td>
  107. <td><select name="config_layout_id">
  108. <?php foreach ($layouts as $layout) { ?>
  109. <?php if ($layout['layout_id'] == $config_layout_id) { ?>
  110. <option value="<?php echo $layout['layout_id']; ?>" selected="selected"><?php echo $layout['name']; ?></option>
  111. <?php } else { ?>
  112. <option value="<?php echo $layout['layout_id']; ?>"><?php echo $layout['name']; ?></option>
  113. <?php } ?>
  114. <?php } ?>
  115. </select></td>
  116. </tr>
  117. </table>
  118. </div>
  119. <div id="tab-local">
  120. <table class="form">
  121. <tr>
  122. <td><?php echo $entry_country; ?></td>
  123. <td><select name="config_country_id">
  124. <?php foreach ($countries as $country) { ?>
  125. <?php if ($country['country_id'] == $config_country_id) { ?>
  126. <option value="<?php echo $country['country_id']; ?>" selected="selected"><?php echo $country['name']; ?></option>
  127. <?php } else { ?>
  128. <option value="<?php echo $country['country_id']; ?>"><?php echo $country['name']; ?></option>
  129. <?php } ?>
  130. <?php } ?>
  131. </select></td>
  132. </tr>
  133. <tr>
  134. <td><?php echo $entry_zone; ?></td>
  135. <td><select name="config_zone_id">
  136. </select></td>
  137. </tr>
  138. <tr>
  139. <td><?php echo $entry_language; ?></td>
  140. <td><select name="config_language">
  141. <?php foreach ($languages as $language) { ?>
  142. <?php if ($language['code'] == $config_language) { ?>
  143. <option value="<?php echo $language['code']; ?>" selected="selected"><?php echo $language['name']; ?></option>
  144. <?php } else { ?>
  145. <option value="<?php echo $language['code']; ?>"><?php echo $language['name']; ?></option>
  146. <?php } ?>
  147. <?php } ?>
  148. </select></td>
  149. </tr>
  150. <tr>
  151. <td><?php echo $entry_currency; ?></td>
  152. <td><select name="config_currency">
  153. <?php foreach ($currencies as $currency) { ?>
  154. <?php if ($currency['code'] == $config_currency) { ?>
  155. <option value="<?php echo $currency['code']; ?>" selected="selected"><?php echo $currency['title']; ?></option>
  156. <?php } else { ?>
  157. <option value="<?php echo $currency['code']; ?>"><?php echo $currency['title']; ?></option>
  158. <?php } ?>
  159. <?php } ?>
  160. </select></td>
  161. </tr>
  162. </table>
  163. </div>
  164. <div id="tab-option">
  165. <h2><?php echo $text_items; ?></h2>
  166. <table class="form">
  167. <tr>
  168. <td><span class="required">*</span> <?php echo $entry_catalog_limit; ?></td>
  169. <td><input type="text" name="config_catalog_limit" value="<?php echo $config_catalog_limit; ?>" size="3" />
  170. <?php if ($error_catalog_limit) { ?>
  171. <span class="error"><?php echo $error_catalog_limit; ?></span>
  172. <?php } ?></td>
  173. </tr>
  174. </table>
  175. <h2><?php echo $text_tax; ?></h2>
  176. <table class="form">
  177. <tr>
  178. <td><?php echo $entry_tax; ?></td>
  179. <td><?php if ($config_tax) { ?>
  180. <input type="radio" name="config_tax" value="1" checked="checked" />
  181. <?php echo $text_yes; ?>
  182. <input type="radio" name="config_tax" value="0" />
  183. <?php echo $text_no; ?>
  184. <?php } else { ?>
  185. <input type="radio" name="config_tax" value="1" />
  186. <?php echo $text_yes; ?>
  187. <input type="radio" name="config_tax" value="0" checked="checked" />
  188. <?php echo $text_no; ?>
  189. <?php } ?></td>
  190. </tr>
  191. <tr>
  192. <td><?php echo $entry_tax_default; ?></td>
  193. <td><select name="config_tax_default">
  194. <option value=""><?php echo $text_none; ?></option>
  195. <?php if ($config_tax_default == 'shipping') { ?>
  196. <option value="shipping" selected="selected"><?php echo $text_shipping; ?></option>
  197. <?php } else { ?>
  198. <option value="shipping"><?php echo $text_shipping; ?></option>
  199. <?php } ?>
  200. <?php if ($config_tax_default == 'payment') { ?>
  201. <option value="payment" selected="selected"><?php echo $text_payment; ?></option>
  202. <?php } else { ?>
  203. <option value="payment"><?php echo $text_payment; ?></option>
  204. <?php } ?>
  205. </select></td>
  206. </tr>
  207. <tr>
  208. <td><?php echo $entry_tax_customer; ?></td>
  209. <td><select name="config_tax_customer">
  210. <option value=""><?php echo $text_none; ?></option>
  211. <?php if ($config_tax_customer == 'shipping') { ?>
  212. <option value="shipping" selected="selected"><?php echo $text_shipping; ?></option>
  213. <?php } else { ?>
  214. <option value="shipping"><?php echo $text_shipping; ?></option>
  215. <?php } ?>
  216. <?php if ($config_tax_customer == 'payment') { ?>
  217. <option value="payment" selected="selected"><?php echo $text_payment; ?></option>
  218. <?php } else { ?>
  219. <option value="payment"><?php echo $text_payment; ?></option>
  220. <?php } ?>
  221. </select></td>
  222. </tr>
  223. </table>
  224. <h2><?php echo $text_account; ?></h2>
  225. <table class="form">
  226. <tr>
  227. <td><?php echo $entry_customer_group; ?></td>
  228. <td><select name="config_customer_group_id">
  229. <?php foreach ($customer_groups as $customer_group) { ?>
  230. <?php if ($customer_group['customer_group_id'] == $config_customer_group_id) { ?>
  231. <option value="<?php echo $customer_group['customer_group_id']; ?>" selected="selected"><?php echo $customer_group['name']; ?></option>
  232. <?php } else { ?>
  233. <option value="<?php echo $customer_group['customer_group_id']; ?>"><?php echo $customer_group['name']; ?></option>
  234. <?php } ?>
  235. <?php } ?>
  236. </select></td>
  237. </tr>
  238. <tr>
  239. <td><?php echo $entry_customer_group_display; ?></td>
  240. <td><div class="scrollbox">
  241. <?php $class = 'odd'; ?>
  242. <?php foreach ($customer_groups as $customer_group) { ?>
  243. <?php $class = ($class == 'even' ? 'odd' : 'even'); ?>
  244. <div class="<?php echo $class; ?>">
  245. <?php if (in_array($customer_group['customer_group_id'], $config_customer_group_display)) { ?>
  246. <input type="checkbox" name="config_customer_group_display[]" value="<?php echo $customer_group['customer_group_id']; ?>" checked="checked" />
  247. <?php echo $customer_group['name']; ?>
  248. <?php } else { ?>
  249. <input type="checkbox" name="config_customer_group_display[]" value="<?php echo $customer_group['customer_group_id']; ?>" />
  250. <?php echo $customer_group['name']; ?>
  251. <?php } ?>
  252. </div>
  253. <?php } ?>
  254. </div>
  255. <?php if ($error_customer_group_display) { ?>
  256. <span class="error"><?php echo $error_customer_group_display; ?></span>
  257. <?php } ?></td>
  258. </tr>
  259. <tr>
  260. <td><?php echo $entry_customer_price; ?></td>
  261. <td><?php if ($config_customer_price) { ?>
  262. <input type="radio" name="config_customer_price" value="1" checked="checked" />
  263. <?php echo $text_yes; ?>
  264. <input type="radio" name="config_customer_price" value="0" />
  265. <?php echo $text_no; ?>
  266. <?php } else { ?>
  267. <input type="radio" name="config_customer_price" value="1" />
  268. <?php echo $text_yes; ?>
  269. <input type="radio" name="config_customer_price" value="0" checked="checked" />
  270. <?php echo $text_no; ?>
  271. <?php } ?></td>
  272. </tr>
  273. <tr>
  274. <td><?php echo $entry_account; ?></td>
  275. <td><select name="config_account_id">
  276. <option value="0"><?php echo $text_none; ?></option>
  277. <?php foreach ($informations as $information) { ?>
  278. <?php if ($information['information_id'] == $config_account_id) { ?>
  279. <option value="<?php echo $information['information_id']; ?>" selected="selected"><?php echo $information['title']; ?></option>
  280. <?php } else { ?>
  281. <option value="<?php echo $information['information_id']; ?>"><?php echo $information['title']; ?></option>
  282. <?php } ?>
  283. <?php } ?>
  284. </select></td>
  285. </tr>
  286. </table>
  287. <h2><?php echo $text_checkout; ?></h2>
  288. <table class="form">
  289. <tr>
  290. <td><?php echo $entry_cart_weight; ?></td>
  291. <td><?php if ($config_cart_weight) { ?>
  292. <input type="radio" name="config_cart_weight" value="1" checked="checked" />
  293. <?php echo $text_yes; ?>
  294. <input type="radio" name="config_cart_weight" value="0" />
  295. <?php echo $text_no; ?>
  296. <?php } else { ?>
  297. <input type="radio" name="config_cart_weight" value="1" />
  298. <?php echo $text_yes; ?>
  299. <input type="radio" name="config_cart_weight" value="0" checked="checked" />
  300. <?php echo $text_no; ?>
  301. <?php } ?></td>
  302. </tr>
  303. <tr>
  304. <td><?php echo $entry_guest_checkout; ?></td>
  305. <td><?php if ($config_guest_checkout) { ?>
  306. <input type="radio" name="config_guest_checkout" value="1" checked="checked" />
  307. <?php echo $text_yes; ?>
  308. <input type="radio" name="config_guest_checkout" value="0" />
  309. <?php echo $text_no; ?>
  310. <?php } else { ?>
  311. <input type="radio" name="config_guest_checkout" value="1" />
  312. <?php echo $text_yes; ?>
  313. <input type="radio" name="config_guest_checkout" value="0" checked="checked" />
  314. <?php echo $text_no; ?>
  315. <?php } ?></td>
  316. </tr>
  317. <tr>
  318. <td><?php echo $entry_checkout; ?></td>
  319. <td><select name="config_checkout_id">
  320. <option value="0"><?php echo $text_none; ?></option>
  321. <?php foreach ($informations as $information) { ?>
  322. <?php if ($information['information_id'] == $config_checkout_id) { ?>
  323. <option value="<?php echo $information['information_id']; ?>" selected="selected"><?php echo $information['title']; ?></option>
  324. <?php } else { ?>
  325. <option value="<?php echo $information['information_id']; ?>"><?php echo $information['title']; ?></option>
  326. <?php } ?>
  327. <?php } ?>
  328. </select></td>
  329. </tr>
  330. <tr>
  331. <td><?php echo $entry_order_status; ?></td>
  332. <td><select name="config_order_status_id">
  333. <?php foreach ($order_statuses as $order_status) { ?>
  334. <?php if ($order_status['order_status_id'] == $config_order_status_id) { ?>
  335. <option value="<?php echo $order_status['order_status_id']; ?>" selected="selected"><?php echo $order_status['name']; ?></option>
  336. <?php } else { ?>
  337. <option value="<?php echo $order_status['order_status_id']; ?>"><?php echo $order_status['name']; ?></option>
  338. <?php } ?>
  339. <?php } ?>
  340. </select></td>
  341. </tr>
  342. </table>
  343. <h2><?php echo $text_stock; ?></h2>
  344. <table class="form">
  345. <tr>
  346. <td><?php echo $entry_stock_display; ?></td>
  347. <td><?php if ($config_stock_display) { ?>
  348. <input type="radio" name="config_stock_display" value="1" checked="checked" />
  349. <?php echo $text_yes; ?>
  350. <input type="radio" name="config_stock_display" value="0" />
  351. <?php echo $text_no; ?>
  352. <?php } else { ?>
  353. <input type="radio" name="config_stock_display" value="1" />
  354. <?php echo $text_yes; ?>
  355. <input type="radio" name="config_stock_display" value="0" checked="checked" />
  356. <?php echo $text_no; ?>
  357. <?php } ?></td>
  358. </tr>
  359. <tr>
  360. <td><?php echo $entry_stock_checkout; ?></td>
  361. <td><?php if ($config_stock_checkout) { ?>
  362. <input type="radio" name="config_stock_checkout" value="1" checked="checked" />
  363. <?php echo $text_yes; ?>
  364. <input type="radio" name="config_stock_checkout" value="0" />
  365. <?php echo $text_no; ?>
  366. <?php } else { ?>
  367. <input type="radio" name="config_stock_checkout" value="1" />
  368. <?php echo $text_yes; ?>
  369. <input type="radio" name="config_stock_checkout" value="0" checked="checked" />
  370. <?php echo $text_no; ?>
  371. <?php } ?></td>
  372. </tr>
  373. </table>
  374. </div>
  375. <div id="tab-image">
  376. <table class="form">
  377. <tr>
  378. <td><?php echo $entry_logo; ?></td>
  379. <td><div class="image"><img src="<?php echo $logo; ?>" alt="" id="thumb-logo" />
  380. <input type="hidden" name="config_logo" value="<?php echo $config_logo; ?>" id="logo" />
  381. <br />
  382. <a onclick="image_upload('logo', 'thumb-logo');"><?php echo $text_browse; ?></a>&nbsp;&nbsp;|&nbsp;&nbsp;<a onclick="$('#thumb-logo').attr('src', '<?php echo $no_image; ?>'); $('#logo').attr('value', '');"><?php echo $text_clear; ?></a></div></td>
  383. </tr>
  384. <tr>
  385. <td><?php echo $entry_icon; ?></td>
  386. <td><div class="image"><img src="<?php echo $icon; ?>" alt="" id="thumb-icon" />
  387. <input type="hidden" name="config_icon" value="<?php echo $config_icon; ?>" id="icon" />
  388. <br />
  389. <a onclick="image_upload('icon', 'thumb-icon');"><?php echo $text_browse; ?></a>&nbsp;&nbsp;|&nbsp;&nbsp;<a onclick="$('#thumb-icon').attr('src', '<?php echo $no_image; ?>'); $('#icon').attr('value', '');"><?php echo $text_clear; ?></a></div></td>
  390. </tr>
  391. <tr>
  392. <td><span class="required">*</span> <?php echo $entry_image_category; ?></td>
  393. <td><input type="text" name="config_image_category_width" value="<?php echo $config_image_category_width; ?>" size="3" />
  394. x
  395. <input type="text" name="config_image_category_height" value="<?php echo $config_image_category_height; ?>" size="3" />
  396. <?php if ($error_image_category) { ?>
  397. <span class="error"><?php echo $error_image_category; ?></span>
  398. <?php } ?></td>
  399. </tr>
  400. <tr>
  401. <td><span class="required">*</span> <?php echo $entry_image_thumb; ?></td>
  402. <td><input type="text" name="config_image_thumb_width" value="<?php echo $config_image_thumb_width; ?>" size="3" />
  403. x
  404. <input type="text" name="config_image_thumb_height" value="<?php echo $config_image_thumb_height; ?>" size="3" />
  405. <?php if ($error_image_thumb) { ?>
  406. <span class="error"><?php echo $error_image_thumb; ?></span>
  407. <?php } ?></td>
  408. </tr>
  409. <tr>
  410. <td><span class="required">*</span> <?php echo $entry_image_popup; ?></td>
  411. <td><input type="text" name="config_image_popup_width" value="<?php echo $config_image_popup_width; ?>" size="3" />
  412. x
  413. <input type="text" name="config_image_popup_height" value="<?php echo $config_image_popup_height; ?>" size="3" />
  414. <?php if ($error_image_popup) { ?>
  415. <span class="error"><?php echo $error_image_popup; ?></span>
  416. <?php } ?></td>
  417. </tr>
  418. <tr>
  419. <td><span class="required">*</span> <?php echo $entry_image_product; ?></td>
  420. <td><input type="text" name="config_image_product_width" value="<?php echo $config_image_product_width; ?>" size="3" />
  421. x
  422. <input type="text" name="config_image_product_height" value="<?php echo $config_image_product_height; ?>" size="3" />
  423. <?php if ($error_image_product) { ?>
  424. <span class="error"><?php echo $error_image_product; ?></span>
  425. <?php } ?></td>
  426. </tr>
  427. <tr>
  428. <td><span class="required">*</span> <?php echo $entry_image_additional; ?></td>
  429. <td><input type="text" name="config_image_additional_width" value="<?php echo $config_image_additional_width; ?>" size="3" />
  430. x
  431. <input type="text" name="config_image_additional_height" value="<?php echo $config_image_additional_height; ?>" size="3" />
  432. <?php if ($error_image_additional) { ?>
  433. <span class="error"><?php echo $error_image_additional; ?></span>
  434. <?php } ?></td>
  435. </tr>
  436. <tr>
  437. <td><span class="required">*</span> <?php echo $entry_image_related; ?></td>
  438. <td><input type="text" name="config_image_related_width" value="<?php echo $config_image_related_width; ?>" size="3" />
  439. x
  440. <input type="text" name="config_image_related_height" value="<?php echo $config_image_related_height; ?>" size="3" />
  441. <?php if ($error_image_related) { ?>
  442. <span class="error"><?php echo $error_image_related; ?></span>
  443. <?php } ?></td>
  444. </tr>
  445. <tr>
  446. <td><span class="required">*</span> <?php echo $entry_image_compare; ?></td>
  447. <td><input type="text" name="config_image_compare_width" value="<?php echo $config_image_compare_width; ?>" size="3" />
  448. x
  449. <input type="text" name="config_image_compare_height" value="<?php echo $config_image_compare_height; ?>" size="3" />
  450. <?php if ($error_image_compare) { ?>
  451. <span class="error"><?php echo $error_image_compare; ?></span>
  452. <?php } ?></td>
  453. </tr>
  454. <tr>
  455. <td><span class="required">*</span> <?php echo $entry_image_wishlist; ?></td>
  456. <td><input type="text" name="config_image_wishlist_width" value="<?php echo $config_image_wishlist_width; ?>" size="3" />
  457. x
  458. <input type="text" name="config_image_wishlist_height" value="<?php echo $config_image_wishlist_height; ?>" size="3" />
  459. <?php if ($error_image_wishlist) { ?>
  460. <span class="error"><?php echo $error_image_wishlist; ?></span>
  461. <?php } ?></td>
  462. </tr>
  463. <tr>
  464. <td><span class="required">*</span> <?php echo $entry_image_cart; ?></td>
  465. <td><input type="text" name="config_image_cart_width" value="<?php echo $config_image_cart_width; ?>" size="3" />
  466. x
  467. <input type="text" name="config_image_cart_height" value="<?php echo $config_image_cart_height; ?>" size="3" />
  468. <?php if ($error_image_cart) { ?>
  469. <span class="error"><?php echo $error_image_cart; ?></span>
  470. <?php } ?></td>
  471. </tr>
  472. </table>
  473. </div>
  474. <div id="tab-server">
  475. <table class="form">
  476. <tr>
  477. <td><?php echo $entry_secure; ?></td>
  478. <td><?php if ($config_secure) { ?>
  479. <input type="radio" name="config_secure" value="1" checked="checked" />
  480. <?php echo $text_yes; ?>
  481. <input type="radio" name="config_secure" value="0" />
  482. <?php echo $text_no; ?>
  483. <?php } else { ?>
  484. <input type="radio" name="config_secure" value="1" />
  485. <?php echo $text_yes; ?>
  486. <input type="radio" name="config_secure" value="0" checked="checked" />
  487. <?php echo $text_no; ?>
  488. <?php } ?></td>
  489. </tr>
  490. </table>
  491. </div>
  492. </form>
  493. </div>
  494. </div>
  495. </div>
  496. <script type="text/javascript"><!--
  497. $('#template').load('index.php?route=setting/store/template&token=<?php echo $token; ?>&template=' + encodeURIComponent($('select[name=\'config_template\']').attr('value')));
  498. //--></script>
  499. <script type="text/javascript"><!--
  500. $('select[name=\'config_country_id\']').bind('change', function() {
  501. $.ajax({
  502. url: 'index.php?route=setting/store/country&token=<?php echo $token; ?>&country_id=' + this.value,
  503. dataType: 'json',
  504. beforeSend: function() {
  505. $('select[name=\'country_id\']').after('<span class="wait">&nbsp;<img src="view/image/loading.gif" alt="" /></span>');
  506. },
  507. complete: function() {
  508. $('.wait').remove();
  509. },
  510. success: function(json) {
  511. if (json['postcode_required'] == '1') {
  512. $('#postcode-required').show();
  513. } else {
  514. $('#postcode-required').hide();
  515. }
  516. html = '<option value=""><?php echo $text_select; ?></option>';
  517. if (json['zone'] != '') {
  518. for (i = 0; i < json['zone'].length; i++) {
  519. html += '<option value="' + json['zone'][i]['zone_id'] + '"';
  520. if (json['zone'][i]['zone_id'] == '<?php echo $config_zone_id; ?>') {
  521. html += ' selected="selected"';
  522. }
  523. html += '>' + json['zone'][i]['name'] + '</option>';
  524. }
  525. } else {
  526. html += '<option value="0" selected="selected"><?php echo $text_none; ?></option>';
  527. }
  528. $('select[name=\'config_zone_id\']').html(html);
  529. },
  530. error: function(xhr, ajaxOptions, thrownError) {
  531. alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
  532. }
  533. });
  534. });
  535. $('select[name=\'config_country_id\']').trigger('change');
  536. //--></script>
  537. <script type="text/javascript"><!--
  538. function image_upload(field, thumb) {
  539. $('#dialog').remove();
  540. $('#content').prepend('<div id="dialog" style="padding: 3px 0px 0px 0px;"><iframe src="index.php?route=common/filemanager&token=<?php echo $token; ?>&field=' + encodeURIComponent(field) + '" style="padding:0; margin: 0; display: block; width: 100%; height: 100%;" frameborder="no" scrolling="auto"></iframe></div>');
  541. $('#dialog').dialog({
  542. title: '<?php echo $text_image_manager; ?>',
  543. close: function (event, ui) {
  544. if ($('#' + field).attr('value')) {
  545. $.ajax({
  546. url: 'index.php?route=common/filemanager/image&token=<?php echo $token; ?>&image=' + encodeURIComponent($('#' + field).val()),
  547. dataType: 'text',
  548. success: function(data) {
  549. $('#' + thumb).replaceWith('<img src="' + data + '" alt="" id="' + thumb + '" />');
  550. }
  551. });
  552. }
  553. },
  554. bgiframe: false,
  555. width: 800,
  556. height: 400,
  557. resizable: false,
  558. modal: false
  559. });
  560. };
  561. //--></script>
  562. <script type="text/javascript"><!--
  563. $('#tabs a').tabs();
  564. //--></script>
  565. <?php echo $footer; ?>