preview.html.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * The browse view file of company module of ZenTaoPMS.
  4. * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
  5. * @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  6. * @author Mengyi Liu <liumengyi@easycorp.ltd>
  7. * @package company
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. jsVar('updateTimeTip', $lang->metric->updateTimeTip);
  12. jsVar('objectList', $lang->metric->objectList);
  13. jsVar('current', $current);
  14. jsVar('maxSelectNum', $config->metric->maxSelectNum);
  15. jsVar('maxSelectMsg', $lang->metric->maxSelect);
  16. jsVar('maxSelectTip', $lang->metric->maxSelectTip);
  17. jsVar('viewType', $viewType);
  18. jsVar('selectCount', $lang->metric->selectCount);
  19. jsVar('filterLang', $lang->metric->filter);
  20. jsVar('scope', $scope);
  21. jsVar('metricListLang', $metricList);
  22. jsVar('chartTypeList', $lang->metric->chartTypeList);
  23. jsVar('errorDateRange', $lang->metric->errorDateRange);
  24. jsVar('errorCalcTimeRange', $lang->metric->errorCalcTimeRange);
  25. jsVar('queryScopeLang', $lang->metric->query->scope);
  26. jsVar('collectStar', $lang->metric->collectStar);
  27. jsVar('calcTitleList', $lang->metric->calcTitleList);
  28. // jsVar('pager', usePager());
  29. if($scope == 'collect' and empty($current))
  30. {
  31. include 'emptycollect.html.php';
  32. }
  33. else
  34. {
  35. if($viewType == 'single') include 'previewsingle.html.php';
  36. if($viewType == 'multiple') include 'previewmultiple.html.php';
  37. }