public function __construct() { parent::__construct(); //机构名称 $this->comname = S('company'); if (empty($this->comname)) { $comname = M('company'); $this->comname = $comname->field('id,comname')->where('state=1')->select(); S('company', $this->comname, 3600); } $this->assign('company', $this->comname); //评审领域 $this->psfield = S('psfield'); if (empty($this->psfield)) { $psfield = M('psfield'); $this->psfield = $psfield->getfield('id,psfield'); S('psfield', $this->psfield, 3600); } $this->assign('psfield', $this->psfield); //资质级别 $this->pslevel = S('pslevel'); if (empty($this->pslevel)) { $pslevel = M('pslevel'); $this->pslevel = $pslevel->getfield('id,pslevel'); S('pslevel', $this->pslevel, 3600); } $this->assign('pslevel', $this->pslevel); }
public function __construct() { parent::__construct(); include_once COMMON_PATH . 'Conf/MyConfig.php'; $this->assign('psins_config', $com_config); }