}
$smarty->assign('LDBillType', $LDBillType);
if (isset(${$billing_type}['LD_var']) && !empty(${$billing_type}['LD_var'])) {
    $smarty->assign('billing_type', ${$billing_type}['LD_var']);
} else {
    $smarty->assign('billing_type', $billing_type['name']);
}
$smarty->assign('LDDiagnosis', $LDDiagnosis);
$smarty->assign('referrer_diagnosis', $encounter['referrer_diagnosis']);
$smarty->assign('LDTherapy', $LDTherapy);
$smarty->assign('referrer_recom_therapy', $encounter['referrer_recom_therapy']);
$smarty->assign('LDSpecials', $LDSpecials);
$smarty->assign('referrer_notes', $encounter['referrer_notes']);
# Buffer page output
ob_start();
$smarty->display('nursing/basic_data_admit.tpl');
?>

<table width=100% border=0 cellpadding="0" cellspacing=0>
	<tr valign=top >
		<td bgcolor=<?php 
echo $cfg['body_bgcolor'];
?>
 valign=top colspan=2>


<!--  Show stop sign and warn if the initial ward assignment is different from this ward -->
<?php 
if ($encounter['current_ward_nr'] != $ward_nr) {
    ?>
			<table border=0>
Ejemplo n.º 2
0
    if ($lang == 'ar' || $lang == 'fa') {
        $smarty->assign('sBaseFramesetTemplate', 'common/frameset_floatingmenu_rtl.tpl');
    } else {
        $smarty->assign('sBaseFramesetTemplate', 'common/frameset_floatingmenu_ltr.tpl');
    }
    $smarty->assign('sMenuFrameSource', 'src="main/menubar2.php"');
    $smarty->assign('sStartFrameSource', "src=\"main/indexframe.php?boot=1&lang={$lang}&egal={$egal}&cookie={$cookie}&sid={$sid}&mask=2\"");
} else {
    $smarty->assign('sStartFrameSource', "src = \"main/indexframe.php?boot=1&mask={$mask}&lang={$lang}&cookie={$cookie}&sid={$sid}\"");
    #
    # Assign frame dimensions
    #
    $smarty->assign('gui_frame_left_nav_width', $GLOBALCONFIG['gui_frame_left_nav_width']);
    $smarty->assign('gui_frame_left_nav_border', $GLOBALCONFIG['gui_frame_left_nav_border']);
    if ($lang == 'ar' || $lang == 'fa') {
        $smarty->assign('sBaseFramesetTemplate', 'common/frameset_rtl.tpl');
        //require('gui/html_template/righttoliftdefault/tp_index.php');
    } else {
        #
        # Else use normal frameset design
        #
        $smarty->assign('sBaseFramesetTemplate', 'common/frameset_ltr.tpl');
    }
}
#
# Display the frame page
#
$smarty->display('common/baseframe.tpl');
?>

        echo createLDImgSrc($root_path, 'enter_result.gif', '0', 'absmiddle');
        ?>
 alt="<?php 
        echo $LDEnterResult;
        ?>
"></a>
<?php 
    }
    $smarty->assign('bgc1', $bgc1);
    $smarty->assign('printmode', FALSE);
    $smarty->assign('edit', FALSE);
    $smarty->assign('read_form', TRUE);
    $read_form = TRUE;
    //$edit = FALSE;
    include $root_path . 'include/inc_test_request_printout_patho.php';
    $smarty->display('forms/pathology.tpl');
    require $root_path . 'include/inc_test_request_hiddenvars.php';
    ?>
	<br>
		<input type="image" <?php 
    echo createLDImgSrc($root_path, 'savedisc.gif', '0', 'absmiddle');
    ?>
 title="<?php 
    echo $LDSaveEntry;
    ?>
"> 
        <a href="javascript:printOut()"><img <?php 
    echo createLDImgSrc($root_path, 'printout.gif', '0', 'absmiddle');
    ?>
 alt="<?php 
    echo $LDPrintOut;
