browsereview.html.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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['personal'] as $type => $name)
  24. {
  25. $class = strtolower($type) == $methodName ? "class='active'" : '';
  26. if(common::hasPriv('attend', $type)) echo "<li id='$type' $class>" . html::a($this->createLink('attend', $type), $name) . '</li>';
  27. }
  28. ?>
  29. </ul>
  30. </div>
  31. <?php js::set('confirmReview', $lang->attend->confirmReview);?>
  32. <?php $batchReview = commonModel::hasPriv('attend', 'batchReview');?>
  33. <div class='panel'>
  34. <?php if($batchReview):?>
  35. <form id='batchReviewForm' method='post' action='<?php echo inlink('batchReview', 'status=pass');?>'>
  36. <?php endif;?>
  37. <table class='table table-hover table-striped table-sorter table-data table-fixed text-center'>
  38. <thead>
  39. <tr class='text-center'>
  40. <th class='w-80px'><?php echo $lang->attend->id;?></th>
  41. <th class='w-100px'><?php echo $lang->user->dept;?></th>
  42. <th class='w-100px'><?php echo $lang->attend->account;?></th>
  43. <th class='w-100px'><?php echo $lang->attend->date;?></th>
  44. <th class='w-80px'><?php echo $lang->attend->manualIn;?></th>
  45. <th class='w-80px'><?php echo $lang->attend->manualOut;?></th>
  46. <th class='w-100px'><?php echo $lang->attend->reason;?></th>
  47. <th><?php echo $lang->attend->desc;?></th>
  48. <th class='w-100px'><?php echo $lang->attend->status;?></th>
  49. <th class='w-100px'><?php echo $lang->actions;?></th>
  50. </tr>
  51. </thead>
  52. <?php foreach($attends as $attend):?>
  53. <?php if(!isset($users[$attend->account])) continue;?>
  54. <?php $user = $users[$attend->account];?>
  55. <tr>
  56. <td>
  57. <?php if($batchReview):?>
  58. <label class='checkbox-inline'><input type='checkbox' name='attendIDList[]' value='<?php echo $attend->id;?>'/> <?php echo $attend->id;?></label>
  59. <?php else:?>
  60. <?php echo $attend->id;?>
  61. <?php endif;?>
  62. </td>
  63. <td><?php echo zget($deptList, $user->dept, '');?></td>
  64. <td><?php echo $user->realname;?></td>
  65. <td><?php echo formatTime($attend->date, DT_DATE1)?></td>
  66. <td><?php echo substr($attend->manualIn, 0, 5)?></td>
  67. <td><?php echo substr($attend->manualOut, 0, 5)?></td>
  68. <td><?php echo zget($lang->attend->reasonList, $attend->reason)?></td>
  69. <td><?php echo $attend->desc?></td>
  70. <td><?php echo zget($lang->attend->statusList, $attend->status)?></td>
  71. <td>
  72. <?php extCommonModel::printLink('oa.attend', 'review', "attendID={$attend->id}&status=pass", $lang->attend->reviewStatusList['pass'], "class='pass'")?>
  73. <?php extCommonModel::printLink('oa.attend', 'review', "attendID={$attend->id}&status=reject", $lang->attend->reviewStatusList['reject'], "data-toggle='modal'")?>
  74. </td>
  75. </tr>
  76. <?php endforeach;?>
  77. </table>
  78. <?php if($attends && $batchReview):?>
  79. <?php endif?>
  80. <?php if(!$attends):?>
  81. <?php endif;?>
  82. <?php if($batchReview):?>
  83. </form>
  84. <?php endif;?>
  85. </div>
  86. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>