function _initialize()
 {
     $this->shopModel = D('Shop/Shop');
     $this->shop_configModel = D('Shop/ShopConfig');
     $this->shop_categoryModel = D('Shop/ShopCategory');
     parent::_initialize();
 }
 public function _initialize()
 {
     parent::_initialize();
     $this->MajorModel = D('Major');
     // 财经专业表模型
     $this->nowtime = date('Y-m-d H:i:s', NOW_TIME);
 }
 public function _initialize()
 {
     parent::_initialize();
     $this->CertificateModel = D('Certificate');
     // 初始化证书表模型
     $this->nowtime = date('Y-m-d H:i:s', NOW_TIME);
 }
 function _initialize()
 {
     parent::_initialize();
     $this->newsModel = D('News/News');
     $this->newsDetailModel = D('News/NewsDetail');
     $this->newsCategoryModel = D('News/NewsCategory');
 }
 public function _initialize()
 {
     parent::_initialize();
     $this->SchoolJobModel = D('SchoolJob');
     // 初始化证书表模型
     $this->nowtime = date('Y-m-d H:i:s', NOW_TIME);
 }
 public function _initialize()
 {
     parent::_initialize();
     $this->AdminUserModel = D('AdminUser');
     // 初始化管理员账户模型
     $this->nowtime = date('Y-m-d H:i:s', NOW_TIME);
 }
 function _initialize()
 {
     //将模型放入属性中
     $this->issueModel = D('Issue/Issue');
     //继承父类的构造函数
     parent::_initialize();
 }
 public function _initialize()
 {
     parent::_initialize();
     $this->IndustryModel = D('Industry');
     // 初始化证书表模型
     $this->nowtime = date('Y-m-d H:i:s', NOW_TIME);
 }
 public function _initialize()
 {
     //$this->addCss('/theme/default/ckeditor/sample.css');
     $this->addJs('/theme/default/ckeditor/sample.js');
     $this->addJs('/theme/default/ckeditor/ckeditor.js');
     parent::_initialize();
 }
 function _initialize()
 {
     $this->type = I('get.type');
     if (empty($this->type)) {
     }
     parent::_initialize();
 }
 function _initialize()
 {
     parent::_initialize();
     $this->bookModel = D('Book/Book');
     $this->bookCategoryModel = D('Book/BookCategory');
     $this->bookSectionModel = D('Book/BookSection');
     import_lang('Book');
 }
