/** * @access private * @return string */ function _addPage() { $dateYear = GetPostOrGet('dateYear'); $dateMonth = GetPostOrGet('dateMonth'); $dateDay = GetPostOrGet('dateDay'); $dateHour = GetPostOrGet('dateHour'); $dateMinute = GetPostOrGet('dateMinute'); $dateTopic = GetPostOrGet('dateTopic'); $dateLocation = GetPostOrGet('dateLocation'); if (is_numeric($dateYear) && is_numeric($dateMonth) && is_numeric($dateDay) && is_numeric($dateHour) && is_numeric($dateMinute) && $dateTopic != '' && $dateLocation != '') { $dates = new Dates($this->_SqlConnection, $this->_ComaLib, $this->_User, $this->_Config); $dates->AddDate($dateYear, $dateMonth, $dateDay, $dateHour, $dateMinute, $dateTopic, $dateLocation); } return $this->_HomePage(); }
/** * @access private */ function _addDatePage() { $eventDay = GetPostOrGet('dateDay'); $eventMonth = GetPostOrGet('dateMonth'); $eventYear = GetPostOrGet('dateYear'); $eventHour = GetPostOrGet('dateHour'); $eventMinute = GetPostOrGet('dateMinute'); $eventLocation = GetPostOrGet('dateLocation'); $eventTopic = GetPostOrGet('dateTopic'); if (is_numeric($eventYear) && is_numeric($eventMonth) && is_numeric($eventDay) && is_numeric($eventHour) && is_numeric($eventMinute) && $eventTopic != '' && $eventLocation != '') { $dates = new Dates($this->_SqlConnection, $this->_ComaLib, $this->_User, $this->_Config); $dates->AddDate($eventYear, $eventMonth, $eventDay, $eventHour, $eventMinute, $eventTopic, $eventLocation); return $this->_mainPage(); } $locationError = ''; $topicError = ''; if ($eventLocation == '') { $locationError = $this->_Translation->GetTranslation('please_type_in_a_location'); } if ($eventTopic == '') { $topicError = $this->_Translation->GetTranslation('please_type_in_a_topic'); } return $this->_DateFormular($eventDay, $eventMonth, $eventYear, $eventHour, $eventMinute, $eventLocation, $eventTopic, -1, $locationError, $topicError); }