Exemple #1
0
 function miseEnPage($mode = '', $aff)
 {
     global $tool;
     $this->debug("entrée dans getAffichage en mode " . $mode);
     if ($this->rien) {
         return "RIEN";
     }
     if (function_exists('genJavaHideIE')) {
         if ($aff) {
             $aff .= genJavaHideIE('pave_spe_00');
         }
     }
     $style = "";
     //si css particulier
     if ($this->XMLCore['css'] && ($mode == '' || $mode == 'print' && !$this->XMLCore['cssprint'])) {
         $this->debug("attribut css appliqué chargement de " . $this->XMLCore['css']);
         $filename = $this->XMLCore['css'];
         $handle = fopen(FX_URLLOCAL . $filename, 'r');
         $style = fread($handle, filesize($filename));
         fclose($handle);
         $style = "<style>{$style}</style>";
     }
     if ($this->XMLCore['cssprint'] && $mode == 'print') {
         $this->debug("attribut cssprint appliqué chargement de " . $this->XMLCore['cssprint']);
         $filename = $this->XMLCore['cssprint'];
         $handle = fopen(FX_URLLOCAL . $filename, 'r');
         $style = fread($handle, filesize($filename));
         fclose($handle);
         $style = "<style>{$style}</style>";
     }
     return $style . utf8_decode(formxTools::helper_str_mef($aff));
 }