x.browsereview.html.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * The browse review view file of attend module of RanZhi.
  4. *
  5. * @copyright Copyright 2009-2018 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
  6. * @license ZPL (http://zpl.pub/page/zplv12.html)
  7. * @author Gang Liu <liugang@cnezsoft.com>
  8. * @package attend
  9. * @version $Id$
  10. * @link http://www.ranzhi.org
  11. */
  12. ?>
  13. <?php include $app->getModuleRoot() . 'common/view/header.lite.html.php';?>
  14. <?php js::set('confirmReview', $lang->attend->confirmReview);?>
  15. <div class='panel xuanxuan-card'>
  16. <table class='table table-hover table-striped table-sorter table-data table-fixed text-center'>
  17. <thead>
  18. <tr class='text-center'>
  19. <th class='w-100px'><?php echo $lang->attend->account;?></th>
  20. <th class='w-100px'><?php echo $lang->attend->date;?></th>
  21. <th class='w-80px'><?php echo $lang->attend->manualIn;?></th>
  22. <th class='text-left'><?php echo $lang->attend->desc;?></th>
  23. <th class='w-100px'><?php echo $lang->actions;?></th>
  24. </tr>
  25. </thead>
  26. <?php foreach($attends as $attend):?>
  27. <?php if(!isset($users[$attend->account])) continue;?>
  28. <?php $user = $users[$attend->account];?>
  29. <tr>
  30. <td><?php echo $user->realname;?></td>
  31. <td><?php echo formatTime($attend->date, DT_DATE1)?></td>
  32. <td><?php echo substr($attend->manualIn, 0, 5)?></td>
  33. <td class='text-left' title='<?php echo $attend->desc;?>'><?php echo $attend->desc?></td>
  34. <td>
  35. <?php extCommonModel::printLink('oa.attend', 'review', "attendID={$attend->id}&status=pass", $lang->attend->reviewStatusList['pass'], "class='pass'")?>
  36. <?php extCommonModel::printLink('oa.attend', 'review', "attendID={$attend->id}&status=reject", $lang->attend->reviewStatusList['reject'], "data-toggle='modal'")?>
  37. </td>
  38. </tr>
  39. <?php endforeach;?>
  40. </table>
  41. <?php if(!$attends):?>
  42. <?php endif;?>
  43. </div>
  44. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>