m.bug.html.php 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php
  2. /**
  3. * The bug browse mobile view file of my 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 my
  9. * @version $Id: index.html.php 3830 2016-05-18 09:34:17Z liugang $
  10. * @link http://www.zentao.net
  11. */
  12. ?>
  13. <?php
  14. $bodyClass = 'with-menu-top';;
  15. include "../../common/view/m.header.html.php";
  16. ?>
  17. <nav id='menu' class='menu nav affix dock-top canvas'>
  18. <?php
  19. echo html::a(inlink('bug', "type=assignedTo"), $lang->bug->assignToMe);
  20. echo html::a(inlink('bug', "type=openedBy"), $lang->bug->openedByMe);
  21. echo html::a(inlink('bug', "type=resolvedBy"), $lang->bug->resolvedByMe);
  22. echo html::a(inlink('bug', "type=closedBy"), $lang->bug->closedByMe);
  23. ?>
  24. <a class='moreMenu hidden' data-display='dropdown' data-placement='beside-bottom'><?php echo $lang->more;?></a>
  25. <div id='moreMenu' class='list dropdown-menu'></div>
  26. </nav>
  27. <div class='heading'>
  28. <div class='title'>
  29. <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>
  30. </div>
  31. </div>
  32. <section id='page' class='section list-with-actions list-with-pager'>
  33. <?php $refreshUrl = $this->createLink('my', 'bug', "type={$type}&orderBy=$orderBy&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}");?>
  34. <div class='box' data-page='<?php echo $pager->pageID;?>' data-refresh-url='<?php echo $refreshUrl;?>'>
  35. <table class='table bordered'>
  36. <thead>
  37. <tr>
  38. <th><?php echo $lang->bug->title;?> </th>
  39. <th class='text-center w-80px'><?php echo $lang->bug->status;?> </th>
  40. </tr>
  41. </thead>
  42. <?php foreach($bugs as $bug):?>
  43. <tr class='text-center' data-url='<?php echo $this->createLink('bug', 'view', "bugID={$bug->id}");?>' data-id='<?php echo $bug->id;?>'>
  44. <td class='text-left'><?php echo $bug->title;?></td>
  45. <td class='bug-<?php echo $bug->status?>'><?php echo zget($lang->bug->statusList, $bug->status);?></td>
  46. </tr>
  47. <?php endforeach;?>
  48. </table>
  49. </div>
  50. <nav class='nav justify pager'>
  51. <?php $pager->show($align = 'justify');?>
  52. </nav>
  53. </section>
  54. <div class='list sort-panel hidden affix enter-from-bottom layer' id='sortPanel'>
  55. <?php
  56. $vars = "type={$type}&orderBy=%s&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}";
  57. $sortOrders = array('id', 'pri', 'title', 'assignedTo', 'type', 'status', 'openedDate', 'openedBy', 'resolvedBy', 'resolution');
  58. foreach ($sortOrders as $sortOrder)
  59. {
  60. commonModel::printOrderLink($sortOrder, $orderBy, $vars, '<i class="icon icon-sort-indicator"></i>' . ($lang->bug->{$sortOrder}));
  61. }
  62. ?>
  63. </div>
  64. <script>
  65. $('#menu > a').removeClass('active').filter('[href*="<?php echo $type ?>"]').addClass('active');
  66. </script>
  67. <?php include "../../common/view/m.footer.html.php"; ?>