crystalexport.html.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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();
  15. $.cookie('downloading', null);
  16. clearInterval(time);
  17. }
  18. }
  19. </script>
  20. <main id="main">
  21. <div class="container">
  22. <div id="mainContent" class='main-content load-indicator'>
  23. <div class='main-header'>
  24. <h2><?php echo $lang->export;?></h2>
  25. </div>
  26. <form method='post' target='hiddenwin' onsubmit='setDownloading();' style='margin: 10px -20px 0;'>
  27. <table class='table table-form' style='padding:30px'>
  28. <tr>
  29. <th class='w-80px'><?php echo $lang->setFileName;?></th>
  30. <td><?php echo html::input('fileName', $name, "class='form-control'");?></td>
  31. <td class='w-100px'>
  32. <?php
  33. unset($lang->exportFileTypeList['csv']);
  34. unset($lang->exportFileTypeList['xml']);
  35. echo html::select('fileType', $lang->exportFileTypeList, '', 'class="form-control"');
  36. ?>
  37. </td>
  38. <td class='w-80px'><?php echo html::submitButton('', '', 'btn btn-primary btn-block');?></td>
  39. </tr>
  40. </table>
  41. </form>
  42. </div>
  43. </div>
  44. </main>
  45. <?php include $app->getModuleRoot() . 'common/view/footer.lite.html.php';?>