Example #1
0
 public function getHTML()
 {
     $title = $this->details['title'];
     $content = "<h1>Contact</h1><p>Neem contact op</p>\n\t\t<form method=\"post\" action=\"send\">\n\t\t\t<table>\n\t\t\t\t<tr><td>Uw Email adres: </td><td><input type=\"text\" name=\"Email\"/></td></tr>\n\t\t\t\t<tr><td>Uw bericht : </td><td><input type=\"text\"name=\"Message\"/></td></tr>\n\t\t\t\t<tr><td><input type=\"submit\"/></td></tr>\n\t\t\t</table>\n\t\t</form>";
     $details = array("contentLeft" => $content, "title" => $title);
     $layout = new LayoutController($details);
     return $layout->getHTML();
 }
Example #2
0
 public function getHTML()
 {
     $title = "Errorpage ";
     $message = $this->errorView->getHTML();
     $details = array("contentLeft" => $message, "title" => $title);
     $layout = new LayoutController($details);
     return $layout->getHTML();
 }
Example #3
0
 public function getHTML()
 {
     $title = $this->details['title'];
     $posts = $this->getData();
     $content = "<!-- CONTENT-LEFT -->\n\t\t\t<div id=\"content-left\">\n\t\t\n\n\t\n\t\t\t\n\t\t<div id='blog-container'>\n\t\t" . $posts . "\n\t\n\t\t<div style='clear:both;'></div>\n\t\t</div>\n\t\t</div>\n\t\t\t\n\t\t\t<!-- CONTENT-RIGHT -->\n\t\t\t<div id=\"content-right\">\n\t\t\t\t<div class=\"widget\">\n\t\t\t\t\t<form method='POST' action='/blog/upload'>\n\t\t\t\n\t\t\t\t\t<span>Titel</span>\n\t\t\t\t\n\t\t\t\t\t<input type='text' name='title'>\n\t\t\t\t\t<div class='text'>\n\t\t\t\t\t<span>Message</span>\n\t\t\t\t\t<textarea name='editor1' >\n\n\t\t\t\t   </textarea>\n\t\t\t\t\t</div>\n\t\t\t\t\t<input type='submit' name='postMessage'value='Post'>\n\t\t\t\t\t</form>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t";
     $details = array("contentLeft" => $content, "title" => $title);
     $layout = new LayoutController($details);
     return $layout->getHTML();
 }
Example #4
0
 public function getHTML($images)
 {
     $title = $this->details['title'];
     $content = "";
     //print_r($images);
     foreach ($images as $image => $value) {
         $content .= "<img height='140' width='140' src='/database/" . $images[0]['file'] . "' />" . $images[0]['file'] . "<br />";
     }
     $details = array("contentLeft" => $content, "title" => $title);
     $layout = new LayoutController($details);
     return $layout->getHTML();
 }
Example #5
0
 public function getHTML()
 {
     if ($this->url[1] == 'login' && $this->loginResult) {
         $message = "<h1>Welkom </h1>";
         $message .= "<p>U ben nu ingelogd.</p>";
         $title = "Login ";
         $details = array("contentLeft" => $message, "title" => $title);
         $layout = new LayoutController($details);
         $html = $layout->getHTML();
     } elseif ($this->url[1] == 'login' && !$this->loginResult) {
         $errorController = new errorController(array("title" => "Foute login!", "message" => "Verkeerde gebruikersnaam of wachtwoord."));
         $html = $errorController->getHTML();
     } else {
         $message = "<h1>Home</h1>";
         $message .= "<p>Welkom op de pagina voor TMTK1-11. Hier maken wij ons MVC CMS.</p>";
         $title = "Home ";
         $details = array("contentLeft" => $message, "title" => $title);
         $layout = new LayoutController($details);
         $html = $layout->getHTML();
     }
     return $html;
 }
Example #6
0
 public function __destruct()
 {
     $this->layout->sections = ContentType::sections();
     parent::__destruct();
 }