<?php

/**
 * $Id: ajax_edit_supervision_instant_data.php 26001 2014-11-24 15:22:57Z phenxdesign $
 *
 * @package    Mediboard
 * @subpackage Patients
 * @author     SARL OpenXtrem <*****@*****.**>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision: 26001 $
 */
CCanDo::checkAdmin();
$supervision_instant_data_id = CValue::getOrSession("supervision_instant_data_id");
$instant_data = new CSupervisionInstantData();
$instant_data->load($supervision_instant_data_id);
$instant_data->loadRefsNotes();
if (!$instant_data->_id) {
    $instant_data->size = 11;
}
$smarty = new CSmartyDP();
$smarty->assign("instant_data", $instant_data);
$smarty->display("inc_edit_supervision_instant_data.tpl");
Ejemplo n.º 2
0
<?php

/**
 * $Id$
 *
 * @package    Mediboard
 * @subpackage Patients
 * @author     SARL OpenXtrem <*****@*****.**>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision$
 */
CCanDo::checkAdmin();
$group = CGroups::loadCurrent();
$graphs = CSupervisionGraph::getAllFor($group);
$timed_data = CSupervisionTimedData::getAllFor($group);
$timed_pictures = CSupervisionTimedPicture::getAllFor($group);
$instant_data = CSupervisionInstantData::getAllFor($group);
$packs = CSupervisionGraphPack::getAllFor($group, true);
foreach ($graphs as $_graph) {
    $_axes = $_graph->loadRefsAxes();
    foreach ($_axes as $_axis) {
        $_axis->loadBackRefs("series");
    }
}
$smarty = new CSmartyDP();
$smarty->assign("graphs", $graphs);
$smarty->assign("packs", $packs);
$smarty->assign("timed_data", $timed_data);
$smarty->assign("timed_pictures", $timed_pictures);
$smarty->assign("instant_data", $instant_data);
$smarty->display("inc_list_supervision_graph.tpl");