本文整理汇总了PHP中CService::getTagService方法的典型用法代码示例。如果您正苦于以下问题:PHP CService::getTagService方法的具体用法?PHP CService::getTagService怎么用?PHP CService::getTagService使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CService
的用法示例。
在下文中一共展示了CService::getTagService方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: CService
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @link http://www.mediboard.org */
CCanDo::checkAdmin();
$now = CMbDT::dateTime();
$service_id = CValue::getOrSession("service_id");
$group = CGroups::loadCurrent();
// Liste des Etablissements
$etablissements = CMediusers::loadEtablissements(PERM_READ);
// Chargement du service à ajouter/editer
$service = new CService();
$service->group_id = $group->_id;
$service->load($service_id);
$service->loadRefsNotes();
// get nb of patients using this service
if ($service->_id) {
$sejour = new CSejour();
$where = array();
$where["service_id"] = " = '{$service->_id}'";
$where["sortie_prevue"] = "> '{$now}'";
$where["annule"] = "!= '1'";
$nb_sejours = $sejour->countList($where);
CAppUI::stepAjax("Service-msg-%d_use_this_service", $nb_sejours ? UI_MSG_WARNING : UI_MSG_OK, $nb_sejours);
}
$praticiens = CAppUI::$user->loadPraticiens();
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("praticiens", $praticiens);
$smarty->assign("etablissements", $etablissements);
$smarty->assign("service", $service);
$smarty->assign("tag_service", CService::getTagService($group->_id));
$smarty->display("inc_vw_service.tpl");