browsereview.html.php 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <?php
  2. /**
  3. * The personal 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 chujilu <chujilu@cnezsoft.com>
  8. * @package attend
  9. * @version $Id$
  10. * @link http://www.ranzhi.org
  11. */
  12. ?>
  13. <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
  14. <style>
  15. #menuActions{float:right !important; margin-top: -60px !important;}
  16. .input-group-required > .required::after, .required-wrapper.required::after {top:12px !important;}
  17. .modal-body .table {margin-bottom:0px !important;}
  18. </style>
  19. <div id='featurebar'>
  20. <ul class='nav'>
  21. <?php
  22. $methodName = strtolower($this->app->getMethodName());
  23. foreach($lang->attend->featurebar as $key => $menu)
  24. {
  25. if(is_string($menu)) $link = $menu;
  26. if(is_array($menu)) $link = $menu['link'];
  27. list($name, $currentModule, $currentMethod, $params) = explode('|', $link);
  28. $class = strtolower($key) == $methodName ? "class='active'" : '';
  29. if(isset($menu['alias'])) $class = strpos(strtolower($menu['alias']), strtolower($key)) !== false ? "class='active'" : $class;
  30. if(common::hasPriv($currentModule, $currentMethod)) echo "<li id='$key' $class>" . html::a($this->createLink($currentModule, $currentMethod, $params), $name) . '</li>';
  31. }
  32. ?>
  33. </ul>
  34. </div>
  35. <?php js::set('confirmReview', $lang->attend->confirmReview);?>
  36. <?php $batchReview = commonModel::hasPriv('attend', 'batchReview');?>
  37. <div class='panel'>
  38. <?php if($batchReview):?>
  39. <form id='batchReviewForm' method='post' action='<?php echo inlink('batchReview', 'status=pass');?>'>
  40. <?php endif;?>
  41. <table class='table table-hover table-striped table-sorter table-data table-fixed text-center'>
  42. <thead>
  43. <tr class='text-center'>
  44. <th class='w-80px'><?php echo $lang->attend->id;?></th>
  45. <th class='w-100px'><?php echo $lang->user->dept;?></th>
  46. <th class='w-100px'><?php echo $lang->attend->account;?></th>
  47. <th class='w-100px'><?php echo $lang->attend->date;?></th>
  48. <th class='w-80px'><?php echo $lang->attend->manualIn;?></th>
  49. <th class='w-80px'><?php echo $lang->attend->manualOut;?></th>
  50. <th class='w-100px'><?php echo $lang->attend->reason;?></th>
  51. <th><?php echo $lang->attend->desc;?></th>
  52. <th class='w-100px'><?php echo $lang->attend->status;?></th>
  53. <th class='w-100px'><?php echo $lang->actions;?></th>
  54. </tr>
  55. </thead>
  56. <?php foreach($attends as $attend):?>
  57. <?php if(!isset($users[$attend->account])) continue;?>
  58. <?php $user = $users[$attend->account];?>
  59. <tr>
  60. <td>
  61. <?php if($batchReview):?>
  62. <label class='checkbox-inline'><input type='checkbox' name='attendIDList[]' value='<?php echo $attend->id;?>'/> <?php echo $attend->id;?></label>
  63. <?php else:?>
  64. <?php echo $attend->id;?>
  65. <?php endif;?>
  66. </td>
  67. <td><?php echo zget($deptList, $user->dept, '');?></td>
  68. <td><?php echo $user->realname;?></td>
  69. <td><?php echo formatTime($attend->date, DT_DATE1)?></td>
  70. <td><?php echo substr($attend->manualIn, 0, 5)?></td>
  71. <td><?php echo substr($attend->manualOut, 0, 5)?></td>
  72. <td><?php echo zget($lang->attend->reasonList, $attend->reason)?></td>
  73. <td><?php echo $attend->desc?></td>
  74. <td><?php echo zget($lang->attend->statusList, $attend->status)?></td>
  75. <td>
  76. <?php extCommonModel::printLink('oa.attend', 'review', "attendID={$attend->id}&status=pass", $lang->attend->reviewStatusList['pass'], "class='pass'")?>
  77. <?php extCommonModel::printLink('oa.attend', 'review', "attendID={$attend->id}&status=reject", $lang->attend->reviewStatusList['reject'], "data-toggle='modal'")?>
  78. </td>
  79. </tr>
  80. <?php endforeach;?>
  81. </table>
  82. <?php if($attends && $batchReview):?>
  83. <?php endif?>
  84. <?php if(!$attends):?>
  85. <?php endif;?>
  86. <?php if($batchReview):?>
  87. </form>
  88. <?php endif;?>
  89. </div>
  90. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>