- 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_patadmit.php
blobfe37a0ab515b342abc70be0bbe2a157050e2b869
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 "new patient" button is hidden. It can be shown by defining the ADMISSION_EXT_TABS constant to TRUE
9 # at the /include/inc_enviroment_global.php script
11 if(defined('ADMISSION_EXT_TABS') && ADMISSION_EXT_TABS){
12 if($target=="entry") $img='admit-blue.gif';
13 else{ $img='admit-gray.gif';}
14 $pbBuffer='<a href="aufnahme_start.php'.URL_APPEND.'&target=entry"><img '.createLDImgSrc($root_path,$img,'0').' alt="'.$LDAdmit.'" title="'.$LDAdmit.'"';
15 if($cfg['dhtml']) $pbBuffer.='style=filter:alpha(opacity=70) onMouseover=hilite(this,1) onMouseOut=hilite(this,0)';
16 $pbBuffer.=' align=middle></a>';
17 $smarty->assign('pbNew',$pbBuffer);
19 # User "register new person" button
21 $sNewPersonButton ='register_gray.gif';
22 }else{
23 $sNewPersonButton ='admit-gray.gif';
27 if($target=="search") $img='such-b.gif'; //echo '<img '.createLDImgSrc($root_path,'search_green.gif','0').' alt="'.$LDSearch.'">';
28 else{ $img='such-gray.gif';}
29 $pbBuffer='<a href="aufnahme_daten_such.php'.URL_APPEND.'&target=search"><img '.createLDImgSrc($root_path,$img,'0').' alt="'.$LDSearch.'" title="'.$LDSearch.'"';
30 if($cfg['dhtml']) $pbBuffer.='style=filter:alpha(opacity=70) onMouseover=hilite(this,1) onMouseOut=hilite(this,0)';
31 $pbBuffer.=' align=middle></a>';
32 $smarty->assign('pbSearch',$pbBuffer);
34 if($target=="archiv") $img='arch-blu.gif'; //echo '<img '.createLDImgSrc($root_path,'archive_green.gif','0').' alt="'.$LDArchive.'">';
35 else{$img='arch-gray.gif'; }
36 $pbBuffer='<a href="aufnahme_list.php'.URL_APPEND.'&target=archiv"><img '.createLDImgSrc($root_path,$img,'0').' alt="'.$LDArchive.'" title="'.$LDArchive.'" ';
37 if($cfg['dhtml']) $pbBuffer.='style=filter:alpha(opacity=70) onMouseover=hilite(this,1) onMouseOut=hilite(this,0)';
38 $pbBuffer.=' align=middle></a>';
39 $smarty->assign('pbAdvSearch',$pbBuffer);
41 $smarty->assign('sHSpacer','<img src="'.$root_path.'gui/img/common/default/pixel.gif" height=1 width=25>');
42 // $pbBuffer='<a href="patient_register.php'.URL_APPEND.'&target=entry"><img '.createLDImgSrc($root_path,'register_gray.gif','0').' alt="'.$LDRegisterNewPerson.'" title="'.$LDRegisterNewPerson.'" ';
43 $pbBuffer='<a href="patient_register.php'.URL_APPEND.'&target=entry"><img '.createLDImgSrc($root_path,$sNewPersonButton,'0').' alt="'.$LDRegisterNewPerson.'" title="'.$LDRegisterNewPerson.'" ';
44 if($cfg['dhtml']) $pbBuffer.='style=filter:alpha(opacity=70) onMouseover=hilite(this,1) onMouseOut=hilite(this,0)';
45 $pbBuffer.=' align=middle></a>';
46 $smarty->assign('pbSwitchMode',$pbBuffer);
49 # Horizontal line below the tabs
51 //if($tab_bot_line) $sDivClass = $tab_bot_line; else $sDivClass = '#333399';
53 if($parent_admit) $sDivClass = 'class="adm_div"'; else $sDivClass = 'class="reg_div"';
55 $smarty->assign('sRegDividerClass',$sDivClass);
57 if(!empty($subtitle)) $smarty->assign('sSubTitle',":: $subtitle");