m.accessible.html.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /**
  3. * The task 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. $bodyClass = 'with-menu-top';
  13. include "../../common/view/m.header.html.php";
  14. ?>
  15. <nav id='menu' class='menu nav affix dock-top canvas'>
  16. <?php echo html::a($this->createLink('personnel', 'invest', "programID=$programID"), $lang->personnel->label->invest, '', "class='" . ($app->getMethodName() == 'invest' ? 'active' : '') . "'");?>
  17. <?php echo html::a($this->createLink('personnel', 'accessible', "programID=$programID"), $lang->personnel->label->accessible, '', "class='" . ($app->getMethodName() == 'accessible' ? 'active' : '') . "'");?>
  18. <?php echo html::a($this->createLink('personnel', 'whitelist', "programID=$programID"), $lang->personnel->label->whitelist, '', "class='" . ($app->getMethodName() == 'whitelist' ? 'active' : '') . "'");?>
  19. <a class='moreMenu hidden' data-display='dropdown' data-placement='beside-bottom'><?php echo $lang->more;?></a>
  20. <div id='moreMenu' class='list dropdown-menu'></div>
  21. </nav>
  22. <section id='page' class='section list-with-pager'>
  23. <?php $refreshUrl = $this->createLink('personnel', 'accessible', "programID=$programID&deptID=0&browseType=$browseType&param=$param&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}");?>
  24. <div class='box' data-page='<?php echo $pager->pageID;?>' data-refresh-url='<?php echo $refreshUrl;?>'>
  25. <table class='table bordered no-margin'>
  26. <thead>
  27. <tr>
  28. <th class='text-center'><?php echo $lang->personnel->department;?> </th>
  29. <th class='text-center w-80px'><?php echo $lang->personnel->realName;?> </th>
  30. <th class='text-center w-120px'><?php echo $lang->personnel->userName;?> </th>
  31. <th class='text-center w-80px'><?php echo $lang->personnel->job;?> </th>
  32. <th class='text-center w-50px'><?php echo $lang->personnel->genders;?> </th>
  33. </tr>
  34. </thead>
  35. <?php foreach($personnelList as $personnel):?>
  36. <tr class='text-center'>
  37. <td class='text-left'><?php echo zget($deptList, $personnel->dept);?></td>
  38. <td><?php echo $personnel->realname;?></td>
  39. <td class='text-left'><?php echo $personnel->account;?></td>
  40. <td><?php echo zget($lang->user->roleList, $personnel->role, '');?></td>
  41. <td><?php echo zget($lang->user->genderList, $personnel->gender, '');?></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. <?php include "../../common/view/m.footer.html.php"; ?>