<?php /** * $Id$ * * @category CDA * @package Mediboard * @author SARL OpenXtrem <*****@*****.**> * @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html * @version $Revision$ * @link http://www.mediboard.org */ CCanDo::checkAdmin(); $cr = new CCompteRendu(); $cr->load($cr->getRandomValue("compte_rendu_id", true)); $factory = CCDAFactory::factory($cr); $message = $factory->generateCDA(); $treecda = CCdaTools::parse($message); $xml = CCdaTools::showxml($message); $smarty = new CSmartyDP(); $smarty->assign("message", $message); $smarty->assign("treecda", $treecda); $smarty->assign("xml", $xml); $smarty->display("inc_highlightcda.tpl");