/admin/view/template/setting/setting.tpl

https://github.com/sansanwawa/e-commerse · Smarty Template · 785 lines · 782 code · 3 blank · 0 comment · 112 complexity · b20a926d6e70c1f268d4008838786569 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"><span><?php echo $button_save; ?></span></a><a onclick="location = '<?php echo $cancel; ?>';" class="button"><span><?php echo $button_cancel; ?></span></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-mail"><?php echo $tab_mail; ?></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_name; ?></td>
  26. <td><input type="text" name="config_name" value="<?php echo $config_name; ?>" size="40" />
  27. <?php if ($error_name) { ?>
  28. <span class="error"><?php echo $error_name; ?></span>
  29. <?php } ?></td>
  30. </tr>
  31. <tr>
  32. <td><span class="required">*</span> <?php echo $entry_owner; ?></td>
  33. <td><input type="text" name="config_owner" value="<?php echo $config_owner; ?>" size="40" />
  34. <?php if ($error_owner) { ?>
  35. <span class="error"><?php echo $error_owner; ?></span>
  36. <?php } ?></td>
  37. </tr>
  38. <tr>
  39. <td><span class="required">*</span> <?php echo $entry_address; ?></td>
  40. <td><textarea name="config_address" cols="40" rows="5"><?php echo $config_address; ?></textarea>
  41. <?php if ($error_address) { ?>
  42. <span class="error"><?php echo $error_address; ?></span>
  43. <?php } ?></td>
  44. </tr>
  45. <tr>
  46. <td><span class="required">*</span> <?php echo $entry_email; ?></td>
  47. <td><input type="text" name="config_email" value="<?php echo $config_email; ?>" size="40" />
  48. <?php if ($error_email) { ?>
  49. <span class="error"><?php echo $error_email; ?></span>
  50. <?php } ?></td>
  51. </tr>
  52. <tr>
  53. <td><span class="required">*</span> <?php echo $entry_telephone; ?></td>
  54. <td><input type="text" name="config_telephone" value="<?php echo $config_telephone; ?>" />
  55. <?php if ($error_telephone) { ?>
  56. <span class="error"><?php echo $error_telephone; ?></span>
  57. <?php } ?></td>
  58. </tr>
  59. <tr>
  60. <td><?php echo $entry_fax; ?></td>
  61. <td><input type="text" name="config_fax" value="<?php echo $config_fax; ?>" /></td>
  62. </tr>
  63. </table>
  64. </div>
  65. <div id="tab-store">
  66. <table class="form">
  67. <tr>
  68. <td><span class="required">*</span> <?php echo $entry_title; ?></td>
  69. <td><input type="text" name="config_title" value="<?php echo $config_title; ?>" />
  70. <?php if ($error_title) { ?>
  71. <span class="error"><?php echo $error_title; ?></span>
  72. <?php } ?></td>
  73. </tr>
  74. <tr>
  75. <td><?php echo $entry_meta_description; ?></td>
  76. <td><textarea name="config_meta_description" cols="40" rows="5"><?php echo $config_meta_description; ?></textarea></td>
  77. </tr>
  78. <tr>
  79. <td><?php echo $entry_template; ?></td>
  80. <td><select name="config_template" onchange="$('#template').load('index.php?route=setting/setting/template&token=<?php echo $token; ?>&template=' + encodeURIComponent(this.value));">
  81. <?php foreach ($templates as $template) { ?>
  82. <?php if ($template == $config_template) { ?>
  83. <option value="<?php echo $template; ?>" selected="selected"><?php echo $template; ?></option>
  84. <?php } else { ?>
  85. <option value="<?php echo $template; ?>"><?php echo $template; ?></option>
  86. <?php } ?>
  87. <?php } ?>
  88. </select></td>
  89. </tr>
  90. <tr>
  91. <td></td>
  92. <td id="template"></td>
  93. </tr>
  94. <tr>
  95. <td><?php echo $entry_layout; ?></td>
  96. <td><select name="config_layout_id">
  97. <?php foreach ($layouts as $layout) { ?>
  98. <?php if ($layout['layout_id'] == $config_layout_id) { ?>
  99. <option value="<?php echo $layout['layout_id']; ?>" selected="selected"><?php echo $layout['name']; ?></option>
  100. <?php } else { ?>
  101. <option value="<?php echo $layout['layout_id']; ?>"><?php echo $layout['name']; ?></option>
  102. <?php } ?>
  103. <?php } ?>
  104. </select></td>
  105. </tr>
  106. </table>
  107. </div>
  108. <div id="tab-local">
  109. <table class="form">
  110. <tr>
  111. <td><?php echo $entry_country; ?></td>
  112. <td><select name="config_country_id" onchange="$('select[name=\'config_zone_id\']').load('index.php?route=setting/setting/zone&token=<?php echo $token; ?>&country_id=' + this.value + '&zone_id=<?php echo $config_zone_id; ?>');">
  113. <?php foreach ($countries as $country) { ?>
  114. <?php if ($country['country_id'] == $config_country_id) { ?>
  115. <option value="<?php echo $country['country_id']; ?>" selected="selected"><?php echo $country['name']; ?></option>
  116. <?php } else { ?>
  117. <option value="<?php echo $country['country_id']; ?>"><?php echo $country['name']; ?></option>
  118. <?php } ?>
  119. <?php } ?>
  120. </select></td>
  121. </tr>
  122. <tr>
  123. <td><?php echo $entry_zone; ?></td>
  124. <td><select name="config_zone_id">
  125. </select></td>
  126. </tr>
  127. <tr>
  128. <td><?php echo $entry_language; ?></td>
  129. <td><select name="config_language">
  130. <?php foreach ($languages as $language) { ?>
  131. <?php if ($language['code'] == $config_language) { ?>
  132. <option value="<?php echo $language['code']; ?>" selected="selected"><?php echo $language['name']; ?></option>
  133. <?php } else { ?>
  134. <option value="<?php echo $language['code']; ?>"><?php echo $language['name']; ?></option>
  135. <?php } ?>
  136. <?php } ?>
  137. </select></td>
  138. </tr>
  139. <tr>
  140. <td><?php echo $entry_admin_language; ?></td>
  141. <td><select name="config_admin_language">
  142. <?php foreach ($languages as $language) { ?>
  143. <?php if ($language['code'] == $config_admin_language) { ?>
  144. <option value="<?php echo $language['code']; ?>" selected="selected"><?php echo $language['name']; ?></option>
  145. <?php } else { ?>
  146. <option value="<?php echo $language['code']; ?>"><?php echo $language['name']; ?></option>
  147. <?php } ?>
  148. <?php } ?>
  149. </select></td>
  150. </tr>
  151. <tr>
  152. <td><?php echo $entry_currency; ?></td>
  153. <td><select name="config_currency">
  154. <?php foreach ($currencies as $currency) { ?>
  155. <?php if ($currency['code'] == $config_currency) { ?>
  156. <option value="<?php echo $currency['code']; ?>" selected="selected"><?php echo $currency['title']; ?></option>
  157. <?php } else { ?>
  158. <option value="<?php echo $currency['code']; ?>"><?php echo $currency['title']; ?></option>
  159. <?php } ?>
  160. <?php } ?>
  161. </select></td>
  162. </tr>
  163. <tr>
  164. <td><?php echo $entry_currency_auto; ?></td>
  165. <td><?php if ($config_currency_auto) { ?>
  166. <input type="radio" name="config_currency_auto" value="1" checked="checked" />
  167. <?php echo $text_yes; ?>
  168. <input type="radio" name="config_currency_auto" value="0" />
  169. <?php echo $text_no; ?>
  170. <?php } else { ?>
  171. <input type="radio" name="config_currency_auto" value="1" />
  172. <?php echo $text_yes; ?>
  173. <input type="radio" name="config_currency_auto" value="0" checked="checked" />
  174. <?php echo $text_no; ?>
  175. <?php } ?></td>
  176. </tr>
  177. <tr>
  178. <td><?php echo $entry_length_class; ?></td>
  179. <td><select name="config_length_class_id">
  180. <?php foreach ($length_classes as $length_class) { ?>
  181. <?php if ($length_class['length_class_id'] == $config_length_class_id) { ?>
  182. <option value="<?php echo $length_class['length_class_id']; ?>" selected="selected"><?php echo $length_class['title']; ?></option>
  183. <?php } else { ?>
  184. <option value="<?php echo $length_class['length_class_id']; ?>"><?php echo $length_class['title']; ?></option>
  185. <?php } ?>
  186. <?php } ?>
  187. </select></td>
  188. </tr>
  189. <tr>
  190. <td><?php echo $entry_weight_class; ?></td>
  191. <td><select name="config_weight_class_id">
  192. <?php foreach ($weight_classes as $weight_class) { ?>
  193. <?php if ($weight_class['weight_class_id'] == $config_weight_class_id) { ?>
  194. <option value="<?php echo $weight_class['weight_class_id']; ?>" selected="selected"><?php echo $weight_class['title']; ?></option>
  195. <?php } else { ?>
  196. <option value="<?php echo $weight_class['weight_class_id']; ?>"><?php echo $weight_class['title']; ?></option>
  197. <?php } ?>
  198. <?php } ?>
  199. </select></td>
  200. </tr>
  201. </table>
  202. </div>
  203. <div id="tab-option">
  204. <table class="form">
  205. <tr>
  206. <td><span class="required">*</span> <?php echo $entry_catalog_limit; ?></td>
  207. <td><input type="text" name="config_catalog_limit" value="<?php echo $config_catalog_limit; ?>" size="3" />
  208. <?php if ($error_catalog_limit) { ?>
  209. <span class="error"><?php echo $error_catalog_limit; ?></span>
  210. <?php } ?></td>
  211. </tr>
  212. <tr>
  213. <td><span class="required">*</span> <?php echo $entry_admin_limit; ?></td>
  214. <td><input type="text" name="config_admin_limit" value="<?php echo $config_admin_limit; ?>" size="3" />
  215. <?php if ($error_admin_limit) { ?>
  216. <span class="error"><?php echo $error_admin_limit; ?></span>
  217. <?php } ?></td>
  218. </tr>
  219. <tr>
  220. <td><?php echo $entry_tax; ?></td>
  221. <td><?php if ($config_tax) { ?>
  222. <input type="radio" name="config_tax" value="1" checked="checked" />
  223. <?php echo $text_yes; ?>
  224. <input type="radio" name="config_tax" value="0" />
  225. <?php echo $text_no; ?>
  226. <?php } else { ?>
  227. <input type="radio" name="config_tax" value="1" />
  228. <?php echo $text_yes; ?>
  229. <input type="radio" name="config_tax" value="0" checked="checked" />
  230. <?php echo $text_no; ?>
  231. <?php } ?></td>
  232. </tr>
  233. <tr>
  234. <td><?php echo $entry_invoice_prefix; ?></td>
  235. <td><input type="text" name="config_invoice_prefix" value="<?php echo $config_invoice_prefix; ?>" /></td>
  236. </tr>
  237. <tr>
  238. <td><?php echo $entry_customer_group; ?></td>
  239. <td><select name="config_customer_group_id">
  240. <?php foreach ($customer_groups as $customer_group) { ?>
  241. <?php if ($customer_group['customer_group_id'] == $config_customer_group_id) { ?>
  242. <option value="<?php echo $customer_group['customer_group_id']; ?>" selected="selected"><?php echo $customer_group['name']; ?></option>
  243. <?php } else { ?>
  244. <option value="<?php echo $customer_group['customer_group_id']; ?>"><?php echo $customer_group['name']; ?></option>
  245. <?php } ?>
  246. <?php } ?>
  247. </select></td>
  248. </tr>
  249. <tr>
  250. <td><?php echo $entry_customer_price; ?></td>
  251. <td><?php if ($config_customer_price) { ?>
  252. <input type="radio" name="config_customer_price" value="1" checked="checked" />
  253. <?php echo $text_yes; ?>
  254. <input type="radio" name="config_customer_price" value="0" />
  255. <?php echo $text_no; ?>
  256. <?php } else { ?>
  257. <input type="radio" name="config_customer_price" value="1" />
  258. <?php echo $text_yes; ?>
  259. <input type="radio" name="config_customer_price" value="0" checked="checked" />
  260. <?php echo $text_no; ?>
  261. <?php } ?></td>
  262. </tr>
  263. <tr>
  264. <td><?php echo $entry_customer_approval; ?></td>
  265. <td><?php if ($config_customer_approval) { ?>
  266. <input type="radio" name="config_customer_approval" value="1" checked="checked" />
  267. <?php echo $text_yes; ?>
  268. <input type="radio" name="config_customer_approval" value="0" />
  269. <?php echo $text_no; ?>
  270. <?php } else { ?>
  271. <input type="radio" name="config_customer_approval" value="1" />
  272. <?php echo $text_yes; ?>
  273. <input type="radio" name="config_customer_approval" value="0" checked="checked" />
  274. <?php echo $text_no; ?>
  275. <?php } ?></td>
  276. </tr>
  277. <tr>
  278. <td><?php echo $entry_guest_checkout; ?></td>
  279. <td><?php if ($config_guest_checkout) { ?>
  280. <input type="radio" name="config_guest_checkout" value="1" checked="checked" />
  281. <?php echo $text_yes; ?>
  282. <input type="radio" name="config_guest_checkout" value="0" />
  283. <?php echo $text_no; ?>
  284. <?php } else { ?>
  285. <input type="radio" name="config_guest_checkout" value="1" />
  286. <?php echo $text_yes; ?>
  287. <input type="radio" name="config_guest_checkout" value="0" checked="checked" />
  288. <?php echo $text_no; ?>
  289. <?php } ?></td>
  290. </tr>
  291. <tr>
  292. <td><?php echo $entry_account; ?></td>
  293. <td><select name="config_account_id">
  294. <option value="0"><?php echo $text_none; ?></option>
  295. <?php foreach ($informations as $information) { ?>
  296. <?php if ($information['information_id'] == $config_account_id) { ?>
  297. <option value="<?php echo $information['information_id']; ?>" selected="selected"><?php echo $information['title']; ?></option>
  298. <?php } else { ?>
  299. <option value="<?php echo $information['information_id']; ?>"><?php echo $information['title']; ?></option>
  300. <?php } ?>
  301. <?php } ?>
  302. </select></td>
  303. </tr>
  304. <tr>
  305. <td><?php echo $entry_checkout; ?></td>
  306. <td><select name="config_checkout_id">
  307. <option value="0"><?php echo $text_none; ?></option>
  308. <?php foreach ($informations as $information) { ?>
  309. <?php if ($information['information_id'] == $config_checkout_id) { ?>
  310. <option value="<?php echo $information['information_id']; ?>" selected="selected"><?php echo $information['title']; ?></option>
  311. <?php } else { ?>
  312. <option value="<?php echo $information['information_id']; ?>"><?php echo $information['title']; ?></option>
  313. <?php } ?>
  314. <?php } ?>
  315. </select></td>
  316. </tr>
  317. <tr>
  318. <td><?php echo $entry_affiliate; ?></td>
  319. <td><select name="config_affiliate_id">
  320. <option value="0"><?php echo $text_none; ?></option>
  321. <?php foreach ($informations as $information) { ?>
  322. <?php if ($information['information_id'] == $config_affiliate_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_commission; ?></td>
  332. <td><input type="text" name="config_commission" value="<?php echo $config_commission; ?>" size="3" /></td>
  333. </tr>
  334. <tr>
  335. <td><?php echo $entry_stock_display; ?></td>
  336. <td><?php if ($config_stock_display) { ?>
  337. <input type="radio" name="config_stock_display" value="1" checked="checked" />
  338. <?php echo $text_yes; ?>
  339. <input type="radio" name="config_stock_display" value="0" />
  340. <?php echo $text_no; ?>
  341. <?php } else { ?>
  342. <input type="radio" name="config_stock_display" value="1" />
  343. <?php echo $text_yes; ?>
  344. <input type="radio" name="config_stock_display" value="0" checked="checked" />
  345. <?php echo $text_no; ?>
  346. <?php } ?></td>
  347. </tr>
  348. <tr>
  349. <td><?php echo $entry_stock_warning; ?></td>
  350. <td><?php if ($config_stock_warning) { ?>
  351. <input type="radio" name="config_stock_warning" value="1" checked="checked" />
  352. <?php echo $text_yes; ?>
  353. <input type="radio" name="config_stock_warning" value="0" />
  354. <?php echo $text_no; ?>
  355. <?php } else { ?>
  356. <input type="radio" name="config_stock_warning" value="1" />
  357. <?php echo $text_yes; ?>
  358. <input type="radio" name="config_stock_warning" value="0" checked="checked" />
  359. <?php echo $text_no; ?>
  360. <?php } ?></td>
  361. </tr>
  362. <tr>
  363. <td><?php echo $entry_stock_checkout; ?></td>
  364. <td><?php if ($config_stock_checkout) { ?>
  365. <input type="radio" name="config_stock_checkout" value="1" checked="checked" />
  366. <?php echo $text_yes; ?>
  367. <input type="radio" name="config_stock_checkout" value="0" />
  368. <?php echo $text_no; ?>
  369. <?php } else { ?>
  370. <input type="radio" name="config_stock_checkout" value="1" />
  371. <?php echo $text_yes; ?>
  372. <input type="radio" name="config_stock_checkout" value="0" checked="checked" />
  373. <?php echo $text_no; ?>
  374. <?php } ?></td>
  375. </tr>
  376. <tr>
  377. <td><?php echo $entry_stock_status; ?></td>
  378. <td><select name="config_stock_status_id">
  379. <?php foreach ($stock_statuses as $stock_status) { ?>
  380. <?php if ($stock_status['stock_status_id'] == $config_stock_status_id) { ?>
  381. <option value="<?php echo $stock_status['stock_status_id']; ?>" selected="selected"><?php echo $stock_status['name']; ?></option>
  382. <?php } else { ?>
  383. <option value="<?php echo $stock_status['stock_status_id']; ?>"><?php echo $stock_status['name']; ?></option>
  384. <?php } ?>
  385. <?php } ?>
  386. </select></td>
  387. </tr>
  388. <tr>
  389. <td><?php echo $entry_order_status; ?></td>
  390. <td><select name="config_order_status_id">
  391. <?php foreach ($order_statuses as $order_status) { ?>
  392. <?php if ($order_status['order_status_id'] == $config_order_status_id) { ?>
  393. <option value="<?php echo $order_status['order_status_id']; ?>" selected="selected"><?php echo $order_status['name']; ?></option>
  394. <?php } else { ?>
  395. <option value="<?php echo $order_status['order_status_id']; ?>"><?php echo $order_status['name']; ?></option>
  396. <?php } ?>
  397. <?php } ?>
  398. </select></td>
  399. </tr>
  400. <tr>
  401. <td><?php echo $entry_complete_status; ?></td>
  402. <td><select name="config_complete_status_id">
  403. <?php foreach ($order_statuses as $order_status) { ?>
  404. <?php if ($order_status['order_status_id'] == $config_complete_status_id) { ?>
  405. <option value="<?php echo $order_status['order_status_id']; ?>" selected="selected"><?php echo $order_status['name']; ?></option>
  406. <?php } else { ?>
  407. <option value="<?php echo $order_status['order_status_id']; ?>"><?php echo $order_status['name']; ?></option>
  408. <?php } ?>
  409. <?php } ?>
  410. </select></td>
  411. </tr>
  412. <tr>
  413. <td><?php echo $entry_return_status; ?></td>
  414. <td><select name="config_return_status_id">
  415. <?php foreach ($return_statuses as $return_status) { ?>
  416. <?php if ($return_status['return_status_id'] == $config_return_status_id) { ?>
  417. <option value="<?php echo $return_status['return_status_id']; ?>" selected="selected"><?php echo $return_status['name']; ?></option>
  418. <?php } else { ?>
  419. <option value="<?php echo $return_status['return_status_id']; ?>"><?php echo $return_status['name']; ?></option>
  420. <?php } ?>
  421. <?php } ?>
  422. </select></td>
  423. </tr>
  424. <tr>
  425. <td><?php echo $entry_review; ?></td>
  426. <td><?php if ($config_review_status) { ?>
  427. <input type="radio" name="config_review_status" value="1" checked="checked" />
  428. <?php echo $text_yes; ?>
  429. <input type="radio" name="config_review_status" value="0" />
  430. <?php echo $text_no; ?>
  431. <?php } else { ?>
  432. <input type="radio" name="config_review_status" value="1" />
  433. <?php echo $text_yes; ?>
  434. <input type="radio" name="config_review_status" value="0" checked="checked" />
  435. <?php echo $text_no; ?>
  436. <?php } ?></td>
  437. </tr>
  438. <tr>
  439. <td><?php echo $entry_download; ?></td>
  440. <td><?php if ($config_download) { ?>
  441. <input type="radio" name="config_download" value="1" checked="checked" />
  442. <?php echo $text_yes; ?>
  443. <input type="radio" name="config_download" value="0" />
  444. <?php echo $text_no; ?>
  445. <?php } else { ?>
  446. <input type="radio" name="config_download" value="1" />
  447. <?php echo $text_yes; ?>
  448. <input type="radio" name="config_download" value="0" checked="checked" />
  449. <?php echo $text_no; ?>
  450. <?php } ?></td>
  451. </tr>
  452. <tr>
  453. <td><?php echo $entry_upload_allowed; ?></td>
  454. <td><textarea name="config_upload_allowed" cols="40" rows="5"><?php echo $config_upload_allowed; ?></textarea></td>
  455. </tr>
  456. <tr>
  457. <td><?php echo $entry_cart_weight; ?></td>
  458. <td><?php if ($config_cart_weight) { ?>
  459. <input type="radio" name="config_cart_weight" value="1" checked="checked" />
  460. <?php echo $text_yes; ?>
  461. <input type="radio" name="config_cart_weight" value="0" />
  462. <?php echo $text_no; ?>
  463. <?php } else { ?>
  464. <input type="radio" name="config_cart_weight" value="1" />
  465. <?php echo $text_yes; ?>
  466. <input type="radio" name="config_cart_weight" value="0" checked="checked" />
  467. <?php echo $text_no; ?>
  468. <?php } ?></td>
  469. </tr>
  470. </table>
  471. </div>
  472. <div id="tab-image">
  473. <table class="form">
  474. <tr>
  475. <td><?php echo $entry_logo; ?></td>
  476. <td><input type="hidden" name="config_logo" value="<?php echo $config_logo; ?>" id="logo" />
  477. <img src="<?php echo $logo; ?>" alt="" id="preview-logo" class="image" onclick="image_upload('logo', 'preview-logo');" /></td>
  478. </tr>
  479. <tr>
  480. <td><?php echo $entry_icon; ?></td>
  481. <td><input type="hidden" name="config_icon" value="<?php echo $config_icon; ?>" id="icon" />
  482. <img src="<?php echo $icon; ?>" alt="" id="preview-icon" class="image" onclick="image_upload('icon', 'preview-icon');" /></td>
  483. </tr>
  484. <tr>
  485. <td><span class="required">*</span> <?php echo $entry_image_thumb; ?></td>
  486. <td><input type="text" name="config_image_thumb_width" value="<?php echo $config_image_thumb_width; ?>" size="3" />
  487. x
  488. <input type="text" name="config_image_thumb_height" value="<?php echo $config_image_thumb_height; ?>" size="3" />
  489. <?php if ($error_image_thumb) { ?>
  490. <span class="error"><?php echo $error_image_thumb; ?></span>
  491. <?php } ?></td>
  492. </tr>
  493. <tr>
  494. <td><span class="required">*</span> <?php echo $entry_image_popup; ?></td>
  495. <td><input type="text" name="config_image_popup_width" value="<?php echo $config_image_popup_width; ?>" size="3" />
  496. x
  497. <input type="text" name="config_image_popup_height" value="<?php echo $config_image_popup_height; ?>" size="3" />
  498. <?php if ($error_image_popup) { ?>
  499. <span class="error"><?php echo $error_image_popup; ?></span>
  500. <?php } ?></td>
  501. </tr>
  502. <tr>
  503. <td><span class="required">*</span> <?php echo $entry_image_product; ?></td>
  504. <td><input type="text" name="config_image_product_width" value="<?php echo $config_image_product_width; ?>" size="3" />
  505. x
  506. <input type="text" name="config_image_product_height" value="<?php echo $config_image_product_height; ?>" size="3" />
  507. <?php if ($error_image_product) { ?>
  508. <span class="error"><?php echo $error_image_product; ?></span>
  509. <?php } ?></td>
  510. </tr>
  511. <tr>
  512. <td><span class="required">*</span> <?php echo $entry_image_category; ?></td>
  513. <td><input type="text" name="config_image_category_width" value="<?php echo $config_image_category_width; ?>" size="3" />
  514. x
  515. <input type="text" name="config_image_category_height" value="<?php echo $config_image_category_height; ?>" size="3" />
  516. <?php if ($error_image_category) { ?>
  517. <span class="error"><?php echo $error_image_category; ?></span>
  518. <?php } ?></td>
  519. </tr>
  520. <tr>
  521. <td><span class="required">*</span> <?php echo $entry_image_manufacturer; ?></td>
  522. <td><input type="text" name="config_image_manufacturer_width" value="<?php echo $config_image_manufacturer_width; ?>" size="3" />
  523. x
  524. <input type="text" name="config_image_manufacturer_height" value="<?php echo $config_image_manufacturer_height; ?>" size="3" />
  525. <?php if ($error_image_manufacturer) { ?>
  526. <span class="error"><?php echo $error_image_manufacturer; ?></span>
  527. <?php } ?></td>
  528. </tr>
  529. <tr>
  530. <td><span class="required">*</span> <?php echo $entry_image_additional; ?></td>
  531. <td><input type="text" name="config_image_additional_width" value="<?php echo $config_image_additional_width; ?>" size="3" />
  532. x
  533. <input type="text" name="config_image_additional_height" value="<?php echo $config_image_additional_height; ?>" size="3" />
  534. <?php if ($error_image_additional) { ?>
  535. <span class="error"><?php echo $error_image_additional; ?></span>
  536. <?php } ?></td>
  537. </tr>
  538. <tr>
  539. <td><span class="required">*</span> <?php echo $entry_image_related; ?></td>
  540. <td><input type="text" name="config_image_related_width" value="<?php echo $config_image_related_width; ?>" size="3" />
  541. x
  542. <input type="text" name="config_image_related_height" value="<?php echo $config_image_related_height; ?>" size="3" />
  543. <?php if ($error_image_related) { ?>
  544. <span class="error"><?php echo $error_image_related; ?></span>
  545. <?php } ?></td>
  546. </tr>
  547. <tr>
  548. <td><span class="required">*</span> <?php echo $entry_image_compare; ?></td>
  549. <td><input type="text" name="config_image_compare_width" value="<?php echo $config_image_compare_width; ?>" size="3" />
  550. x
  551. <input type="text" name="config_image_compare_height" value="<?php echo $config_image_compare_height; ?>" size="3" />
  552. <?php if ($error_image_compare) { ?>
  553. <span class="error"><?php echo $error_image_compare; ?></span>
  554. <?php } ?></td>
  555. </tr>
  556. <tr>
  557. <td><span class="required">*</span> <?php echo $entry_image_wishlist; ?></td>
  558. <td><input type="text" name="config_image_wishlist_width" value="<?php echo $config_image_wishlist_width; ?>" size="3" />
  559. x
  560. <input type="text" name="config_image_wishlist_height" value="<?php echo $config_image_wishlist_height; ?>" size="3" />
  561. <?php if ($error_image_wishlist) { ?>
  562. <span class="error"><?php echo $error_image_wishlist; ?></span>
  563. <?php } ?></td>
  564. </tr>
  565. <tr>
  566. <td><span class="required">*</span> <?php echo $entry_image_cart; ?></td>
  567. <td><input type="text" name="config_image_cart_width" value="<?php echo $config_image_cart_width; ?>" size="3" />
  568. x
  569. <input type="text" name="config_image_cart_height" value="<?php echo $config_image_cart_height; ?>" size="3" />
  570. <?php if ($error_image_cart) { ?>
  571. <span class="error"><?php echo $error_image_cart; ?></span>
  572. <?php } ?></td>
  573. </tr>
  574. </table>
  575. </div>
  576. <div id="tab-mail">
  577. <table class="form">
  578. <tr>
  579. <td><?php echo $entry_mail_protocol; ?></td>
  580. <td><select name="config_mail_protocol">
  581. <?php if ($config_mail_protocol == 'mail') { ?>
  582. <option value="mail" selected="selected"><?php echo $text_mail; ?></option>
  583. <?php } else { ?>
  584. <option value="mail"><?php echo $text_mail; ?></option>
  585. <?php } ?>
  586. <?php if ($config_mail_protocol == 'smtp') { ?>
  587. <option value="smtp" selected="selected"><?php echo $text_smtp; ?></option>
  588. <?php } else { ?>
  589. <option value="smtp"><?php echo $text_smtp; ?></option>
  590. <?php } ?>
  591. </select></td>
  592. </tr>
  593. <tr>
  594. <td><?php echo $entry_mail_parameter; ?></td>
  595. <td><input type="text" name="config_mail_parameter" value="<?php echo $config_mail_parameter; ?>" /></td>
  596. </tr>
  597. <tr>
  598. <td><?php echo $entry_smtp_host; ?></td>
  599. <td><input type="text" name="config_smtp_host" value="<?php echo $config_smtp_host; ?>" /></td>
  600. </tr>
  601. <tr>
  602. <td><?php echo $entry_smtp_username; ?></td>
  603. <td><input type="text" name="config_smtp_username" value="<?php echo $config_smtp_username; ?>" /></td>
  604. </tr>
  605. <tr>
  606. <td><?php echo $entry_smtp_password; ?></td>
  607. <td><input type="text" name="config_smtp_password" value="<?php echo $config_smtp_password; ?>" /></td>
  608. </tr>
  609. <tr>
  610. <td><?php echo $entry_smtp_port; ?></td>
  611. <td><input type="text" name="config_smtp_port" value="<?php echo $config_smtp_port; ?>" /></td>
  612. </tr>
  613. <tr>
  614. <td><?php echo $entry_smtp_timeout; ?></td>
  615. <td><input type="text" name="config_smtp_timeout" value="<?php echo $config_smtp_timeout; ?>" /></td>
  616. </tr>
  617. <tr>
  618. <td><?php echo $entry_alert_mail; ?></td>
  619. <td><?php if ($config_alert_mail) { ?>
  620. <input type="radio" name="config_alert_mail" value="1" checked="checked" />
  621. <?php echo $text_yes; ?>
  622. <input type="radio" name="config_alert_mail" value="0" />
  623. <?php echo $text_no; ?>
  624. <?php } else { ?>
  625. <input type="radio" name="config_alert_mail" value="1" />
  626. <?php echo $text_yes; ?>
  627. <input type="radio" name="config_alert_mail" value="0" checked="checked" />
  628. <?php echo $text_no; ?>
  629. <?php } ?></td>
  630. </tr>
  631. <tr>
  632. <td><?php echo $entry_account_mail; ?></td>
  633. <td><?php if ($config_account_mail) { ?>
  634. <input type="radio" name="config_account_mail" value="1" checked="checked" />
  635. <?php echo $text_yes; ?>
  636. <input type="radio" name="config_account_mail" value="0" />
  637. <?php echo $text_no; ?>
  638. <?php } else { ?>
  639. <input type="radio" name="config_account_mail" value="1" />
  640. <?php echo $text_yes; ?>
  641. <input type="radio" name="config_account_mail" value="0" checked="checked" />
  642. <?php echo $text_no; ?>
  643. <?php } ?></td>
  644. </tr>
  645. <tr>
  646. <td><?php echo $entry_alert_emails; ?></td>
  647. <td><textarea name="config_alert_emails" cols="40" rows="5"><?php echo $config_alert_emails; ?></textarea></td>
  648. </tr>
  649. </table>
  650. </div>
  651. <div id="tab-server">
  652. <table class="form">
  653. <tr>
  654. <td><?php echo $entry_use_ssl; ?></td>
  655. <td><?php if ($config_use_ssl) { ?>
  656. <input type="radio" name="config_use_ssl" value="1" checked="checked" />
  657. <?php echo $text_yes; ?>
  658. <input type="radio" name="config_use_ssl" value="0" />
  659. <?php echo $text_no; ?>
  660. <?php } else { ?>
  661. <input type="radio" name="config_use_ssl" value="1" />
  662. <?php echo $text_yes; ?>
  663. <input type="radio" name="config_use_ssl" value="0" checked="checked" />
  664. <?php echo $text_no; ?>
  665. <?php } ?></td>
  666. </tr>
  667. <tr>
  668. <td><?php echo $entry_seo_url; ?></td>
  669. <td><?php if ($config_seo_url) { ?>
  670. <input type="radio" name="config_seo_url" value="1" checked="checked" />
  671. <?php echo $text_yes; ?>
  672. <input type="radio" name="config_seo_url" value="0" />
  673. <?php echo $text_no; ?>
  674. <?php } else { ?>
  675. <input type="radio" name="config_seo_url" value="1" />
  676. <?php echo $text_yes; ?>
  677. <input type="radio" name="config_seo_url" value="0" checked="checked" />
  678. <?php echo $text_no; ?>
  679. <?php } ?></td>
  680. </tr>
  681. <tr>
  682. <td><?php echo $entry_maintenance; ?></td>
  683. <td><?php if ($config_maintenance) { ?>
  684. <input type="radio" name="config_maintenance" value="1" checked="checked" />
  685. <?php echo $text_yes; ?>
  686. <input type="radio" name="config_maintenance" value="0" />
  687. <?php echo $text_no; ?>
  688. <?php } else { ?>
  689. <input type="radio" name="config_maintenance" value="1" />
  690. <?php echo $text_yes; ?>
  691. <input type="radio" name="config_maintenance" value="0" checked="checked" />
  692. <?php echo $text_no; ?>
  693. <?php } ?></td>
  694. </tr>
  695. <tr>
  696. <td><?php echo $entry_encryption; ?></td>
  697. <td><input type="text" name="config_encryption" value="<?php echo $config_encryption; ?>" /></td>
  698. </tr>
  699. <tr>
  700. <td><?php echo $entry_compression; ?></td>
  701. <td><input type="text" name="config_compression" value="<?php echo $config_compression; ?>" size="3" /></td>
  702. </tr>
  703. <tr>
  704. <td><?php echo $entry_error_display; ?></td>
  705. <td><?php if ($config_error_display) { ?>
  706. <input type="radio" name="config_error_display" value="1" checked="checked" />
  707. <?php echo $text_yes; ?>
  708. <input type="radio" name="config_error_display" value="0" />
  709. <?php echo $text_no; ?>
  710. <?php } else { ?>
  711. <input type="radio" name="config_error_display" value="1" />
  712. <?php echo $text_yes; ?>
  713. <input type="radio" name="config_error_display" value="0" checked="checked" />
  714. <?php echo $text_no; ?>
  715. <?php } ?></td>
  716. </tr>
  717. <tr>
  718. <td><?php echo $entry_error_log; ?></td>
  719. <td><?php if ($config_error_log) { ?>
  720. <input type="radio" name="config_error_log" value="1" checked="checked" />
  721. <?php echo $text_yes; ?>
  722. <input type="radio" name="config_error_log" value="0" />
  723. <?php echo $text_no; ?>
  724. <?php } else { ?>
  725. <input type="radio" name="config_error_log" value="1" />
  726. <?php echo $text_yes; ?>
  727. <input type="radio" name="config_error_log" value="0" checked="checked" />
  728. <?php echo $text_no; ?>
  729. <?php } ?></td>
  730. </tr>
  731. <tr>
  732. <td><span class="required">*</span> <?php echo $entry_error_filename; ?></td>
  733. <td><input type="text" name="config_error_filename" value="<?php echo $config_error_filename; ?>" />
  734. <?php if ($error_error_filename) { ?>
  735. <span class="error"><?php echo $error_error_filename; ?></span>
  736. <?php } ?></td>
  737. </tr>
  738. <tr>
  739. <td><?php echo $entry_google_analytics; ?></td>
  740. <td><textarea name="config_google_analytics" cols="40" rows="5"><?php echo $config_google_analytics; ?></textarea></td>
  741. </tr>
  742. </table>
  743. </div>
  744. </form>
  745. </div>
  746. </div>
  747. </div>
  748. <script type="text/javascript"><!--
  749. $('#template').load('index.php?route=setting/setting/template&token=<?php echo $token; ?>&template=' + encodeURIComponent($('select[name=\'config_template\']').attr('value')));
  750. $('select[name=\'config_zone_id\']').load('index.php?route=setting/setting/zone&token=<?php echo $token; ?>&country_id=<?php echo $config_country_id; ?>&zone_id=<?php echo $config_zone_id; ?>');
  751. //--></script>
  752. <script type="text/javascript"><!--
  753. function image_upload(field, preview) {
  754. $('#dialog').remove();
  755. $('#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>');
  756. $('#dialog').dialog({
  757. title: '<?php echo $text_image_manager; ?>',
  758. close: function (event, ui) {
  759. if ($('#' + field).attr('value')) {
  760. $.ajax({
  761. url: 'index.php?route=common/filemanager/image&token=<?php echo $token; ?>',
  762. type: 'POST',
  763. data: 'image=' + encodeURIComponent($('#' + field).val()),
  764. dataType: 'text',
  765. success: function(data) {
  766. $('#' + preview).replaceWith('<img src="' + data + '" alt="" id="' + preview + '" class="image" onclick="image_upload(\'' + field + '\', \'' + preview + '\');" />');
  767. }
  768. });
  769. }
  770. },
  771. bgiframe: false,
  772. width: 800,
  773. height: 400,
  774. resizable: false,
  775. modal: false
  776. });
  777. };
  778. //--></script>
  779. <script type="text/javascript"><!--
  780. $('#tabs a').tabs();
  781. //--></script>
  782. <?php echo $footer; ?>