예제 #1
0
파일: tag.php 프로젝트: cranefly/crane
 public function add()
 {
     $this->loadModel('admin/flink/flinkg', 'flinkg');
     $flinkg = $this->flinkg->search(FALSE);
     $this->setData('flinkg', $flinkg);
     parent::add();
 }
예제 #2
0
파일: info.php 프로젝트: cranefly/crane
 public function save()
 {
     $id = $this->getData('id');
     $data = $this->getData('data');
     //print_r($data);die;
     parent::save();
 }
예제 #3
0
파일: ad.php 프로젝트: cranefly/crane
 public function add()
 {
     $areaId = $this->getData('area_id');
     $area = $this->adarea->fields('area_id,area_type')->find($areaId);
     $this->setData('areaId', $areaId);
     $this->setData('areaType', $area['area_type']);
     parent::add();
 }
예제 #4
0
파일: category.php 프로젝트: cranefly/crane
 public function delete()
 {
     $cateId = $this->getData('id');
     //有内容不能删除
     if ($this->bindModel->haveInfo($cateId)) {
         $this->echoAjax(100, '分类下面有内容,不能删除');
     }
     //下面有子分类不能删除
     if ($this->bindModel->haveSonCate($cateId)) {
         $this->echoAjax(100, '分类下面有子分类,不能删除');
     }
     parent::delete();
 }
예제 #5
0
파일: adArea.php 프로젝트: cranefly/crane
 public function __construct()
 {
     parent::__construct();
 }
예제 #6
0
파일: module.php 프로젝트: cranefly/crane
 public function edit()
 {
     $this->setData('moduleType', $this->moduleType);
     parent::edit();
 }
예제 #7
0
파일: account.php 프로젝트: cranefly/crane
 public function add()
 {
     $ugroup = $this->userg->search(FALSE);
     $this->setData('ugroup', $ugroup);
     parent::add();
 }
예제 #8
0
파일: login.php 프로젝트: cranefly/crane
 public function __construct()
 {
     parent::__construct();
     $this->loadModel('admin/user/account', 'account');
 }
예제 #9
0
파일: flink.php 프로젝트: cranefly/crane
 public function add()
 {
     parent::add();
 }