recalculate.html.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. /**
  3. * The recalculate file of metric module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(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 zhouxin<zhouxin@easycorp.ltd>
  8. * @package metric
  9. * @link http://www.zentao.net
  10. */
  11. namespace zin;
  12. jsVar('startDate', $startDate);
  13. jsVar('endDate', $endDate);
  14. jsVar('code', $code);
  15. jsVar('dateType', $dateType);
  16. jsVar('calcType', $calcType);
  17. jsVar('calcRange', $calcRange);
  18. jsVar('noticeDeduplication', $lang->metric->tips->noticeDeduplication);
  19. jsVar('noticeDoneDeduplication', $lang->metric->tips->noticeDoneDeduplication);
  20. if($calcRange == 'single')
  21. {
  22. jsVar('recalculateLogText', "$metric->name {$lang->metric->recalculateLog}");
  23. }
  24. else
  25. {
  26. jsVar('recalculateLogText', $lang->metric->recalculateLog);
  27. }
  28. detailHeader
  29. (
  30. to::title
  31. (
  32. entityLabel
  33. (
  34. setClass('text-xl font-black'),
  35. set::level(1),
  36. set::text($lang->metric->recalculateHistory)
  37. ),
  38. div
  39. (
  40. setClass('notice-recalculate'),
  41. label
  42. (
  43. to::before(icon(setClass('warning-ghost margin-left8'), 'help')),
  44. set::text($lang->metric->tips->noticeRecalculate),
  45. setClass('label ghost')
  46. )
  47. )
  48. )
  49. );
  50. panel
  51. (
  52. setClass('clear-shadow'),
  53. set::bodyClass('relative'),
  54. div
  55. (
  56. div(setClass('p-3'), setID('recalculate-log'), setClass('recalculate-log'))
  57. ),
  58. set::footerActions(array(array('data-dismiss' => 'modal', 'class' => 'btn hidden exit', 'text' => $lang->metric->exit)))
  59. );