コード例 #1
0
 public function _initialize()
 {
     parent::_initialize();
     $this->IndustryModel = D('Industry');
     // 初始化证书表模型
     $this->nowtime = date('Y-m-d H:i:s', NOW_TIME);
 }
コード例 #2
0
 public function _initialize()
 {
     parent::_initialize();
     $this->CertificateModel = D('Certificate');
     // 初始化证书表模型
     $this->nowtime = date('Y-m-d H:i:s', NOW_TIME);
 }
コード例 #3
0
 function _initialize()
 {
     parent::_initialize();
     $this->newsModel = D('News/News');
     $this->newsDetailModel = D('News/NewsDetail');
     $this->newsCategoryModel = D('News/NewsCategory');
 }
コード例 #4
0
 function _initialize()
 {
     //将模型放入属性中
     $this->issueModel = D('Issue/Issue');
     //继承父类的构造函数
     parent::_initialize();
 }
コード例 #5
0
 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();
 }
コード例 #6
0
 public function display($templateFile = '', $charset = '', $contentType = '', $content = '', $prefix = '')
 {
     //获取模版的名称
     $template = dirname(__FILE__) . '/../View/default/Builder/' . $templateFile . '.html';
     //显示页面
     parent::display($template);
 }
コード例 #7
0
 function _initialize()
 {
     $this->shopModel = D('Shop/Shop');
     $this->shop_configModel = D('Shop/ShopConfig');
     $this->shop_categoryModel = D('Shop/ShopCategory');
     parent::_initialize();
 }
コード例 #8
0
 public function __construct()
 {
     parent::__construct();
     $orderModel = new \Loan\Model\OrderModel();
     $this->_type = $orderModel->getType();
     $this->_status = $orderModel->getStatus();
 }
コード例 #9
0
 function _initialize()
 {
     $this->type = I('get.type');
     if (empty($this->type)) {
     }
     parent::_initialize();
 }
コード例 #10
0
 /**
  * 禁用
  */
 public function disable()
 {
     if (is_administrator(I('uid', 0))) {
         $this->error("禁止对超级管理员进行禁用操作!");
     }
     parent::disable("uid");
 }
コード例 #11
0
 public function __construct()
 {
     parent::__construct();
     $this->assign('menu', 'weixin');
     $this->assign('mLeft', 'weixin_' . strtolower(ACTION_NAME));
     $this->weixin = C('WEIXIN');
 }
コード例 #12
0
 public function _initialize()
 {
     parent::_initialize();
     $this->AdminUserModel = D('AdminUser');
     // 初始化管理员账户模型
     $this->nowtime = date('Y-m-d H:i:s', NOW_TIME);
 }
コード例 #13
0
 public function __construct()
 {
     parent::__construct();
     $this->assign('module', 4);
     $this->appeal = D('Appeal');
     $this->appeal_reply = D('Appeal_reply');
 }
コード例 #14
0
 public function __construct()
 {
     parent::__construct();
     $orderModel = new \Loan\Model\OrderModel();
     $this->_field_text_map['order_type'] = $this->_order_type = $orderModel->getType();
     $this->_field_text_map['status'] = $this->_status = $orderModel->getStatus();
 }
コード例 #15
0
 public function _initialize()
 {
     parent::_initialize();
     $this->SchoolJobModel = D('SchoolJob');
     // 初始化证书表模型
     $this->nowtime = date('Y-m-d H:i:s', NOW_TIME);
 }
コード例 #16
0
 function _initialize()
 {
     parent::_initialize();
     $this->bookModel = D('Book/Book');
     $this->bookCategoryModel = D('Book/BookCategory');
     $this->bookSectionModel = D('Book/BookSection');
     import_lang('Book');
 }
コード例 #17
0
 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');
 }
コード例 #18
0
 public function _initialize()
 {
     parent::_initialize();
     $this->roleModel = D("Admin/Role");
     $this->userRoleModel = D('UserRole');
     $this->roleConfigModel = D('RoleConfig');
     $this->roleGroupModel = D('RoleGroup');
 }
コード例 #19
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/';
 }
コード例 #20
0
 public function __construct()
 {
     parent::__construct();
     $this->orderForm = D('OrderForm');
     $this->orderGoods = D('OrderGoods');
     $this->customer = D('Customer');
     $this->relation = new OrderRelationModel();
 }
コード例 #21
0
 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');
 }
コード例 #22
0
 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');
     //岗位分类表模型
 }
コード例 #23
0
 public function __construct()
 {
     parent::__construct();
     $config = D("Config");
     $configArr = $config->fetConfig();
     $this->beginDate = $configArr[0]['value'];
     $this->endDate = $configArr[1]['value'];
     $this->dateArr = $this->_getTimes();
 }
コード例 #24
0
 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);
 }
コード例 #25
0
 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');
 }
コード例 #26
0
 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;
     }
 }
コード例 #27
0
 public function __construct()
 {
     parent::__construct();
     $this->_type_config[1] = 'PC版-首页-精选商品';
     foreach ($this->_category() as $id => $name) {
         $this->_type_config['3_' . $id] = 'PC版-首页-分类-' . $name;
     }
     $this->_type_config[2] = '手机版-首页-精选商品';
     foreach ($this->_category() as $id => $name) {
         $this->_type_config['4_' . $id] = '手机版-首页-分类-' . $name;
     }
     $this->assign('_type', $this->_type_config);
 }
コード例 #28
0
 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();
 }
コード例 #29
0
 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();
 }
コード例 #30
0
 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);
 }