<?php /** * $Id: httpreq_get_hospi_time.php 19840 2013-07-09 19:36:14Z phenxdesign $ * * @package Mediboard * @subpackage PlanningOp * @author SARL OpenXtrem <*****@*****.**> * @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html * @version $Revision: 19840 $ */ CCanDo::checkRead(); $chir_id = CValue::get("chir_id", 0); $codes = CValue::get("codes", ""); $javascript = CValue::get("javascript", true); $codes = explode("|", $codes); $result = CTempsHospi::getTime($chir_id, $codes); $temps = $result ? sprintf("%.2f", $result) . "j" : "-"; // Création du template $smarty = new CSmartyDP(); $smarty->assign("temps", $temps); $smarty->assign("javascript", $javascript); $smarty->display("inc_get_time.tpl");