本文整理汇总了PHP中CSmartyDP类的典型用法代码示例。如果您正苦于以下问题:PHP CSmartyDP类的具体用法?PHP CSmartyDP怎么用?PHP CSmartyDP使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CSmartyDP类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: checkForSejour
/**
* 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: doRedirect
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);
}
}
示例3: CConsultation
<?php
/**
* $Id: httpreq_vw_list_techniques_comp.php 24480 2014-08-20 10:51:06Z flaviencrochard $
*
* @package Mediboard
* @subpackage Cabinet
* @author SARL OpenXtrem <dev@openxtrem.com>
* @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: foreach
$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");
示例5: CObservationMedicale
<?php
/**
* $Id$
*
* @category Hospitalisation
* @package Mediboard
* @author SARL OpenXtrem <dev@openxtrem.com>
* @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");
示例6: array
$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");
}
示例7: array
$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: str_replace
* @subpackage developpement
* @author SARL OpenXtrem <dev@openxtrem.com>
* @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: CSmartyDP
<?php
/**
* dPcim10
*
* @category Cim10
* @package Mediboard
* @author SARL OpenXtrem <dev@openxtrem.com>
* @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: CPasswordEntry
<?php
/**
* $Id$
*
* @category Password Keeper
* @package Mediboard
* @author SARL OpenXtrem <dev@openxtrem.com>
* @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: CBlocOperatoire
$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: CMedecin
<?php
/**
* $Id$
*
* @package Mediboard
* @subpackage Patients
* @author SARL OpenXtrem <dev@openxtrem.com>
* @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");
示例13: foreach
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: CHttpRedirection
<?php
/**
* $Id$
*
* @package Mediboard
* @subpackage System
* @author SARL OpenXtrem <dev@openxtrem.com>
* @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");
示例15: ksort
$_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");