m.bug.html.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. /**
  3. * The bug browse 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
  10. * @link http://www.zentao.net
  11. */
  12. include "../../common/view/m.header.html.php";
  13. ?>
  14. <div class='heading'>
  15. <div class='title'>
  16. <a id='sortTrigger' class='text-right sort-trigger' data-display data-target='#sortPanel' data-backdrop='true'><i class='icon icon-sort'></i>&nbsp;<span class='sort-name'><?php echo $lang->sort ?></span></a>
  17. </div>
  18. <nav class='nav'>
  19. <a data-display='modal' data-placement='bottom' data-remote='<?php echo $this->createLink('bug', 'create', "productID=$productID&branch=$branchID&extra=executionID=$execution->id");?>' class='btn primary'><i class='icon icon-plus'> </i> &nbsp;&nbsp;<?php echo $lang->bug->create;;?></a>
  20. </nav>
  21. </div>
  22. <section id='page' class='section list-with-pager'>
  23. <?php $refreshUrl = $this->createLink('execution', 'bug', "executionID={$execution->id}&orderBy=%s&build=$buildID&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}");?>
  24. <div class='box' data-page='<?php echo $pager->pageID;?>' data-refresh-url='<?php echo $refreshUrl;?>'>
  25. <table class='table bordered no-margin'>
  26. <thead>
  27. <tr>
  28. <th><?php echo $lang->bug->title;?> </th>
  29. <th class='text-center w-70px'><?php echo $lang->statusAB;?> </th>
  30. </tr>
  31. </thead>
  32. <?php foreach($bugs as $bug):?>
  33. <tr class='text-center' data-url='<?php echo $this->createLink('bug', 'view', "bugID={$bug->id}")?>' data-id='<?php echo $bug->id;?>'>
  34. <td class='text-left'><?php echo $bug->title;?></td>
  35. <td><?php echo zget($lang->bug->statusList, $bug->status);?></td>
  36. </tr>
  37. <?php endforeach;?>
  38. </table>
  39. </div>
  40. <nav class='nav justify pager'>
  41. <?php $pager->show($align = 'justify');?>
  42. </nav>
  43. </section>
  44. <div class='list sort-panel hidden affix enter-from-bottom layer' id='sortPanel'>
  45. <?php
  46. $vars = "executionID={$execution->id}&orderBy=%s&build=$buildID&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}";
  47. $sortOrders = array('id', 'pri', 'title', 'assignedTo', 'type', 'status', 'openedDate', 'openedBy', 'resolvedBy', 'resolution');
  48. foreach($sortOrders as $sortOrder)
  49. {
  50. commonModel::printOrderLink($sortOrder, $orderBy, $vars, '<i class="icon icon-sort-indicator"></i>' . $lang->bug->{$sortOrder});
  51. }
  52. ?>
  53. </div>
  54. <?php include "../../common/view/m.footer.html.php"; ?>