コード例 #1
0
ファイル: vw_planning.php プロジェクト: fbone/mediboard4
if (!isset($current_m)) {
    $current_m = CValue::get("current_m", $m);
}
$date_planning = CValue::getOrSession("date_planning", CMbDT::date());
$praticien_id = CValue::getOrSession("planning_chir_id");
$bloc_id = CValue::getOrSession("bloc_id", "");
$show_cancelled = CValue::getOrSession("show_cancelled", 0);
$show_operations = CValue::getOrSession("show_operations", 1);
$praticiens = new CMediusers();
$praticiens = $praticiens->loadPraticiens();
CMbObject::massLoadFwdRef($praticiens, "function_id");
foreach ($praticiens as $_prat) {
    $_prat->loadRefFunction();
}
$plageOp = new CPlageOp();
$plageOp->canDo();
$bloc = new CBlocOperatoire();
$blocs = $bloc->loadGroupList();
$limit_date = null;
$days_limit_future = abs(CAppUI::pref("planning_resa_days_limit"));
if ($days_limit_future != 0) {
    $limit_date = CMbDT::date("+ {$days_limit_future} DAYS", CMbDT::date());
}
$limit_past_date = null;
$days_limit_past = abs(CAppUI::pref("planning_resa_past_days_limit"));
if ($days_limit_past != 0) {
    $limit_past_date = CMbDT::date("- {$days_limit_past} DAYS", CMbDT::date());
}
$smarty = new CSmartyDP("modules/reservation");
$smarty->assign("current_m", $current_m);
$smarty->assign("date_planning", $date_planning);