本文整理汇总了PHP中CSmartyDP类的典型用法代码示例。如果您正苦于以下问题:PHP CSmartyDP类的具体用法?PHP CSmartyDP怎么用?PHP CSmartyDP使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CSmartyDP类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
}
开发者ID:fbone,项目名称:mediboard4,代码行数:19,代码来源:CBrisDeGlace.class.php
示例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);
}
}
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:24,代码来源:do_repas_aed.php
示例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 <[email protected]>
* @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");
开发者ID:fbone,项目名称:mediboard4,代码行数:22,代码来源:httpreq_vw_list_techniques_comp.php
示例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");
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:inc_edit_planning.php
示例5: CObservationMedicale
<?php
/**
* $Id$
*
* @category Hospitalisation
* @package Mediboard
* @author SARL OpenXtrem <[email protected]>
* @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");
开发者ID:fbone,项目名称:mediboard4,代码行数:22,代码来源:ajax_refresh_alert_obs.php
示例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");
}
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:31,代码来源:ajax_tarifs_sejour.php
示例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");
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:ajax_inspect_error_log.php
示例8: str_replace
* @subpackage developpement
* @author SARL OpenXtrem <[email protected]>
* @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");
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:sniff_file.php
示例9: CSmartyDP
<?php
/**
* dPcim10
*
* @category Cim10
* @package Mediboard
* @author SARL OpenXtrem <[email protected]>
* @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");
开发者ID:fbone,项目名称:mediboard4,代码行数:17,代码来源:configure.php
示例10: CPasswordEntry
<?php
/**
* $Id$
*
* @category Password Keeper
* @package Mediboard
* @author SARL OpenXtrem <[email protected]>
* @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");
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:20,代码来源:ajax_revealed.php
示例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");
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:print_bacterio.php
示例12: CMedecin
<?php
/**
* $Id$
*
* @package Mediboard
* @subpackage Patients
* @author SARL OpenXtrem <[email protected]>
* @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");
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:22,代码来源:print_medecin.php
示例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");
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:31,代码来源:ajax_update_modal_evts_modif.php
示例14: CHttpRedirection
<?php
/**
* $Id$
*
* @package Mediboard
* @subpackage System
* @author SARL OpenXtrem <[email protected]>
* @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");
开发者ID:fbone,项目名称:mediboard4,代码行数:23,代码来源:vw_idx_redirections.php
示例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");
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:31,代码来源:print_dossier_soins.php
示例16: array
<?php
/**
* $Id$
*
* @package Mediboard
* @subpackage developpement
* @author SARL OpenXtrem <[email protected]>
* @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');
开发者ID:fbone,项目名称:mediboard4,代码行数:26,代码来源:css_test.php
示例17: intval
<?php
/**
* View functions
*
* @category Mediusers
* @package Mediboard
* @author SARL OpenXtrem <[email protected]>
* @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");
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:22,代码来源:vw_idx_functions.php
示例18: CSmartyDP
<?php
/**
* $Id$
*
* @category Reservation
* @package Mediboard
* @author SARL OpenXtrem <[email protected]>
* @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");
开发者ID:fbone,项目名称:mediboard4,代码行数:16,代码来源:ajax_legend_planning.php
示例19: utilisation_rdv
/** @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);
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:31,代码来源:httpreq_list_places.php
示例20: CSmartyDP
<?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");
开发者ID:fbone,项目名称:mediboard4,代码行数:16,代码来源:vw_display_hl7v2_message.php
注:本文中的CSmartyDP类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论