1,31 → 1,27 |
<? |
|
<?php |
global $gBlock; |
|
class identite_html implements iVue { |
|
protected $leBlock; |
|
function __construct($unBlock) |
{ |
$this->leBlock = $unBlock; |
} |
|
function serialiser() |
{ |
$gBlock = $this->leBlock; |
?> |
<HTML> |
<HEAD> |
</HEAD> |
<BODY> |
<H3>coucou</H3> |
<? |
$gBlock->afficher(); |
?> |
</BODY> |
</HTML> |
<? |
} |
|
protected $leBlock; |
|
function __construct($unBlock) |
{ |
$this->leBlock = $unBlock; |
} |
|
function serialiser() |
{ |
$gBlock = $this->leBlock; |
$retour = ''; |
$retour .= '<html>'; |
$retour .= '<head>'; |
$retour .= '</head>'; |
$retour .= '<body>'; |
$retour .= '<h3>'.'coucou'.'</h3>'; |
$retour .= $gBlock->afficher(); |
$retour .= '</body>'; |
$retour .= '</html>'; |
} |
} |
?> |
?> |