/** 
  * 关于我
  * @author Saki <*****@*****.**>
  * @date 2014-5-13上午10:31:10 
  * @version v1.0.0 
  */
 public function me()
 {
     //模型定义
     $info_model = new \Admin\Model\SelfInfoModel();
     $skill_model = new \Admin\Model\SelfSkillModel();
     $company_model = new \Admin\Model\SelfCompanyModel();
     $pro_model = new \Admin\Model\SelfProjectModel();
     //信息查询
     $map['admin_id'] = 1;
     //目前先写死
     /*基本信息*/
     $info = $info_model->where($map)->find();
     /*天赋技能*/
     $skill_list = $skill_model->where($map)->select();
     /*历史成就*/
     $company_list = $company_model->where($map)->select();
     /*首领击杀*/
     $project_list = $pro_model->where($map)->select();
     /**/
     $this->assign('info', $info);
     $this->assign('skill_list', $skill_list);
     $this->assign('company_list', $company_list);
     $this->assign('project_list', $project_list);
     $this->display();
 }
 /**
  * @todo: 修改项目信息
  * @author Saki <*****@*****.**>
  * @date 2015-1-6 下午7:08:04 
  * @version V1.0
  */
 public function UpdatePro()
 {
     $admin_info = $this->admin_info;
     $condition['id'] = $_GET['id'];
     $model = new \Admin\Model\SelfProjectModel();
     if (isset($_POST['Self'])) {
         $data = $model->updatePro($_POST['Self'], $_GET['id']);
         echo json_encode($data);
     } else {
         $map['admin_id'] = $admin_info['id'];
         $company_list = D('Admin/SelfCompany')->where($map)->select();
         $project = $model->where($condition)->find();
         $this->assign('project', $project);
         $this->assign('company_list', $company_list);
         $this->assign('action', 'update');
         $this->display('form_pro');
     }
 }