recalculatesetting.html.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. /**
  3. * The recalculatesetting view 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 Xin Zhou <zhouxin@easycorp.ltd>
  8. * @package metric
  9. * @link https://www.zentao.net
  10. */
  11. namespace zin;
  12. detailHeader
  13. (
  14. to::title
  15. (
  16. entityLabel
  17. (
  18. setClass('text-xl font-black'),
  19. set::level(1),
  20. set::text($lang->metric->setting)
  21. )
  22. )
  23. );
  24. div
  25. (
  26. setClass('alert secondary-pale'),
  27. div
  28. (
  29. $lang->metric->tips->noticeRecalculateConfig[$calcRange]
  30. )
  31. );
  32. formPanel(formGroup
  33. (
  34. setClass('mt-5'),
  35. checkbox
  36. (
  37. setClass('isCalcAll'),
  38. set::name('isCalcAll'),
  39. set::checked(false),
  40. set::text($lang->metric->recalculateAll)
  41. ),
  42. div
  43. (
  44. setClass('state-500'),
  45. $lang->metric->tips->noticeRewriteHistoryLib[$calcRange]
  46. )
  47. ), set::actions(array()), div
  48. (
  49. setClass('form-actions'),
  50. btn
  51. (
  52. setClass('btn primary'),
  53. bind::click("window.showRecalculateProgress('$calcRange', '$code')"),
  54. $lang->metric->startRecalculate
  55. ),
  56. btn
  57. (
  58. setClass('btn'),
  59. bind::click("window.closeModal()"),
  60. $lang->cancel
  61. )
  62. ));