export.html.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * The export view file of flow module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2022 禅道软件(青岛)有限公司(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 Gang Liu <liugang@cnezsoft.com>
  8. * @package flow
  9. * @version $Id$
  10. * @link http://www.zentao.net
  11. */
  12. ?>
  13. <?php
  14. chdir('../../view');
  15. if(empty($fields))
  16. {
  17. include $app->getModuleRoot() . 'common/view/header.lite.html.php';
  18. if(commonModel::hasPriv('flow.workflowfield', 'setExport'))
  19. {
  20. $designLink = baseHTML::a($this->createLink('workflowfield', 'setExport', "module={$module}"), $lang->flow->setExport, "target='_parent'");
  21. }
  22. else
  23. {
  24. $designLink = $lang->flow->setExport;
  25. }
  26. echo "<div class='alert' style='margin-bottom:0px;padding:20px'>" . sprintf($lang->flow->tips->emptyExportFields, $designLink) . '</div>';
  27. }
  28. else
  29. {
  30. include $app->getModuleRoot() . 'file/view/export.html.php';
  31. }
  32. ?>
  33. <?php js::set('moduleName', 'flow');?>
  34. <script>
  35. $(function()
  36. {
  37. $('#exportType').closest('tr').hide();
  38. })
  39. </script>