invest.html.php 4.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?php
  2. /**
  3. * The invest view file of personnel 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 personnel
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. dropmenu();
  12. ?>
  13. <div class='main-table bg-white'>
  14. <?php if(!empty($investList)):?>
  15. <table class="table has-sort-head bordered table-fixed text-center">
  16. <thead>
  17. <tr>
  18. <th rowspan='2' class="c-role w-24"><?php echo $lang->personnel->role;?></th>
  19. <th rowspan='2' class="c-user w-24"> <?php echo $lang->personnel->name;?></th>
  20. <th rowspan='2'><?php echo $lang->personnel->projects;?></th>
  21. <th rowspan='2'><?php echo $lang->personnel->executions;?></th>
  22. <th colspan="2"><?php echo $lang->personnel->workingHours;?></th>
  23. <th colspan="3"><?php echo $lang->personnel->task;?></th>
  24. <th colspan="3"><?php echo $lang->personnel->bug;?></th>
  25. <th <?php echo $config->URAndSR ? "colspan='2' class='w-40'" : "rowspan='2' class='w-20'";?>><?php echo $lang->personnel->createStories;?></th>
  26. <?php if($this->config->edition == 'max' or $this->config->edition == 'ipd'): ?>
  27. <th colspan="3"><?php echo $lang->personnel->issue;?></th>
  28. <th colspan="3"><?php echo $lang->personnel->risk;?></th>
  29. <?php endif;?>
  30. </tr>
  31. <tr>
  32. <th><?php echo $lang->personnel->invest;?></th>
  33. <th><?php echo $lang->personnel->left;?></th>
  34. <th><?php echo $lang->personnel->created;?></th>
  35. <th><?php echo $lang->personnel->finished;?></th>
  36. <th><?php echo $lang->personnel->wait;?></th>
  37. <th><?php echo $lang->personnel->created;?></th>
  38. <th><?php echo $lang->personnel->resolved;?></th>
  39. <th><?php echo $lang->personnel->wait;?></th>
  40. <?php if($this->config->URAndSR):?>
  41. <th><?php echo $lang->personnel->UR;?></th>
  42. <th><?php echo $lang->personnel->SR;?></th>
  43. <?php endif;?>
  44. <?php if($this->config->edition == 'max' or $this->config->edition == 'ipd'): ?>
  45. <th><?php echo $lang->personnel->created;?></th>
  46. <th><?php echo $lang->personnel->resolved;?></th>
  47. <th><?php echo $lang->personnel->wait;?></th>
  48. <th><?php echo $lang->personnel->created;?></th>
  49. <th><?php echo $lang->personnel->resolved;?></th>
  50. <th><?php echo $lang->personnel->wait;?></th>
  51. <?php endif;?>
  52. </tr>
  53. </thead>
  54. <tbody class="sortable">
  55. <?php foreach($investList as $role => $personnelList):?>
  56. <?php foreach($personnelList as $personnel):?>
  57. <tr>
  58. <td title='<?php echo $personnel['role'];?>' style="overflow: hidden; white-space:nowrap; text-overflow: ellipsis;"><?php echo $personnel['role'];?></td>
  59. <td title='<?php echo $personnel['realname'];?>'><?php echo $personnel['realname'];?></td>
  60. <td><?php echo $personnel['projects'];?></td>
  61. <td><?php echo $personnel['executions'];?></td>
  62. <td><?php echo round($personnel['consumedTask'], 1);?></td>
  63. <td><?php echo round($personnel['leftTask'], 1);?></td>
  64. <td><?php echo $personnel['createdTask'];?></td>
  65. <td><?php echo $personnel['finishedTask'];?></td>
  66. <td><?php echo $personnel['pendingTask'];?></td>
  67. <td><?php echo $personnel['createdBug'];?></td>
  68. <td><?php echo $personnel['resolvedBug'];?></td>
  69. <td><?php echo $personnel['pendingBug'];?></td>
  70. <?php if($this->config->URAndSR):?>
  71. <td><?php echo $personnel['UR'];?></td>
  72. <?php endif;?>
  73. <td><?php echo $personnel['SR'];?></td>
  74. <?php if($this->config->edition == 'max' or $this->config->edition == 'ipd'): ?>
  75. <td><?php echo $personnel['createdIssue'];?></td>
  76. <td><?php echo $personnel['resolvedIssue'];?></td>
  77. <td><?php echo $personnel['pendingIssue'];?></td>
  78. <td><?php echo $personnel['createdRisk'];?></td>
  79. <td><?php echo $personnel['resolvedRisk'];?></td>
  80. <td><?php echo $personnel['pendingRisk'];?></td>
  81. <?php endif;?>
  82. </tr>
  83. <?php endforeach;?>
  84. <?php endforeach;?>
  85. </tbody>
  86. </table>
  87. <?php else:?>
  88. <div class="text-center px-2 py-8">
  89. <p>
  90. <span class="text-muted"><?php echo $lang->noData;?></span>
  91. </p>
  92. </div>
  93. <?php endif;?>
  94. </div>
  95. <?php
  96. rawContent();
  97. render();