예제 #1
0
 /**
  * @todo: 历史成就
  * @author Saki <*****@*****.**>
  * @date 2015-1-6 上午11:41:30 
  * @version V1.0
  */
 public function Company()
 {
     $model = new \Admin\Model\SelfCompanyModel();
     $admin_info = $this->admin_info;
     $action = $_GET['action'];
     if ($_POST['Self']) {
         if ($action == 'create') {
             $model->createCompany($_POST['Self'], $admin_info);
         } else {
             if ($action == 'update') {
                 $model->updateCompany($_POST['Self']);
             }
         }
     }
     $map['admin_id'] = $admin_info['id'];
     $list = $model->where($map)->select();
     $this->assign('list', $list);
     $this->display();
 }
예제 #2
0
 /** 
  * 关于我
  * @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();
 }