public function jsonSerialize() { return ['Id' => $this->getId(), 'BevragingId' => $this->getBevragingId(), 'Datum' => $this->Datum->format(DateTime::ISO8601), 'Antwoorden' => Finah::arrayToCsv($this->getAntwoorden()), 'LeeftijdsCategorie' => $this->getLeeftijdsCategorie(), 'Bevraging' => $this->getBevraging()]; }
//header("Location: Overzicht.php"); echo "De bevraging werd succesvol opgeslagen"; $to = "*****@*****.**"; /* $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: gert.claeskens@student.pxl.be' . "\r\n" . 'Reply-To: gert.claeskens@student.pxl.be' . "\r\n" . 'X-Mailer: PHP/' . phpversion();*/ $subject = "Bevraging aangemaakt op "; $msg = "Beste\r\nHartelijk dank voor jouw aanvraag\r\n\r\n"; $msg .= "<a href=\"http:\\\\www.finah.be\\?" . $bevraging_man->getId() . "\">De vragenlijst voor de mantelzorger kan u hier vinden</a>\r\n"; $msg .= "<a href=\"http:\\\\www.finah.be\\?" . $bevraging_pat->getId() . "\">De vragenlijst voor de patient kan u hier vinden</a>\r\n"; //$msg .= "<a href=\"http:\\\\www.google.be\">Achteraf kan u de ze link gebruiken om het rapport op te vragen</a>\r\n"; $msg .= "\r\n\r\nMet vriendelijke groeten\r\n\r\nFinah Webmaster"; $msg = wordwrap($msg, 70, "\r\n"); Finah::send_simple_message($to, $subject, $msg); } } } else { ?> <div class="form-group top-form"> <label class="control-label col-xs-4 col-sm-4 col-md-3 col-lg-3" for="Informatie"> Informatie: </label> <div class=" col-xs-8 col-sm-8 col-md-8 col-lg-4"> <textarea rows="5" type="text" class="form-control" id="Informatie" name="informatie" > </textarea> </div> </div> <div class="form-group"> <label class="control-label col-xs-4 col-sm-4 col-md-3 col-lg-3" for="Aandoening"> Kies de aandoening: </label> <div class="col-xs-8 col-sm-8 col-md-6 col-lg-4"> <select class="form-control" id="Aandoening" name="aandoening" onchange="OnChange(event)"> <option value="null">Maak een keuze</option>
public function jsonSerialize() { return ['Id' => $this->getId(), 'Aandoening' => $this->Aandoening, 'AandoeningId' => $this->Aandoening["Id"], 'Bevraging_Pat' => $this->Bevraging_Pat, 'Bevraging_Man' => $this->Bevraging_Man, 'Bevraging_PatId' => $this->Bevraging_Pat["Id"], 'Bevraging_ManId' => $this->Bevraging_Man["Id"], 'Datum' => $this->Datum->format(DateTime::ISO8601), 'Pathologie' => $this->Pathologie, 'PathologieId' => $this->Pathologie["Id"], 'Antwoorden' => Finah::arrayToCsv($this->getAntwoorden()), 'Vragen' => $this->getVragen(), 'Relatie' => $this->getRelatie(), 'VragenId' => $this->Vragen["Id"], 'RelatieId' => $this->Relatie["Id"]]; }