'完全公开','2'=>'显示编号','3'=>'性别称呼'); $this -> yunset("nametype",$nametype); $this -> public_action(); $this -> yunset($this->MODEL('cache')->GetCache(array('user','city'))); $this -> user_tpl('info'); } //保存基本信息 function save_action(){ $resumeM = $this -> MODEL('resume'); $resume = $resumeM->getResumeInfo(array('uid'=>$this->uid)); $mData = array( 'moblie' => $_POST['telphone'], 'email' => $_POST['email'] ); $rData = array( 'name' => $_POST['name'], 'nametype' => $_POST['nametype'], 'sex' => $_POST['sex'], 'birthday' => $_POST['birthday'], 'edu' => $_POST['edu'], 'exp' => $_POST['exp'], 'telphone' => $_POST['telphone'], 'living' => $_POST['living'], 'email' => $_POST['email'], 'address' => $_POST['address'], 'height' => $_POST['height'], 'weight' => $_POST['weight'], 'nationality' => $_POST['nationality'], 'marriage' => $_POST['marriage'], 'domicile' => $_POST['domicile'], 'qq' => $_POST['qq'], 'homepage' => $_POST['homepage'], 'lastupdate' => time() ); if(!$resume['photo'] || ($resume['defphoto']==2 && $rData['sex']!=$resume['sex'])){ $logo = $resumeM->deflogo($rData); if($logo!=''){ $rData['photo'] = $logo; $rData['defphoto'] = 2; $rData['photo_status'] = 1; } } if($this->config['user_revise_state'] == 0){ $rData['state'] = 0; } $return = $resumeM->upResumeInfo(array('uid' => $this->uid), array('mData' => $mData, 'rData' => $rData, 'utype' => 'user', 'port' => 1)); $this->ACT_layer_msg($return['msg'],$return['errcode'],$return['url'],2,1); } //头像公开关闭设置 function phototype_action() { $ResumeM = $this->MODEL('resume'); $ResumeM->upResumeInfo(array('uid' => $this->uid), array('rData' => array('phototype' => intval($_POST['phototype'])))); $ResumeM->upInfo(array('uid' => $this->uid), array('eData' => array('phototype' => intval($_POST['phototype'])))); echo $_POST['phototype']; die(); } } ?>