示例#1
0
 /**
  * check if the sejour need to be unlock
  *
  * @param CSejour $sejour
  *
  * @return bool
  */
 static function checkForSejour($sejour, $modal = true)
 {
     if (!self::canAccess($sejour)) {
         $smarty = new CSmartyDP("modules/admin");
         $smarty->assign("sejour", $sejour);
         $smarty->assign("bris", new CBrisDeGlace());
         $smarty->assign("modale", $modal);
         $smarty->display("need_bris_de_glace.tpl");
         CApp::rip();
     }
     return true;
 }
示例#2
0
 function doRedirect($demandeSynchro = false)
 {
     if ($this->ajax) {
         if ($this->synchro) {
             $del = CValue::post("del", 0);
             $tmp_repas_id = CValue::post("_tmp_repas_id", 0);
             $msgSystem = CAppUI::getMsg();
             $smarty = new CSmartyDP("modules/dPrepas");
             $smarty->assign("del", $del);
             $smarty->assign("tmp_repas_id", $tmp_repas_id);
             $smarty->assign("demandeSynchro", $demandeSynchro);
             $smarty->assign("msgSystem", $msgSystem);
             $smarty->assign("callBack", $this->callBack);
             if ($demandeSynchro) {
                 $smarty->assign("object", $this->_old);
             }
             $smarty->display("add_del_repas_offline.tpl");
         }
         CApp::rip();
     }
     if ($this->redirect !== null) {
         CAppUI::redirect($this->redirect);
     }
 }
<?php

/**
 * $Id: httpreq_vw_list_techniques_comp.php 24480 2014-08-20 10:51:06Z flaviencrochard $
 *
 * @package    Mediboard
 * @subpackage Cabinet
 * @author     SARL OpenXtrem <*****@*****.**>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision: 24480 $
 */
CCanDo::checkEdit();
$selConsult = CValue::getOrSession("selConsult", 0);
$dossier_anesth_id = CValue::getOrSession("dossier_anesth_id", 0);
$consult = new CConsultation();
$consult->load($selConsult);
$consult->loadRefConsultAnesth($dossier_anesth_id);
$consult->_ref_consult_anesth->loadRefsBack();
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("consult_anesth", $consult->_ref_consult_anesth);
$smarty->display("inc_consult_anesth/techniques_comp.tpl");
示例#4
0
$anesths = $mediuser->loadAnesthesistes();
CMbObject::massLoadFwdRef($anesths, "function_id");
foreach ($anesths as $_anesth) {
    $_anesth->loadRefFunction();
}
// Liste des praticiens
$chirs = $mediuser->loadChirurgiens();
CMbObject::massLoadFwdRef($chirs, "function_id");
foreach ($chirs as $_chir) {
    $_chir->loadRefFunction();
}
// Chargement du personnel
$listPers = array("iade" => CPersonnel::loadListPers("iade"), "op" => CPersonnel::loadListPers("op"), "op_panseuse" => CPersonnel::loadListPers("op_panseuse"), "sagefemme" => CPersonnel::loadListPers("sagefemme"), "manipulateur" => CPersonnel::loadListPers("manipulateur"));
if ($plagesel->_id) {
    $plagesel->multicountOperations();
    $plagesel->countOperationsAnnulees();
    $plagesel->loadRefsNotes();
    $listPers = $plagesel->loadPersonnelDisponible($listPers);
}
//Création du template
$smarty = new CSmartyDP();
$smarty->assign("listBlocs", $listBlocs);
$smarty->assign("bloc", $bloc);
$smarty->assign("date", $date);
$smarty->assign("plagesel", $plagesel);
$smarty->assign("specs", $specs);
$smarty->assign("anesths", $anesths);
$smarty->assign("chirs", $chirs);
$smarty->assign("listPers", $listPers);
$smarty->assign("_functions", $_functions);
$smarty->display("inc_edit_planning.tpl");
<?php

