EMName = $text; } function setEMStartDate($text){ $this->EMStartDate = $text; } function setEMEndDate($text){ $this->EMEndDate = $text; } function setEMStartTime($text){ $this->EMStartTime = $text; } function setEMEndTime($text){ $this->EMEndTime = $text; } function setEMDeadline($text){ $this->EMDeadline = $text; } function getForm(){ Global $ID; $data; $noticeList = new helper_plugin_noticeboard_NoticeList($ID); $notice = $noticeList->getNoticeById($ID); if($notice){ $this->Name = $notice->getName(); $this->category = $notice->getCategory(); $this->Place = $notice->getPlace(); if($notice->getDeadline()){ $this->deadline = date("d.m.Y",$notice->getDeadline()); } $this->startDate = date("d.m.Y",$notice->getStartTime()); if($notice->hasStartTime()){ $this->startTime = date("H:i",$notice->getStartTime()); } if($notice->getHasEnd()){ $this->endDate = date("d.m.Y",$notice->getEndTime()); } if($notice->hasEndTime()){ $this->endTime = date("H:i",$notice->getEndTime()); } $this->parentId = $notice->getParentId(); } if($_REQUEST['noticeboard_category']){ $this->category = $_REQUEST['noticeboard_category']; } if($_REQUEST['noticeboard_name']){ $this->Name = $_REQUEST['noticeboard_name']; } if($_REQUEST['noticeboard_place']){ $this->Place = $_REQUEST['noticeboard_place']; } if($_REQUEST['noticeboard_start_date']){ $this->startDate = $_REQUEST['noticeboard_start_date']; } if($_REQUEST['noticeboard_start_time']){ $this->startTime = $_REQUEST['noticeboard_start_time']; } if($_REQUEST['noticeboard_end_date']){ $this->endDate = $_REQUEST['noticeboard_end_date']; } if($_REQUEST['noticeboard_end_time']){ $this->endTime = $_REQUEST['noticeboard_end_time']; } if($_REQUEST['noticeboard_deadline']){ $this->deadline = $_REQUEST['noticeboard_deadline']; } $data .= ""; $data .= "
".$this->getLang('noticeForm')."
"; $data .= "".$this->getLang('noticeForm2')."
"; $data .= "".$this->getLang('category').":
category || $this->category == "meeting") ? ("checked") : (""); $data .= " />"; $data .= " | "; $data .= "
".$this->getLang('addTime')."";
$data .= " |
"; $data .= " | "; $data .= "
".$this->getLang('addTime')."";
$data .= " |