本文整理匯總了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
*/