m.team.html.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * The team browse mobile view file of execution 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 execution
  9. * @version $Id
  10. * @link http://www.zentao.net
  11. */
  12. include "../../common/view/m.header.html.php";
  13. ?>
  14. <div class='heading'>
  15. <div class='title'>
  16. <strong><?php echo $lang->execution->team;?></strong>
  17. </div>
  18. </div>
  19. <section id='page' class='section list-with-pager'>
  20. <table class='table bordered'>
  21. <thead>
  22. <tr>
  23. <th><?php echo $lang->team->account;?></th>
  24. <th class='text-center w-140px'><?php echo $lang->team->join;?></th>
  25. <th class='text-center'><?php echo $lang->team->role;?></th>
  26. <th class='text-center'><?php echo $lang->team->totalHours;?></th>
  27. </tr>
  28. </thead>
  29. <?php $totalHours = 0;?>
  30. <?php foreach($teamMembers as $member):?>
  31. <tr class= 'text-center'>
  32. <?php $memberHours = $member->days * $member->hours;?>
  33. <?php $totalHours += $memberHours;?>
  34. <td class='text-left'><?php echo $member->realname;?></td>
  35. <td><?php echo substr($member->join, 2);?></td>
  36. <td><?php echo $member->role;?></td>
  37. <td><?php echo $memberHours . $lang->execution->workHour;?></td>
  38. </tr>
  39. <?php endforeach;?>
  40. <tr>
  41. <td colspan='4'><?php echo $lang->team->totalHours . ':' . "<strong>$totalHours{$lang->execution->workHour}</strong>";?></td>
  42. </tr>
  43. </table>
  44. </section>
  45. <?php include "../../common/view/m.footer.html.php"; ?>