m.bug.html.php 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php
  2. /**
  3. * The browse mobile view file of bug 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 bug
  9. * @version $Id$
  10. * @link http://www.zentao.net
  11. */
  12. ?>
  13. <?php include '../../common/view/m.header.html.php';?>
  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. </div>
  19. <section id='page' class='section list-with-pager'>
  20. <?php $refreshUrl = $this->createLink('product', 'bug', http_build_query($this->app->getParams()));?>
  21. <div class='box' data-page='<?php echo $pager->pageID ?>' data-refresh-url='<?php echo $refreshUrl ?>'>
  22. <table class='table bordered no-margin'>
  23. <thead>
  24. <tr>
  25. <th><?php echo $lang->bug->title;?></th>
  26. <th class='w-80px text-center'><?php echo $lang->bug->status;?></th>
  27. </tr>
  28. </thead>
  29. <?php foreach($bugs as $bug):?>
  30. <tr class='text-center' data-url='<?php echo $this->createLink('bug', 'view', "bugID={$bug->id}")?>' data-id='<?php echo$bug->id;?>'>
  31. <td class='text-left'>
  32. <?php
  33. $class = 'confirm' . $bug->confirmed;
  34. echo "<span class='$class'>[{$lang->bug->confirmedList[$bug->confirmed]}]</span> ";
  35. ?>
  36. <?php echo "<span style='color:$bug->color'>" . $bug->title . '</span>';?>
  37. </td>
  38. <td class='bug-<?php echo $bug->status?>'><?php echo zget($lang->bug->statusList, $bug->status);?></td>
  39. </tr>
  40. <?php endforeach;?>
  41. </table>
  42. </div>
  43. <nav class='nav justified pager'>
  44. <?php $pager->show($align = 'justify');?>
  45. </nav>
  46. </section>
  47. <div class='list sort-panel hidden affix enter-from-bottom layer' id='sortPanel'>
  48. <?php
  49. $vars = "productID=$productID&branch=$branch&browseType=$browseType&param=$param&orderBy=%s&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}";
  50. $sortOrders = array('id', 'severity', 'pri', 'title', 'status', 'openedBy', 'openedDate', 'deadline', 'assignedTo', 'resolvedBy', 'resolution');
  51. foreach ($sortOrders as $order)
  52. {
  53. commonModel::printOrderLink($order, $orderBy, $vars, '<i class="icon icon-sort-indicator"></i>' . ($lang->bug->{$order}));
  54. }
  55. ?>
  56. </div>
  57. <script>
  58. $(function()
  59. {
  60. $('#<?php echo $browseType;?>Tab').addClass('active');
  61. <?php if($config->global->flow != 'full'):?>
  62. $('#appnav a').removeClass('active');
  63. $("#appnav a[href*='<?php echo $browseType?>']").addClass('active');
  64. <?php endif;?>
  65. })
  66. </script>
  67. <?php include '../../common/view/m.footer.html.php';?>