m.view.html.php 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <?php
  2. /**
  3. * The view mobile view file of product module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2015 禅道软件(青岛)有限公司(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 Yidong Wang <yidong@cnezsoft.com>
  8. * @package product
  9. * @version $Id$
  10. * @link http://www.zentao.net
  11. */
  12. ?>
  13. <?php include '../../common/view/m.header.html.php';?>
  14. <div id='page' class='list-with-actions'>
  15. <div class='heading'>
  16. <div class='title'>
  17. <span class="prefix"> <strong><?php echo $product->id;?></strong></span>
  18. <strong><?php echo $product->name;?></strong>
  19. </div>
  20. </div>
  21. <div class='section no-margin'>
  22. <div class="outline">
  23. <nav class="nav" data-display="" data-selector="a" data-show-single="true" data-active-class="active" data-animate="false">
  24. <a class='active' data-target="#desc"><?php echo $lang->product->desc?></a>
  25. <a data-target="#basicInfo"><?php echo $lang->product->basicInfo?></a>
  26. <a data-target="#otherInfo"><?php echo $lang->product->otherInfo?></a>
  27. </nav>
  28. <div>
  29. <div class="display in" id="desc">
  30. <div class='heading gray'>
  31. <div class='title'><strong><?php echo $lang->product->desc?></strong></div>
  32. </div>
  33. <div class='article'><?php echo $product->desc?></div>
  34. <?php include '../../common/view/m.action.html.php';?>
  35. </div>
  36. <div class="display hidden?>" id="basicInfo">
  37. <table class='table bordered table-detail'>
  38. <tr>
  39. <th class='w-100px'><?php echo $lang->product->name;?></th>
  40. <td <?php if($product->deleted) echo "class='deleted text-danger'";?>><strong><?php echo $product->name;?></strong></td>
  41. </tr>
  42. <tr>
  43. <th><?php echo $lang->product->code;?></th>
  44. <td><?php echo $product->code;?></td>
  45. </tr>
  46. <tr>
  47. <th><?php echo $lang->product->PO;?></th>
  48. <td><?php echo zget($users, $product->PO);?></td>
  49. </tr>
  50. <tr>
  51. <th><?php echo $lang->product->QD;?></th>
  52. <td><?php echo zget($users, $product->QD);?></td>
  53. </tr>
  54. <tr>
  55. <th><?php echo $lang->product->RD;?></th>
  56. <td><?php echo zget($users, $product->RD);?></td>
  57. </tr>
  58. <tr>
  59. <th><?php echo $lang->product->type;?></th>
  60. <td><?php echo $lang->product->typeList[$product->type];?></td>
  61. </tr>
  62. <tr>
  63. <th><?php echo $lang->product->status;?></th>
  64. <td class='product-<?php echo $product->status?>'><?php echo $lang->product->statusList[$product->status];?></td>
  65. </tr>
  66. <tr>
  67. <th><?php echo $lang->story->openedBy?></th>
  68. <td><?php echo zget($users, $product->createdBy);?></td>
  69. </tr>
  70. <tr>
  71. <th><?php echo $lang->story->openedDate?></th>
  72. <td><?php echo $product->createdDate;?></td>
  73. </tr>
  74. <tr>
  75. <th><?php echo $lang->product->acl;?></th>
  76. <td><?php echo $lang->product->aclList[$product->acl];?></td>
  77. </tr>
  78. <?php if($product->acl == 'custom'):?>
  79. <tr>
  80. <th><?php echo $lang->product->whitelist;?></th>
  81. <td>
  82. <?php
  83. $whitelist = explode(',', $product->whitelist);
  84. foreach($whitelist as $groupID) if(isset($groups[$groupID])) echo $groups[$groupID] . '&nbsp;';
  85. ?>
  86. </td>
  87. </tr>
  88. <?php endif;?>
  89. </table>
  90. </div>
  91. <div class="display hidden" id="otherInfo">
  92. <table class='table bordered table-detail'>
  93. <tr>
  94. <th class='w-100px'><?php echo $lang->story->statusList['active'] . $lang->story->common;?></th>
  95. <td class='strong'><?php echo $product->stories['active']?></td>
  96. </tr>
  97. <tr>
  98. <th><?php echo $lang->story->statusList['changed'] . $lang->story->common;?></th>
  99. <td><?php echo $product->stories['changed']?></td>
  100. </tr>
  101. <tr>
  102. <th><?php echo $lang->story->statusList['draft'] . $lang->story->common;?></th>
  103. <td><?php echo $product->stories['draft']?></td>
  104. </tr>
  105. <tr>
  106. <th><?php echo $lang->story->statusList['closed'] . $lang->story->common;?></th>
  107. <td><?php echo $product->stories['closed']?></td>
  108. </tr>
  109. <tr>
  110. <th><?php echo $lang->product->plans?></th>
  111. <td><?php echo $product->plans?></td>
  112. </tr>
  113. <tr>
  114. <th><?php echo $lang->product->projects?></th>
  115. <td><?php echo $product->projects?></td>
  116. </tr>
  117. <tr>
  118. <th><?php echo $lang->product->executions?></th>
  119. <td><?php echo $product->executions?></td>
  120. </tr>
  121. <tr>
  122. <th><?php echo $lang->product->bugs?></th>
  123. <td><?php echo $product->bugs?></td>
  124. </tr>
  125. <tr>
  126. <th><?php echo $lang->product->docs?></th>
  127. <td><?php echo $product->docs?></td>
  128. </tr>
  129. <tr>
  130. <th><?php echo $lang->product->cases?></th>
  131. <td><?php echo $product->cases?></td>
  132. </tr>
  133. <tr>
  134. <th><?php echo $lang->product->builds?></th>
  135. <td><?php echo $product->builds?></td>
  136. </tr>
  137. <tr>
  138. <th><?php echo $lang->product->releases?></th>
  139. <td><?php echo $product->releases?></td>
  140. </tr>
  141. </table>
  142. </div>
  143. </div>
  144. </div>
  145. </div>
  146. </div>
  147. <?php include '../../common/view/m.footer.html.php';?>