コード例 #1
0
            CAppUI::stepAjax(CAppUI::tr("CDocumentItem-_not_available"), UI_MSG_WARNING);
            CApp::rip();
        }
    } else {
        // Objet Inexistant
        $object = null;
    }
}
$show_editor = true;
// Gestion des pages pour les Fichiers PDF et fichiers TXT
if ($fileSel && $elementClass == "CFile" && !$acces_denied) {
    if (file_exists($fileSel->_file_path)) {
        $raw_content = file_get_contents($fileSel->_file_path);
        switch ($fileSel->file_type) {
            case "application/x-hprim":
                $includeInfosFile = CHprim21::formatHPRIMBiologie($raw_content);
                $display_as_is = true;
                $show_editor = false;
                break;
            case "text/osoft":
                if (class_exists("COsoftHistorique")) {
                    $osoft_histo = new COsoftHistorique(false);
                    $includeInfosFile = $osoft_histo->toHTML($raw_content);
                    $show_editor = false;
                    break;
                }
            case "application/osoft":
                if (class_exists("COsoftDossier")) {
                    $osoft_dossier = new COsoftDossier(false);
                    $includeInfosFile = $osoft_dossier->toHTML($raw_content);
                    $show_editor = false;