/**
 * $Id$
 *  
 * @category Hospitalisation
 * @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::checkRead();
$obs_id = CView::get("obs_id", "num");
CView::checkin();
$obs = new CObservationMedicale();
$obs->load($obs_id);
$obs->loadRefAlerte();
$obs->_ref_alerte->loadRefHandledUser();
$smarty = new CSmartyDP();
$smarty->assign("obs", $obs);
$smarty->display("inc_vw_alerte_obs.tpl");
    $where = array();
    $where["chir_id"] = "= '{$chir->_id}'";
    $tarifs["user"] = $tarif->loadList($where, $order);
    foreach ($tarifs["user"] as $_tarif) {
        /**@var CTarif $_tarif */
        $_tarif->getPrecodeReady();
    }
    $where = array();
    $where["function_id"] = "= '{$chir->function_id}'";
    $tarifs["func"] = $tarif->loadList($where, $order);
    foreach ($tarifs["func"] as $_tarif) {
        $_tarif->getPrecodeReady();
    }
    if (CAppui::conf("dPcabinet Tarifs show_tarifs_etab")) {
        $where = array();
        $where["group_id"] = "= '" . CGroups::loadCurrent()->_id . "'";
        $tarifs["group"] = $tarif->loadList($where, $order);
        foreach ($tarifs["group"] as $_tarif) {
            $_tarif->getPrecodeReady();
        }
    }
    $consult = new CConsultation();
    if ($consult_id) {
        $consult->load($consult_id);
    }
    $smarty = new CSmartyDP();
    $smarty->assign("consult", $consult);
    $smarty->assign("sejour", $sejour);
    $smarty->assign("tarifs", $tarifs);
    $smarty->display("inc_tarifs_sejour.tpl");
}
    $options = CFlotrGraph::merge("lines", array('title' => utf8_encode("Logs par heure"), 'xaxis' => array('ticks' => $labels), 'yaxis' => array('tickDecimals' => 0, 'min' => 0, 'autoscaleMargin' => 1), 'y2axis' => array('tickDecimals' => 0, 'min' => 0, 'autoscaleMargin' => 1), 'grid' => array('verticalLines' => true)));
    // Ips distinctes par hour (nb d'ips)
    $serie_b = array('data' => array(), 'yaxis' => 2, 'label' => utf8_encode("Nombre d'ips par heure"));
    $labels = array();
    foreach ($count_by_hour_ip as $_count) {
        $serie_b['data'][] = array(count($serie_b['data']), count($_count));
    }
    $graphs["hour"] = array('series' => array($serie_a, $serie_b), 'options' => $options);
    // Logs par jour
    $serie = array('data' => array(), 'label' => utf8_encode("Logs par jour"));
    $labels = array();
    foreach ($count_by_day as $_day => $count) {
        $labels[] = array(count($labels), CMbDT::dateToLocale($_day));
        $serie['data'][] = array(count($serie['data']), $count);
    }
    $options = CFlotrGraph::merge("bars", array('title' => utf8_encode("Logs par jour"), 'xaxis' => array('ticks' => $labels), 'yaxis' => array('tickDecimals' => 0), 'grid' => array('verticalLines' => true)));
    $graphs["day"] = array('series' => array($serie), 'options' => $options);
    // Logs par IP
    $serie = array('data' => array(), 'label' => utf8_encode("Logs par ip"));
    $labels = array();
    foreach ($count_by_ip as $_ip => $count) {
        $labels[] = array(count($labels), $_ip);
        $serie['data'][] = array(count($serie['data']), $count);
    }
    $options = CFlotrGraph::merge("bars", array('title' => utf8_encode("Logs par ip"), 'xaxis' => array('ticks' => $labels), 'yaxis' => array('tickDecimals' => 0), 'grid' => array('verticalLines' => true)));
    $graphs["ip"] = array('series' => array($serie), 'options' => $options);
}
$smarty = new CSmartyDP();
$smarty->assign("graphs", $graphs);
$smarty->assign("filename", $filename);
$smarty->display("inc_inspect_error_log.tpl");
示例#8
0
 * @subpackage developpement
 * @author     SARL OpenXtrem <*****@*****.**>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision$
 */
