Revision: 6473 http://care2002.svn.sourceforge.net/care2002/?rev=6473&view=rev Author: mizuko Date: 2010-06-30 11:38:08 +0000 (Wed, 30 Jun 2010)
Log Message: ----------- see #54 Modified Paths: -------------- care2x/branches/gettext/modules/pharmacy/apotheke-pass.php care2x/branches/gettext/modules/products/products-datenbank-functions-datadelete.php care2x/branches/gettext/modules/products/products-datenbank-functions-eingabe.php care2x/branches/gettext/modules/products/products-datenbank-functions-manage.php care2x/branches/gettext/modules/products/products-datenbank-functions-such.php Added Paths: ----------- care2x/branches/gettext/modules/pharmacy/pharmacy-database-functions.php Removed Paths: ------------- care2x/branches/gettext/modules/pharmacy/apotheke-datenbank-functions.php Deleted: care2x/branches/gettext/modules/pharmacy/apotheke-datenbank-functions.php =================================================================== --- care2x/branches/gettext/modules/pharmacy/apotheke-datenbank-functions.php 2010-06-30 11:36:47 UTC (rev 6472) +++ care2x/branches/gettext/modules/pharmacy/apotheke-datenbank-functions.php 2010-06-30 11:38:08 UTC (rev 6473) @@ -1,97 +0,0 @@ -<?php -error_reporting(E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR); -require('./roots.php'); -require($root_path.'include/helpers/inc_environment_global.php'); -/** -* CARE2X Integrated Hospital Information System Deployment 2.1 - 2004-10-02 -* GNU General Public License -* Copyright 2002,2003,2004,2005 Elpidio Latorilla -* elpi...@care2x.org, -* -* See the file "copy_notice.txt" for the licence notice -*/ -define('LANG_FILE','products.php'); -$local_user='ck_prod_db_user'; -require_once($root_path.'include/helpers/inc_front_chain_lang.php'); - -$breakfile='pharmacy.php'.URL_APPEND; - -# 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('common'); - - # Create a helper smarty object without reinitializing the GUI - $smarty2 = new smarty_care('common', FALSE); - - # Title in the title bar - $smarty->assign('sToolbarTitle',"$LDPharmacy::$LDPharmaDb"); - - # href for the back button -// $smarty->assign('pbBack',$returnfile); - - # href for the help button - $smarty->assign('pbHelp',"javascript:gethelp('submenu1.php','$LDPharmacy $LDPharmaDb')"); - - # href for the close button - $smarty->assign('breakfile',$breakfile); - - # Window bar title - $smarty->assign('title',"$LDPharmacy::$LDPharmaDb"); - - # Prepare the submenu icons - - $aSubMenuIcon=array( createComIcon($root_path,'settings_tree.gif','0'), - createComIcon($root_path,'eyeglass.gif','0'), - createComIcon($root_path,'discussions.gif','0') - ); - -# Prepare the submenu item descriptions - -$aSubMenuText=array( $LDNewProductTxt, - $LDSearchDb, - $LDPharmaDbTxt - ); - -# Prepare the submenu item links indexed by their template tags - -$aSubMenuItem=array( 'LDNewProductTxt' => '<a href="'.$root_path.'modules/products/products-datenbank-functions-eingabe.php'. URL_APPEND."&userck=$userck".'&cat=pharma">'.$LDNewProduct.'</a>', - 'LDSearchDb' => '<a href="'.$root_path.'modules/products/products-datenbank-functions-such.php'. URL_APPEND."&userck=$userck".'&cat=pharma">'.$LDSearch.'</a>', - 'LDPharmaDbTxt' => '<a href="'.$root_path.'modules/products/products-datenbank-functions-manage.php'. URL_APPEND."&userck=$userck".'&cat=pharma"><nobr>'.$LDManage.'</nobr></a>' - ); - -# Create the submenu rows - -$iRunner = 0; - -while(list($x,$v)=each($aSubMenuItem)){ - $sTemp=''; - ob_start(); - if($cfg['icons'] != 'no_icon') $smarty2->assign('sIconImg','<img '.$aSubMenuIcon[$iRunner].'>'); - $smarty2->assign('sSubMenuItem',$v); - $smarty2->assign('sSubMenuText',$aSubMenuText[$iRunner]); - $smarty2->display('common/submenu_row.tpl'); - $sTemp = ob_get_contents(); - ob_end_clean(); - $iRunner++; - $smarty->assign($x,$sTemp); -} - -# Assign the submenu items table to the subframe -$smarty->assign('sSubMenuRowsIncludeFile','products/menu_manage.tpl'); - -# Assign the subframe to the mainframe center block -$smarty->assign('sMainBlockIncludeFile','common/submenu_tableframe.tpl'); - - /** - * show Template - */ - $smarty->display('common/mainframe.tpl'); - -?> Modified: care2x/branches/gettext/modules/pharmacy/apotheke-pass.php =================================================================== --- care2x/branches/gettext/modules/pharmacy/apotheke-pass.php 2010-06-30 11:36:47 UTC (rev 6472) +++ care2x/branches/gettext/modules/pharmacy/apotheke-pass.php 2010-06-30 11:38:08 UTC (rev 6473) @@ -36,7 +36,7 @@ $allowedarea[] = '_a_1_pharmadbadmin'; $src="dbankpass"; $userck="ck_prod_db_user"; - $fileforward="apotheke-datenbank-functions.php".$append.$userck."&from=".$src; + $fileforward="pharmacy-database-functions.php".$append.$userck."&from=".$src; break; case "catalog": $title=$LDOrderCat; $allowedarea[] = '_a_1_pharmadbadmin'; Copied: care2x/branches/gettext/modules/pharmacy/pharmacy-database-functions.php (from rev 6471, care2x/branches/gettext/modules/pharmacy/apotheke-datenbank-functions.php) =================================================================== --- care2x/branches/gettext/modules/pharmacy/pharmacy-database-functions.php (rev 0) +++ care2x/branches/gettext/modules/pharmacy/pharmacy-database-functions.php 2010-06-30 11:38:08 UTC (rev 6473) @@ -0,0 +1,97 @@ +<?php +error_reporting(E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR); +require('./roots.php'); +require($root_path.'include/helpers/inc_environment_global.php'); +/** +* CARE2X Integrated Hospital Information System Deployment 2.1 - 2004-10-02 +* GNU General Public License +* Copyright 2002,2003,2004,2005 Elpidio Latorilla +* elpi...@care2x.org, +* +* See the file "copy_notice.txt" for the licence notice +*/ +define('LANG_FILE','products.php'); +$local_user='ck_prod_db_user'; +require_once($root_path.'include/helpers/inc_front_chain_lang.php'); + +$breakfile='pharmacy.php'.URL_APPEND; + +# 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('common'); + + # Create a helper smarty object without reinitializing the GUI + $smarty2 = new smarty_care('common', FALSE); + + # Title in the title bar + $smarty->assign('sToolbarTitle',"$LDPharmacy::$LDPharmaDb"); + + # href for the back button +// $smarty->assign('pbBack',$returnfile); + + # href for the help button + $smarty->assign('pbHelp',"javascript:gethelp('submenu1.php','$LDPharmacy $LDPharmaDb')"); + + # href for the close button + $smarty->assign('breakfile',$breakfile); + + # Window bar title + $smarty->assign('title',"$LDPharmacy::$LDPharmaDb"); + + # Prepare the submenu icons + + $aSubMenuIcon=array( createComIcon($root_path,'settings_tree.gif','0'), + createComIcon($root_path,'eyeglass.gif','0'), + createComIcon($root_path,'discussions.gif','0') + ); + +# Prepare the submenu item descriptions + +$aSubMenuText=array( $LDNewProductTxt, + $LDSearchDb, + $LDPharmaDbTxt + ); + +# Prepare the submenu item links indexed by their template tags + +$aSubMenuItem=array( 'LDNewProductTxt' => '<a href="'.$root_path.'modules/products/products-datenbank-functions-eingabe.php'. URL_APPEND."&userck=$userck".'&cat=pharma">'.$LDNewProduct.'</a>', + 'LDSearchDb' => '<a href="'.$root_path.'modules/products/products-datenbank-functions-such.php'. URL_APPEND."&userck=$userck".'&cat=pharma">'.$LDSearch.'</a>', + 'LDPharmaDbTxt' => '<a href="'.$root_path.'modules/products/products-datenbank-functions-manage.php'. URL_APPEND."&userck=$userck".'&cat=pharma"><nobr>'.$LDManage.'</nobr></a>' + ); + +# Create the submenu rows + +$iRunner = 0; + +while(list($x,$v)=each($aSubMenuItem)){ + $sTemp=''; + ob_start(); + if($cfg['icons'] != 'no_icon') $smarty2->assign('sIconImg','<img '.$aSubMenuIcon[$iRunner].'>'); + $smarty2->assign('sSubMenuItem',$v); + $smarty2->assign('sSubMenuText',$aSubMenuText[$iRunner]); + $smarty2->display('common/submenu_row.tpl'); + $sTemp = ob_get_contents(); + ob_end_clean(); + $iRunner++; + $smarty->assign($x,$sTemp); +} + +# Assign the submenu items table to the subframe +$smarty->assign('sSubMenuRowsIncludeFile','products/menu_manage.tpl'); + +# Assign the subframe to the mainframe center block +$smarty->assign('sMainBlockIncludeFile','common/submenu_tableframe.tpl'); + + /** + * show Template + */ + $smarty->display('common/mainframe.tpl'); + +?> Modified: care2x/branches/gettext/modules/products/products-datenbank-functions-datadelete.php =================================================================== --- care2x/branches/gettext/modules/products/products-datenbank-functions-datadelete.php 2010-06-30 11:36:47 UTC (rev 6472) +++ care2x/branches/gettext/modules/products/products-datenbank-functions-datadelete.php 2010-06-30 11:38:08 UTC (rev 6473) @@ -25,7 +25,7 @@ $title=$LDPharmacy; $dbtable="care_pharma_products_main"; $imgpath=$root_path."uplodas/pharma/img/"; - $breakfile=$root_path."modules/pharmacy/apotheke-datenbank-functions.php?sid=$sid&lang=$lang&userck=$userck"; + $breakfile=$root_path."modules/pharmacy/pharmacy-database-functions.php?sid=$sid&lang=$lang&userck=$userck"; break; case "medstock": $title=$LDMedDepot; Modified: care2x/branches/gettext/modules/products/products-datenbank-functions-eingabe.php =================================================================== --- care2x/branches/gettext/modules/products/products-datenbank-functions-eingabe.php 2010-06-30 11:36:47 UTC (rev 6472) +++ care2x/branches/gettext/modules/products/products-datenbank-functions-eingabe.php 2010-06-30 11:38:08 UTC (rev 6473) @@ -14,7 +14,7 @@ switch($cat) { case "pharma": $title=$LDPharmacy; - $breakfile=$root_path."modules/pharmacy/apotheke-datenbank-functions.php".URL_APPEND."&userck=$userck"; + $breakfile=$root_path."modules/pharmacy/pharmacy-database-functions.php".URL_APPEND."&userck=$userck"; $imgpath=$root_path."uplodas/pharma/img/"; break; case "medstock": Modified: care2x/branches/gettext/modules/products/products-datenbank-functions-manage.php =================================================================== --- care2x/branches/gettext/modules/products/products-datenbank-functions-manage.php 2010-06-30 11:36:47 UTC (rev 6472) +++ care2x/branches/gettext/modules/products/products-datenbank-functions-manage.php 2010-06-30 11:38:08 UTC (rev 6473) @@ -19,7 +19,7 @@ { case "pharma": $title=$LDPharmacy; - $breakfile=$root_path."modules/pharmacy/apotheke-datenbank-functions.php".URL_APPEND."&userck=$userck"; + $breakfile=$root_path."modules/pharmacy/pharmacy-database-functions.php".URL_APPEND."&userck=$userck"; $imgpath=$root_path."uplodas/pharma/img/"; break; case "medstock": Modified: care2x/branches/gettext/modules/products/products-datenbank-functions-such.php =================================================================== --- care2x/branches/gettext/modules/products/products-datenbank-functions-such.php 2010-06-30 11:36:47 UTC (rev 6472) +++ care2x/branches/gettext/modules/products/products-datenbank-functions-such.php 2010-06-30 11:38:08 UTC (rev 6473) @@ -21,7 +21,7 @@ switch ( $cat) { case "pharma" : $title = $LDPharmacy; - $breakfile = $root_path . "modules/pharmacy/apotheke-datenbank-functions.php" . URL_APPEND . "&userck=$userck"; + $breakfile = $root_path . "modules/pharmacy/pharmacy-database-functions.php" . URL_APPEND . "&userck=$userck"; $imgpath = $root_path . "uplodas/pharma/img/"; break; case "medstock" : This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Care2002-developers mailing list Care2002-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/care2002-developers