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','products.php');
14 $local_user='ck_prod_db_user';
15 require_once($root_path.'include/inc_front_chain_lang.php');
17 $breakfile='apotheke.php'.URL_APPEND
;
19 # Start Smarty templating here
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 # Create a helper smarty object without reinitializing the GUI
31 $smarty2 = new smarty_care('common', FALSE);
33 # Title in the title bar
34 $smarty->assign('sToolbarTitle',"$LDPharmacy::$LDPharmaDb");
36 # href for the back button
37 // $smarty->assign('pbBack',$returnfile);
39 # href for the help button
40 $smarty->assign('pbHelp',"javascript:gethelp('submenu1.php','$LDPharmacy $LDPharmaDb')");
42 # href for the close button
43 $smarty->assign('breakfile',$breakfile);
46 $smarty->assign('title',"$LDPharmacy::$LDPharmaDb");
48 # Prepare the submenu icons
50 $aSubMenuIcon=array(createComIcon($root_path,'settings_tree.gif','0'),
51 createComIcon($root_path,'eyeglass.gif','0'),
52 createComIcon($root_path,'discussions.gif','0')
55 # Prepare the submenu item descriptions
57 $aSubMenuText=array($LDNewProductTxt,
62 # Prepare the submenu item links indexed by their template tags
64 $aSubMenuItem=array('LDNewProductTxt' => '<a href="'.$root_path.'modules/products/products-datenbank-functions-eingabe.php'. URL_APPEND
."&userck=$userck".'&cat=pharma">'.$LDNewProduct.'</a>',
65 'LDSearchDb' => '<a href="'.$root_path.'modules/products/products-datenbank-functions-such.php'. URL_APPEND
."&userck=$userck".'&cat=pharma">'.$LDSearch.'</a>',
66 'LDPharmaDbTxt' => '<a href="'.$root_path.'modules/products/products-datenbank-functions-manage.php'. URL_APPEND
."&userck=$userck".'&cat=pharma"><nobr>'.$LDManage.'</nobr></a>'
69 # Create the submenu rows
73 while(list($x,$v)=each($aSubMenuItem)){
76 if($cfg['icons'] != 'no_icon') $smarty2->assign('sIconImg','<img '.$aSubMenuIcon[$iRunner].'>');
77 $smarty2->assign('sSubMenuItem',$v);
78 $smarty2->assign('sSubMenuText',$aSubMenuText[$iRunner]);
79 $smarty2->display('common/submenu_row.tpl');
80 $sTemp = ob_get_contents();
83 $smarty->assign($x,$sTemp);
86 # Assign the submenu items table to the subframe
87 $smarty->assign('sSubMenuRowsIncludeFile','products/menu_manage.tpl');
89 # Assign the subframe to the mainframe center block
90 $smarty->assign('sMainBlockIncludeFile','common/submenu_tableframe.tpl');
95 $smarty->display('common/mainframe.tpl');