Ejemplo n.º 4
0
if ($not_trans_id) {
    $sHiddenTemp = $sHiddenTemp . '<input type="hidden" name="sid" value="' . $sid . '">';
}
if (!isset($minimal) || !$minimal) {
    $sHiddenTemp = $sHiddenTemp . '
	<input type="hidden" name="dept" value="' . $dept . '">
	<input type="hidden" name="dept_nr" value="' . $dept_nr . '">
	<input type="hidden" name="retpath" value="' . $retpath . '">
	<input type="hidden" name="edit" value="' . $edit . '">
	<input type="hidden" name="pmonth" value="' . $pmonth . '">
	<input type="hidden" name="pyear" value="' . $pyear . '">
	<input type="hidden" name="pday" value="' . $pday . '">
	<input type="hidden" name="station" value="' . $station . '">
	<input type="hidden" name="ward_nr" value="' . $ward_nr . '">
	<input type="hidden" name="ipath" value="' . $ipath . '">';
}
if (isset($c_flag) && $c_flag) {
    $sHiddenTemp = $sHiddenTemp . '
	<input type="hidden" name="cmonth" value="' . $cmonth . '">
	<input type="hidden" name="cyear" value="' . $cyear . '">
	<input type="hidden" name="cday" value="' . $cday . '">';
}
$smarty->assign('sPassHiddenInputs', $sHiddenTemp);
$smarty->assign('sPassSubmitButton', '<INPUT type="image"  ' . createLDImgSrc($root_path, 'continue.gif', '0') . '>');
$smarty->assign('sCancelButton', '<a href="' . $breakfile . '"><img ' . createLDImgSrc($root_path, 'cancel.gif', '0') . '></a>');
#
# Display this page if necessary
#
if ($bShowThisPage) {
    $smarty->display('main/passcheck_entry_mask.tpl');
}
Ejemplo n.º 5
0
$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=\"technik-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=\"technik-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');
Ejemplo n.º 6
0
            if (strlen($row['notes']) > $GLOBAL_CONFIG['notes_preview_maxlen']) {
                $smarty->assign('sDetails', '<a href="javascript:popNotesDetails(\'' . $row['nr'] . '\',\'' . strtr($subtitle, "' ", "+") . '\',\'' . $this_type['LD_var'] . '\')"><img ' . createComIcon($root_path, 'info3.gif', '0', '', TRUE) . '></a>');
                //'
                $smarty->assign('sMakePdf', $topdf);
            } elseif (!empty($row['notes'])) {
                $smarty->assign('sMakePdf', $topdf);
            }
            if ($row['personell_name']) {
                $smarty->assign('sAuthor', $row['personell_name']);
            }
            if (!$parent_admit) {
                $smarty->assign('sEncNr', '<a href="aufnahme_daten_zeigen.php' . URL_APPEND . '&encounter_nr=' . $row['encounter_nr'] . '&origin=patreg_reg">' . $row['encounter_nr'] . '</a>');
            }
            # buffer the row and assign to array
            ob_start();
            $smarty->display('registration_admission/report_row.tpl');
            $sRows = $sRows . ob_get_contents();
            ob_end_clean();
        }
        $smarty->assign('sReportRows', $sRows);
    } else {
        # Else prompt no data available yet.
        $smarty->assign('bShowNoRecord', TRUE);
        $smarty->assign('sMascotImg', '<img ' . createMascot($root_path, 'mascot1_r.gif', '0', 'absmiddle') . '>');
        $smarty->assign('norecordyet', $norecordyet);
    }
    // end of if $rows
} else {
    # Else, mode is new data entry. Show the entry form
    $smarty->assign('bShowEntryForm', TRUE);
    $smarty->assign('bSetAsForm', TRUE);
        $smarty->assign('sIcon2', '<img ' . createComIcon($root_path, 'mans-red.gif', '0') . '>');
    }
    $smarty->assign('sInput2', '<input type="hidden" name="hr' . $n . '" value="' . $r_pnr['hr' . $n] . '">
	<input type="text" size="15" name="r' . $n . '" onFocus=this.select() value="' . $relems['r' . $n] . '">');
    $smarty->assign('sPopWin2', '<a href="javascript:popselect(\'' . $n . '\',\'r\')">
	<button onclick="javascript:popselect(\'' . $n . '\',\'r\')"><img ' . createComIcon($root_path, 'patdata.gif', '0') . ' alt="' . $LDClk2Plan . '"></button></a>');
    if ($relems['s' . $n] == "") {
        $smarty->assign('sIcon3', '<img ' . createComIcon($root_path, 'warn.gif', '0') . '>');
    } else {
        $smarty->assign('sIcon3', '<img ' . createComIcon($root_path, 'mans-red.gif', '0') . '>');
    }
    $smarty->assign('sInput3', '<input type="hidden" name="hs' . $n . '" value="' . $s_pnr['hs' . $n] . '">
	<input type="text" size="15" name="s' . $n . '" onFocus=this.select() value="' . $selems['s' . $n] . '">');
    $smarty->assign('sPopWin3', '<a href="javascript:popselect(\'' . $n . '\',\'s\')">
	<button onclick="javascript:popselect(\'' . $n . '\',\'s\')"><img ' . createComIcon($root_path, 'patdata.gif', '0') . ' alt="' . $LDClk2Plan . '"></button></a>');
    if ($wd == 6) {
        $wd = -1;
    }
    # Buffer each row and collect to a string
    ob_start();
    $smarty->display('common/duty_plan_entry_row.tpl');
    $sTemp = $sTemp . ob_get_contents();
    ob_end_clean();
}
# Assign the duty entry rows to the subframe template
$smarty->assign('sDutyRows', $sTemp);
$smarty->assign('sMainBlockIncludeFile', 'common/duty_plan_entry_frame.tpl');
/**
 * show Template
 */
$smarty->display('common/mainframe.tpl');
Ejemplo n.º 8
0
            if (!empty($row['diagnosis'])) {
                $smarty->assign('sDiagnosis', substr($row['diagnosis'], 0, $GLOBAL_CONFIG['medocs_text_preview_maxlen']) . '<br>');
            }
            if (!empty($row['short_notes'])) {
                $smarty->assign('sShortNotes', '[ ' . $row['short_notes'] . ' ]');
            }
            if (!empty($row['therapy'])) {
                $smarty->assign('sTherapy', substr($row['therapy'], 0, $GLOBAL_CONFIG['medocs_text_preview_maxlen']));
            }
            $smarty->assign('sDetailsIcon', '<a href="' . $thisfile . URL_APPEND . '&pid=' . $_SESSION['sess_pid'] . '&encounter_nr=' . $_SESSION['sess_en'] . '&target=' . $target . '&mode=details&type_nr=' . $type_nr . '&nr=' . $row['nr'] . '"><img ' . createComIcon($root_path, 'info3.gif', '0') . '></a>');
            $smarty->assign('sMakePdfIcon', '<a href="' . $root_path . 'modules/pdfmaker/medocs/report.php' . URL_APPEND . '&enc=' . $_SESSION['sess_en'] . '&mnr=' . $row['nr'] . '&target=' . $target . '" target=_blank><img ' . createComIcon($root_path, 'pdf_icon.gif', '0') . '></a>');
            if ($row['personell_name']) {
                $smarty->assign('sAuthor', $row['personell_name']);
            }
            ob_start();
            $smarty->display('medocs/docslist_row.tpl');
            $sTemp = $sTemp . ob_get_contents();
            ob_end_clean();
        }
        $smarty->assign('sDocsListRows', $sTemp);
    } else {
        # Show no record prompt
        $smarty->assign('bShowNoRecord', TRUE);
        $smarty->assign('sMascotImg', '<img ' . createMascot($root_path, 'mascot1_r.gif', '0', 'absmiddle') . '>');
        $smarty->assign('norecordyet', $norecordyet);
    }
} elseif ($mode == 'details') {
    # Show the record details
    # Set the include file
    $smarty->assign('sDocsBlockIncludeFile', 'medocs/form.tpl');
    $smarty->assign('sExtraInfo', nl2br($row['aux_notes']));
                 $sBuffer = '<a href="javascript:getrem(\'' . $bed['encounter_nr'] . '\')"><img ';
                 if ($display > 0) {
                     $sBuffer = $sBuffer . createComIcon($root_path, 'bubble3.gif', '0', '', TRUE);
                 } else {
                     $sBuffer = $sBuffer . createComIcon($root_path, 'bubble2.gif', '0', '', TRUE);
                 }
                 $sBuffer = $sBuffer . ' align="absmiddle" alt="' . $LDNoticeRW . '"></a>';
                 $smarty->assign('sNotesIcon', $sBuffer);
                 $smarty->assign('sTransferIcon', '<a style="display:none;" href="javascript:Transfer(\'' . $bed['encounter_nr'] . '\')"><img ' . createComIcon($root_path, 'xchange.gif', '0', '', TRUE) . ' align="absmiddle" alt="' . $LDTransferPatient . '"></a>');
                 $smarty->assign('sDischargeInfoIcon', '<a href="javascript:release_info(\'' . $bed['encounter_nr'] . '\')" title="show info"><img ' . createComIcon($root_path, 'button_info.gif', '0', '', TRUE) . ' align="absmiddle" alt="show info"></a>');
                 $smarty->assign('sDischargeIcon', '<a href="javascript:void(0);" onclick="' . ($vct[11] == 1 && $kct == 0 ? 'alert(\'This Patient has no Diagnosis \\n You can not Discharge.\')' : 'release(\'' . $bed['room_nr'] . '\',\'' . $bed['bed_nr'] . '\',\'' . $bed['encounter_nr'] . '\')') . '"><img ' . createComIcon($root_path, 'bestell.gif', '0', '', TRUE) . ' align="absmiddle" alt="' . $LDReleasePatient . '"></a>');
             }
         }
         # Create the rows using ward_occupancy_list_row.tpl template^
         ob_start();
         $smarty->display('nursing/ward_occupancy_list_row.tpl');
         $sListRows = $sListRows . ob_get_contents();
         ob_end_clean();
     }
     // end of bed loop
     # Append the new row to the previous row in string
     $smarty->assign('sOccListRows', $sListRows);
     //} # for loop
     #} // end of ward loop
 }
 # Final occupancy list line
 # Prepare the stations quick info data
 # Occupancy in percent
 $occ_percent = ceil($occ_beds / $nr_beds * 100);
 # Nr of vacant beds
 $vac_beds = $nr_beds - $occ_beds;