CCanDo::checkRead();
if (!class_exists("CMbCodeSniffer")) {
    CAppUI::stepMessage(UI_MSG_WARNING, "CMbCodeSniffer-error-PEAR_needed");
    return;
}
$file = CValue::get("file");
$file = str_replace(":", "/", $file);
// Has to be a file, not a directory
if (!is_file($file)) {
    CAppUI::stepAjax("sniff-file-nofile-error", UI_MSG_ERROR, $file);
}
$sniffer = new CMbCodeSniffer();
$sniffer->process($file);
$sniffer->report($file);
$stats = $sniffer->stat($file);
$errors = reset($sniffer->getFilesErrors());
$alerts = $sniffer->getFlattenAlerts();
// Cuz sniffer changes work dir but restores it at destruction
// Be aware that unset() won't call __destruct() anyhow
$sniffer->__destruct();
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("file", $file);
$smarty->assign("alerts", $alerts);
$smarty->assign("errors", $errors);
$smarty->display("sniff_file.tpl");
示例#9
0
<?php

/**
 * dPcim10
 *
 * @category Cim10
 * @package  Mediboard
 * @author   SARL OpenXtrem <*****@*****.**>
 * @license  GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version  SVN: $Id: configure.php 19221 2013-05-21 14:24:43Z rhum1 $
 * @link     http://www.mediboard.org
 */
global $can;
$can->needsAdmin();
// Création du template
$smarty = new CSmartyDP();
$smarty->display("configure.tpl");
示例#10
0
<?php

/**
 * $Id$
 *
 * @category Password Keeper
 * @package  Mediboard
 * @author   SARL OpenXtrem <*****@*****.**>
 * @license  GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @link     http://www.mediboard.org */
CPasswordKeeper::checkHTTPS();
CCanDo::checkAdmin();
$password_id = CValue::getOrSession("password_id");
$password = new CPasswordEntry();
$password->load($password_id);
// Déchiffrement
$revealed = $password->getPassword();
$smarty = new CSmartyDP();
$smarty->assign("revealed", $revealed);
$smarty->display("inc_revealed.tpl");
示例#11
0
$date = CValue::get("date");
$bloc_id = CValue::get("bloc_id");
$bloc = new CBlocOperatoire();
$bloc->load($bloc_id);
$in_salles = CSQLDataSource::prepareIn($bloc->loadBackIds("salles"));
$ljoin["plagesop"] = "operations.plageop_id = plagesop.plageop_id";
$where[] = "operations.salle_id {$in_salles} OR plagesop.salle_id {$in_salles}";
$where[] = "operations.date = '{$date}'";
$where["labo"] = "= 1";
$order = "entree_salle, time_operation";
$operation = new COperation();
/** @var COperation[] $operations */
$operations = $operation->loadList($where, $order, null, null, $ljoin);
CMbObject::massLoadFwdRef($operations, "plageop_id");
$chirs = CMbObject::massLoadFwdRef($operations, "chir_id");
CMbObject::massLoadFwdRef($chirs, "function_id");
$sejours = CMbObject::massLoadFwdRef($operations, "sejour_id");
CMbObject::massLoadFwdRef($sejours, "patient_id");
foreach ($operations as $_operation) {
    $_operation->loadRefPatient();
    $_operation->loadRefPlageOp();
    $_operation->updateSalle();
    $_operation->loadRefChir()->loadRefFunction();
    $_operation->loadExtCodesCCAM();
}
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("date", $date);
$smarty->assign("bloc", $bloc);
$smarty->assign("operations", $operations);
$smarty->display("print_bacterio.tpl");
示例#12
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::checkRead();
$medecin_id = CValue::get("medecin_id");
$medecin = new CMedecin();
$medecin->load($medecin_id);
if (!$medecin || !$medecin->_id) {
    CAppUI::stepAjax('common-error-Invalid object', UI_MSG_ERROR);
}
$smarty = new CSmartyDP();
$smarty->assign("medecin", $medecin);
$smarty->assign("date", CMbDT::date());
$smarty->display("print_medecin.tpl");
            if (!isset($count_actes[$_type][$_acte->code])) {
                $count_actes[$_type][$_acte->code] = 0;
            }
            $count_actes[$_type][$_acte->code]++;
        }
    }
    // Chargement des codes possibles pour l'evenement
    $line = $evenement->loadRefPrescriptionLineElement();
    $element = $line->_ref_element_prescription;
    foreach ($element->loadRefsCodesSSR() as $_type => $_links) {
        foreach ($_links as $_link_cdarr) {
            $actes[$_type][$_link_cdarr->code] = $_link_cdarr->code;
        }
    }
    $evenements[$evenement->_id] = $evenement;
}
// Sorting
foreach ($actes as $_type => &$_actes) {
    ksort($_actes);
}
if (!count($count_actes["cdarr"])) {
    unset($actes["cdarr"]);
    unset($count_actes["cdarr"]);
}
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("token_evts", $token_evts);
$smarty->assign("evenements", $evenements);
$smarty->assign("actes", $actes);
$smarty->assign("count_actes", $count_actes);
$smarty->display("inc_vw_modal_evts_modif.tpl");
示例#14
0
<?php

