exporttemplate.html.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php include $app->getModuleRoot() . 'common/view/header.lite.html.php';?>
  2. <script>
  3. function setDownloading()
  4. {
  5. if(navigator.userAgent.toLowerCase().indexOf("opera") > -1) return true; // Opera don't support, omit it.
  6. $.cookie('downloading', 0);
  7. time = setInterval("closeWindow()", 300);
  8. return true;
  9. }
  10. function closeWindow()
  11. {
  12. if($.cookie('downloading') == 1)
  13. {
  14. parent.$.closeModal(null, 'this');
  15. $.cookie('downloading', null);
  16. clearInterval(time);
  17. }
  18. }
  19. </script>
  20. <div id='mainContent' class='main-content'>
  21. <div class='main-header'>
  22. <h2><?php echo $lang->transfer->exportTemplate;?></h2>
  23. </div>
  24. <form method='post' target='hiddenwin' onsubmit='setDownloading();' style='padding: 20px 5%'>
  25. <table class='table table-form'>
  26. <tr>
  27. <th class='w-120px'><?php echo $lang->transfer->num;?></th>
  28. <td class='w-80px'><?php echo html::input('num', '10', "class='form-control'");?></td>
  29. <td class='w-100px'><?php echo html::select('fileType', array('xlsx' => 'xlsx', 'xls' => 'xls'), 'xlsx', "class='form-control'");?>
  30. <td><?php echo html::submitButton('', '', 'btn btn-primary');?></td>
  31. </tr>
  32. </table>
  33. </form>
  34. </div>
  35. <?php include $app->getModuleRoot() . 'common/view/footer.lite.html.php';?>