MODEL('lietou'); $where['uid'] = $this->uid; $urlarr['c'] = "rebates"; $urlarr['page'] = "{{page}}"; $pageurl = Url('member',$urlarr); $pageM = $this -> MODEL('page'); $pages = $pageM -> pageList('rebates',$where,$pageurl,$_GET['page']); $where['limit'] = $pages['limit']; $where['orderby'] = array('id,desc'); $rows = $LietoutM->getRebatesList($where); $this->yunset("rows",$rows); $this->train_satic(); $this->train_tpl('rebates'); } function del_action(){ $id = (int)$_GET['id']; $ltM = $this -> MODEL('lietou'); $result = $ltM -> delRebates($id,array('uid'=>$this->uid,'usertype'=>$this->usertype,'type'=>1));//type==1我推荐的人才 $this -> layer_msg($result['msg'],$result['errcode'], $result['layertype'], $_SERVER['HTTP_REFERER']); } } ?>