MODEL('tpl'); $uid = $this->uid; $where['status'] = 1; $where['orderby'] = array('id,desc'); $rows = $TplM -> getResumetplList($where); $statis = $this->member_satic(); if($statis['paytpls']){ $paytpls=@explode(',',$statis['paytpls']); $this->yunset("paytpls",$paytpls); } $this->yunset("rows",$rows); $this->public_action(); $this->user_tpl('resumetpl'); } //购买简历模板 function pay_action(){ $tplM = $this -> MODEL('tpl'); $id = intval($_GET['id']); $return = $tplM -> payResumetpl(array('id'=>$id,'uid'=>$this->uid)); $this -> layer_msg($return['msg'],$return['errcode'],0,"index.php?c=resumetpl"); } function settpl_action(){ $tplM = $this -> MODEL('tpl'); $id = intval($_GET['id']); $return = $tplM -> setResumetpl(array('id'=>$id,'uid'=>$this->uid)); $this -> layer_msg($return['msg'],$return['errcode'],0,"index.php?c=resumetpl"); } } ?>