Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once("$prefix/utils/Div.php");
- require_once("$prefix/utils/Dummy.php");
- require_once("$prefix/utils/Image.php");
- require_once("$prefix/utils/Link.php");
- require_once("$prefix/utils/Paragraph.php");
- require_once("$prefix/utils/Title.php");
- require_once("$prefix/include/Box.php");
- class Home {
- private $_home;
- function Home($prefix) {
- $mainbox = new Box();
- $page = new Div("page");
- $content = new Div("content");
- $sidebar = new Div("sidebar");
- $page->add($content);
- $page->add($sidebar);
- $this->_home = $page;
- $link_intervento = new Link("$prefix/intervento.php", "Prenota un intervento");
- $par_txt = 'Nella sezione ' . $link_intervento->html() . ' è possibile ';
- $par_txt .= 'inviare una richiesta per prenotare un intervento, inserendo accuratamente tutti ';
- $par_txt .= 'i dati relativi all\'elettrodomestico non funzionante.<br/>';
- $par_txt .= 'Si prega di inviare UNA richiesta per ogni elettrodomestico.';
- $mainpar = new Paragraph($par_txt);
- $box1 = new Box("content-box1");
- $box2 = new Box("content-box2");
- $box1->add(new Title("Si riparano:", "3"));
- $box1->add(new Dummy(
- '<ul class="section-list">' .
- '<li class="first central">' .
- '<img class="pic alignleft" src="images/frigorifero.png" width="70" height="70" alt="" />' .
- '<span>Frigoriferi</span>' .
- '</li>' .
- '<li class="central">' .
- '<img class="pic alignleft" src="images/lavatrice.png" width="70" height="70" alt="" />' .
- '<span>Lavatrici</span>' .
- '</li>' .
- '<li class="last central">' .
- '<img class="pic alignleft" src="images/lavastoviglie.png" width="70" height="70" alt="" />' .
- '<span>Lavastoviglie</span>' .
- '</li>' .
- '</ul>'));
- $box2->add(new Title(" ", "3"));
- $box2->add(new Dummy(
- '<ul class="section-list">' .
- '<li class="first central">' .
- '<img class="pic alignleft" src="images/pianocottura.png" width="70" height="70" alt="" />' .
- '<span>Piani cottura</span>' .
- '</li>' .
- '<li class="central">' .
- '<img class="pic alignleft" src="images/forno.png" width="70" height="70" alt="" />' .
- '<span>Forni</span>' .
- '</li>' .
- '<li class="last central">' .
- '<span>E molto altro ancora...</span>' .
- '</li>' .
- '</ul>'));
- $mainbox->add(new Title("Benvenuto", "1"));
- $mainbox->add(new Dummy("<br/>"));
- $mainbox->add($mainpar);
- $content->add($mainbox);
- $content->add($box1);
- $content->add($box2);
- $content->add(new Dummy("<br class=\"clearfix\" />"));
- $sidebar->add(new Dummy("<br class=\"clearfix\" />"));
- }
- public function show() {
- $this->_home->show();
- }
- public function html() {
- return $this->_home->html();
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement