1
0

mode_hrredundAction.php 493 B

12345678910111213141516171819202122
  1. <?php
  2. //离职申请
  3. class mode_hrredundClassAction extends inputAction{
  4. protected function savebefore($table, $arr, $id, $addbo)
  5. {
  6. $uid = $arr['uid'];
  7. if(m($table)->rows('id<>'.$id.' and `uid`='.$uid.' and `status`<>5')>0)return '您已申请过了';
  8. }
  9. protected function saveafter($table, $arr, $id, $addbo){
  10. }
  11. public function getuserinfoAjax()
  12. {
  13. $urs = m('admin')->getone($this->adminid,'ranking,workdate');
  14. $this->returnjson($urs);
  15. }
  16. }
粤ICP备19079148号