- modules/fotolab updated imagej to current version & some cod fixes to make it work
[care2x.git] / Care2007 / modules / registration_admission / gui_bridge / default / gui_tabs_patreg.php
blob06c293e8b9c5ab60cb50e5551ed12f755b3472bc
1 <?php
2 # Creates the tabs for the patient registration module
3 if(!isset($notabs)||!$notabs){
5 $smarty->assign('bShowTabs',TRUE);
8 # Starting at version 2.0.2, the button is named "new patient"
9 # It can be reverted to "new person" by defining the ADMISSION_EXT_TABS constant to TRUE
10 # at the /include/inc_enviroment_global.php script
12 if(defined('ADMISSION_EXT_TABS') && ADMISSION_EXT_TABS){
14 # User "register new person" button
16 $sNewPatientButton ='register_green.gif';
17 $sNewPatientButtonGray ='register_gray.gif';
18 }else{
19 $sNewPatientButton ='new_patient_green.gif';
20 $sNewPatientButtonGray ='admit-gray.gif';
23 if($target=="entry") $img=$sNewPatientButton; //echo '<img '.createLDImgSrc($root_path,'register_green.gif','0').' alt="'.$LDAdmit.'">';
24 else{ $img=$sNewPatientButtonGray;}
25 $pbBuffer='<a href="patient_register.php'.URL_APPEND.'&target=entry"><img '.createLDImgSrc($root_path,$img,'0').' alt="'.$LDRegisterNewPerson.'" title="'.$LDRegisterNewPerson.'"';
26 if($cfg['dhtml']) $pbBuffer.='style=filter:alpha(opacity=70) onMouseover=hilite(this,1) onMouseOut=hilite(this,0)';
27 $pbBuffer.=' align=middle></a>';
28 $smarty->assign('pbNew',$pbBuffer);
30 if($target=="search") $img='search_green.gif'; //echo '<img '.createLDImgSrc($root_path,'search_green.gif','0').' alt="'.$LDSearch.'">';
31 else{ $img='such-gray.gif';}
32 $pbBuffer='<a href="patient_register_search.php'.URL_APPEND.'&target=search"><img '.createLDImgSrc($root_path,$img,'0').' alt="'.$LDSearch.'" title="'.$LDSearch.'"';
33 if($cfg['dhtml']) $pbBuffer.='style=filter:alpha(opacity=70) onMouseover=hilite(this,1) onMouseOut=hilite(this,0)';
34 $pbBuffer.=' align=middle></a>';
35 $smarty->assign('pbSearch',$pbBuffer);
37 if($target=="archiv") $img='advsearch_green.gif'; //echo '<img '.createLDImgSrc($root_path,'archive_green.gif','0').' alt="'.$LDArchive.'">';
38 else{$img='advsearch_gray.gif'; }
39 $pbBuffer='<a href="patient_register_archive.php'.URL_APPEND.'&target=archiv"><img '.createLDImgSrc($root_path,$img,'0').' alt="'.$LDAdvancedSearch.'" title="'.$LDAdvancedSearch.'" ';
40 if($cfg['dhtml']) $pbBuffer.='style=filter:alpha(opacity=70) onMouseover=hilite(this,1) onMouseOut=hilite(this,0)';
41 $pbBuffer.=' align=middle></a>';
42 $smarty->assign('pbAdvSearch',$pbBuffer);
44 $smarty->assign('sHSpacer','<img src="'.$root_path.'gui/img/common/default/pixel.gif" height=1 width=25>');
47 # Starting at version 2.0.2, the button is named "admission" and links to search admission page
49 //$pbBuffer='<a href="aufnahme_start.php'.URL_APPEND.'&target=entry"><img '.createLDImgSrc($root_path,'admit-gray.gif','0').' alt="'.$LDAdmit.'" title="'.$LDAdmit.'" ';
50 $pbBuffer='<a href="aufnahme_daten_such.php'.URL_APPEND.'&target=search"><img '.createLDImgSrc($root_path,'ein-gray.gif','0').' alt="'.$LDAdmit.'" title="'.$LDAdmit.'" ';
51 if($cfg['dhtml']) $pbBuffer.='style=filter:alpha(opacity=70) onMouseover=hilite(this,1) onMouseOut=hilite(this,0)';
52 $pbBuffer.=' align=middle></a>';
53 $smarty->assign('pbSwitchMode',$pbBuffer);
56 # Horizontal line below the tabs
58 //if($tab_bot_line) $sDivClass = $tab_bot_line; else $sDivClass = '#333399';
60 if($tab_bot_line) $sDivClass = 'class="reg_div"'; else $sDivClass = 'class="adm_div"';
62 $smarty->assign('sRegDividerClass',$sDivClass);
64 if(!empty($subtitle)) $smarty->assign('sSubTitle','<font color="#000099" SIZE=3 FACE="verdana,Arial"><b>:: '.$subtitle.'</b></font>');
66 if(isset($current_encounter)&&$current_encounter) $smarty->assign('sWarnText','<font size=2 FACE="verdana,Arial"> <img '.createComIcon($root_path,'warn.gif','0','absmiddle').'> '.$LDPersonIsAdmitted.'</font>');