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 * CARE2X Integrated Hospital Information System Deployment 2.2 - 2006-07-10
7 * GNU General Public License
8 * Copyright 2002,2003,2004,2005,2006 Elpidio Latorilla
11 * See the file "copy_notice.txt" for the licence notice
13 define('LANG_FILE','editor.php');
14 define('NO_2LEVEL_CHK',1);
15 require_once($root_path.'include/inc_front_chain_lang.php');
16 require_once($root_path.'include/inc_config_color.php');
18 /* Set the return paths */
19 $returnfile='editor-4plus1-select-art.php'.URL_APPEND
;
20 $breakfile='newscolumns.php'.URL_APPEND
;
22 if($mode=="preview4saved") $sReturn = $returnfile; else $sReturn = $breakfile;
24 /* Set the return file to this file*/
25 //$HTTP_SESSION_VARS['sess_file_return']=basename(__FILE__);
26 /* get the title = name of department */
27 $title=$HTTP_SESSION_VARS['sess_title'];
29 /* Get the news article */
30 require($root_path.'include/inc_news_get_one.php');
32 /* Get the news table width */
33 $config_type='news_normal_display_width';
34 include_once($root_path.'include/inc_get_global_config.php');
36 # Start Smarty templating here
41 # Note: it is advisable to load this after the inc_front_chain_lang.php so
42 # that the smarty script can use the user configured template theme
44 require_once($root_path.'gui/smarty_template/smarty_care.class.php');
45 $smarty = new smarty_care('common');
48 $smarty->assign('sToolbarTitle',$title);
50 # href for help button
51 $smarty->assign('pbHelp',"javascript:gethelp('dept_news.php')");
53 $smarty->assign('breakfile',$breakfile);
55 if($mode!="preview4saved"){
56 # href for return file
57 $smarty->assign('pbBack',$sReturn);
61 $smarty->assign('title',$title);
63 if($mode=="preview4saved"){
65 $smarty->assign('bShowPrompt',TRUE);
67 $smarty->assign('sMascotImg','<img '.createMascot($root_path,'mascot1_r.gif','0').'>');
68 $smarty->assign('LDArticleSaved', $LDArticleSaved);
71 if(isset($news_normal_display_width) && !empty($news_normal_display_width)){
72 $smarty->assign('news_normal_display_width',$news_normal_display_width);
74 $smarty->assign('news_normal_display_width','400');
77 $palign='left'; // Set the image alignment
79 include($root_path.'include/inc_news_display_one.php');
81 $smarty->assign('sBackLink','<a href="'.$sReturn.'"><img '.createComIcon($root_path,'l-arrowgrnlrg.gif','0').'><font SIZE=-1 color="#006600"> '.$LDBackTxt.'</a>');
83 $smarty->assign('sMainBlockIncludeFile','news/headline_dept_news.tpl');
85 $smarty->display('common/mainframe.tpl');