/** * Load emplacements * * @return CEmplacement */ function loadRefEmplacement() { $emplacement = new CEmplacement(); $emplacement->loadObject("chambre_id = '{$this->chambre_id}'"); $this->_ref_emplacement = $emplacement; return $this->_ref_emplacement; }
<?php /** * $Id$ * * @package Mediboard * @subpackage Hospi * @author SARL OpenXtrem <*****@*****.**> * @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html * @version $Revision$ */ CCanDo::checkRead(); $chambre_id = CValue::getOrSession("chambre_id"); $service_id = CValue::getOrSession("service_id"); $emplacement = new CEmplacement(); $where = array(); $where["chambre_id"] = " = '{$chambre_id}'"; $emplacement->loadObject($where); $service = new CService(); $service->load($service_id); $service->loadRefsChambres(); // Création du template $smarty = new CSmartyDP(); $smarty->assign("emplacement", $emplacement); $smarty->assign("chambres", $service->_ref_chambres); $smarty->display("inc_vw_emplacement.tpl");