- modules/fotolab updated imagej to current version & some cod fixes to make it work
[care2x.git] / Care2007 / modules / news / open-time.php
blob350ba131fbf094b9dfc0e3f393d6a42cf3353568
1 <?php
2 error_reporting(E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR);
3 require('./roots.php');
4 require($root_path.'include/inc_environment_global.php');
6 /**
7 * CARE2X Integrated Hospital Information System Deployment 2.2 - 2006-07-10
8 * GNU General Public License
9 * Copyright 2002,2003,2004,2005,2006 Elpidio Latorilla
10 * elpidio@care2x.org,
12 * See the file "copy_notice.txt" for the licence notice
14 define('LANG_FILE','abteilung.php');
15 define('NO_2LEVEL_CHK',1);
16 require_once($root_path.'include/inc_front_chain_lang.php');
17 $breakfile=$root_path.'main/startframe.php'.URL_APPEND;
19 # Start Smarty templating here
20 /**
21 * LOAD Smarty
24 # Note: it is advisable to load this after the inc_front_chain_lang.php so
25 # that the smarty script can use the user configured template theme
27 require_once($root_path.'gui/smarty_template/smarty_care.class.php');
28 $smarty = new smarty_care('common');
30 # Toolbar title
32 $smarty->assign('sToolbarTitle',$LDOpenHrsTxt);
34 # href for help button
35 $smarty->assign('pbHelp',"javascript:gethelp()");
36 # href for close file
37 $smarty->assign('breakfile',$breakfile);
38 # href for return file
39 //$smarty->assign('pbBack',$returnfile);
41 # Window title
42 $smarty->assign('title',$LDOpenHrsTxt);
44 # Buffer the page output
46 $smarty->assign('LDDayTxt', $LDDayTxt);
47 $smarty->assign('LDOpenHrsTxt',$LDOpenHrsTxt);
48 $smarty->assign('LDChkHrsTxt',$LDChkHrsTxt);
50 $sTemp = '';
52 for ($i=0;$i<sizeof($LDOpenDays);$i++){
54 $smarty->assign('sOpenDay',$LDOpenDays[$i]);
55 $smarty->assign('sOpenTimes',$LDOpenTimes[$i]);
56 $smarty->assign('sVisitTimes',$LDVisitTimes[$i]);
58 ob_start();
59 $smarty->display('common/opentimes_row.tpl');
60 $sTemp = $sTemp.ob_get_contents();
61 ob_end_clean();
65 $smarty->assign('sOpenTimesRows',$sTemp);
67 $smarty->assign('sBreakFile','<a href="'.$breakfile.'"><img '.createLDImgSrc($root_path,'back2.gif','0').' alt="'.$LDBackTxt.'"></a>');
69 $smarty->assign('sMainBlockIncludeFile','common/opentimes_table.tpl');
71 $smarty->display('common/mainframe.tpl');