/**
 * $Id$
 *
 * @package    Mediboard
 * @subpackage System
 * @author     SARL OpenXtrem <*****@*****.**>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision$
 */
CCanDo::checkAdmin();
$http_redirection_id = CValue::getOrSession("http_redirection_id");
// Récupération de la redirection à ajouter/éditer
$http_redirection = new CHttpRedirection();
$http_redirection->load($http_redirection_id);
// Récupération de la liste des redirections
$http_redirections = $http_redirection->loadList(null, "priority DESC");
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("http_redirection", $http_redirection);
$smarty->assign("http_redirections", $http_redirections);
$smarty->display("vw_idx_redirections.tpl");
            $_line_dmi->loadRefPraticien();
            $_line_dmi->loadRefProductOrderItemReception()->loadRefOrderItem()->loadReference()->loadRefSociete();
        }
    }
}
ksort($dossier);
// Constantes du séjour
$where = array();
if ($datetime_min) {
    $where["datetime"] = " >= '{$datetime_min}'";
}
$sejour->loadListConstantesMedicales($where);
$constantes_grid = CConstantesMedicales::buildGrid($sejour->_list_constantes_medicales, false);
$praticien = new CMediusers();
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("sejour", $sejour);
$smarty->assign("dossier", $dossier);
$smarty->assign("list_lines", $list_lines);
$smarty->assign("constantes_medicales_grid", $constantes_grid);
if (CModule::getActive("dPprescription")) {
    $smarty->assign("prescription", $prescription);
}
$smarty->assign("formulaires", $formulaires);
$smarty->assign("praticien", $praticien);
$smarty->assign("offline", $offline);
$smarty->assign("embed", $embed);
$smarty->assign("in_modal", $in_modal);
$smarty->assign("fiches_anesthesies", $fiches_anesthesies);
$smarty->assign("atc_classes", $atc_classes);
$smarty->display("print_dossier_soins.tpl");
示例#16
0
<?php

/**
 * $Id$
 *
 * @package    Mediboard
 * @subpackage developpement
 * @author     SARL OpenXtrem <*****@*****.**>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision$
 */
CCanDo::checkRead();
$files = array("style/mediboard/forms.css");
$files = array_merge($files, glob("modules/*/css/main.css"));
$button_classes = array();
foreach ($files as $_file) {
    $forms_css = file_get_contents($_file);
    $matches = array();
    preg_match_all('/a\\.button\\.([^\\:]+)\\:before/', $forms_css, $matches);
    $button_classes = array_merge($button_classes, $matches[1]);
}
CMbArray::removeValue("rtl", $button_classes);
// Création du template
$smarty = new CSmartyDP();
$smarty->assign('button_classes', array_values($button_classes));
$smarty->display('css_test.tpl');
<?php

