bean->status = ''; } //if if(!empty($_REQUEST['status']) && ($_REQUEST['status'] == 'made')) { $this->bean->status = 'made'; } parent::preDisplay(); } function display() { global $current_user; echo ''; if($this->ev->isDuplicate){ $this->bean->status = $GLOBALS['mod_strings']['LBL_DEFAULT_STATUS']; } //if if($this->bean->id!=''){ $this->ss->assign('emails_LIST',json_encode(explode(',',$this->bean->emails))); $this->ss->assign('telephones_LIST',json_encode(explode(',',$this->bean->telephones))); } else { $this->bean->date_start=date('d.m.Y H:00'); $this->bean->date_reminder=date('d.m.Y H:00'); $this->bean->reminder_type=3; $this->ss->assign('emails_LIST',json_encode(explode(',',$current_user->email1))); $this->ss->assign('telephones_LIST',json_encode(explode(',',$current_user->phone_other))); } $go=new EcmGoogleService(); if($go!=false){ if($go->checkLogin()==true){ $this->ss->assign('g_check', '1'); } else { $this->ss->assign('g_check', '0'); } } parent::display(); } } ?>