本文整理汇总了PHP中Department::getAllActiveWithSurgery方法的典型用法代码示例。如果您正苦于以下问题:PHP Department::getAllActiveWithSurgery方法的具体用法?PHP Department::getAllActiveWithSurgery怎么用?PHP Department::getAllActiveWithSurgery使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Department
的用法示例。
在下文中一共展示了Department::getAllActiveWithSurgery方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: yesterday
//setcookie(op_pflegelogbuch_user,$user);
$thisfile = basename($_SERVER['PHP_SELF']);
$breakfile = 'javascript:window.close()';
if (!isset($saal) || !$saal) {
$saal = 1;
}
//default or room
$pdata = array();
$filetitles = array();
$template = array();
$datafound = false;
require_once $root_path . 'include/care_api_classes/class_department.php';
$dept_obj = new Department();
$dept_obj->preloadDept($dept_nr);
/* Load all operative departments */
$surgery_arr =& $dept_obj->getAllActiveWithSurgery();
/* Get list of all active OR numbers */
$ORNrs =& $dept_obj->getAllActiveORNrs();
function yesterday(&$fd, &$fm, &$fy, $minyr)
{
if ($fd < 2) {
if ($fm < 2) {
if ($fy < $minyr) {
return false;
} else {
$fy = $fy - 1;
$fm = 12;
$fd = 31;
}
} else {
$fm = $fm - 1;
示例2: date
switch($retpath)
{
case "docs": $breakfile='doctors.php'.URL_APPEND; break;
case "op": $breakfile='op-doku.php'.URL_APPEND; break;
}
*/
/* default startpage */
$breakfile = $root_path . 'main/op-doku.php' . URL_APPEND;
$pday = date(j);
$pmonth = date(n);
$pyear = date(Y);
$abtarr = array();
$abtname = array();
$datum = date("d.m.Y");
/* Load the department list with oncall doctors */
$dept_DOC =& $dept_obj->getAllActiveWithSurgery();
if (is_array($dept_DOC)) {
$dlen = sizeof($dept_DOC);
} else {
$dlen = 0;
}
$ORNrs =& $dept_obj->getAllActiveORNrs();
if (is_object($ORNrs)) {
$slen = $ORNrs->RecordCount();
} else {
$slen = 0;
}
# Start Smarty templating here
/**
* LOAD Smarty
*/