Beispiel #12
0
 public function _initialize()
 {
     parent::_initialize();
     $this->controller_path = MODULE_PATH . 'Controller/';
     $this->view_path = MODULE_PATH . 'View/';
     $this->module_path = MODULE_PATH . 'Model/';
     $this->addon_path = ONETHINK_ADDON_PATH . 'CurdForAdmin/';
 }
 public function _initialize()
 {
     parent::_initialize();
     $this->questionModel = D('Question/Question');
     $this->questionAnswerModel = D('Question/QuestionAnswer');
     $this->questionCategoryModel = D('Question/QuestionCategory');
     $this->questionSupportModel = D('Question/QuestionSupport');
 }
 public function _initialize()
 {
     parent::_initialize();
     $this->roleModel = D("Admin/Role");
     $this->userRoleModel = D('UserRole');
     $this->roleConfigModel = D('RoleConfig');
     $this->roleGroupModel = D('RoleGroup');
 }
 public function _initialize()
 {
     parent::_initialize();
     $this->inviteModel = D('Ucenter/Invite');
     $this->inviteTypeModel = D('Ucenter/InviteType');
     $this->inviteBuyLogModel = D('Ucenter/InviteBuyLog');
     $this->inviteLogModel = D('Ucenter/InviteLog');
     $this->inviteUserInfoModel = D('Ucenter/InviteUserInfo');
 }
 public function _initialize()
 {
     parent::_initialize();
     $this->nowtime = date('Y-m-d H:i:s', NOW_TIME);
     $this->industry_list = $this->getBusIndustry();
     //行业类型
     $this->PostCategoryModel = D('PostCategory');
     //岗位分类表模型
 }
 public function _initialize()
 {
     parent::_initialize();
     $this->StudentModel = D('Student');
     // 初始化学生表模型
     $this->nowtime = date('Y-m-d H:i:s', NOW_TIME);
     $this->industry_list = $this->getBusIndustry();
     //行业类型
 }
 protected function _initialize()
 {
     parent::_initialize();
     $this->level = I('level', 0);
     $this->parent = I('parent', 0);
     $this->preparent = I('preparent', 0);
     $this->assign("level", $this->level);
     $this->assign("parent", $this->parent);
     $this->assign("preparent", $this->preparent);
 }
 public function _initialize()
 {
     parent::_initialize();
     $userId = session("userId");
     $role = $this->_getUserInfoById($userId);
     if ((int) $role == 1) {
         $html = '无此权限';
         $this->assign("YZRight", $html);
         $this->display(YZ_TEMPLATE);
         die;
     }
 }
 public function _initialize()
 {
     parent::_initialize();
     $this->PostModel = D('Post');
     $this->RegionsModel = D('Regions');
     $this->nowtime = date('Y-m-d H:i:s', NOW_TIME);
     $this->salary_range = parent::getSalaryArr();
     $this->current_grade = parent::getGradeArr();
     $this->graduate_year = parent::getGraduateArr();
     $this->week_available = parent::getWorkDayArr();
     $this->enterprise_list = parent::getEnterpriseList();
 }
 protected function _initialize()
 {
     parent::_initialize();
     if ($this->m_name == '') {
         $this->error('文档模型ID不存在');
     }
     if (empty($this->m_info)) {
         $this->error('文档不存在');
     }
     $this->assign('model', $this->m_info);
     $this->assign('preid', get_table($this->m_info['table'], false) . '_id');
 }
 public function _initialize()
 {
     parent::_initialize();
     $this->EnterpriseModel = D('Enterprise');
     // 初始化管理员账户模型
     $this->nowtime = date('Y-m-d H:i:s', NOW_TIME);
     $this->scale_list = $this->getBusSacle();
     //企业规模
     $this->hotcity_list = $this->getHotCity();
     //热门城市
     $this->industry_list = $this->getBusIndustry();
     //行业类型
 }
 protected function _initialize()
 {
     //TODO: 导致session,修改不启作用,沿用上次,导致一级菜单未能存入session,使得当前激活菜单不正确
     //FIXME:考虑,将图片上传放到另外一个类中
     //解决uploadify上传session问题
     session('[pause]');
     $session_id = I('get.session_id', '');
     if (!empty($session_id)) {
         session_id($session_id);
         session('[start]');
     }
     parent::_initialize();
 }
 public function _initialize()
 {
     /*
     $config = array(
         'accessKey'=>'__ODsglZwwjRJNZHAu7vtcEf-zgIxdQAY-QqVrZD',
         'secrectKey'=>'Z9-RahGtXhKeTUYy9WCnLbQ98ZuZ_paiaoBjByKv',
         'bucket'=>'blackwhite',
         'domain'=>'blackwhite.u.qiniudn.com'
     );
     */
     $config = array('accessKey' => 'obONUmKYN5b49A2jJnseSy5IrPp17EHcUsS1fgEy', 'secrectKey' => 'kEOTRa9MXP6nsARKmKYC6GyDF3Q2wqdc7mXSrT0T', 'bucket' => 'antferry007', 'domain' => '7xobxt.com1.z0.glb.clouddn.com');
     $this->qiniu = new QiniuStorage($config);
     parent::_initialize();
 }
 protected function _initialize()
 {
     parent::_initialize();
     $this->parent = I('parent', 0);
     $result = apiCall(DatatreeApi::GET_INFO, array(array('id' => $this->parent)));
     if (!$result['status']) {
         $this->error($result['info']);
     }
     if (is_array($result['info'])) {
         $this->preparent = $result['info']['parentid'];
     }
     $this->assign('parent', $this->parent);
     $this->assign('preparent', $this->preparent);
 }
 function _initialize()
 {
     $this->meta_title = '图集管理';
     $this->atlasModel = D('Atlas/Atlas');
     $this->atlasCollectionModel = D('Atlas/Atlas_collection');
     $this->atlasPictureModel = D('Atlas/AtlasPicture');
     /* $config = array(
     				'accessKey'=>'WPWs-mQSibJXZd7m_kL_cM0hwTIMCyFjzvgTFeRq',
     				'secrectKey'=>'TTUZUuWL8jug5LzxtQGwCPuVmN8-9DXMeFSrDzBa',
     				'bucket'=>'bighaha',
     				'domain'=>'7xih3v.com1.z0.glb.clouddn.com'
     		); */
     $this->qiniu = new QiniuStorage(C("UPLOAD_QINIU_CONFIG"));
     parent::_initialize();
 }
