relation.html.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <?php
  2. /**
  3. * The change view file of story 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 Sun Guangming<sunguangming@easycorp.ltd>
  7. * @package story
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. modalHeader();
  12. $tbody = array();
  13. foreach($relation as $key => $story)
  14. {
  15. $tbody[] = h::tr
  16. (
  17. h::td
  18. (
  19. $story->id
  20. ),
  21. h::td
  22. (
  23. $story->title
  24. ),
  25. h::td
  26. (
  27. $story->pri
  28. ),
  29. h::td
  30. (
  31. zget($users, $story->openedBy)
  32. ),
  33. h::td
  34. (
  35. zget($users, $story->assignedTo)
  36. ),
  37. h::td
  38. (
  39. $story->estimate
  40. ),
  41. h::td
  42. (
  43. zget($lang->story->statusList, $story->status)
  44. )
  45. );
  46. }
  47. h::table
  48. (
  49. setClass('table table-fixed'),
  50. h::tr
  51. (
  52. h::th
  53. (
  54. set::width('60px'),
  55. $lang->story->id
  56. ),
  57. h::th
  58. (
  59. $lang->story->title
  60. ),
  61. h::th
  62. (
  63. set::width('60px'),
  64. $lang->story->pri
  65. ),
  66. h::th
  67. (
  68. set::width('100px'),
  69. $lang->story->openedBy
  70. ),
  71. h::th
  72. (
  73. set::width('100px'),
  74. $lang->story->assignedTo
  75. ),
  76. h::th
  77. (
  78. set::width('80px'),
  79. $lang->story->estimate
  80. ),
  81. h::th
  82. (
  83. set::width('80px'),
  84. $lang->story->status
  85. )
  86. ),
  87. $tbody
  88. );