m.view.html.php 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <?php
  2. /**
  3. * The mobile view file of execution module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2016 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
  6. * @license ZPL(http://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  7. * @author Fei Chen <chenfei@cnezsoft.com>
  8. * @package execution
  9. * @version $Id: index.html.php 3830 2016-05-18 09:34:17Z liugang $
  10. * @link http://www.zentao.net
  11. */
  12. include "../../common/view/m.header.html.php";
  13. ?>
  14. <div id='page' class='list-with-actions'>
  15. <div class='heading gray'>
  16. <div class='title'> <?php echo $lang->execution->view;?></div>
  17. <nav class='nav'><a class='btn primary' href='javascript:history.go(-1);'><?php echo $lang->goback;?></a></nav>
  18. </div>
  19. <div class='section no-margin'>
  20. <div class='outline'>
  21. <nav class="nav" data-display="" data-selector="a" data-show-single="true" data-active-class="active" data-animate="false">
  22. <a class="active" data-target="#legendDesc"><?php echo $lang->execution->desc?></a>
  23. <a data-target="#legendBasicInfo"><?php echo $lang->execution->basicInfo?></a>
  24. </nav>
  25. <div>
  26. <div class="display in" id="legendDesc">
  27. <div class='heading gray'>
  28. <div class='title'><strong><?php echo $lang->execution->desc?></strong></div>
  29. </div>
  30. <div class='article'>
  31. <?php echo $execution->desc;?>
  32. <div>
  33. <label class='strong'><?php echo $lang->execution->lblStats?></label>
  34. <?php printf($lang->execution->stats, $execution->totalHours, $execution->totalEstimate, $execution->totalConsumed, $execution->totalLeft, 10)?>
  35. </div>
  36. </div>
  37. <?php include '../../common/view/m.action.html.php';?>
  38. </div>
  39. <div class="display hidden" id="legendBasicInfo">
  40. <table class='table bordered table-detail'>
  41. <tr>
  42. <td class='w-100px'><?php echo $lang->execution->name;?></td>
  43. <td><?php echo $execution->name;?></td>
  44. </tr>
  45. <tr>
  46. <td><?php echo $lang->execution->code;?></td>
  47. <td><?php echo $execution->code;?></td>
  48. </tr>
  49. <tr>
  50. <td><?php echo $lang->execution->beginAndEnd;?></td>
  51. <td><?php echo $execution->begin . ' ~ ' . $execution->end;?></td>
  52. </tr>
  53. <tr>
  54. <td><?php echo $lang->execution->days;?></td>
  55. <td><?php echo $execution->days;?></td>
  56. </tr>
  57. <tr>
  58. <td><?php echo $lang->execution->type;?></td>
  59. <td><?php echo $lang->execution->typeList[$execution->type]; ?></td>
  60. </tr>
  61. <tr>
  62. <td><?php echo $lang->execution->status;?></td>
  63. <?php if(isset($execution->delay)):?>
  64. <td class='delay'><?php echo $lang->execution->delayed;?></td>
  65. <?php else:?>
  66. <td class='<?php echo $execution->status;?>'><?php $lang->show($lang->execution->statusList, $execution->status);?></td>
  67. <?php endif;?>
  68. </tr>
  69. <tr>
  70. <td><?php echo $lang->execution->PM;?></td>
  71. <td><?php echo zget($users, $execution->PM, $execution->PM);?></td>
  72. </tr>
  73. <tr>
  74. <td><?php echo $lang->execution->PO;?></td>
  75. <td><?php echo zget($users, $execution->PO, $execution->PO);?></td>
  76. </tr>
  77. <tr>
  78. <td><?php echo $lang->execution->QD;?></td>
  79. <td><?php echo zget($users, $execution->QD, $execution->QD);?></td>
  80. </tr>
  81. <tr>
  82. <td><?php echo $lang->execution->RD;?></td>
  83. <td><?php echo zget($users, $execution->RD, $execution->RD);?></td>
  84. </tr>
  85. <tr>
  86. <td><?php echo $lang->execution->products;?></td>
  87. <td>
  88. <?php
  89. foreach($products as $productID => $product)
  90. {
  91. if($product->type !== 'normal')
  92. {
  93. echo $product->name . '/' . $branchGroups[$productID][$product->branch] . "|";
  94. }
  95. else
  96. {
  97. echo $product->name . "|";
  98. }
  99. }
  100. ?>
  101. </td>
  102. </tr>
  103. <tr>
  104. <td><?php echo $lang->execution->acl;?></td>
  105. <td><?php echo $lang->execution->aclList[$execution->acl];?></td>
  106. </tr>
  107. <?php if($execution->acl == 'custom'):?>
  108. <tr>
  109. <td><?php echo $lang->execution->whitelist;?></td>
  110. <td>
  111. <?php
  112. $whitelist = explode(',', $execution->whitelist);
  113. foreach($whitelist as $groupID) if(isset($groups[$groupID])) echo $groups[$groupID] . '&nbsp;';
  114. ?>
  115. </td>
  116. </tr>
  117. <?php endif;?>
  118. </table>
  119. </div>
  120. </div>
  121. </div>
  122. </form>
  123. </div>
  124. <?php include "../../common/view/m.footer.html.php"; ?>