m.bug.html.php 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. /**
  3. * The bug mobile view file of user 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 user
  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. include "./m.featurebar.html.php";
  17. ?>
  18. <nav id='subMenu' class='menu nav gray'>
  19. <?php
  20. $that = zget($lang->user->thirdPerson, $user->gender);
  21. echo html::a(inlink('bug', "userID={$user->id}&type=assignedTo"), sprintf($lang->user->assignedTo, $that));
  22. echo html::a(inlink('bug', "userID={$user->id}&type=openedBy"), sprintf($lang->user->openedBy, $that));
  23. echo html::a(inlink('bug', "userID={$user->id}&type=resolvedBy"), sprintf($lang->user->resolvedBy, $that));
  24. echo html::a(inlink('bug', "userID={$user->id}&type=closedBy"), sprintf($lang->user->closedBy, $that));
  25. ?>
  26. <a class='moreSubMenu hidden' data-display='dropdown' data-placement='beside-bottom'><?php echo $lang->more;?></a>
  27. <div id='moreSubMenu' class='list dropdown-menu'></div>
  28. </nav>
  29. <section id='page' class='section list-with-pager'>
  30. <div class='box' data-page='<?php echo $pager->pageID ?>' data-refresh-url='<?php echo $this->createLink('user', 'bug', "userID={$user->id}&type=$type&orderBy=%s&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}"); ?>'>
  31. <table class='table bordered'>
  32. <thead>
  33. <tr>
  34. <th><?php echo $lang->bug->title;?> </th>
  35. <th class='text-center w-80px'><?php echo $lang->bug->status;?> </th>
  36. </tr>
  37. </thead>
  38. <?php foreach($bugs as $bug):?>
  39. <tr class='text-center' data-url='<?php echo $this->createLink('bug', 'view', "bugID={$bug->id}");?>' data-id='<?php echo $bug->id;?>'>
  40. <td class='text-left'><?php echo $bug->title;?></td>
  41. <td class='bug-<?php echo $bug->status?>'><?php echo zget($lang->bug->statusList, $bug->status);?></td>
  42. </tr>
  43. <?php endforeach;?>
  44. </table>
  45. </div>
  46. <nav class='nav justify pager'>
  47. <?php $pager->show($align = 'justify');?>
  48. </nav>
  49. </section>
  50. <script>
  51. $('#<?php echo $methodName?>' + 'Tab').addClass('active');
  52. $('#subMenu > a').removeClass('active').filter('[href*="<?php echo $type?>"]').addClass('active');
  53. </script>
  54. <?php include "../../common/view/m.footer.html.php"; ?>