Ejemplo n.º 10
0
            $smarty->assign('sZipCode', $zeile['selian_pid']);
            if ($task == 'newprescription') {
                $sTarget = "<a href=\"show_prescription.php" . URL_APPEND . "&from=such&encounter_nr={$full_en}&target=search&pn={$full_en}&externalcall=true&prescrServ={$prescrServ}&back_path={$back_path}\">";
            } else {
                $sTarget = "<a href=\"aufnahme_daten_zeigen.php" . URL_APPEND . "&from=such&encounter_nr={$full_en}&target=search\">";
            }
            $sTarget = $sTarget . '<img ' . $img_options . ' title="' . $LDShowData . '"></a>';
            $smarty->assign('sOptions', $sTarget);
            if (!file_exists($root_path . 'cache/barcodes/en_' . $full_en . '.png')) {
                $smarty->assign('sHiddenBarcode', "<img src='" . $root_path . "classes/barcode/image.php?code=" . $full_en . "&style=68&type=I25&width=180&height=50&xres=2&font=5&label=2' border=0 width=0 height=0>");
            }
            #
            # Generate the row in buffer and append as string
            #
            ob_start();
            $smarty->display('registration_admission/admit_search_list_row.tpl');
            $sTemp = $sTemp . ob_get_contents();
            ob_end_clean();
        }
        #
        # Assign the rows string to template
        #
        $smarty->assign('sResultListRows', $sTemp);
        $smarty->assign('sPreviousPage', $pagen->makePrevLink($LDPrevious));
        $smarty->assign('sNextPage', $pagen->makeNextLink($LDNext));
    }
}
/*
$smarty->assign('sPostText','<a href="aufnahme_start.php'.URL_APPEND.'&mode=?">'.$LDAdmWantEntry.'</a><br>
	<a href="aufnahme_list.php'.URL_APPEND.'">'.$LDAdmWantArchive.'</a>');
*/
            	       						';
     					if($statik) 
     						echo '
          								<td><FONT face="Verdana,Helvetica,Arial" size=2>'.$zeile['picfile'].'<input type="hidden" name="bild" value="'.$zeile['picfile'].'"></td>
                 						 </td>';
     							else echo '
     								<td width=320  bgcolor="#ffffdd"><input type="file" name="bild" onChange="getfilepath(this)">                                                                                                   
              						 </td>';
     					echo '
         						</tr>
       						</table>
     						';
     */
     # If display is forced
     if ($bShowThisForm) {
         $smarty->display('products/form.tpl');
     }
 } else {
     echo "<p>" . str_replace("~nr~", $linecount, $LDFoundNrData) . "<br>{$LDClk2SeeInfo}<p>";
     echo "<table border=0 cellpadding=3 cellspacing=1> ";
     echo '<tr class="wardlisttitlerow">';
     for ($i = 0; $i < sizeof($LDMSRCindex) - 1; $i++) {
         echo '<td>' . $LDMSRCindex[$i] . '</td>';
     }
     echo "</tr>";
     /* Load common icons */
     $img_info = createComIcon($root_path, 'info3.gif', '0');
     $img_arrow = createComIcon($root_path, 'dwnarrowgrnlrg.gif', '0');
     while ($zeile = $ergebnis->FetchRow()) {
         echo "<tr class=";
         if ($toggle) {
Ejemplo n.º 12
0
}
$smarty->assign('sRowSpan', "rowspan=\"{$iRowSpan}\"");
$smarty->assign('LDBday', $LDBday);
$smarty->assign('sBdayDate', @formatDate2Local($date_birth, $date_format));
$smarty->assign('LDSex', $LDSex);
if ($sex == 'm') {
    $smarty->assign('sSexType', $LDMale);
} elseif ($sex == 'f') {
    $smarty->assign('sSexType', $LDFemale);
}
$smarty->assign('LDBloodGroup', $LDBloodGroup);
if ($blood_group) {
    $buf = 'LD' . $blood_group;
    $smarty->assign('blood_group', ${$buf});
}
$smarty->display('registration_admission/basic_data.tpl');
?>

					<table border=0 width=100% cellspacing=1 cellpadding=3>



<?php 
# Show input elements for additional info
if ($mode == 'new') {
    ?>
<tr>
<td colspan=3><img <?php 
    echo createComIcon($root_path, 'warn.gif', '0');
    ?>
> &nbsp;<FONT SIZE=-1  FACE="Arial"><?php 
Ejemplo n.º 13
0
}
$smarty->assign('LDBillType', $LDBillType);
if (isset(${$billing_type}['LD_var']) && !empty(${$billing_type}['LD_var'])) {
    $smarty->assign('billing_type', ${$billing_type}['LD_var']);
} else {
    $smarty->assign('billing_type', $billing_type['name']);
}
$smarty->assign('LDDiagnosis', $LDDiagnosis);
$smarty->assign('referrer_diagnosis', $encounter['referrer_diagnosis']);
$smarty->assign('LDTherapy', $LDTherapy);
$smarty->assign('referrer_recom_therapy', $encounter['referrer_recom_therapy']);
$smarty->assign('LDSpecials', $LDSpecials);
$smarty->assign('referrer_notes', $encounter['referrer_notes']);
# Buffer page output
ob_start();
$smarty->display('nursing/basic_data_admit.tpl');
?>

<!--  Show stop sign and warn if the initial ward assignment is different from this ward -->
<?php 
if ($encounter['current_dept_nr'] != $dept_nr) {
    $ack_but = 'takeover.gif';
    ?>

<table border=0>
  <tr>
    <td><img <?php 
    echo createLDImgSrc($root_path, 'stop.png', '0');
    ?>
></td>
    <td><?php 
* This is a hybrid compromise as long as not all forms are converted to smarty
* templates. In this case, when the form is pathology, the smarty assignments are done
* otherwise the output is buffered
*/
$edit = 0;
if ($target == 'patho') {
    $smarty->assign('patho', TRUE);
    include $root_path . 'include/inc_test_request_printout_patho.php';
} else {
    # Collect output buffer
    ob_start();
    if ($target == 'baclabor') {
        include $root_path . 'include/inc_test_findings_form_baclabor.php';
    } else {
        include $root_path . 'include/inc_test_request_printout_' . $target . '.php';
    }
    $sTemp = ob_get_contents();
    ob_end_clean();
    $smarty->assign('printout_form', $sTemp);
}
/**
 * show Copyright
 * managed in smarty_care.class.php
 */
$smarty->assign('sCopyright', $smarty->Copyright());
$smarty->assign('sPageTime', $smarty->Pagetime());
/**
 * show Template
 */
$smarty->display('laboratory/request_aftersave.tpl');
// $smarty->display('debug.tpl');
            					else $sBuffer = $sBuffer.createComIcon($root_path,'bubble2.gif','0','',TRUE);
            				$sBuffer = $sBuffer.' alt="'.$LDNoticeRW.'"></a>';
            
            				$smarty->assign('sNotesIcon',$sBuffer);
            
            				$smarty->assign('sTransferIcon','<a href="javascript:Transfer(\''.$patient['encounter_nr'].'\')"><img '.createComIcon($root_path,'xchange.gif','0','',TRUE).' alt="'.$LDTransferPatient.'"></a>');
            				*/
            $smarty->assign('sDischargeInfoIcon', '<a href="javascript:void(0)" onclick="release_info(\'' . $patient['encounter_nr'] . '\')" title="show info"><img ' . createComIcon($root_path, 'button_info.gif', '0', '', TRUE) . ' alt="show info"></a>');
            $smarty->assign('sDischargeIcon', '<a href="javascript:void(0)" onclick="' . ($vct[11] == 1 && $kct == 0 ? 'alert(\'This Patient has no Diagnosis \\n You can not Discharge.\')' : 'release(\'' . $patient['encounter_nr'] . '\')') . '" title="' . $LDReleasePatient . '"><img ' . createComIcon($root_path, 'bestell.gif', '0', '', TRUE) . ' alt="' . $LDReleasePatient . '"></a>');
            if ($patient['encounter_class_nr'] == 2) {
                $smarty->assign('sCheckBox', '<input name="checkbox[]" ' . ($vct[11] == 1 && $kct == 0 ? ' disabled="disabled"' : '') . ' type="checkbox" id="checkbox[]" value="' . $id . '">');
            }
        }
        # Create the rows using ward_occupancy_list_row.tpl template
        ob_start();
        $smarty->display('ambulatory/outpatients_list_row.tpl');
        $sListRows = $sListRows . ob_get_contents();
        ob_end_clean();
        # Append the new row to the previous row in string
        $smarty->assign('sOccListRows', $sListRows);
        //$countCheck= count($_POST['checkbox']);
        //$smarty->assign('scountCheck','<input type= "hidden" name ="countCheck" id = "countCheck" value="'.$countCheck.'">');
    }
    // end of patients loop
} else {
    # Prompt no outpatients available
    $smarty->assign('sWarningPrompt', '
			<div class="warnprompt"><p><ul><img ' . createMascot($root_path, 'mascot1_r.gif', '0', 'absmiddle') . '>
			' . str_replace("~station~", strtoupper($station), "There are no patients yet.") . '</b></font><br><img ' . createComIcon($root_path, 'bul_arrowgrnlrg.gif', '0', '', TRUE) . '>
			<a href="' . $root_path . 'modules/appointment_scheduler/appt_main_pass.php' . URL_APPEND . '&dept_nr=' . $dept_nr . '&dept_name=' . $dept . '">' . $LDGoToAppointments . '</a><p>
			</ul></div>');
Ejemplo n.º 16
0
$smarty->assign('TP_HREF_PWL1', '<a href="javascript:goDept(\'amb_clinic_patients_pass.php\')">' . $LDOutpatientClinic . '</a>');
// $smarty->assign('TP_HREF_PREQ1','<a href="javascript:goDept(\''.$root_path.'modules/laboratory/labor_test_request_pass.php\')">'.$LDPendingRequest.'</a>');
//$smarty->assign('TP_HREF_NEWS1','<a href="javascript:goDept(\''.$root_path.'modules/news/newscolumns.php\')">'.$LDNews.'</a>');
while (list($x, $v) = each($later_depts)) {
    //d.r from merotech: use of language file for department
    $buffer2 = $v['LD_var'];
    if (isset(${$buffer2}) && !empty(${$buffer2})) {
        $dep_clinic = ${$buffer2};
    } else {
        $dep_clinic = $v['name_formal'];
    }
    //
    $smarty->assign('sBlockTitle', $dep_clinic);
    $smarty->assign('sApptLink', "<a href=\"" . $root_path . "modules/appointment_scheduler/appt_main_pass.php" . URL_APPEND . "&target=" . $v['nr'] . "&dept_nr=" . $v['nr'] . "&user_origin=amb&dept=" . strtr($v['name_formal'], ' ', '+') . "\">" . $dep_clinic . "</a>");
    $smarty->assign('sOutPatientLink', "<a href=\"amb_clinic_patients_pass.php" . URL_APPEND . "&dept_nr=" . $v['nr'] . "&dept=" . strtr($v['name_formal'], ' ', '+') . "\">{$LDOutpatientClinic}</a>");
    //$smarty->assign('sPendReqLink',"<a href=\"".$root_path."modules/laboratory/labor_test_request_pass.php".URL_APPEND."&target=generic&subtarget=".$v['nr']."&user_origin=amb\">$LDPendingRequest</a>");
    $sTemp = '';
    ob_start();
    $smarty->display('ambulatory/submenu_dept.tpl');
    $sTemp = ob_get_contents();
    ob_end_clean();
    $rowcounter++;
    # Assign to main template object
    $smarty->assign('s' . $rowcounter . 'SubMenu', $sTemp);
}
# Assign the submenu to the mainframe center block
$smarty->assign('sMainBlockIncludeFile', 'ambulatory/submenu_ambulatory.tpl');
/**
 * show Template
 */
$smarty->display('common/mainframe.tpl');
Ejemplo n.º 17
0
    # d.r. from merotech, remove ipath_demo from plugins-menu
    if ($file != "." && $file != ".." && is_dir($file) && $file !== "ipath_demo" && $file !== "system_new_module") {
        include "{$file}/tags.php";
        if ($cfg['icons'] != 'no_icon') {
            if (empty($sPluginIconSmall)) {
                $sImgSrc = createComIcon($root_path, 'templates.gif', '0');
            } elseif (file_exists($sPluginIconSmall)) {
                $sImgSrc = "src=\"{$sPluginIconSmall}\"";
            } elseif (file_exists("{$file}/{$sPluginIconSmall}")) {
                $sImgSrc = "src=\"{$file}/{$sPluginIconSmall}\"";
            } else {
                $sImgSrc = createComIcon($root_path, 'templates.gif', '0');
            }
        }
        if ($count) {
            $smarty->display('common/submenu_row_spacer.tpl');
        } else {
            $count++;
        }
        if ($cfg['icons'] != 'no_icon') {
            $smarty->assign('sIconImg', '<img ' . $sImgSrc . '>');
        }
        $smarty->assign('sSubMenuItem', '<a href="' . $sPluginStartLocator . '">' . $sPluginName . '</a>');
        $smarty->assign('sSubMenuText', $sPluginDescription);
        $smarty->display('common/submenu_row.tpl');
    }
}
closedir($handle);
if (!$count) {
    echo $LDNoPluginsPrompt;
}
Ejemplo n.º 18
0
$smarty->assign('pbBack', $returnfile);
# Window title
$smarty->assign('title', $title);
/* Get the news global configurations */
$config_type = 'news_%';
include $root_path . 'include/inc_get_global_config.php';
if (!$news_normal_preview_maxlen) {
    $news_normal_preview_maxlen = 300;
}
/* Load editor functions */
require_once $root_path . 'include/inc_editor_fx.php';
$picalign = 'left';
for ($j = 1; $j <= $news_num_stop; $j++) {
    ob_start();
    include $root_path . 'include/inc_news_preview.php';
    $smarty->display('news/headline_newslist_item.tpl');
    $sTemp = ob_get_contents();
    ob_end_clean();
    # Assign to news item number
    $smarty->assign('sNews_' . $j, $sTemp);
}
if ($rows) {
    # If news category #5 exits, show the list
    $smarty->assign('bShowArchiveList', TRUE);
    $smarty->assign('subtitle', $subtitle);
    $smarty->assign('LDArticle', $LDArticle);
    $smarty->assign('LDWrittenBy', $LDWrittenBy);
    $smarty->assign('LDWrittenOn', $LDWrittenOn);
    #  Buffer news archive rows
    ob_start();
    while ($artikel = $news_archive->FetchRow()) {
.lmargin {margin-left: 5;}
</style>

</HEAD> 

<BODY bgcolor="white" OnLoad="window.print();">

<?php 
require_once $root_path . 'include/inc_test_request_printout_fx.php';
if ($show_print_button) {
    echo '<a href="javascript:window.print()"><img ' . createLDImgSrc($root_path, 'printout.gif', '0') . '></a><p>';
}
/* Load the form for printing out */
if ($subtarget == 'chemlabor' || $subtarget == 'baclabor') {
    require_once $root_path . 'include/inc_test_request_printout_chemlabor.php';
} elseif ($subtarget == 'patho') {
    $smarty->assign('bgc1', $bgc1);
    $smarty->assign('printmode', TRUE);
    $read_form = TRUE;
    include $root_path . 'include/inc_test_request_printout_' . $formfile . '.php';
    $smarty->display('forms/pathology.tpl');
} else {
    include $root_path . 'include/inc_test_request_printout_' . $formfile . '.php';
}
?>
     	

</BODY>
</HTML>
    echo $event['rose_23'];
    ?>
">
	<input type="hidden" name="rose_24" value="<?php 
    echo $event['rose_24'];
    ?>
">
	<input type="hidden" name="mode" value="save_event_changes">
	<!-- dony by d.r. from merotech
	<input type="submit" value="<?php 
    echo $LDSaveChanges;
    ?>
">-->
	<?php 
}
//echo '<a href="javascript:winClose()"><img '.createLDImgSrc($root_path,'close2.gif','0','absmiddle').'></a>';
?>

	</form>

	</ul>
	<?php 
$sTemp = ob_get_contents();
ob_end_clean();
# Assign page output to the mainframe template
$smarty->assign('sMainFrameBlockData', $sTemp);
/**
 * show Template
 */
$smarty->display('common/mainframe.tpl');
Ejemplo n.º 21
0
# 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', $LDOpenHrsTxt);
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp()");
# href for close file
$smarty->assign('breakfile', $breakfile);
# href for return file
//$smarty->assign('pbBack',$returnfile);
# Window title
$smarty->assign('title', $LDOpenHrsTxt);
# Buffer the page output
$smarty->assign('LDDayTxt', $LDDayTxt);
$smarty->assign('LDOpenHrsTxt', $LDOpenHrsTxt);
$smarty->assign('LDChkHrsTxt', $LDChkHrsTxt);
$sTemp = '';
for ($i = 0; $i < sizeof($LDOpenDays); $i++) {
    $smarty->assign('sOpenDay', $LDOpenDays[$i]);
    $smarty->assign('sOpenTimes', $LDOpenTimes[$i]);
    $smarty->assign('sVisitTimes', $LDVisitTimes[$i]);
    ob_start();
    $smarty->display('common/opentimes_row.tpl');
    $sTemp = $sTemp . ob_get_contents();
    ob_end_clean();
}
$smarty->assign('sOpenTimesRows', $sTemp);
$smarty->assign('sBreakFile', '<a href="' . $breakfile . '"><img ' . createLDImgSrc($root_path, 'back2.gif', '0') . '  alt="' . $LDBackTxt . '"></a>');
$smarty->assign('sMainBlockIncludeFile', 'common/opentimes_table.tpl');
$smarty->display('common/mainframe.tpl');