public function __construct()
 {
     parent::__construct();
     R('Tool/Tool/checkLogin');
     $html['open'] = MODULE_NAME;
     $this->assign('html', $html);
 }
 public function __construct()
 {
     parent::__construct();
     $this->ArticleModel = D('Article');
     $this->ArticleFaceModel = M('article_faceimg');
     $this->ArticleTagObject = new TagController();
 }
示例#3
0
 public function __construct()
 {
     parent::__construct();
     if (!session('?user')) {
         $this->error('登录后才能查看简历哦^^', __APP__, 3);
     }
 }
 public function __construct()
 {
     parent::__construct();
     $this->ArticleCateModel = M('articlecate');
     $this->ArticleModel = M('article');
     $this->AriticleTagModel = M("articletag");
 }
 public function __construct()
 {
     parent::__construct();
     $this->check_login();
     $this->model = D('Repair');
     $this->member_type = M('Member')->where(array('member_id' => $this->mid))->getField('member_type');
 }
示例#6
0
 public function __construct()
 {
     parent::__construct();
     $this->seo_set();
     $this->artModel = M('Article');
     $this->classModel = D('ArticleClass');
 }
 public function __construct()
 {
     parent::__construct();
     if (!session('?user')) {
         header('location:' . __APP__);
     }
 }
示例#8
0
 public function __construct()
 {
     parent::__construct();
     $this->seo_set();
     $this->casesModel = D('Cases');
     $this->classModel = M('CasesClass');
 }
 public function __construct()
 {
     parent::__construct();
     R('Tool/Tool/checkLogin');
     //  R('Public/checkAcess', array('actName' => ACTION_NAME));
     $html['open'] = MODULE_NAME;
     $this->assign('html', $html);
 }
 public function __construct()
 {
     parent::__construct();
     R('Tool/Tool/checkLogin');
     if (isset($_GET['id']) && !empty($_GET['rid'])) {
         $this->Public->haveJsd(I('get.id', ''));
     }
 }
 /**
  * 初始化完善来访者信息页面
  * 1. 如果没有登录,则跳转到登录页面
  * 2. 如果用户已经完善过信息,则跳转到个人中心
  */
 public function __construct()
 {
     parent::__construct();
     if (!($this->is_login() && $this->login_type())) {
         // not login
         $this->redirect('Login/index', '', 0);
     }
 }
示例#12
0
 public function __construct()
 {
     parent::__construct();
     $this->seo_set();
     $this->goodsModel = D('Goods');
     $this->tagClassModel = D('TagClass');
     $this->tagModel = D('GoodsTag');
 }
 public function __construct()
 {
     parent::__construct();
     $this->h1_title = '意见反馈';
     $this->model = D('SellerMessage');
     $this->listRows = 10;
     $this->order = 'has_reply desc,addtime desc';
 }
示例#14
0
 public function __construct()
 {
     parent::__construct();
     $this->h1_title = '帮助中心';
     $this->model = D('SystemArticle');
     $this->listRows = 10;
     $this->order = 'article_sort desc,article_time desc';
 }
示例#15
0
 public function __construct()
 {
     parent::__construct();
     $this->h1_title = '申诉中心';
     $this->model = D('Report');
     $this->classModel = D('ReportClass');
     $this->listRows = 10;
 }
 public function __construct()
 {
     parent::__construct();
     if (session('userId') != 1) {
         R('Tool/Tool/show404');
     }
     $this->Android = M('android');
 }
示例#17
0
 public function __construct()
 {
     parent::__construct();
     $this->h1_title = '推广赚金';
     $this->model = D('SpreadLog');
     $this->listRows = 10;
     $this->order = 'spread_time desc';
 }
示例#18
0
 public function __construct()
 {
     parent::__construct();
     $this->h1_title = '商家信息';
     $this->model = D('Seller');
     $this->accountModel = D('SellerAccount');
     $this->orderModel = D('SellerOrder');
     $this->billModel = D('SellerBill');
     $this->listRows = 10;
 }
 public function __construct()
 {
     parent::__construct();
     $this->IndexObject = new IndexController();
     $this->ViewId = I('get.id');
     if (!is_numeric($this->ViewId) || intval($this->ViewId) <= 0) {
         die;
     }
     //监听
     $this->ArticleViewListenEvent();
 }
示例#20
0
 /**
  * goods_type_id 0未知 1普通任务 2特殊任务 3分享购任务 
  */
 public function __construct()
 {
     parent::__construct();
     $this->h1_title = '任务管理';
     $this->model = D('Goods');
     $this->listRows = 5;
     $this->platModel = D('Platform');
     $this->optionModel = D('VipOption');
     $this->accountModel = D('SellerAccount');
     $this->order = 'sort desc';
     $this->predeposit = M('Seller')->where(array('seller_id' => $this->mid))->getField('predeposit');
 }
示例#21
0
 public function __construct()
 {
     parent::__construct();
     $this->h1_title = '发布任务';
     $this->model = D('Goods');
     $this->platModel = D('Platform');
     $this->vipOptionModel = D('VipSelect');
     $this->accountModel = D('SellerAccount');
     $this->orderModel = D('SellerOrder');
     $this->order = 'select_sort desc';
     $this->predeposit = M('Seller')->where(array('seller_id' => $this->mid))->getField('predeposit');
     $this->tip = M('PublishTip')->where(array('task_type' => ACTION_NAME))->find();
     $this->goods_limit_num = M('GoodsLimit')->where(array('status' => 1))->order('sort desc')->select();
 }
 /**
  * 初始化注册页面
  * 如果已经登录,则跳转到相应个人中心
  */
 public function __construct()
 {
     parent::__construct();
     if ($this->is_login()) {
         $login_type = $this->login_type();
         if ($login_type) {
             switch ($login_type) {
                 case 1:
                     $this->redirect('Admin/User/index', '', 0);
                     break;
                 case 2:
                     $this->redirect('Admin/Teacher/index', '', 0);
                     break;
                 case 3:
                     $this->redirect('Admin/Index/index', '', 0);
                     break;
             }
         } else {
             session_unset();
         }
     } else {
         session_unset();
     }
 }
示例#23
0
 public function __construct()
 {
     parent::__construct();
     $this->test_paper_db = M("test_paper");
     $this->topic_db = M("topic");
 }
 public function __construct()
 {
     parent::__construct();
 }
 public function __construct()
 {
     parent::__construct();
     $this->check_login();
 }
 public function __construct()
 {
     parent::__construct();
     $this->ArticleTagModel = D('Articletag');
 }
 public function __construct()
 {
     parent::__construct();
     R('Tool/Tool/checkLogin');
 }
 public function __construct()
 {
     parent::__construct();
     $this->model = D('Repair');
 }
 public function __construct()
 {
     parent::__construct();
     $this->UserCateModel = D('Usercate');
 }
示例#30
0
 public function __construct()
 {
     parent::__construct();
     $this->mod = D('SellerOrder');
 }