public_action(); $where['uid'] = $this->uid; $urlarr['c'] = $_GET['c']; $urlarr['page'] = '{{page}}'; $pageurl = Url('member',$urlarr); $pageM = $this->MODEL('page'); $pages = $pageM->pageList('rebates',$where,$pageurl,$_GET['page']); if($pages['total'] > 0){ $where['orderby'] = 'id'; $where['limit'] = $pages['limit']; $lietouM = $this->MODEL('lietou'); $List = $lietouM->getRebatesList($where); } $this->yunset("rows",$List); $this->user_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']); } } ?>