*
 * @package    Mediboard
 * @subpackage Cabinet
 * @author     SARL OpenXtrem <*****@*****.**>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision:$
 */
CCanDO::checkEdit();
// Chargement du reglement
$reglement = new CReglement();
$reglement->load(CValue::get("reglement_id"));
if ($reglement->_id) {
    $reglement->loadRefsNotes();
    $object = $reglement->loadTargetObject(true);
} else {
    $object = mbGetObjectFromGet("object_class", "object_id", "object_guid");
    $reglement->setObject($object);
    $reglement->date = "now";
    $reglement->emetteur = CValue::get("emetteur");
    $reglement->mode = CValue::get("mode");
    $reglement->montant = CValue::get("montant");
}
// Chargement des banques
$banque = new CBanque();
$banques = $banque->loadList(null, "nom");
/** @var CFactureCabinet $facture */
$facture = $object;
if (CAppUI::conf("ref_pays") == 2) {
    $facture->loadRefsObjects();
    $facture->loadNumerosBVR();
}
<?php

/**
 * $Id$
 *
 * @package    Mediboard
 * @subpackage Hospi
 * @author     SARL OpenXtrem <*****@*****.**>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision$
 */
$prestation = mbGetObjectFromGet("object_class", "object_id");
$item_id = CValue::getOrSession("item_id");
$items = $prestation->loadBackRefs("items", "rank");
CStoredObject::massLoadBackRefs($items, "sous_items");
foreach ($items as $_item) {
    $_item->loadRefsSousItems();
}
$item = new CItemPrestation();
$item->load($item_id);
$smarty = new CSmartyDP();
$smarty->assign("item", $item);
$smarty->assign("items", $items);
$smarty->assign("item_id", $item_id);
$smarty->assign("prestation", $prestation);
$smarty->display("inc_list_items_prestation.tpl");
Beispiel #3
0
<?php

/**
 * $Id$
 *
 * @category Files
 * @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::checkEdit();
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("notext", "");
$smarty->assign("_doc_item", mbGetObjectFromGet(null, null, "item_guid"));
$smarty->assign("onComplete", CValue::get("onComplete"));
$smarty->display("inc_file_send_button.tpl");
<?php

/**
 * $Id:$
 *
 * @package    Mediboard
 * @subpackage dPpersonnel
 * @author     SARL OpenXtrem <*****@*****.**>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision:$
 */
global $can;
$can->needsAdmin();
$_multiple = array();
$object = mbGetObjectFromGet(null, null, "object_guid");
$affectation = new CAffectationPersonnel();
$affectation->setObject($object);
$affectation->personnel_id = CValue::get("personnel_id");
$affectation->loadRefPersonnel();
$_multiple["object"] = $affectation->_ref_object;
$_multiple["personnel"] = $affectation->_ref_personnel;
$_multiple["affectations"] = $affectation->loadMatchingList();
$_multiple["affect_count"] = count($_multiple["affectations"]);
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("_multiple", $_multiple);
$smarty->display("inc_affectations_multiple.tpl");