X-Git-Url: https://git.llucax.com/mecon/intranet.git/blobdiff_plain/3160012cdccbdc9fa1743e66da33b699504d5c84..78684ebb4c9fa80743b39ca55d2183d7d0997b27:/sistema/local_lib/HTML_DietMarco.php diff --git a/sistema/local_lib/HTML_DietMarco.php b/sistema/local_lib/HTML_DietMarco.php index a0ec461..5294057 100644 --- a/sistema/local_lib/HTML_DietMarco.php +++ b/sistema/local_lib/HTML_DietMarco.php @@ -27,6 +27,10 @@ // $Id: xmi2code.tpl.php 1 2003-06-23 18:29:20Z gmeray $ // +session_start();//FIXME esto va en algun otro lado... + +define('PATH_RAIZ','/sistemas/intranet/'); + require_once 'HTML_Copete.php'; // +X2C includes @@ -38,78 +42,57 @@ require_once 'HTML/Page.php'; * @access public */ class HTML_DietMarco extends HTML_Page { - /** - * @var int $body - * @access public - */ - var $body; - - /** - * @var int $title - * @access public - */ - var $title; - - /** - * @var int $copete - * @access public - */ - var $copete; - // ~X2C - // +X2C Operation 155 - /** - * @return void - * @access public - */ - function toHTML() // ~X2C - { - $html =& $this->copete->toHTML(); - return $html; - } - // -X2C - // +X2C Operation 156 + + // +X2C Operation 157 /** - * @param int $body + * @param int $title * * @return void * @access public */ - function addBody($body) // ~X2C + function addTitle($title) // ~X2C { - $this->body[] = $body + $this->_title .= ' - '.$title; } // -X2C - // +X2C Operation 157 + // +X2C Operation 158 /** - * @param int $title + * @param string $seccion * * @return void * @access public */ - function addTitle($title) // ~X2C + function HTML_DietMarco($seccion) // ~X2C { - trigger_error('Not implemented!', E_USER_WARNING); + parent::HTML_Page(array ('doctype'=>'HTML 4.01 Transitional', + 'charset' => 'iso-8859-1', + 'lineend' => 'unix', + 'language' => 'es', + 'cache' => 'false', + 'simple' => 'true')); + $this->_title = 'Intranet bla bla..'; + $this->addBodyContent(new HTML_Copete($seccion)); } // -X2C - // +X2C Operation 158 + // +X2C Operation 168 /** - * @param string $seccion + * @param int $content * * @return void * @access public */ - function HTML_DietMarco($seccion) // ~X2C + function addBodyContent($content) // ~X2C { - $this->title = 'Intranet bla bla..'; - $this->copete = new HTML_Copete($seccion); - $this->body = array(); + if(method_exists($content, 'getcss')) + $this->addStyleSheet($content->getCSS()); + parent::addBodyContent($content); } // -X2C } // -X2C Class :HTML_DietMarco -?> \ No newline at end of file +?>