issue.html.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. /**
  3. * The risk view file of dashboard 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 Yuchun Li <liyuchun@cnezsoft.com>
  8. * @package dashboard
  9. * @version $Id: risk.html.php 4771 2021-01-13 14:18:02Z $
  10. * @link https://www.zentao.net
  11. */
  12. ?>
  13. <?php include '../../common/view/header.html.php';?>
  14. <?php include '../../common/view/tablesorter.html.php';?>
  15. <?php include './featurebar.html.php';?>
  16. <div id='mainContent'>
  17. <nav id='contentNav'>
  18. <ul class='nav nav-default'>
  19. <?php
  20. $that = zget($lang->user->thirdPerson, $user->gender);
  21. $active = $type == 'assignedTo' ? 'active' : '';
  22. echo "<li class='$active'>" . html::a(inlink('issue', "userID={$user->id}&type=assignedTo"), sprintf($lang->user->assignedTo, $that)) . "</li>";
  23. $active = $type == 'createdBy' ? 'active' : '';
  24. echo "<li class='$active'>" . html::a(inlink('issue', "userID={$user->id}&type=createdBy"), sprintf($lang->user->openedBy, $that)) . "</li>";
  25. $active = $type == 'closedBy' ? 'active' : '';
  26. echo "<li class='$active'>" . html::a(inlink('issue', "userID={$user->id}&type=closedBy"), sprintf($lang->user->closedBy, $that)) . "</li>";
  27. ?>
  28. </ul>
  29. </nav>
  30. <div class='main-table'>
  31. <table class="table has-sort-head table-fixed" id='issuetable'>
  32. <?php $vars = "userID={$user->id}&type=$type&orderBy=%s&recTotal=$pager->recTotal&recPerPage=$pager->recPerPage&pageID=$pager->pageID"; ?>
  33. <thead>
  34. <tr>
  35. <th class="c-id w-50px"><?php echo common::printOrderLink('id', $orderBy, $vars, $lang->idAB);?></th>
  36. <th class="w-80px"><?php echo $lang->issue->type;?></th>
  37. <th style="width:auto"><?php echo $lang->issue->title;?></th>
  38. <th class="w-70px"><?php echo $lang->issue->severity;?></th>
  39. <th class="w-60px"><?php echo $lang->issue->pri;?></th>
  40. <th class="w-80px"><?php echo $lang->issue->owner;?></th>
  41. <th class="w-70px"><?php echo $lang->issue->status;?></th>
  42. <th class="w-100px"><?php echo $lang->issue->createdDate;?></th>
  43. </tr>
  44. </thead>
  45. <tbody>
  46. <?php foreach($issues as $issue):?>
  47. <tr>
  48. <td class="c-id"><?php printf('%03d', $issue->id);?></td>
  49. <td title="<?php echo zget($lang->issue->typeList, $issue->type);?>"><?php echo zget($lang->issue->typeList, $issue->type);?></td>
  50. <td class="text-ellipsis" title="<?php echo $issue->title;?>"><?php echo html::a($this->createLink('issue', 'view', "id=$issue->id", '', '', $issue->project), $issue->title, '', "data-app='project'");?></td>
  51. <td class='severity-issue severity-<?php echo $issue->severity;?>' title="<?php echo zget($lang->issue->severityList, $issue->severity);?>"><?php echo zget($lang->issue->severityList, $issue->severity);?></td>
  52. <td title="<?php echo $issue->pri;?>" class="c-pri text-center"><span class="label-pri <?php echo 'label-pri-' . $issue->pri;?>"><?php echo $issue->pri;?></span></td>
  53. <td title="<?php echo zget($users, $issue->owner);?>"><?php echo zget($users, $issue->owner);?></td>
  54. <td class="status-issue status-<?php echo $issue->status;?>" title="<?php echo zget($lang->issue->statusList, $issue->status);?>"><?php echo zget($lang->issue->statusList, $issue->status);?></td>
  55. <?php $issue->createdDate = substr($issue->createdDate, 0, 10)?>
  56. <td title="<?php echo $issue->createdDate;?>"><?php echo $issue->createdDate;?></td>
  57. </tr>
  58. <?php endforeach;?>
  59. </tbody>
  60. </table>
  61. <?php if($issues):?>
  62. <div class="table-footer"><?php $pager->show('right', 'pagerjs');?></div>
  63. <?php endif;?>
  64. </div>
  65. </div>
  66. <?php include '../../common/view/footer.html.php';?>