PageRenderTime 42ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/admin/view/template/ebay/item_import.tpl

https://bitbucket.org/worawitinter/tazefood
Smarty Template | 95 lines | 86 code | 9 blank | 0 comment | 9 complexity | 9be1ab7964335597c55ba8af46d06377 MD5 | raw file
Possible License(s): LGPL-2.1
  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. <div class="box mBottom130">
  9. <div class="heading">
  10. <h1><?php echo $lang_heading; ?></h1>
  11. <div class="buttons">
  12. <a onclick="location = '<?php echo $return; ?>';" class="button"><span><?php echo $lang_btn_return; ?></span></a>
  13. </div>
  14. </div>
  15. <div class="content">
  16. <?php if($validation === true) { ?>
  17. <?php if($imgImport > 0){ ?>
  18. <div class="warning">
  19. <?php echo $imgImport; ?> <?php echo $lang_import_images_msg1; ?> <a href="<?php echo $imgImportLink; ?>" target="_blank"><?php echo $lang_import_images_msg2; ?></a> <?php echo $lang_import_images_msg3; ?>
  20. </div>
  21. <?php } ?>
  22. <?php if($this->config->get('config_maintenance') == 1){ ?>
  23. <div class="warning"><?php echo $lang_maintenance_fail; ?></div>
  24. <?php } ?>
  25. <p><?php echo $lang_sync_import_line1; ?></p>
  26. <p><?php echo $lang_sync_import_line2; ?></p>
  27. <p><?php echo $lang_sync_import_line3; ?></p>
  28. <div class="attention"><?php echo $lang_sync_server_size; ?><strong><?php echo ini_get('post_max_size'); ?></strong></div>
  29. <div class="attention"><?php echo $lang_sync_memory_size; ?><strong><?php echo ini_get('memory_limit'); ?></strong></div>
  30. <table width="100%" cellspacing="0" cellpadding="2" border="0" class="adminlist">
  31. <tr class="row0">
  32. <td width="230" height="50" valign="middle"><label for="importDescription"><?php echo $lang_sync_item_description; ?></label></td>
  33. <td><input type="checkbox" name="importDescription" id="importDescription" value="1"/></td>
  34. </tr>
  35. <tr class="row0">
  36. <td width="230" height="50" valign="middle"><label for="items_import_notes_to_location"><?php echo $lang_sync_notes_location; ?></label></td>
  37. <td><input type="checkbox" name="import_notes" id="import_notes" value="1"/></td>
  38. </tr>
  39. <tr class="row0">
  40. <td width="230" height="50" valign="middle"><label for=""><?php echo $lang_import_ebay_items; ?></td>
  41. <td><a onclick="importItems();" class="button" id="importItems"><span><?php echo $lang_import; ?></span></a><img src="<?php echo HTTPS_SERVER; ?>view/image/loading.gif" id="imageLoadingImportItems" class="displayNone" /></td>
  42. </tr>
  43. </table>
  44. <?php }else{ ?>
  45. <div class="warning"><?php echo $lang_error_validation; ?></div>
  46. <?php } ?>
  47. </div>
  48. </div>
  49. </div>
  50. <script type="text/javascript"><!--
  51. function importItems(){
  52. var answer = confirm("<?php echo $lang_ajax_import_confirm;?>");
  53. if (answer){
  54. var descImport = $('#importDescription:checked').val();
  55. var noteImport = $('#import_notes:checked').val();
  56. if(descImport == undefined){ descImport = 0; }else{ descImport = 1; }
  57. if(noteImport == undefined){ noteImport = 0; }else{ noteImport = 1; }
  58. $.ajax({
  59. url: 'index.php?route=openbay/openbay/importItems&token=<?php echo $token; ?>&desc='+descImport+'&note='+noteImport,
  60. beforeSend: function(){
  61. $('#importItems').hide();
  62. $('#imageLoadingImportItems').show();
  63. },
  64. type: 'post',
  65. dataType: 'json',
  66. success: function(json) {
  67. $('#importItems').show(); $('#imageLoadingImportItems').hide();
  68. alert('<?php echo $lang_ajax_import_notify; ?>');
  69. },
  70. failure: function(){
  71. $('#imageLoadingImportItems').hide();
  72. $('#importItems').show();
  73. alert('<?php echo $lang_ajax_load_error; ?>');
  74. },
  75. error: function(){
  76. $('#imageLoadingImportItems').hide();
  77. $('#importItems').show();
  78. alert('<?php echo $lang_ajax_load_error; ?>');
  79. }
  80. });
  81. }else{
  82. return 0;
  83. }
  84. }
  85. //--></script>
  86. <?php echo $footer; ?>