/**
 * View functions
 *
 * @category Mediusers
 * @package  Mediboard
 * @author   SARL OpenXtrem <*****@*****.**>
 * @license  GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version  SVN: $Id$
 * @link     http://www.mediboard.org
 */
CCanDo::checkRead();
$page = intval(CValue::get('page', 0));
$inactif = CValue::get("inactif", array());
$type = CValue::get("type");
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("inactif", $inactif);
$smarty->assign("page", $page);
$smarty->assign("type", $type);
$smarty->display("vw_idx_functions.tpl");
示例#18
0
<?php

/**
 * $Id$
 *  
 * @category Reservation
 * @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::checkRead();
//smarty
$smarty = new CSmartyDP();
$smarty->display("inc_vw_legend_planning.tpl");
        /** @var CPlageconsult[] $plages_etab */
        $plages_etab = $plage->loadList($where);
        $utilisation_etab = utilisation_rdv($plages_etab, $listPlace, $plage);
    }
    // next consult
    $next_plage = $plage->getNextPlage();
    // previous consult
    $previous_plage = $plage->getPreviousPlage();
}
// user's function available
$mediuser = new CMediusers();
$mediusers = $mediuser->loadProfessionnelDeSanteByPref(PERM_READ, $function_id);
// Vérifier le droit d'écriture sur la plage sélectionnée
$plage->canDo();
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("plageconsult_id", $plageconsult_id);
$smarty->assign("plage", $plage);
$smarty->assign("listPlace", $listPlace);
$smarty->assign("next_plage", $next_plage);
$smarty->assign("list_users", $mediusers);
$smarty->assign("previous_plage", $previous_plage);
$smarty->assign("listBefore", $listBefore);
$smarty->assign("listAfter", $listAfter);
$smarty->assign("quotas", $quotas);
$smarty->assign("multiple", $multiple);
$smarty->assign("consultation", $consultation_target);
$smarty->assign("date", $date);
$smarty->assign('slot_id', $slot_id);
if ($display_nb_consult == "cab" || $display_nb_consult == "etab") {
    $smarty->assign("utilisation_func", $utilisation_func);
<?php

/* $Id $ */
/**
 * @package Mediboard
 * @subpackage hl7
 * @version $Revision: 14661 $
 * @author SARL OpenXtrem
 * @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 */
CCanDo::checkRead();
$message = CValue::getOrSession("message");
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("message", $message);
$smarty->display("vw_display_hl7v2_message.tpl");
<?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");
示例#22
0
            $statuses[$field] = "unique";
            continue;
        }
        // Multiple values
        $statuses[$field] = count(array_unique($values)) == 1 ? "duplicate" : "multiple";
    }
    $result->updateFormFields();
    $result->loadAllFwdRefs(true);
}
// Count statuses
$counts = array("none" => 0, "unique" => 0, "duplicate" => 0, "multiple" => 0);
foreach ($statuses as $status) {
    $counts[$status]++;
}
$classes = $readonly_class ? array() : CApp::getInstalledClasses();
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("objects", $objects);
$smarty->assign("objects_class", $objects_class);
$smarty->assign("objects_id", $objects_id);
$smarty->assign("merge_type", $merge_type);
$smarty->assign("result", $result);
$smarty->assign("statuses", $statuses);
$smarty->assign("user", $user);
$smarty->assign("counts", $counts);
$smarty->assign("checkMerge", $checkMerge);
$smarty->assign("mode", $mode);
$smarty->assign("list_classes", $classes);
$smarty->assign("alternative_mode", CAppUI::conf("alternative_mode"));
$smarty->assign("readonly_class", $readonly_class);
$smarty->display("object_merger.tpl");
示例#23
0
$next_week_deb = CMbDT::date("+1 day", $week_fin);
$next_week_fin = CMbDT::date("next sunday", $next_week_deb);
$yesterday_deb = "{$yesterday} 06:00:00";
$yesterday_fin = "{$yesterday} 21:00:00";
$today_deb = "{$today} 06:00:00";
$today_fin = "{$today} 21:00:00";
$tomorrow_deb = "{$tomorrow} 06:00:00";
$tomorrow_fin = "{$tomorrow} 21:00:00";
$j2_deb = "{$j2} 06:00:00";
$j2_fin = "{$j2} 21:00:00";
$j3_deb = "{$j3} 06:00:00";
$j3_fin = "{$j3} 21:00:00";
$next_week_deb = "{$next_week_deb} 06:00:00";
$next_week_fin = "{$next_week_fin} 21:00:00";
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("yesterday_deb", $yesterday_deb);
$smarty->assign("yesterday_fin", $yesterday_fin);
$smarty->assign("today_deb", $today_deb);
$smarty->assign("today_fin", $today_fin);
$smarty->assign("tomorrow_deb", $tomorrow_deb);
$smarty->assign("tomorrow_fin", $tomorrow_fin);
$smarty->assign("j2_deb", $j2_deb);
$smarty->assign("j2_fin", $j2_fin);
$smarty->assign("j3_deb", $j3_deb);
$smarty->assign("j3_fin", $j3_fin);
$smarty->assign("next_week_deb", $next_week_deb);
$smarty->assign("next_week_fin", $next_week_fin);
$smarty->assign("listPrat", $listPrat);
$smarty->assign("listSpec", $listSpec);
$smarty->assign("listServ", $services);
示例#24
0
    }
}
$group = CGroups::loadCurrent();
// Liste des Thèmes
$theme = new CThemeDoc();
$where = array();
$where[] = "group_id = '{$group->_id}' OR group_id IS NULL";
/** @var CThemeDoc[] $listThemes */
$listThemes = $theme->loadlist($where, "nom");
// Liste des chapitres
$chapitre = new CChapitreDoc();
$order = "group_id, nom";
$where = array();
$where["pere_id"] = "IS NULL";
$where[] = "group_id = '{$group->_id}' OR group_id IS NULL";
/** @var CChapitreDoc[] $listChapitres */
$listChapitres = $chapitre->loadlist($where, $order);
foreach ($listChapitres as $_chapitre) {
    $_chapitre->loadChapsDeep();
}
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("theme_id", $theme_id);
$smarty->assign("chapitre_id", $chapitre_id);
$smarty->assign("listThemes", $listThemes);
$smarty->assign("listChapitres", $listChapitres);
$smarty->assign("docGed", $docGed);
$smarty->assign("fileSel", new CFile());
$smarty->assign("sort_by", $sort_by);
$smarty->assign("sort_way", $sort_way);
$smarty->display("vw_procedures.tpl");
示例#25
0
$countPresentVeille = $sejourVeille->countList($whereVeille);
// entree du jour
$sejourEntreeJour = new CSejour();
$whereEntree = array();
$whereEntree["sejour.entree"] = "BETWEEN '{$date_debut}' AND '{$date_fin}'";
$whereEntree["annule"] = "= '0'";
$whereEntree["type"] = "= 'comp'";
$countEntreeJour = $sejourEntreeJour->countList($whereEntree);
// sorties du jour
$sejourSortieJour = new CSejour();
$whereSortie = array();
$whereSortie["sejour.sortie"] = "BETWEEN '{$date_debut}' AND '{$date_fin}'";
$whereSortie["annule"] = "= '0'";
$whereSortie["type"] = "= 'comp'";
$countSortieJour = $sejourSortieJour->countList($whereSortie);
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("date", $date);
$smarty->assign("totalHospi", $totalHospi);
$smarty->assign("totalMedecin", $totalMedecin);
$smarty->assign("totalAmbulatoire", $totalAmbulatoire);
$smarty->assign("services", $services);
$smarty->assign("list_affectations", $list_affectations);
$smarty->assign("total_service", $total_service);
$smarty->assign("countPresentVeille", $countPresentVeille);
$smarty->assign("countSortieJour", $countSortieJour);
$smarty->assign("countEntreeJour", $countEntreeJour);
$smarty->assign("countPresentJour", $countPresentJour);
$smarty->assign("listPrat", $listPrat);
$smarty->assign("totalPrat", $totalPrat);
$smarty->display("vw_rapport.tpl");
示例#26
0
// 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();
}
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("reglement", $reglement);
$smarty->assign("object", $object);
$smarty->assign("facture", $facture);
$smarty->assign("banques", $banques);
$smarty->assign("force_regle_acte", CValue::get("force_regle_acte"));
$smarty->display("edit_reglement.tpl");
示例#27
0
/**
 * $Id: configure.php 19087 2013-05-12 16:27:44Z phenxdesign $
 *
 * @package    Mediboard
 * @subpackage Urgences
 * @author     SARL OpenXtrem <*****@*****.**>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision: 19087 $
 */
