function setOut($out = OUT_HTML) { if ($out == SYS_DEFAULT) { $out = OUT_HTML; } $xHP = new cHPage("", HP_REPORT); $this->mOut = $out; switch ($out) { case OUT_EXCEL: //NADA break; case OUT_TXT: //NADA break; default: $xHP->setTitle($this->mTitulo); $xHP->setDevice($out); //setLog($out); foreach ($this->mCSSList as $key => $file) { $xHP->addCSS($file); } $this->mHeader = $xHP->getHeader() . $this->mHeader; //$this->mHeader .= "<style>.logo{ margin-left: .5em; max-height: 5em; max-width: 5em; margin-top: 0 !important; border-color: #808080; z-index: 100000 !important;}</style>"; //$this->mHeader .= $xHP->setBodyinit("javascript:window.print();"); $this->mHeader .= "<body>"; $this->mFooter .= "</body></html>"; break; } }