Beispiel #27
0
 public function _initialize()
 {
     parent::_initialize();
     //菜单后数量
     $maps = array();
     $maps['uid'] = array('EXP', 'IS NULL');
     $wrl_count = M('Ask')->where($maps)->count();
     $_SESSION["menu_nums"]["未认领"] = $wrl_count;
     $maps = array();
     $children = M("Member")->where(array("pid" => UID))->select();
     $uid_array = array();
     $uid_array[] = UID;
     if (!empty($children)) {
         foreach ($children as $key => $value) {
             $uid_array[] = $value["uid"];
         }
     }
     $maps['uid'] = array("in", implode(",", $uid_array));
     $this->uid_array = $uid_array;
     $maps['status'] = array("eq", 0);
     $dsh_count = M('Ask')->where($maps)->count();
     $_SESSION["menu_nums"]["待审批"] = $dsh_count;
     $maps['status'] = array("eq", 1);
     $blz_count = M('Ask')->where($maps)->count();
     $_SESSION["menu_nums"]["办理中"] = $blz_count;
     $maps['status'] = array('in', '4');
     $ydf_count = M('Ask')->where($maps)->count();
     $_SESSION["menu_nums"]["已回复"] = $ydf_count;
     $maps['status'] = array("eq", 60);
     $thcb_count = M('Ask')->where($maps)->count();
     $_SESSION["menu_nums"]["退回重办"] = $thcb_count;
     $xbwt_count = M("Assist")->where(array("pid" => UID, "reply" => array('EXP', 'IS NULL')))->count();
     $_SESSION["menu_nums"]["协办问题"] = $xbwt_count;
     $maps = array();
     $maps['status'] = array("eq", 10);
     $unpass_count = M('Ask')->where($maps)->count();
     $_SESSION["menu_nums"]["审批未通过"] = $unpass_count;
     $this->group_id = $_SESSION["onethink_admin"]["user_auth"]["group_id"];
     if (is_administrator($uid)) {
         $this->group_id = 1;
     }
     $this->assign('group_id', $this->group_id);
 }
 protected function _initialize()
 {
     parent::_initialize();
     // 查找用户基本信息
     $this->getUserInfo();
     // 查找会员团队统计
     $this->getUserStatisticInfo();
     // 查找会员未处理的开通会员申请
     $this->getUnsolvedApply();
     // 查找会员未处理的升级申请
     $this->getUnsolvedUpdateApply();
     // 判断用户是否可升级
     $this->getUserIfCanUpdate();
     // 查找我推荐的用户里面check_status = 1 的会员,就是通过了我的审核,但是还没有通过5级管理员审核的会员
     $this->getRecommendUnConfirmCustCount();
     //$this->userInfo["tipsCount"] = $this->userInfo["unconfirmRecommendUserCount"]
     //                                + $this->userInfo["unsolvedApplyCount"]
     //                                + $this->userInfo["unsolvedUpdateApplyCount"]
     //                                + $this->userInfo["ifCatUpdate"];
     $this->userInfo["tipsCount"] = 10;
     $this->assign("userInfo", $this->userInfo);
 }
 protected function _initialize()
 {
     parent::_initialize();
 }
Beispiel #30
0
 public function _initialize()
 {
     parent::_initialize();
     $this->getMenu();
 }