// Le chargement des droits se fait sur le module "parent"
global $m;
$path = CAppUI::conf("{$m} gnupg_path");
$path = $path ? $path : "~";
$home = exec("cd {$path} && pwd") . "/.gnupg";
$user_apache = exec('whoami');
// Check /root is writable
$writable = is_writable($home);
$source_name = isset($source_name) ? $source_name : $m;
// Source
$source = CExchangeSource::get($source_name, null, true, null, false);
// Source rescue
$source_rescue = CExchangeSource::get("{$source_name}-rescue", null, true, null, false);
// Création du template
$smarty = new CSmartyDP("modules/dPurgences");
$smarty->assign("user_apache", $user_apache);
$smarty->assign("home", $home);
$smarty->assign("path", $path);
$smarty->assign("writable", $writable);
$smarty->assign("source", $source);
$smarty->assign("source_rescue", $source_rescue);
$smarty->display("Config_RPU_Sender.tpl");
 * @author     SARL OpenXtrem <*****@*****.**>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision$
 */
CCanDo::checkEdit();
$service_id = CValue::get('service_id');
$keywords = CValue::get('keywords');
$limit = CValue::get('limit');
// Service's stocks
$where = array();
if ($service_id) {
    $where['product_stock_service.object_id'] = " = '{$service_id}'";
    $where['product_stock_service.object_class'] = " = 'CService'";
    // XXX
}
if ($keywords) {
    $where[] = "product.code LIKE '%{$keywords}%' OR \r\n              product.name LIKE '%{$keywords}%' OR \r\n              product.description LIKE '%{$keywords}%'";
}
$orderby = 'product.name ASC';
$leftjoin = array();
$leftjoin['product'] = 'product.product_id = product_stock_service.product_id';
// product to stock
$stock = new CProductStockService();
$list_stocks_count = $stock->countList($where, null, $leftjoin);
$list_stocks = $stock->loadList($where, $orderby, $limit ? $limit : 30, null, $leftjoin);
// Smarty template
$smarty = new CSmartyDP();
$smarty->assign('stock', $stock);
$smarty->assign('list_stocks', $list_stocks);
$smarty->assign('list_stocks_count', $list_stocks_count);
$smarty->display('inc_stocks_list.tpl');
 * @subpackage Cabinet
 * @author     SARL OpenXtrem <*****@*****.**>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision$
 */
CCanDo::checkRead();
$consult_id = CValue::get("consult_id");
$consult = new CConsultation();
$consult->_id = $consult_id;
$consult->load();
$consult->loadRefPatient();
$consult->loadRefGrossesse();
$type = "";
switch ($consult->type_assurance) {
    case "classique":
        $type = "assurance_classique";
        break;
    case "at":
        $type = "accident_travail";
        break;
    case "smg":
        $type = "soins_medicaux_gratuits";
        break;
    case "maternite":
        $type = "maternite";
        break;
}
//smarty
$smarty = new CSmartyDP();
$smarty->assign("consult", $consult);
$smarty->display("inc_type_assurance_reglement/{$type}.tpl");
示例#30
0
<?php

/* $Id$ */
/**
 * @package Mediboard
 * @subpackage sante400
 * @version $Revision$
 * @author SARL OpenXtrem
 * @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html 
 */
CCanDo::checkAdmin();
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("types", CMouvFactory::getTypes());
$smarty->assign("modes", array_keys(CMouvFactory::$modes));
$smarty->display("configure.tpl");