waterfallestimateblock.html.php 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. /**
  3. * The waterfall estimate block view file of block 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 Yuting Wang <wangyuting@easycorp.ltd>
  7. * @package block
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. blockPanel
  12. (
  13. div
  14. (
  15. setClass('flex py-4'),
  16. cell
  17. (
  18. set::width('1/2'),
  19. setClass('border-r'),
  20. div($lang->block->estimate->costs),
  21. div
  22. (
  23. setClass('flex py-4 text-gray'),
  24. cell(set::width('1/2'), setClass('text-right'), $lang->durationestimation->people . ' :'),
  25. cell(setClass('ml-1'), ($people ? $people : 0) . ' ' . $lang->block->estimate->people)
  26. ),
  27. div
  28. (
  29. setClass('flex py-4 text-gray'),
  30. cell(set::width('1/2'), setClass('text-right'), $lang->durationestimation->members . ' :'),
  31. cell(setClass('ml-1'), ($members ? $members : 0) . ' ' . $lang->block->estimate->people)
  32. ),
  33. div
  34. (
  35. setClass('flex py-4 text-gray'),
  36. cell(set::width('1/2'), setClass('text-right'), $lang->workestimation->totalLaborCost . ' :'),
  37. cell(setClass('ml-1'), '¥' . zget($budget, 'totalLaborCost', 0))
  38. )
  39. ),
  40. cell
  41. (
  42. set::width('1/2'),
  43. setClass('px-4'),
  44. div($lang->block->estimate->workhour),
  45. div
  46. (
  47. setClass('flex py-4 text-gray'),
  48. cell(set::width('1/2'), setClass('text-right'), $lang->block->estimate->expect . ' :'),
  49. cell(setClass('ml-1'), zget($budget, 'duration', 0) . ' ' . $lang->block->estimate->hour)
  50. ),
  51. div
  52. (
  53. setClass('flex py-4 text-gray'),
  54. cell(set::width('1/2'), setClass('text-right'), $lang->block->estimate->consumed . ' :'),
  55. cell(setClass('ml-1'), ($consumed ? $consumed : 0) . ' ' . $lang->block->estimate->hour)
  56. ),
  57. div
  58. (
  59. setClass('flex py-4 text-gray'),
  60. cell(set::width('1/2'), setClass('text-right'), $lang->block->estimate->surplus . ' :'),
  61. cell(setClass('ml-1'), ($totalLeft ? $totalLeft : 0) . ' ' . $lang->block->estimate->hour)
  62. )
  63. )
  64. )
  65. );