export.html.php 891 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * The export view file of flow module of ZenTaoPms.
  4. *
  5. * @copyright Copyright 2009-2024 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
  6. * @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  7. * @author Mengyi Liu
  8. * @package flow
  9. * @link https://www.zentao.net
  10. */
  11. if(empty($allExportFields))
  12. {
  13. if(commonModel::hasPriv('flow.workflowfield', 'setExport'))
  14. {
  15. $designLink = baseHTML::a($this->createLink('workflowfield', 'setExport', "module={$module}"), $lang->flow->setExport, "target='_parent'");
  16. }
  17. else
  18. {
  19. $designLink = $lang->flow->setExport;
  20. }
  21. echo "<div class='alert'>" . sprintf($lang->flow->tips->emptyExportFields, $designLink) . '</div>';
  22. }
  23. else
  24. {
  25. include $app->getModuleRoot() . 'file/ui/export.html.php';
  26. }