* CARE2X Integrated Hospital Information System Deployment 2.1 - 2004-10-02 * GNU General Public License * Copyright 2002,2003,2004,2005 Elpidio Latorilla * elpidio@care2x.org, * * See the file "copy_notice.txt" for the licence notice */ define('LANG_FILE', 'doctors.php'); define('NO_2LEVEL_CHK', 1); require_once $root_path . 'include/inc_front_chain_lang.php'; require_once $root_path . 'include/care_api_classes/class_personell.php'; $pers_obj = new Personell(); $person =& $pers_obj->getPersonellInfo($nr); require_once $root_path . 'include/care_api_classes/class_department.php'; $dept_obj = new Department(); $dept =& $dept_obj->getPhoneInfo($dept_nr); require_once $root_path . 'include/care_api_classes/class_globalconfig.php'; $glob_obj = new GlobalConfig($GLOBAL_CONFIG); $glob_obj->getConfig('person_%'); /* Check whether config foto path exists, else use default path */ $default_photo_path = 'fotos/registration'; $photo_filename = $person['photo_filename']; $photo_path = is_dir($root_path . $GLOBAL_CONFIG['person_foto_path']) ? $GLOBAL_CONFIG['person_foto_path'] : $default_photo_path; require_once $root_path . 'include/inc_photo_filename_resolve.php'; html_rtl($lang); ?> <HEAD> <?php echo setCharSet(); ?> <TITLE><?php
} if ($pmonth == '') { $pmonth = date('m'); } if ($pyear == '') { $pyear = date('Y'); } $t_date = $pday . '.' . $pmonth . '.' . $pyear; # Get department infos $dept_obj = new Department(); $deptarray = $dept_obj->getAll(); $depttypes = $dept_obj->getTypes(); $dept = $dept_obj->getDeptAllInfo($dept_nr); $dept_info = $dept_obj->getTypeInfo($dept['type']); # Get department phone infos $phone = $dept_obj->getPhoneInfo($dept_nr); # Prepare title $sTitle = "{$LDDepartment} :: "; if (isset(${$dept}['LD_var']) && !empty(${$dept}['LD_var'])) { $sTitle = $sTitle . ${$dept}['LD_var']; } else { $sTitle = $sTitle . $dept['name_formal']; } # Start Smarty templating here /** * LOAD Smarty */ # Note: it is advisable to load this after the inc_front_chain_lang.php so # that the smarty script can use the user configured template theme require_once $root_path . 'gui/smarty_template/smarty_care.class.php'; $smarty = new smarty_care('system_admin');