Revision: 6391
http://care2002.svn.sourceforge.net/care2002/?rev=6391&view=rev
Author: mizuko
Date: 2010-06-28 14:15:26 +0000 (Mon, 28 Jun 2010)
Log Message:
-----------
fixes #32 - refactor: aufnahme_pass.php to admission_pass.php
Added Paths:
-----------
care2x/branches/gettext/modules/registration_admission/admission_pass.php
Removed Paths:
-------------
care2x/branches/gettext/modules/registration_admission/aufnahme_pass.php
Copied:
care2x/branches/gettext/modules/registration_admission/admission_pass.php (from
rev 6390,
care2x/branches/gettext/modules/registration_admission/aufnahme_pass.php)
===================================================================
--- care2x/branches/gettext/modules/registration_admission/admission_pass.php
(rev 0)
+++ care2x/branches/gettext/modules/registration_admission/admission_pass.php
2010-06-28 14:15:26 UTC (rev 6391)
@@ -0,0 +1,139 @@
+<?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 beta 2.0.1 - 2004-07-04
+* GNU General Public License
+* Copyright 2002,2003,2004,2005,2006 Elpidio Latorilla
+* [email protected],
+*
+* 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['admit'];
+$append=URL_REDIRECT_APPEND.'&from=pass&fwd_nr='.$fwd_nr;
+
+#
+# Starting at version 2.0.2, the "new patient" button is hidden. It can be
shown by defining the ADMISSION_EXT_TABS constant to TRUE
+# at the /include/inc_enviroment_global.php script
+#
+if(!defined('ADMISSION_EXT_TABS') || !ADMISSION_EXT_TABS){
+ if(isset($target) && $target == 'entry') $target = 'search';
+}
+
+switch($target){
+
+ case 'entry':$fileforward='admission_start.php'.$append;
+ $lognote='Admission ok';
+ break;
+ case 'search':$fileforward='admission_data_search.php'.$append;
+ $lognote='Admision search ok';
+ break;
+ case 'archiv':$fileforward='aufnahme_list.php'.$append;
+ $lognote='Admission archive ok';
+ break;
+ default: $target='search';
+ $lognote='Admission ok';
+
$fileforward='admission_data_search.php'.$append;
+}
+
+
+$thisfile=basename(__FILE__);
+//$breakfile='startframe.php'.URL_APPEND;
+//$breakfile=$root_path.$_SESSION['sess_path_referer'].URL_APPEND.'&pid='.$pid;
+$breakfile='patient.php'.URL_APPEND.'&pid='.$pid;
+
+$userck='aufnahme_user';
+
+setcookie($userck.$sid,'');
+require($root_path.'include/helpers/inc_2level_reset.php');
+setcookie(ck_2level_sid.$sid,'');
+
+require($root_path.'include/helpers/inc_passcheck_internchk.php');
+if ($pass=='check')
+ include($root_path.'include/helpers/inc_passcheck.php');
+
+$errbuf=$LDAdmission;
+
+require($root_path.'include/helpers/inc_passcheck_head.php');
+?>
+
+<BODY onLoad="document.passwindow.userid.focus();" bgcolor=<?php echo
$cfg['body_bgcolor']; ?>
+<?php if (!$cfg['dhtml']){ echo ' link='.$cfg['idx_txtcolor'].'
alink='.$cfg['body_alink'].' vlink='.$cfg['idx_txtcolor']; } ?>>
+
+<FONT SIZE=-1 FACE="Arial">
+
+<P>
+<?php
+switch($target){
+ case 'entry':$buf=$LDAdmission; break;
+ case 'search':$buf=$LDAdmTargetSearch; break;
+ case 'archiv':$buf=$LDAdmTargetArchive; break;
+ default: $target="entry";$buf=$LDAdmission;
+}
+
+echo '
+<img '.createComIcon($root_path,'persons.gif','0','top').'><FONT
COLOR="'.$cfg['top_txtcolor'].'" SIZE=6 FACE="verdana">
<b>'.$buf.'</b></font>';
+ ?>
+
+
+<table width=100% border=0 cellpadding="0" cellspacing="0">
+<tr>
+<td colspan=3>
+<?php
+#
+# Starting at version 2.0.2, the "new patient" button is hidden. It can be
shown by defining the ADMISSION_EXT_TABS constant to TRUE
+# at the /include/inc_enviroment_global.php script
+#
+if(defined('ADMISSION_EXT_TABS') && ADMISSION_EXT_TABS){
+
+ if($target=="entry") echo '<img
'.createLDImgSrc($root_path,'admit-blue.gif','0').' alt="'.$LDAdmit.'">';
+ else{ echo'<a
href="admission_pass.php?sid='.$sid.'&target=entry&lang='.$lang.'"><img
'.createLDImgSrc($root_path,'admit-gray.gif','0').' alt="'.$LDAdmit.'"';
if($cfg['dhtml'])echo'class="fadeOut" '; echo '></a>';}
+}
+
+ if($target=="search") echo '<img
'.createLDImgSrc($root_path,'such-b.gif','0').' alt="'.$LDSearch.'">';
+ else{ echo '<a
href="admission_pass.php?sid='.$sid.'&target=search&lang='.$lang.'"><img
'.createLDImgSrc($root_path,'such-gray.gif','0').' alt="'.$LDSearch.'"
';if($cfg['dhtml'])echo'class="fadeOut" '; echo '></a>';}
+ if($target=="archiv") echo '<img
'.createLDImgSrc($root_path,'arch-blu.gif','0').' alt="'.$LDArchive.'">';
+ else{ echo '<a
href="admission_pass.php?sid='.$sid.'&target=archiv&lang='.$lang.'"><img
'.createLDImgSrc($root_path,'arch-gray.gif','0').' alt="'.$LDArchive.'"
';if($cfg['dhtml'])echo'class="fadeOut" '; echo '></a>';}
+?>
+ </td>
+</tr>
+
+<?php require($root_path.'include/helpers/inc_passcheck_mask.php') ?>
+
+<p>
+<?php
+#
+# Starting at version 2.0.2, the "entry" target is ignored
+#
+ /*
+ if($target!="entry") : ?>
+<img <?php echo createComIcon($root_path,'update.gif','0','absmiddle') ?>> <a
href="admission_pass.php?sid=<?php echo "$sid&lang=$lang"
?>&target=entry"><?php echo $LDAdmWantEntry ?></a><br>
+<?php
+endif
+*/
+?>
+
+<?php if($target!="search") : ?>
+<img <?php echo createComIcon($root_path,'update.gif','0','absmiddle') ?>> <a
href="admission_pass.php?sid=<?php echo "$sid&lang=$lang"
?>&target=search"><?php echo $LDAdmWantSearch ?></a><br>
+<?php endif ?>
+<?php if($target!="archiv") : ?>
+<img <?php echo createComIcon($root_path,'update.gif','0','absmiddle') ?>> <a
href="admission_pass.php?sid=<?php echo "$sid&lang=$lang"
?>&target=archiv"><?php echo $LDAdmWantArchive ?></a><br>
+<?php endif ?>
+<img <?php echo createComIcon($root_path,'frage.gif','0','absmiddle') ?>> <a
href="javascript:gethelp('admission_how2start.php','<?php echo $target
?>','entry')"><?php echo $LDAdmHow2Enter ?></a><br>
+<img <?php echo createComIcon($root_path,'frage.gif','0','absmiddle') ?>> <a
href="javascript:gethelp('admission_how2start.php','<?php echo $target
?>','search')"><?php echo $LDAdmHow2Search ?></a><br>
+<img <?php echo createComIcon($root_path,'frage.gif','0','absmiddle') ?>> <a
href="javascript:gethelp('admission_how2start.php','<?php echo $target
?>','archiv')"><?php echo $LDAdmHow2Archive ?></a><br>
+<p>
+<?php
+require($root_path.'include/helpers/inc_load_copyrite.php');
+?>
+
+</FONT>
+</BODY>
+</HTML>
Deleted:
care2x/branches/gettext/modules/registration_admission/aufnahme_pass.php
===================================================================
--- care2x/branches/gettext/modules/registration_admission/aufnahme_pass.php
2010-06-28 14:13:50 UTC (rev 6390)
+++ care2x/branches/gettext/modules/registration_admission/aufnahme_pass.php
2010-06-28 14:15:26 UTC (rev 6391)
@@ -1,139 +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 beta 2.0.1 - 2004-07-04
-* GNU General Public License
-* Copyright 2002,2003,2004,2005,2006 Elpidio Latorilla
-* [email protected],
-*
-* 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['admit'];
-$append=URL_REDIRECT_APPEND.'&from=pass&fwd_nr='.$fwd_nr;
-
-#
-# Starting at version 2.0.2, the "new patient" button is hidden. It can be
shown by defining the ADMISSION_EXT_TABS constant to TRUE
-# at the /include/inc_enviroment_global.php script
-#
-if(!defined('ADMISSION_EXT_TABS') || !ADMISSION_EXT_TABS){
- if(isset($target) && $target == 'entry') $target = 'search';
-}
-
-switch($target){
-
- case 'entry':$fileforward='admission_start.php'.$append;
- $lognote='Admission ok';
- break;
- case 'search':$fileforward='admission_data_search.php'.$append;
- $lognote='Admision search ok';
- break;
- case 'archiv':$fileforward='aufnahme_list.php'.$append;
- $lognote='Admission archive ok';
- break;
- default: $target='search';
- $lognote='Admission ok';
-
$fileforward='admission_data_search.php'.$append;
-}
-
-
-$thisfile=basename(__FILE__);
-//$breakfile='startframe.php'.URL_APPEND;
-//$breakfile=$root_path.$_SESSION['sess_path_referer'].URL_APPEND.'&pid='.$pid;
-$breakfile='patient.php'.URL_APPEND.'&pid='.$pid;
-
-$userck='aufnahme_user';
-
-setcookie($userck.$sid,'');
-require($root_path.'include/helpers/inc_2level_reset.php');
-setcookie(ck_2level_sid.$sid,'');
-
-require($root_path.'include/helpers/inc_passcheck_internchk.php');
-if ($pass=='check')
- include($root_path.'include/helpers/inc_passcheck.php');
-
-$errbuf=$LDAdmission;
-
-require($root_path.'include/helpers/inc_passcheck_head.php');
-?>
-
-<BODY onLoad="document.passwindow.userid.focus();" bgcolor=<?php echo
$cfg['body_bgcolor']; ?>
-<?php if (!$cfg['dhtml']){ echo ' link='.$cfg['idx_txtcolor'].'
alink='.$cfg['body_alink'].' vlink='.$cfg['idx_txtcolor']; } ?>>
-
-<FONT SIZE=-1 FACE="Arial">
-
-<P>
-<?php
-switch($target){
- case 'entry':$buf=$LDAdmission; break;
- case 'search':$buf=$LDAdmTargetSearch; break;
- case 'archiv':$buf=$LDAdmTargetArchive; break;
- default: $target="entry";$buf=$LDAdmission;
-}
-
-echo '
-<img '.createComIcon($root_path,'persons.gif','0','top').'><FONT
COLOR="'.$cfg['top_txtcolor'].'" SIZE=6 FACE="verdana">
<b>'.$buf.'</b></font>';
- ?>
-
-
-<table width=100% border=0 cellpadding="0" cellspacing="0">
-<tr>
-<td colspan=3>
-<?php
-#
-# Starting at version 2.0.2, the "new patient" button is hidden. It can be
shown by defining the ADMISSION_EXT_TABS constant to TRUE
-# at the /include/inc_enviroment_global.php script
-#
-if(defined('ADMISSION_EXT_TABS') && ADMISSION_EXT_TABS){
-
- if($target=="entry") echo '<img
'.createLDImgSrc($root_path,'admit-blue.gif','0').' alt="'.$LDAdmit.'">';
- else{ echo'<a
href="admission_pass.php?sid='.$sid.'&target=entry&lang='.$lang.'"><img
'.createLDImgSrc($root_path,'admit-gray.gif','0').' alt="'.$LDAdmit.'"';
if($cfg['dhtml'])echo'class="fadeOut" '; echo '></a>';}
-}
-
- if($target=="search") echo '<img
'.createLDImgSrc($root_path,'such-b.gif','0').' alt="'.$LDSearch.'">';
- else{ echo '<a
href="admission_pass.php?sid='.$sid.'&target=search&lang='.$lang.'"><img
'.createLDImgSrc($root_path,'such-gray.gif','0').' alt="'.$LDSearch.'"
';if($cfg['dhtml'])echo'class="fadeOut" '; echo '></a>';}
- if($target=="archiv") echo '<img
'.createLDImgSrc($root_path,'arch-blu.gif','0').' alt="'.$LDArchive.'">';
- else{ echo '<a
href="admission_pass.php?sid='.$sid.'&target=archiv&lang='.$lang.'"><img
'.createLDImgSrc($root_path,'arch-gray.gif','0').' alt="'.$LDArchive.'"
';if($cfg['dhtml'])echo'class="fadeOut" '; echo '></a>';}
-?>
- </td>
-</tr>
-
-<?php require($root_path.'include/helpers/inc_passcheck_mask.php') ?>
-
-<p>
-<?php
-#
-# Starting at version 2.0.2, the "entry" target is ignored
-#
- /*
- if($target!="entry") : ?>
-<img <?php echo createComIcon($root_path,'update.gif','0','absmiddle') ?>> <a
href="admission_pass.php?sid=<?php echo "$sid&lang=$lang"
?>&target=entry"><?php echo $LDAdmWantEntry ?></a><br>
-<?php
-endif
-*/
-?>
-
-<?php if($target!="search") : ?>
-<img <?php echo createComIcon($root_path,'update.gif','0','absmiddle') ?>> <a
href="admission_pass.php?sid=<?php echo "$sid&lang=$lang"
?>&target=search"><?php echo $LDAdmWantSearch ?></a><br>
-<?php endif ?>
-<?php if($target!="archiv") : ?>
-<img <?php echo createComIcon($root_path,'update.gif','0','absmiddle') ?>> <a
href="admission_pass.php?sid=<?php echo "$sid&lang=$lang"
?>&target=archiv"><?php echo $LDAdmWantArchive ?></a><br>
-<?php endif ?>
-<img <?php echo createComIcon($root_path,'frage.gif','0','absmiddle') ?>> <a
href="javascript:gethelp('admission_how2start.php','<?php echo $target
?>','entry')"><?php echo $LDAdmHow2Enter ?></a><br>
-<img <?php echo createComIcon($root_path,'frage.gif','0','absmiddle') ?>> <a
href="javascript:gethelp('admission_how2start.php','<?php echo $target
?>','search')"><?php echo $LDAdmHow2Search ?></a><br>
-<img <?php echo createComIcon($root_path,'frage.gif','0','absmiddle') ?>> <a
href="javascript:gethelp('admission_how2start.php','<?php echo $target
?>','archiv')"><?php echo $LDAdmHow2Archive ?></a><br>
-<p>
-<?php
-require($root_path.'include/helpers/inc_load_copyrite.php');
-?>
-
-</FONT>
-</BODY>
-</HTML>
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/care2002-developers