<?php

/**
 * $Id$
 *  
 * @category dPurgences
 * @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
 */
$id = CValue::get("id");
$circonstance = new CCirconstance();
$circonstance->load($id);
$smarty = new CSmartyDP();
$smarty->assign("circonstance", $circonstance);
$smarty->display("inc_edit_circonstance.tpl");
Exemple #2
0
 /**
  * Load the circonstance
  *
  * @return CCirconstance
  */
 function loadRefCirconstance()
 {
     $circonstance = new CCirconstance();
     $circonstance->load($this->circonstance);
     return $this->_ref_circonstance = $circonstance;
 }
<?php

/**
 * $Id$
 *  
 * @category dPurgences
 * @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
 */
$circonstance = new CCirconstance();
$list_circonstances = $circonstance->loadList(null, "Code");
$smarty = new CSmartyDP();
$smarty->assign("list_circonstances", $list_circonstances);
$smarty->display("vw_circonstances.tpl");