export.html.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /**
  3. * The export stories or bugs to html view file of release module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
  6. * @license ZPL(http://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  7. * @author Congzhi Chen <congzhi@cnezsoft.com>
  8. * @package file
  9. * @version $Id$
  10. * @link https://www.zentao.net
  11. */
  12. ?>
  13. <?php include '../../common/view/header.lite.html.php';?>
  14. <script>
  15. function setDownloading()
  16. {
  17. if(navigator.userAgent.toLowerCase().indexOf("opera") > -1) return true; // Opera don't support, omit it.
  18. $.cookie('downloading', 0);
  19. time = setInterval("closeWindow()", 300);
  20. return true;
  21. }
  22. function closeWindow()
  23. {
  24. if($.cookie('downloading') == 1)
  25. {
  26. parent.$.closeModal();
  27. $.cookie('downloading', null);
  28. clearInterval(time);
  29. }
  30. }
  31. </script>
  32. <div id='mainContent' class='main-content'>
  33. <div class='main-header'>
  34. <h2><?php echo $lang->export;?></h2>
  35. </div>
  36. <form method='post' target='hiddenwin' onsubmit='setDownloading();' style='padding: 10px 5%'>
  37. <table class='w-p100'>
  38. <tr>
  39. <td>
  40. <div class='input-group'>
  41. <span class='input-group-addon'><?php echo $lang->setFileName;?></span>
  42. <?php echo html::input('fileName', '', "class='form-control'");?>
  43. <span class='input-group-addon'>.html</span>
  44. <?php echo html::select('type', $lang->release->exportTypeList, 'all', "class='form-control'")?>
  45. </div>
  46. </td>
  47. <td><?php echo html::submitButton($lang->export, '', 'btn btn-primary');?></td>
  48. </tr>
  49. </table>
  50. </form>
  51. </div>
  52. <?php include '../../common/view/footer.lite.html.php';?>