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

Log Message:
-----------
see #54

Added Paths:
-----------
    care2x/branches/gettext/modules/tech/tech-repair-advice.php

Removed Paths:
-------------
    care2x/branches/gettext/modules/tech/technik-reparatur-melden.php

Copied: care2x/branches/gettext/modules/tech/tech-repair-advice.php (from rev 
6527, care2x/branches/gettext/modules/tech/technik-reparatur-melden.php)
===================================================================
--- care2x/branches/gettext/modules/tech/tech-repair-advice.php                 
        (rev 0)
+++ care2x/branches/gettext/modules/tech/tech-repair-advice.php 2010-06-30 
16:18:30 UTC (rev 6528)
@@ -0,0 +1,177 @@
+<?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');
+
+$breakfile='tech.php'.URL_APPEND;
+$returnfile=$_SESSION['sess_file_return'].URL_APPEND;
+$_SESSION['sess_file_return']=basename(__FILE__);
+
+//$db->debug=1;
+
+if(isset($job)&&!empty($job)){
+       $dbtable='care_tech_repair_done';
+
+    if(!isset($db) || !$db) 
include_once($root_path.'include/helpers/inc_db_makelink.php');
+    if($dblink_ok) {
+                       
+        $sql="INSERT INTO ".$dbtable." 
+                                               (       dept,
+                                                       job,
+                                                       job_id,
+                                                       reporter,
+                                                       id,
+                                                       tdate,
+                                                       ttime,
+                                                       tid,
+                                                       seen,
+                                                       d_idx,
+                                                       status,
+                                                       history,
+                                                       create_id,
+                                                       create_time
+                                                        )
+                                               VALUES
+                                               (
+                                                       
'".htmlspecialchars($_POST['dept'])."',
+                                                       
'".htmlspecialchars($_POST['job'])."',
+                                                       
'".htmlspecialchars($_POST['job_id'])."',
+                                                       
'".htmlspecialchars($_POST['reporter'])."',
+                                                       
'".htmlspecialchars($_POST['id'])."', 
+                                                       '".$_POST['tdate']."', 
+                                                       '".$_POST['ttime']."',
+                                                       '".date('YmdHis')."',
+                                                       0,
+                                                       '".date('Ymd')."',
+                                                       'pending',
+                                                       'Create ".date('Y-m-d 
H:i:s')." ".$_SESSION['sess_user_name']."\n',
+                                                       
'".$_SESSION['sess_user_name']."',
+                                                       '".date('YmdHis')."'
+                                                       )";
+        $db->BeginTrans();
+        $ok=$db->Execute($sql);
+        if($ok && $db->CommitTrans()) {
+                   header("Location: 
tech-repair-voucher.php".URL_REDIRECT_APPEND."&dept=".$_POST['dept']."&reporter=".$_POST['reporter']."&tdate=".$_POST['tdate']."&ttime=".$_POST['ttime']);
+                   exit;
+         } else {
+                       $db->RollbackTrans();
+                       echo '<p>'.$sql.$LDDbNoSave.'<br>';
+               }
+       } else { echo "$LDDbNoLink<br>"; }
+}
+
+# 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');
+
+# Toolbar title
+
+ $smarty->assign('sToolbarTitle',$LDTechSupport);
+
+ # href for the return button
+ $smarty->assign('pbBack',$returnfile);
+
+# href for the  button
+ $smarty->assign('pbHelp',"javascript:gethelp('tech.php','report')");
+
+ $smarty->assign('breakfile',$breakfile);
+
+ # Window bar title
+ $smarty->assign('title',$LDTechSupport);
+
+ # Collect extra javascrit code
+
+ ob_start();
+?>
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN" "html.dtd">
+<?php html_rtl($lang); ?>
+<HEAD>
+<?php echo setCharSet(); ?>
+ <TITLE> OP </TITLE>
+
+ <script language="javascript" >
+<!-- 
+
+function checkform(d)
+{
+       if(d.dept.selectedIndex==-1) 
+               {       alert("<?php echo $LDAlertDept ?>");
+                       return false;
+               }
+       if(d.reporter.value=="") 
+               {       alert("<?php echo $LDAlertName ?>");
+                       d.reporter.focus();
+                       return false;
+               }
+       if(d.id.value=="") 
+               {       alert("<?php echo $LDAlertPNr ?>");
+                       d.id.focus();
+                       return false;
+               }
+       if(d.job.value=="") 
+               {       alert("<?php echo $LDPlsDescribe ?>");
+                       d.job.focus();
+                       return false;
+               }
+       return true;
+}
+
+// -->
+</script> 
+
+<?php 
+$sTemp = ob_get_contents();
+ob_end_clean();
+
+$smarty->append('JavaScript',$sTemp);
+
+$smarty->assign('sButton','<img 
'.createComIcon($root_path,'varrow.gif','0').'>');
+
+$smarty->assign('sFormTag','<form  action="tech-repair-advice.php" 
method="post" onSubmit="return checkform(this)">');
+$smarty->assign('LDRepairReport',$LDRepairReport);
+$smarty->assign('LDPlsDoneOnly',$LDPlsDoneOnly);
+$smarty->assign('LDRepairArea',$LDRepairArea);
+$smarty->assign('LDTechnician',$LDTechnician);
+$smarty->assign('LDPersonnelNr',$LDPersonnelNr);
+$smarty->assign('LDPlsTypeReport',$LDPlsTypeReport);
+$smarty->assign('LDJobIdNr',$LDJobIdNr);
+
+$smarty->assign('sHiddenInputs','<input type="hidden" name="tdate" 
value="'.date('Y-m-d').'" >
+       <input type="hidden" name="ttime" value= "'.date('H:i:s').'">
+       <input type="hidden" name="sid" value= "'.$sid.'">
+       <input type="hidden" name="lang" value= "'.$lang.'">');
+
+
+$smarty->assign('pbSubmit','<input type="image"  
'.createLDImgSrc($root_path,'abschic.gif','0','middle').'>');
+$smarty->assign('pbCancel','<a href="'.$breakfile.'" ><img 
'.createLDImgSrc($root_path,'cancel.gif','0','middle').' title="'.$LDCancel.'" 
align="middle"></a>');
+
+$smarty->assign('sRepairLink','<a 
href="tech-repair-request.php'.URL_APPEND.'">'.$LDReRepairTxt.'</a>');
+$smarty->assign('sQuestionLink','<a 
href="tech-questions.php'.URL_APPEND.'">'.$LDQuestionsTxt.'</a>');
+
+$smarty->assign('sMainBlockIncludeFile','tech/repair_report.tpl');
+
+ /**
+ * show Template
+ */
+
+ $smarty->display('common/mainframe.tpl');
+ // $smarty->display('debug.tpl');
+ ?>
\ No newline at end of file

Deleted: care2x/branches/gettext/modules/tech/technik-reparatur-melden.php
===================================================================
--- care2x/branches/gettext/modules/tech/technik-reparatur-melden.php   
2010-06-30 16:17:52 UTC (rev 6527)
+++ care2x/branches/gettext/modules/tech/technik-reparatur-melden.php   
2010-06-30 16:18:30 UTC (rev 6528)
@@ -1,177 +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','tech.php');
-define('NO_2LEVEL_CHK',1);
-require_once($root_path.'include/helpers/inc_front_chain_lang.php');
-
-$breakfile='tech.php'.URL_APPEND;
-$returnfile=$_SESSION['sess_file_return'].URL_APPEND;
-$_SESSION['sess_file_return']=basename(__FILE__);
-
-//$db->debug=1;
-
-if(isset($job)&&!empty($job)){
-       $dbtable='care_tech_repair_done';
-
-    if(!isset($db) || !$db) 
include_once($root_path.'include/helpers/inc_db_makelink.php');
-    if($dblink_ok) {
-                       
-        $sql="INSERT INTO ".$dbtable." 
-                                               (       dept,
-                                                       job,
-                                                       job_id,
-                                                       reporter,
-                                                       id,
-                                                       tdate,
-                                                       ttime,
-                                                       tid,
-                                                       seen,
-                                                       d_idx,
-                                                       status,
-                                                       history,
-                                                       create_id,
-                                                       create_time
-                                                        )
-                                               VALUES
-                                               (
-                                                       
'".htmlspecialchars($_POST['dept'])."',
-                                                       
'".htmlspecialchars($_POST['job'])."',
-                                                       
'".htmlspecialchars($_POST['job_id'])."',
-                                                       
'".htmlspecialchars($_POST['reporter'])."',
-                                                       
'".htmlspecialchars($_POST['id'])."', 
-                                                       '".$_POST['tdate']."', 
-                                                       '".$_POST['ttime']."',
-                                                       '".date('YmdHis')."',
-                                                       0,
-                                                       '".date('Ymd')."',
-                                                       'pending',
-                                                       'Create ".date('Y-m-d 
H:i:s')." ".$_SESSION['sess_user_name']."\n',
-                                                       
'".$_SESSION['sess_user_name']."',
-                                                       '".date('YmdHis')."'
-                                                       )";
-        $db->BeginTrans();
-        $ok=$db->Execute($sql);
-        if($ok && $db->CommitTrans()) {
-                   header("Location: 
tech-repair-voucher.php".URL_REDIRECT_APPEND."&dept=".$_POST['dept']."&reporter=".$_POST['reporter']."&tdate=".$_POST['tdate']."&ttime=".$_POST['ttime']);
-                   exit;
-         } else {
-                       $db->RollbackTrans();
-                       echo '<p>'.$sql.$LDDbNoSave.'<br>';
-               }
-       } else { echo "$LDDbNoLink<br>"; }
-}
-
-# 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');
-
-# Toolbar title
-
- $smarty->assign('sToolbarTitle',$LDTechSupport);
-
- # href for the return button
- $smarty->assign('pbBack',$returnfile);
-
-# href for the  button
- $smarty->assign('pbHelp',"javascript:gethelp('tech.php','report')");
-
- $smarty->assign('breakfile',$breakfile);
-
- # Window bar title
- $smarty->assign('title',$LDTechSupport);
-
- # Collect extra javascrit code
-
- ob_start();
-?>
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN" "html.dtd">
-<?php html_rtl($lang); ?>
-<HEAD>
-<?php echo setCharSet(); ?>
- <TITLE> OP </TITLE>
-
- <script language="javascript" >
-<!-- 
-
-function checkform(d)
-{
-       if(d.dept.selectedIndex==-1) 
-               {       alert("<?php echo $LDAlertDept ?>");
-                       return false;
-               }
-       if(d.reporter.value=="") 
-               {       alert("<?php echo $LDAlertName ?>");
-                       d.reporter.focus();
-                       return false;
-               }
-       if(d.id.value=="") 
-               {       alert("<?php echo $LDAlertPNr ?>");
-                       d.id.focus();
-                       return false;
-               }
-       if(d.job.value=="") 
-               {       alert("<?php echo $LDPlsDescribe ?>");
-                       d.job.focus();
-                       return false;
-               }
-       return true;
-}
-
-// -->
-</script> 
-
-<?php 
-$sTemp = ob_get_contents();
-ob_end_clean();
-
-$smarty->append('JavaScript',$sTemp);
-
-$smarty->assign('sButton','<img 
'.createComIcon($root_path,'varrow.gif','0').'>');
-
-$smarty->assign('sFormTag','<form  action="tech-repair-advice.php" 
method="post" onSubmit="return checkform(this)">');
-$smarty->assign('LDRepairReport',$LDRepairReport);
-$smarty->assign('LDPlsDoneOnly',$LDPlsDoneOnly);
-$smarty->assign('LDRepairArea',$LDRepairArea);
-$smarty->assign('LDTechnician',$LDTechnician);
-$smarty->assign('LDPersonnelNr',$LDPersonnelNr);
-$smarty->assign('LDPlsTypeReport',$LDPlsTypeReport);
-$smarty->assign('LDJobIdNr',$LDJobIdNr);
-
-$smarty->assign('sHiddenInputs','<input type="hidden" name="tdate" 
value="'.date('Y-m-d').'" >
-       <input type="hidden" name="ttime" value= "'.date('H:i:s').'">
-       <input type="hidden" name="sid" value= "'.$sid.'">
-       <input type="hidden" name="lang" value= "'.$lang.'">');
-
-
-$smarty->assign('pbSubmit','<input type="image"  
'.createLDImgSrc($root_path,'abschic.gif','0','middle').'>');
-$smarty->assign('pbCancel','<a href="'.$breakfile.'" ><img 
'.createLDImgSrc($root_path,'cancel.gif','0','middle').' title="'.$LDCancel.'" 
align="middle"></a>');
-
-$smarty->assign('sRepairLink','<a 
href="tech-repair-request.php'.URL_APPEND.'">'.$LDReRepairTxt.'</a>');
-$smarty->assign('sQuestionLink','<a 
href="tech-questions.php'.URL_APPEND.'">'.$LDQuestionsTxt.'</a>');
-
-$smarty->assign('sMainBlockIncludeFile','tech/repair_report.tpl');
-
- /**
- * show Template
- */
-
- $smarty->display('common/mainframe.tpl');
- // $smarty->display('debug.tpl');
- ?>
\ No newline at end of file


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