本文整理汇总了PHP中CConsultation::countMultipleList方法的典型用法代码示例。如果您正苦于以下问题:PHP CConsultation::countMultipleList方法的具体用法?PHP CConsultation::countMultipleList怎么用?PHP CConsultation::countMultipleList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CConsultation
的用法示例。
在下文中一共展示了CConsultation::countMultipleList方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: CConsultation
$anesthesistes = $mediuser->loadAnesthesistes(PERM_READ);
$consult = new CConsultation();
// Liste des admissions par jour
//foreach ($ds->loadHashList($sql) as $day => $num1) {
// $days[$day]["num1"] = $num1;
//}
// Récupération du nombre de consultations par jour
$ljoin = array();
$ljoin["plageconsult"] = "consultation.plageconsult_id = plageconsult.plageconsult_id";
$where = array();
$where["consultation.patient_id"] = "IS NOT NULL";
$where["consultation.annule"] = "= '0'";
$where["plageconsult.chir_id"] = CSQLDataSource::prepareIn(array_keys($anesthesistes));
$where["plageconsult.date"] = "BETWEEN '{$month_min}' AND '{$nextmonth}'";
$order = "plageconsult.date";
$groupby = "plageconsult.date";
$fields = array("plageconsult.date");
$listMonth = $consult->countMultipleList($where, $order, $groupby, $ljoin, $fields);
foreach ($listMonth as $_day) {
$days[$_day["date"]]["total"] = $_day["total"];
}
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("hier", $hier);
$smarty->assign("demain", $demain);
$smarty->assign("date", $date);
$smarty->assign("lastmonth", $lastmonth);
$smarty->assign("nextmonth", $nextmonth);
$smarty->assign("bank_holidays", $bank_holidays);
$smarty->assign("days", $days);
$smarty->display('inc_vw_all_preadmissions.tpl');