scrumproductblock.html.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /**
  3. * The product overview block view file of block module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(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 block
  9. * @version $Id$
  10. * @link https://www.zentao.net
  11. */
  12. ?>
  13. <?php if(empty($products)): ?>
  14. <div class='empty-tip'><?php echo $lang->block->emptyTip;?></div>
  15. <?php else:?>
  16. <div class="panel-body has-table scrollbar-hover">
  17. <table class='table table-borderless table-hover table-fixed table-fixed-head tablesorter block-projects tablesorter'>
  18. <thead>
  19. <tr class='text-center'>
  20. <th class='c-num'><?php echo $lang->block->productName;?></th>
  21. <th class='c-num'><?php echo $lang->block->totalStory;?></th>
  22. <th class='c-num'><?php echo $lang->block->totalBug;?></th>
  23. <th class='c-num'><?php echo $lang->block->totalRelease;?></th>
  24. </tr>
  25. </thead>
  26. <tbody class="text-center">
  27. <?php $id = 0; ?>
  28. <?php foreach($products as $id => $name):?>
  29. <?php
  30. $appid = isset($_GET['entry']) ? "class='app-btn' data-id='{$this->get->entry}'" : "";
  31. $viewLink = $this->createLink('product', 'browse', 'productID=' . $id);
  32. ?>
  33. <tr class='text-center' <?php echo $appid?>>
  34. <td class="c-num text-ellipsis" title="<?php echo $name;?>"><?php echo html::a($viewLink, $name);?></td>
  35. <td class="c-num"><?php echo empty($stories[$id]) ? 0: $stories[$id];?></td>
  36. <td class="c-num"><?php echo empty($bugs[$id]) ? 0: $bugs[$id];?></td>
  37. <td class="c-num"><?php echo empty($releases[$id]) ? 0: $releases[$id];?></td>
  38. </tr>
  39. <?php endforeach;?>
  40. </tbody>
  41. </table>
  42. </div>
  43. <?php endif;?>