m.task.html.php 2.8 KB

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