$dept_nr = $cfg['thispc_dept_nr'];
    } else {
        header('Location:doctors-select-dept.php' . URL_REDIRECT_APPEND . '&target=plist&retpath=' . $retpath);
        exit;
    }
}
$thisfile = basename($_SERVER['PHP_SELF']);
# Load the department list with oncall doctors
require_once $root_path . 'include/care_api_classes/class_department.php';
$dept_obj = new Department();
$dept_obj->preloadDept($dept_nr);
$dept_list =& $dept_obj->getAllMedical();
# Load the dept doctors
require_once $root_path . 'include/care_api_classes/class_personell.php';
$pers_obj = new Personell();
$doctors =& $pers_obj->getDoctorsOfDept($dept_nr);
# Load global values
$GLOBAL_CONFIG = array();
require_once $root_path . 'include/care_api_classes/class_globalconfig.php';
$glob_obj = new GlobalConfig($GLOBAL_CONFIG);
$glob_obj->getConfig('personell_%');
# Set color values for the search mask
$searchmask_bgcolor = '#f3f3f3';
$searchprompt = $LDEntryPrompt;
$entry_block_bgcolor = '#fff3f3';
$entry_border_bgcolor = '#6666ee';
$entry_body_bgcolor = '#ffffff';
if (!isset($searchkey)) {
    $searchkey = '';
}
if (!isset($mode)) {
Exemplo n.º 2
0
error_reporting(E_COMPILE_ERROR | E_ERROR | E_CORE_ERROR);
require './roots.php';
require $root_path . 'include/inc_environment_global.php';
define('LANG_FILE', 'or.php');
$local_user = '******';
require_once $root_path . 'include/inc_front_chain_lang.php';
/* Create the personell object */
require_once $root_path . 'include/care_api_classes/class_personell.php';
$pers_obj = new Personell();
$title = $LDOpPersonElements[$winid];
switch ($winid) {
    case 'operator':
        $element = 'operator';
        //$maxelement=10;
        $quickid = 'doctor';
        $quicklist = $pers_obj->getDoctorsOfDept($dept_nr);
        break;
    case 'assist':
        $element = 'assistant';
        //$maxelement=10;
        $quickid = 'doctor';
        $quicklist = $pers_obj->getDoctorsOfDept($dept_nr);
        break;
    case 'scrub':
        $element = 'scrub_nurse';
        //$maxelement=10;
        $quickid = 'nurse';
        $quicklist = $pers_obj->getNursesOfDept($dept_nr);
        break;
    case 'rotating':
        $element = 'rotating_nurse';