/** * Retourne la source d'un document * * @category CompteRendu * @package Mediboard * @author SARL OpenXtrem <*****@*****.**> * @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html * @version SVN: $Id:\$ * @link http://www.mediboard.org */ CCanDo::checkRead(); $cr_id = CValue::get("compte_rendu_id"); $update_date_print = CValue::get("update_date_print", 0); $cr = new CCompteRendu(); $cr->load($cr_id); if (!$cr->_id) { return; } $cr->loadContent(); if (!$cr->canRead()) { return; } // Mise à jour de la date d'impression if ($update_date_print) { $cr->date_print = "now"; if ($msg = $cr->store()) { CAppUI::setMsg($msg, UI_MSG_ERROR); } } echo "<!DOCTYPE html>\n<html>\n\t<head>\n\t <link type=\"text/css\" rel=\"stylesheet\" href=\"style/mediboard/htmlarea.css\" media=\"all\" />\n\t</head>\n\t<body>\n\t {$cr->_source}\n\t</body>\n</html>";