m.browsereview.html.php 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. /**
  3. * The browse review mobile view file of attend module of ZDOO.
  4. *
  5. * @copyright Copyright 2009-2016 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
  6. * @license ZPL (http://zpl.pub/page/zplv12.html)
  7. * @author Tingting Dai <daitingting@xirangit.com>
  8. * @package attend
  9. * @version $Id
  10. * @link http://www.zdoo.com
  11. */
  12. if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}
  13. include "../../common/view/m.header.html.php";?>
  14. <style>.align-middle td{vertical-align: middle;}</style>
  15. <section id='page' class='section list-with-pager'>
  16. <?php $refreshUrl = $this->createLink('attend', 'browsereview');?>
  17. <div class='box' data-refresh-url='<?php echo $refreshUrl;?>'>
  18. <table class='table bordered'>
  19. <thead>
  20. <tr>
  21. <th class='w-70px text-center'><?php echo $lang->attend->account;?></th>
  22. <th class='text-center'><?php echo $lang->attend->manualIn;?></th>
  23. <th class='text-center'><?php echo $lang->attend->status;?></th>
  24. <th class='w-120px text-center'><?php echo $lang->actions;?></th>
  25. </tr>
  26. </thead>
  27. <?php foreach($attends as $attend):?>
  28. <?php if(!isset($users[$attend->account])) continue;?>
  29. <?php $user = $users[$attend->account];?>
  30. <tr class='text-center align-middle' data-id='<?php echo $attend->id;?>'>
  31. <td><?php echo $user->realname;?></td>
  32. <td><?php echo substr($attend->manualIn, 0, 5);?></td>
  33. <td><?php echo zget($lang->attend->statusList, $attend->status);?></td>
  34. <td>
  35. <?php
  36. $canReview = $this->attend->isClickable($attend, 'review');
  37. if($canReview)
  38. {
  39. echo "<a class='btn btn-xs success' data-remote='" . inlink('review', "id={$attend->id}&status=pass") . "' data-display='ajaxAction' data-confirm='{$lang->attend->confirmReview['pass']}' data-locate='self'>{$lang->attend->reviewStatusList['pass']}</a>";
  40. echo "<a class='btn btn-xs warning' data-remote='" . inlink('review', "id={$attend->id}&status=reject") . "' data-display='modal' data-placement='bottom'>{$lang->attend->reviewStatusList['reject']}</a>";
  41. }
  42. ?>
  43. </td>
  44. </tr>
  45. <?php endforeach;?>
  46. </table>
  47. </div>
  48. </section>
  49. <?php include "../../common/view/m.footer.html.php";?>