index.html.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php
  2. /**
  3. * The index ui view file of milestone 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 Yidong Wang <wangyidong@chandao.com>
  7. * @package milestone
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. div
  12. (
  13. setClass('flex flex-auto mb-4'),
  14. backBtn
  15. (
  16. set::icon('back'),
  17. set::type('primary-outline'),
  18. set::back('APP'),
  19. $lang->goback
  20. ),
  21. !empty($milestoneItems) || !empty($productItems) ? div
  22. (
  23. setClass('flex'),
  24. !empty($productItems) ? picker
  25. (
  26. setClass('ml-4'),
  27. set::width('150px'),
  28. set::name('product'),
  29. set::items($productItems),
  30. set::value($productID),
  31. set::required(true)
  32. ) : null,
  33. picker
  34. (
  35. setClass('ml-4'),
  36. set::width('150px'),
  37. set::name('milestone'),
  38. set::items($milestoneItems),
  39. set::value($executionID),
  40. set::required(true),
  41. empty($milestoneItems) ? set::placeholder($lang->noData) : null
  42. )
  43. ) : null
  44. );
  45. if(empty($executionID))
  46. {
  47. div(setClass('table-empty-tip'), p($lang->noData));
  48. }
  49. else
  50. {
  51. include 'basicinfo.html.php';
  52. include 'process.html.php';
  53. include 'chart.html.php';
  54. include 'productquality.html.php';
  55. include 'workhour.html.php';
  56. include 'progress.html.php';
  57. include 'rectifying.html.php';
  58. include 'condition.html.php';
  59. include 'projectrisk.html.php';
  60. include 'otherproblem.html.php';
  61. $buildBasicInfo();
  62. $buildProcess();
  63. $buildChart();
  64. $buildProductQuality();
  65. $buildWorkhour();
  66. $buildProgress();
  67. $buildRectifying();
  68. $buildCondition();
  69. $buildProjectRisk();
  70. $buildOtherproblems();
  71. }