Revision: 6504
          http://care2002.svn.sourceforge.net/care2002/?rev=6504&view=rev
Author:   mizuko
Date:     2010-06-30 14:58:20 +0000 (Wed, 30 Jun 2010)

Log Message:
-----------


Modified Paths:
--------------
    care2x/branches/gettext/modules/tech/tech.php

Added Paths:
-----------
    care2x/branches/gettext/modules/tech/technik-bot-pass.php
    care2x/branches/gettext/modules/tech/technik.php

Modified: care2x/branches/gettext/modules/tech/tech.php
===================================================================
--- care2x/branches/gettext/modules/tech/tech.php       2010-06-30 14:27:52 UTC 
(rev 6503)
+++ care2x/branches/gettext/modules/tech/tech.php       2010-06-30 14:58:20 UTC 
(rev 6504)
@@ -116,12 +116,21 @@
 
 # Prepare the submenu item links indexed by their template tags
 
+<<<<<<< .mine
+$aSubMenuItem=array('LDPharmaOrder' => "<a 
href=\"technik-reparatur-anfordern.php".URL_APPEND."\">$LDReRepair</a>",
+                                                                               
'LDHow2Order' => "<a 
href=\"tech-bot-pass.php".URL_APPEND."&mode=repabot\">$LDRepabotActivate</a>",
+                                                                               
'LDOrderCat' => "<a 
href=\"technik-reparatur-melden.php".URL_APPEND."\">$LDRepairReport</a>",
+                                                                               
'LDOrderArchive' => "<a 
href=\"technik-report-arch.php".URL_APPEND."\">$LDReportsArchive</a>",
+                                                                               
'LDPharmaDb' => "<a 
href=\"technik-questions.php".URL_APPEND."\">$LDQuestions</a>",
+                                                                               
'LDOrderBotActivate' => "<a 
href=\"tech-bot-pass.php".URL_APPEND."&mode=fragebot\">$LDQBotActivate</a>",
+=======
 $aSubMenuItem=array('LDPharmaOrder' => "<a 
href=\"tech-reparatur-anfordern.php".URL_APPEND."\">$LDReRepair</a>",
                                                                                
'LDHow2Order' => "<a 
href=\"tech-bot-pass.php".URL_APPEND."&mode=repairbot\">$LDRepairbotActivate</a>",
                                                                                
'LDOrderCat' => "<a 
href=\"tech-reparatur-melden.php".URL_APPEND."\">$LDRepairReport</a>",
                                                                                
'LDOrderArchive' => "<a 
href=\"tech-report-arch.php".URL_APPEND."\">$LDReportsArchive</a>",
                                                                                
'LDPharmaDb' => "<a href=\"tech-questions.php".URL_APPEND."\">$LDQuestions</a>",
                                                                                
'LDOrderBotActivate' => "<a 
href=\"tech-bot-pass.php".URL_APPEND."&mode=requestbot\">$LDQBotActivate</a>",
+>>>>>>> .r6503
                                                                                
);
 
 # Create the submenu rows

Copied: care2x/branches/gettext/modules/tech/technik-bot-pass.php (from rev 
6502, care2x/branches/gettext/modules/tech/technik-bot-pass.php)
===================================================================
--- care2x/branches/gettext/modules/tech/technik-bot-pass.php                   
        (rev 0)
+++ care2x/branches/gettext/modules/tech/technik-bot-pass.php   2010-06-30 
14:58:20 UTC (rev 6504)
@@ -0,0 +1,75 @@
+<?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','stdpass.php');
+define('NO_2LEVEL_CHK',1);
+require_once($root_path.'include/helpers/inc_front_chain_lang.php');
+
+require_once($root_path.'global_conf/areas_allow.php');
+
+$allowedarea=&$allow_area['tech'];
+
+$breakfile='technik.php?sid='.$sid.'&lang='.$lang;
+
+if($mode=='fragebot')
+{ $fileforward="technik.php".URL_REDIRECT_APPEND."&mode=$mode&stb=2"; 
+       $title=$LDQBotActivate; 
+}
+else 
+{
+       $fileforward="technik.php?sid=$sid&lang=$lang&mode=$mode&stb=1";
+       $title=$LDRepabotActivate;
+}
+
+$thisfile='tech-bot-pass.php';
+$lognote="$title ok";
+
+
+$userck='ck_technik_repabot_user';
+
+//reset cookie;
+// reset all 2nd level lock cookies
+
+setcookie($userck.$sid,'',0,'/');
+require($root_path.'include/helpers/inc_2level_reset.php');
+setcookie('ck_2level_sid'.$sid,'',0,'/');
+
+require($root_path.'include/helpers/inc_passcheck_internchk.php');
+if ($pass=='check')    
+       include($root_path.'include/helpers/inc_passcheck.php');
+
+$errbuf=$title;
+
+$minimal=1;
+require($root_path.'include/helpers/inc_passcheck_head.php');
+?>
+
+<BODY  <?php if (!$nofocus) echo 
'onLoad="document.passwindow.userid.focus()"'; echo  ' 
bgcolor='.$cfg['body_bgcolor']; 
+ if (!$cfg['dhtml']){ echo ' link='.$cfg['body_txtcolor'].' 
alink='.$cfg['body_alink'].' vlink='.$cfg['body_txtcolor']; } 
+?>>
+
+<p>
+<FONT    SIZE=-1  FACE="Arial">
+<img src="../../gui/img/common/default/tools.gif" border=0 width=48 height=48>
+<FONT  COLOR="<?php echo $cfg[top_txtcolor] ?>"  SIZE=5  FACE="verdana"> <b> 
<?php echo $title; ?></b></font>
+<p>
+<table width=100% border=0 cellpadding="0" cellspacing="0"> 
+
+<?php require($root_path.'include/helpers/inc_passcheck_mask.php') ?>  
+<p>
+
+<?php
+require($root_path.'include/helpers/inc_load_copyrite.php');
+ ?>
+
+</BODY>
+</HTML>

Copied: care2x/branches/gettext/modules/tech/technik.php (from rev 6502, 
care2x/branches/gettext/modules/tech/technik.php)
===================================================================
--- care2x/branches/gettext/modules/tech/technik.php                            
(rev 0)
+++ care2x/branches/gettext/modules/tech/technik.php    2010-06-30 14:58:20 UTC 
(rev 6504)
@@ -0,0 +1,153 @@
+<?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','tech.php');
+define('NO_2LEVEL_CHK',1);
+require_once($root_path.'include/helpers/inc_front_chain_lang.php');
+// reset all 2nd level lock cookies
+require($root_path.'include/helpers/inc_2level_reset.php');
+
+if(!isset($_SESSION['sess_path_referer'])) $_SESSION['sess_path_referer'] = "";
+if(!isset($_SESSION['sess_file_return'])) $_SESSION['sess_file_return'] = "";
+if(!isset($_SESSION['sess_file_forward'])) $_SESSION['sess_file_forward'] = "";
+
+$breakfile=$root_path.$_SESSION['sess_path_referer'];
+
+if(!file_exists($breakfile)) {
+    $breakfile=$root_path.'main/startframe.php';
+}
+
+$breakfile=$breakfile.URL_APPEND;
+$returnfile=$breakfile;
+
+$_SESSION['sess_file_return']=basename(__FILE__);
+$_SESSION['sess_path_referer']=str_replace($doc_root.'/','',__FILE__);
+
+if(!isset($stb)) $stb=0;
+
+# 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);
+
+# Added for the common header top block
+
+ $smarty->assign('sToolbarTitle',$LDTechSupport);
+
+ # Added for the common header top block
+ 
$smarty->assign('pbHelp',"javascript:gethelp('submenu1.php','$LDTechSupport')");
+
+ $smarty->assign('breakfile',$breakfile);
+
+ # Window bar title
+ $smarty->assign('title',$LDTechSupport);
+
+  # Add the bot onLoad code
+ if(isset($stb)){
+       if($stb==1) $smarty->assign('sOnLoadJs','onLoad="startbot(\'r\')"');
+       else if($stb==2) 
$smarty->assign('sOnLoadJs','onLoad="startbot(\'f\')"');
+ }
+ 
+ # Collect extra javascript code
+
+ ob_start();
+
+?>
+
+<script language="javascript" >
+<!--
+<?php  
+
+if($stb)
+echo '
+function startbot(d)
+{
+       if(d=="r") 
repabotwin=window.open("technik-repabot.php'.URL_REDIRECT_APPEND.'","repabotwin","width=300,height=150,menubar=no,resizable=yes,scrollbars=yes");
+       else if(d=="f") 
fragebotwin=window.open("technik-fragebot.php'.URL_REDIRECT_APPEND.'","fragebotwin","width=300,height=150,menubar=no,resizable=yes,scrollbars=yes");
+}
+';
+?>
+// -->
+</script>
+
+<?php
+
+       $sTemp = ob_get_contents();
+ob_end_clean();
+$smarty->append('JavaScript',$sTemp);
+
+ # Prepare the submenu icons
+
+ $aSubMenuIcon=array(createComIcon($root_path,'settings_tree.gif','0'),
+                                                                               
createComIcon($root_path,'sitemap_animator.gif','0'),
+                                                                               
createComIcon($root_path,'icn_rad.gif','0'),
+                                                                               
createComIcon($root_path,'eyeglass.gif','0'),
+                                                                               
createComIcon($root_path,'discussions.gif','0'),
+                                                                               
createComIcon($root_path,'sitemap_animator.gif','0')
+                                                                               
);
+
+# Prepare the submenu item descriptions
+
+$aSubMenuText=array($LDReRepairTxt,
+                                                                               
$LDRepabotActivateTxt,
+                                                                               
$LDRepairReportTxt,
+                                                                               
$LDReportsArchiveTxt,
+                                                                               
$LDQuestionsTxt,
+                                                                               
$LDQBotActivateTxt
+                                                                               
);
+
+# Prepare the submenu item links indexed by their template tags
+
+$aSubMenuItem=array('LDPharmaOrder' => "<a 
href=\"technik-reparatur-anfordern.php".URL_APPEND."\">$LDReRepair</a>",
+                                                                               
'LDHow2Order' => "<a 
href=\"tech-bot-pass.php".URL_APPEND."&mode=repabot\">$LDRepabotActivate</a>",
+                                                                               
'LDOrderCat' => "<a 
href=\"technik-reparatur-melden.php".URL_APPEND."\">$LDRepairReport</a>",
+                                                                               
'LDOrderArchive' => "<a 
href=\"technik-report-arch.php".URL_APPEND."\">$LDReportsArchive</a>",
+                                                                               
'LDPharmaDb' => "<a 
href=\"technik-questions.php".URL_APPEND."\">$LDQuestions</a>",
+                                                                               
'LDOrderBotActivate' => "<a 
href=\"tech-bot-pass.php".URL_APPEND."&mode=fragebot\">$LDQBotActivate</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 to the mainframe center block
+
+ $smarty->assign('sMainBlockIncludeFile','tech/submenu_technik.tpl');
+
+  /**
+ * show Template
+ */
+
+ $smarty->display('common/mainframe.tpl');
+?>


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

Reply via email to