function printRadioButton($param, $value) { global $stored_request, $root_path; $noblank = 1; if ($value) { if ($stored_request[$param]) { echo '<img ' . createComIcon($root_path, 'radio_chk.gif', '0', 'absmiddle') . '>'; } else { $noblank = 0; } } elseif (!$stored_request[$param]) { echo '<img ' . createComIcon($root_path, 'radio_chk.gif', '0', 'absmiddle') . '>'; } else { $noblank = 0; } if (!$noblank) { echo '<img ' . createComIcon($root_path, 'radio_blk.gif', '0', 'absmiddle') . '>'; } $noblank = 1; /* if($value ) { if($stored_request[$param]==1) echo '<img '.createComIcon($root_path,'radio_chk.gif','0','absmiddle').'>'; else echo '<img '.createComIcon($root_path,'radio_blk.gif','0','absmiddle').'>'; } */ }
function checkParamValue($paramValue, $pName) { global $root_path, $patient; $txt = ''; $dobDiff = dateDiff("-", date("Y-m-d"), $patient['date_birth']); switch ($dobDiff) { case $dobDiff >= 1 and $dobDiff <= 30: if ($pName->fields['hi_bound_n'] && $paramValue > $pName->fields['hi_bound_n']) { $txt .= '<img ' . createComIcon($root_path, 'arrow_red_up_sm.gif', '0', '', TRUE) . '> <font color="red">' . htmlspecialchars($paramValue) . '</font>'; } elseif ($paramValue < $pName->fields['lo_bound_n']) { $txt .= '<img ' . createComIcon($root_path, 'arrow_red_dwn_sm.gif', '0', '', TRUE) . '> <font color="red">' . htmlspecialchars($paramValue) . '</font>'; } else { $txt .= htmlspecialchars($paramValue); } break; case $dobDiff >= 31 and $dobDiff <= 360: if ($pName->fields['hi_bound_y'] && $paramValue > $pName->fields['hi_bound_y']) { $txt .= '<img ' . createComIcon($root_path, 'arrow_red_up_sm.gif', '0', '', TRUE) . '> <font color="red">' . htmlspecialchars($paramValue) . '</font>'; } elseif ($paramValue < $pName->fields['lo_bound_y']) { $txt .= '<img ' . createComIcon($root_path, 'arrow_red_dwn_sm.gif', '0', '', TRUE) . '> <font color="red">' . htmlspecialchars($paramValue) . '</font>'; } else { $txt .= htmlspecialchars($paramValue); } break; case $dobDiff >= 361 and $dobDiff <= 5040: if ($pName->fields['hi_bound_c'] && $paramValue > $pName->fields['hi_bound_c']) { $txt .= '<img ' . createComIcon($root_path, 'arrow_red_up_sm.gif', '0', '', TRUE) . '> <font color="red">' . htmlspecialchars($paramValue) . '</font>'; } elseif ($paramValue < $pName->fields['lo_bound_c']) { $txt .= '<img ' . createComIcon($root_path, 'arrow_red_dwn_sm.gif', '0', '', TRUE) . '> <font color="red">' . htmlspecialchars($paramValue) . '</font>'; } else { $txt .= htmlspecialchars($paramValue); } break; case $dobDiff > 5040: if ($patient['sex'] == 'm') { if ($pName->fields['hi_bound'] && $paramValue > $pName->fields['hi_bound']) { $txt .= '<img ' . createComIcon($root_path, 'arrow_red_up_sm.gif', '0', '', TRUE) . '> <font color="red">' . htmlspecialchars($paramValue) . '</font>'; } elseif ($paramValue < $pName->fields['lo_bound']) { $txt .= '<img ' . createComIcon($root_path, 'arrow_red_dwn_sm.gif', '0', '', TRUE) . '> <font color="red">' . htmlspecialchars($paramValue) . '</font>'; } else { $txt .= htmlspecialchars($paramValue); } } elseif ($patient['sex'] == 'f') { if ($pName->fields['hi_bound_f'] && $paramValue > $pName->fields['hi_bound_f']) { $txt .= '<img ' . createComIcon($root_path, 'arrow_red_up_sm.gif', '0', '', TRUE) . '> <font color="red">' . htmlspecialchars($paramValue) . '</font>'; } elseif ($paramValue < $pName->fields['lo_bound_f']) { $txt .= '<img ' . createComIcon($root_path, 'arrow_red_dwn_sm.gif', '0', '', TRUE) . '> <font color="red">' . htmlspecialchars($paramValue) . '</font>'; } else { $txt .= htmlspecialchars($paramValue); } } break; } return $txt; }
function printRadioButton($param, $value, $printout = true) { global $stored_request, $root_path; if ($value) { if ($stored_request[$param]) { $buffer = '<img ' . createComIcon($root_path, 'radio_chk.gif', '0', 'absmiddle', TRUE) . '>'; } else { $buffer = ''; } } elseif (!$stored_request[$param]) { $buffer = '<img ' . createComIcon($root_path, 'radio_chk.gif', '0', 'absmiddle', TRUE) . '>'; } else { $buffer = ''; } if (empty($buffer)) { $buffer = '<img ' . createComIcon($root_path, 'radio_blk.gif', '0', 'absmiddle', TRUE) . '>'; } if ($printout) { echo $buffer; } else { return $buffer; } }
</ul> <font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a name="sel"><img <?php echo createComIcon('../', 'frage.gif', '0'); ?> ></a><font color="990000"><strong>¿Cómo añado a la persona a la lista de empleados?</strong></font> </font> <ul> <font size="2" face="Verdana, Arial, Helvetica, sans-serif"><b>Paso :</b> Dé clic al botón <img <?php echo createLDImgSrc('../', 'add_employ.gif', '0'); ?> >. </font> </ul> <font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a name="sel"><img <?php echo createComIcon('../', 'frage.gif', '0'); ?> ></a><strong><font color="990000">Si la persona ya está empleada, ¿Cómo muestro sus datos de empleo?</font></strong> </font> <ul> <font size="2" face="Verdana, Arial, Helvetica, sans-serif"><b>Paso :</b> Dé clic al botón <img <?php echo createLDImgSrc('../', 'employment_data.gif', '0'); ?> >. </font> </ul> </form>
<br> <font color=navy><b><?php echo $LDPhone; ?> :</b> <?php echo $dept['inphone1']; ?> <br></font></ul> </td> </tr> <!-- Temporary deactivated <tr> <td bgcolor=#ffffcc><img <?php echo createComIcon($root_path, 'warn.gif'); ?> > <font face=verdana,arial size=2 ><b><?php echo $LDMoreInfo; ?> </b><br></font> </td> </tr> <tr> <td><font face=verdana,arial size=2 ><?php echo $pinfo["info"]; ?> </font> </td>
</td><td> <img ' . createComIcon($root_path, 'mans-red.gif', '0') . '> '; if (in_array($v['nr'], $quicklist) && $OC_2['name_last']) { $temp_out .= '<a href="javascript:popinfo(\'' . $hr['hr' . (date('d') - 1)] . '\',\'' . $v['nr'] . '\')" title="Click f�r mehr Info."><b>' . $OC_2['name_last'] . ', ' . $OC_2['name_first'] . '</b></a>'; } $temp_out .= '</td> <td>'; if ($r['r' . (date('d') - 1)] != '') { $temp_out .= ' <font color=red> ' . $OC_2['funk1'] . '</font>'; if ($OC_2['inphone1']) { $temp_out .= ' / ' . $OC_2['inphone1']; } } $temp_out .= ' </td><td > <a href="nursing-or-dienstplan.phpURLAPPEND&dept_nr=' . $v['nr'] . '&retpath=qview"> <button onClick="javascript:window.location.href=\'nursing-or-dienstplan.phpURLREDIRECTAPPEND&dept_nr=' . $v['nr'] . '&retpath=qview\'"><img ' . createComIcon($root_path, 'new_address.gif', '0', 'absmiddle') . ' alt="IMGALT" ><font size=1> SHOWBUTTON </font></button></a> </td></tr>'; } # Save in cache if (!$force_no_cache || $force_no_cache && !$is_cached) { $dept_obj->saveDBCache('NOCS_' . date('Y-m-d'), addslashes($temp_out)); } # Display list $temp_out = str_replace('URLAPPEND', URL_APPEND, $temp_out); $temp_out = str_replace('IMGALT', $LDShowActualPlan, $temp_out); $temp_out = str_replace('SHOWBUTTON', $LDShow, $temp_out); echo str_replace('URLREDIRECTAPPEND', URL_REDIRECT_APPEND, $temp_out); } ?> </table> <p> <a href="<?php
<input type="text" name="publishdate" size=10 maxlength=10 onBlur="IsValidDate(this,'<?php echo $date_format; ?> ')" onKeyUp="setDate(this,'<?php echo $date_format; ?> ','<?php echo $lang; ?> ')"> <a href="javascript:show_calendar('selectform.publishdate','<?php echo $date_format; ?> ')"> <img <?php echo createComIcon($root_path, 'show-calendar.gif', '0', 'absmiddle'); ?> ></a> [<?php $dfbuffer = "LD_" . strtr($date_format, ".-/", "phs"); echo ${$dfbuffer}; ?> ] </td> <?php if ($artopt == 2) { ?> <td valign=top><img <?php echo createLDImgSrc($root_path, 'x-blank.gif', '0'); ?> id="headpic" ><br>
require './gui_bridge/default/gui_tabs_personell_reg.php'; ?> </table> <ul> <?php /* If the origin is admission link, show the search prompt */ if (isset($origin) && $origin == 'pass') { ?> <table border=0> <tr> <td valign="bottom"><img <?php echo createComIcon($root_path, 'angle_down_l.gif', '0'); ?> ></td> <td><font color="#000099" SIZE=3 FACE="verdana,Arial"> <b><?php echo $LDPlsSelectPatientFirst; ?> </b></font></td> <td><img <?php echo createMascot($root_path, 'mascot1_l.gif', '0', 'absmiddle'); ?> ></td> </tr> </table> <?php }
<ul> <b>Adým 1: </b>Kullanmak istediðiniz para biriminin kutusunu iþaretleyiniz.<p> <b>Adým 2: </b> <img <?php echo createLDImgSrc('../', 'savedisc.gif', '0'); ?> > düðmesini týklayýnýz.<p> </ul> <form> <img <?php echo createComIcon('../', 'frage.gif', '0'); ?> > <font color="#990000"><b> Para birimi bilgisi nasýl düzenlenir?</b></font> <ul> <b>Adým 1: </b>Kullanmak istediðiniz para biriminin <input type="button" value="Düzenle"> düðmesini týklayýnýz.<p> </ul> </form> <img <?php echo createComIcon('../', 'frage.gif', '0'); ?> > <font color="#990000"><b> Para birimi bilgisi nasýl silinir?</b></font> <ul> <b>Adým 2: </b> <img <?php echo createComIcon('../', 'delete2.gif', '0'); ?> > düðmesini týklayýnýz.<p> </ul>
while ($stations = $ward_info->FetchRow()) { $sWardInfo = $sWardInfo . '<tr><td><a href="' . strtr('nursing-station-pass.php' . URL_APPEND . '&rt=pflege&edit=1&station=' . $stations['ward_id'] . '&location_id=' . $stations['ward_id'] . '&ward_nr=' . $stations['nr'], ' ', ' ') . '"><div class="wardname"><li>' . strtoupper($stations['ward_id']) . ' </div></a> '; $sWardInfo = $sWardInfo . "\n"; $sWardInfo = $sWardInfo . '</td><td>' . $stations['name'] . '</td></tr>'; } } else { $sWardInfo = $LDNoWardsYet . '<br><img ' . createComIcon($root_path, 'redpfeil.gif', '0', 'absmiddle') . '> <a href="nursing-station-manage-pass.php' . URL_APPEND . '">' . $LDClk2CreateWard . '</a>'; } # Toolbar title $smarty->assign('sToolbarTitle', $LDNursing); # href for help button $smarty->assign('pbHelp', 'javascript:gethelp(\'nursing.php\',\'' . $LDNursing . '\')'); # Prepare the icons $aSubMenuIcon = array(createComIcon($root_path, 'team_wksp.gif', '0'), createComIcon($root_path, 'eye_s.gif', '0'), createComIcon($root_path, 'findnew.gif', '0'), createComIcon($root_path, 'storage.gif', '0'), createComIcon($root_path, 'timeplan.gif', '0'), createComIcon($root_path, 'forums.gif', '0'), createComIcon($root_path, 'bubble.gif', '0')); # Prepare the submenu links indexed with their template tags $aSubMenuItem = array('LDNursingStations' => $LDNursingStations . " <img " . createComIcon($root_path, 'dwn-arrow-grn.gif', '0', 'absmiddle') . ">", 'LDQuickView' => "<a href=\"" . $root_path . "modules/nursing/nursing-schnellsicht.php" . URL_APPEND . "\">{$LDQuickView}</a>", 'LDSearchPatient' => "<a href=\"" . $root_path . "modules/nursing/nursing-patient-such-start.php" . URL_APPEND . "\">{$LDSearchPatient}</a>", 'LDArchive' => "<a href=\"" . $root_path . "modules/nursing/nursing-station-archiv.php" . URL_APPEND . "\">{$LDArchive}</a>", 'LDStationMan' => "<a href=\"nursing-station-manage-pass.php?sid={$sid}&lang={$lang}\">{$LDStationMan}</a>", 'LDNursesList' => "<a href=\"" . $root_path . "modules/nursing_or/nursing-or-main-pass.php" . URL_APPEND . "&target=setpersonal&retpath=menu\">{$LDNursesList}</a>", 'LDNews' => "<a href=\"" . $root_path . "modules/news/newscolumns.php" . URL_APPEND . "&dept_nr=36\">{$LDNews}</a>"); $aSubMenuText = array('', $LDQuickViewTxt, $LDSearchPatientTxt, $LDArchiveTxt, $LDStationManTxt, $LDNursesListTxt, $LDNewsTxt); # 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++;
<?php /*------begin------ This protection code was suggested by Luki R. luki@karet.org ---- */ if (eregi("inc_products_ordercatalog_show.php", $PHP_SELF)) { die('<meta http-equiv="refresh" content="0; url=../">'); } /*------end------*/ if ($rows) { # Load the common icon images $img_info = createComIcon($root_path, 'info3.gif', '0'); $img_delete = createComIcon($root_path, 'delete2.gif', '0'); $tog = 1; print ' <font color="#800000">' . $LDCatalog . ':</font> <table border=0 cellspacing=1 cellpadding=0> <tr class="wardlisttitlerow">'; for ($i = 0; $i < sizeof($LDMCindex); $i++) { print ' <td> ' . $LDMCindex[$i] . ' </td>'; } print '<td></td></tr>'; while ($content = $ergebnis->FetchRow()) { if ($tog) { print '<tr class="wardlistrow2">'; $tog = 0; } else { print '<tr class="wardlistrow1">'; $tog = 1; } print ' <td> <a href="javascript:popinfo(\'' . $content['bestellnum'] . '\')" ><img ' . $img_info . ' alt="' . $LDOpenInfo . $content['artikelname'] . '"></a> </td>
<ul> <b>Passo:</b> Clique no botão <img <?php echo createLDImgSrc('../', 'savedisc.gif', '0'); ?> > . </ul> <font size=2 face="verdana,arial" > <a name="sel"><img <?php echo createComIcon('../', 'frage.gif', '0'); ?> > <font color="#990000"></a> <b>Como listar os documentos de prontuário disponíveis?</b></font> <ul> <b>Passo:</b> Clique em "<font color=#000080>Mostre lista de documentos</font>" abaixo do formulário do documento. </ul> <font size=2 face="verdana,arial" > <a name="sel"><img <?php echo createComIcon('../', 'frage.gif', '0'); ?> > <font color="#990000"></a> <b>Como ver um documento de prontuário?</b></font> <ul> <b>Passo:</b> Clique no ícone do documento <img <?php echo createComIcon('../', 'info3.gif', '0'); ?> >. </ul>
<a name="sall"></a> <font face="Verdana, Arial" size=2> <b> <p><font color="#990000">Wie kann ich die Patienten-Warteliste anzeigen lassen?</font></b><p> <font face="Verdana, Arial" size=2> <ul> <b>Schritt:</b> Klicken Sie auf "Alle anzeigen" unterhalb der Warteliste.<p> <img src="../help/en/img/en_ambulatory_showall.png" border=0 width=301 height=156> </ul> <a name="pic"></a> <font face="Verdana, Arial" size=2> <b> <p><font color="#990000">Wie sehe ich das Passbild eines Patienten an?</font></b><p> <font face="Verdana, Arial" size=2> <ul> <b>Schritt:</b> Klicken Sie auf <img <?php echo createComIcon($root_path, 'spf.gif', '0'); ?> > oder auf <img <?php echo createComIcon($root_path, 'spm.gif', '0'); ?> >.<p> <img src="../help/en/img/en_ambulatory_sex.png" border=0 width=434 height=84> </ul> </font> </body> </html>
# 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', $title); # href for help button $smarty->assign('pbHelp', "javascript:gethelp('dept_news.php')"); # href for close file $smarty->assign('breakfile', $breakfile); if ($mode != "preview4saved") { # href for return file $smarty->assign('pbBack', $sReturn); } # Window title $smarty->assign('title', $title); if ($mode == "preview4saved") { $smarty->assign('bShowPrompt', TRUE); $smarty->assign('sMascotImg', '<img ' . createMascot($root_path, 'mascot1_r.gif', '0') . '>'); $smarty->assign('LDArticleSaved', $LDArticleSaved); } if (isset($news_normal_display_width) && !empty($news_normal_display_width)) { $smarty->assign('news_normal_display_width', $news_normal_display_width); } else { $smarty->assign('news_normal_display_width', '400'); } $palign = 'left'; // Set the image alignment include $root_path . 'include/inc_news_display_one.php'; $smarty->assign('sBackLink', '<a href="' . $sReturn . '"><img ' . createComIcon($root_path, 'l-arrowgrnlrg.gif', '0') . '><font SIZE=-1 color="#006600"> ' . $LDBackTxt . '</a>'); $smarty->assign('sMainBlockIncludeFile', 'news/headline_dept_news.tpl'); $smarty->display('common/mainframe.tpl');
?> </HEAD> <BODY bgcolor=<?php echo $cfg['body_bgcolor']; if (!$cfg['dhtml']) { echo 'link=' . $cfg['idx_txtcolor'] . ' alink=' . $cfg['body_alink'] . ' vlink=' . $cfg['idx_txtcolor']; } ?> > <?php if (!$edit) { ?> <img <?php echo createComIcon($root_path, 'phone.gif', '0', 'absmiddle'); ?> > <?php } ?> <FONT COLOR="<?php echo $cfg[top_txtcolor]; ?> " SIZE=6 FACE="verdana"> <b><?php echo $LDPhoneDir; ?> </b></font> <table border=0 cellpadding=0 cellspacing=0 width="100%"> <tr>
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>CARE 2002</title> </head> <body onLoad="if (window.focus) window.focus()" marginheight=0 marginwidht=0 leftmargin=0 topmargin=0> <img src="../help/it/img/it_carelogo_help.png"><p> <p> <blockquote><font face="Verdana, Arial" size=2> <img <?php echo createComIcon('../', 'butft2_d.gif'); ?> ><p> <b>Primi passi nell'uso di <br>CARE 2002</b><p> Con la potenza di CARE2X e di Internet (o Intranet), tutte le informazioni nella vostra struttura si trovano e modificano facilmente. Basta clickare su una delle voci seguenti per iniziare. Le informazioni nella zona a sinistra (indice) mostreranno suggerimenti e spiegazioni aggiuntive che vi aiuteranno a lavorare meglio con CARE 2002. <p> <a href="#"><u>Configurazione di base</u></a><br> <p> <a href="#"><u>Configurare i diritti di accesso</u></a><p> <a href="#"><u>Informazioni su CARE 2002</u></a><br> Se non conoscete ancora CARE 2002, troverete qui le informazioni che servono. <p> <a href="#"><u>Introduzione a CARE 2002</u></a><br> <a href="#"><u>Lavorare presto e bene con CARE 2002</u></a><br> <a href="#"><u>Ricerca di informazioni</u></a><br> </font></blockquote> </body> </html>
?> > para salvar os dados de emprego atualizados.<p> <img <?php echo createComIcon('../', 'warn.gif', '0'); ?> > Nota: Se você quiser cancelar a atualização, clique no botão <img <?php echo createLDImgSrc('../', 'cancel.gif', '0'); ?> > . </ul> <?php } else { ?> <font color="#990000"><b>Comoempregar a pessoa?</b></font> <ul> <b>Passo 1:</b> Entre com os dados de emprego nos campos apropriados .<p> <b>Passo 2:</b> Clique no botão <img <?php echo createLDImgSrc('../', 'savedisc.gif', '0'); ?> > para salvar os dados de emprego.<p> <img <?php echo createComIcon('../', 'warn.gif', '0'); ?> > Nota: Se você quiser cancelar, clique no botão <img <?php echo createLDImgSrc('../', 'cancel.gif', '0'); ?> > . </ul> <?php } }
<td ><font size=2 color=#ffffff><b><?php echo $LDDescription; ?> </b></td> <td ><font size=2 color=#ffffff><nobr><b><?php echo $LDCategory; ?> </b> <a href="javascript:gethelp('drg_proc_cat.php')" ><img <?php echo createComIcon($root_path, 'frage.gif', '0', 'absmiddle', TRUE); ?> ></a></nobr></td> <td ><font size=2 color=#ffffff><nobr><b><?php echo $LDLocalization; ?> <a href="javascript:gethelp('drg_proc_loc.php')" ><img <?php echo createComIcon($root_path, 'frage.gif', '0', 'absmiddle', TRUE); ?> ></a></nobr></b></td> <td><font size=2 color=#ffffff><b><?php echo $LDDoneBy; ?> </b></td> <?php if ($display == 'composite') { ?> <td><font size=2 color=#ffffff> </td> <?php } ?> </tr>
<font face="Verdana, Arial" size=3 color="#0000cc"> <b>Medocs - Creating new document</b></font> <p> <font size=2 face="verdana,arial" > <a name="sel"><img <?php echo createComIcon('../', 'frage.gif', '0'); ?> > <font color="#990000"><b></a> How to create a new medocs document?</b></font> <ul> <b>Step 1: </b>Find the patient first.<p> <b>Step 2: </b>If the patient is in the resulting list, click its <img <?php echo createComIcon('../', 'statbel2.gif', '0'); ?> > icon to display its available medocs documents.<p> <b>Step 3: </b>Click "Enter new record" to generate a new form.<p> <b>Step 4: </b>Type the "Extra information" if available.<p> <b>Step 5: </b>Select the appropriate radio button for medical advice received by the patient.<p> <b>Step 6: </b>Type the textual diagnoses.<p> <b>Step 7: </b>Type the textual therapies.<p> </ul>
*/ # 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'); # Create a helper smarty object without reinitializing the GUI $smarty2 = new smarty_care('common', FALSE); # Added for the common header top block $smarty->assign('sToolbarTitle', $LDDoctors); # Added for the common header top block $smarty->assign('pbHelp', "javascript:gethelp('submenu1.php','{$LDDoctors}')"); $smarty->assign('breakfile', $breakfile); # Window bar title $smarty->assign('title', $LDDoctors); # Prepare the submenu icons $aSubMenuIcon = array(createComIcon($root_path, 'eye_s.gif', '0'), createComIcon($root_path, 'post_discussion.gif', '0'), createComIcon($root_path, 'forums.gif', '0'), createComIcon($root_path, 'bubble.gif', '0')); # Prepare the submenu item descriptions $aSubMenuText = array($LDQViewTxt, $LDDOCSTxt, $LDDocsForumTxt, $LDNewsTxt); # Prepare the submenu item links indexed by their template tags $aSubMenuItem = array('LDQViewTxt' => '<a href="doctors-dienst-schnellsicht.php' . URL_APPEND . '&retpath=docs">' . $LDQView . '</a>', 'LDDutyPlanTxt' => '<a href="doctors-main-pass.php' . URL_APPEND . '&target=dutyplan&retpath=menu">' . $LDDOCS . '</a>', 'LDDocsForumTxt' => '<a href="doctors-main-pass.php' . URL_APPEND . '&target=setpersonal&retpath=menu">' . $LDDocsList . '</a>', 'LDNewsTxt' => '<a href="' . $root_path . 'modules/news/newscolumns.php' . URL_APPEND . '&dept_nr=37&user_origin=dept">' . $LDNews . '</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');
<?php //echo $_COOKIE['ck_config']; // used only in debugging related to user config data if ($result) { while ($menu = $result->FetchRow()) { if (preg_match('/LDLogin/i', $menu['LD_var'])) { if ($_COOKIE['ck_login_logged' . $sid] == 'true') { $menu['url'] = 'main/logout_confirm.php'; $menu['LD_var'] = 'LDLogout'; } } echo '<TR><TD bgcolor=' . $cfg['idx_bgcolor'] . ' ALIGN="left">'; echo "\n"; echo '<A HREF="' . $root_path . $menu['url'] . URL_APPEND . '"'; echo ' TARGET="CONTENTS" REL="child">'; echo "\n"; echo '<nobr><img ' . createComIcon('../', 'blue_bullet.gif', '0', 'middle') . '><font FACE="verdana,Arial" SIZE=-1 ><b>'; if (isset(${$menu}['LD_var']) && !empty(${$menu}['LD_var'])) { echo ${$menu}['LD_var']; } else { echo $menu['name']; } echo '</b></nobr></FONT></A>'; echo "\n"; echo '</TD></TR>'; } } if (!$GLOBALCONFIG['language_single']) { ?> <tr> <td> <FONT FACE="Arial" SIZE="-1">
{ if(d=="r") repabotwin=window.open("technik-repabot.php' . URL_REDIRECT_APPEND . '","repabotwin","width=300,height=150,menubar=no,resizable=yes,scrollbars=yes"); else if(d=="f") fragebotwin=window.open("technik-fragebot.php' . URL_REDIRECT_APPEND . '","fragebotwin","width=300,height=150,menubar=no,resizable=yes,scrollbars=yes"); } '; } ?> // --> </script> <?php $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');
<b>Langkah 3</b> <ul> Jika Pencarian menemukan hasil tunggal, sebuah form dokumen baru dengan data dasar pasien akan ditampilkan. Jika bagaimanapun juga, pencarian menemukan beberapa hasil, sebuah daftar akan ditampilkan.. <?php } ?> <?php if ($src == "?" || $x1 > 1) { ?> <br> Untuk medokumentasikan pasien yang ada di dalam daftar, Klik tombol <img <?php echo createComIcon('../', 'r_arrowgrnsm.gif', '0'); ?> > yang berhubungan dengannya, atau nama keluarga, atau nama pemberian(nama belakang), atau nomor pasien, atau tanggal masuk(izin). </ul> <?php } ?> <?php if ($src == "?") { ?> <b>Langkah 4</b>
<p>Example 1: enter "21000012" or "12". <br>Example 2: enter "Guerero" or "gue". <br>Example 3: enter "Alfredo" or "Alf". <p> You can also use the <font color=#ff0000>%</font> and <font color=#ff0000>*</font> wildcards. </ul> <b>Step 2</b> <ul> Click the <img <?php echo createLDImgSrc('../', 'searchlamp.gif', '0'); ?> button to start the search.<p> </ul> <b>Step 3</b> <ul> If the search finds a result or results, a list will be displayed.<br> To see the admission data of the patient you are looking for, click the <img <?php echo createComIcon('../', 'l-arrowgrnlrg.gif', '0'); ?> > icon following it.<p> You can also click the patient's encounter nr., family name or first name. </ul> <br> <b>Note</b> <ul> If you decide to cancel search click the button <img <?php echo createLDImgSrc('../', 'cancel.gif', '0'); ?> >. </ul> </form>
<b>Schritt 6: </b>Klickt den <input type="button" value="Speichern"> Knopf an.<br> </ul> <img <?php echo createComIcon('../', 'frage.gif', '0'); ?> > <font color="#990000"><b> Wie entferne ich eine Adresse aus meinem Adressenbuch?</b> </font> <ul> <b>Schritt 1: </b>Klickt den Checkbox <input type="checkbox" name="d" value="s" checked> der Adresse die Sie entfernen möchten.<br> <b>Schritt 2: </b>Klickt den <input type="button" value="Löschen"> Knopf an.<br> <b>Schritt 3: </b>Sie werden nach einer Bestätigung gefragt.<br> <b>Schritt 4: </b>Klickt den <input type="button" value="OK"> Knopf an um die Adresse zu löschen.<p> </ul> <?php } ?> <img <?php echo createComIcon('../', 'warn.gif', '0', 'absmiddle'); ?> > <font color="#990000"><b> Achtung!</b> </font> <ul> Intranet Email und Adressen funktionieren NUR innerhalb des Intranets und sind unbrauchbar für das Internet.<br> </ul> </form>
/** * Displays the GUI input form */ function display() { global $db, $sid, $lang, $root_path, $pid, $insurance_show, $user_id, $mode, $dbtype, $no_tribe, $no_region, $update, $photo_filename; #, $_FILES $_POST, $_SESSION; extract($_POST); require_once $root_path . 'include/care_api_classes/class_advanced_search.php'; # Load the language tables $lang_tables = $this->langfiles; include $root_path . 'include/inc_load_lang_tables.php'; include_once $root_path . 'include/inc_date_format_functions.php'; include_once $root_path . 'include/care_api_classes/class_insurance.php'; include_once $root_path . 'include/care_api_classes/class_person.php'; $db->debug = FALSE; # Create the new person object $person_obj =& new Person($pid); # Create a new person insurance object $pinsure_obj =& new PersonInsurance($pid); if (!isset($insurance_show)) { $insurance_show = TRUE; } $newdata = 1; $error = 0; $dbtable = 'care_person'; if (!isset($photo_filename) || empty($photo_filename)) { $photo_filename = 'nopic'; } # Assume first that image is not uploaded $valid_image = FALSE; //* Get the global config for person's registration form*/ include_once $root_path . 'include/care_api_classes/class_globalconfig.php'; $glob_obj = new GlobalConfig($GLOBAL_CONFIG); $glob_obj->getConfig('person_%'); extract($GLOBAL_CONFIG); # Check whether config foto path exists, else use default path $photo_path = is_dir($root_path . $GLOBAL_CONFIG['person_foto_path']) ? $GLOBAL_CONFIG['person_foto_path'] : $this->default_photo_path; if ($mode == 'save' || $mode == 'forcesave') { $search_obj =& new advanced_search(); if (is_array($result_array = $search_obj->get_equal_words("tribe_name", "care_tz_tribes", false, 65, 'tribe_id')) && $name_maiden && !$no_tribe) { $tribe_array = $result_array; } else { $tribe_array = $result_array; } if (is_array($result_array = $search_obj->get_equal_words("name", "care_tz_religion", false, 65, 'nr')) && $religion && !$person_religion_hide) { $religion_array = $result_array; } else { $religion_array = $result_array; } /* if (is_array($result_array=$search_obj->get_equal_words("region_name", "care_tz_region", false, 65, 'region_id')) && $email && !$person_email_hide ) { $region_array=$result_array; } else { $region_array=$result_array; } if (is_array($result_array=$search_obj->get_equal_words1("district_name", "care_tz_district", false, 65, 'district_id',$email)) && $sss_nr ) { $district_array=$result_array; } else { $district_array=$result_array; } if (is_array($result_array=$search_obj->get_equal_words1("ward_name", "care_tz_ward", false, 65, 'ward_id',$sss_nr)) && $nat_id_nr ) { $ward_array=$result_array; } else { $ward_array=$result_array; } */ # If saving is not forced, validate important elements if ($mode != 'forcesave') { # clean and check input data variables if (trim($encoder) == '') { $encoder = $aufnahme_user; } if (trim($name_last) == '') { $errornamelast = 1; $error++; } //if (trim($selian_pid)=='' || !is_numeric($selian_pid) || (!$update && $person_obj->SelianFileExists($selian_pid))) { $errorfilenr=1; $error++;} if ($person_obj->IsHospitalFileNrMandatory()) { if (trim($selian_pid) == '' || !$update && $person_obj->SelianFileExists($selian_pid)) { $errorfilenr = 1; $error++; } } if (trim($name_first) == '') { $errornamefirst = 1; $error++; } if (trim($date_birth) == '') { $errordatebirth = 1; $error++; } if (mktime(0, 0, 0, substr($date_birth, 3, 2), substr($date_birth, 0, 2), substr($date_birth, 6, 4)) > time()) { $errordatebirth = 1; $error++; } //if (is_array($tribe_array) && !$no_tribe) {$errormaiden=1; $error++;} //if (is_array($town_array)) {$errortown=1; $error++;} //if (!$citizenship) { $errortown=1; $error++;} if ($sex == '') { $errorsex = 1; $error++; } } # If the validation produced no error, save the data if (!$error) { # Save the old filename for testing $old_fn = $photo_filename; # Create image object include_once $root_path . 'include/care_api_classes/class_image.php'; $img_obj =& new Image(); # Check the uploaded image file if exists and valid if ($img_obj->isValidUploadedImage($_FILES['photo_filename'])) { $valid_image = TRUE; # Get the file extension $picext = $img_obj->UploadedImageMimeType(); } //addr_citytown_nr='$addr_citytown_nr', if ($update) { //echo formatDate2STD($geburtsdatum,$date_format); $sql = "UPDATE {$dbtable} SET\n\t\t\t\t\t\t\t title='{$title}',\n\t\t\t\t\t\t\t selian_pid='{$selian_pid}',\n\t\t\t\t\t\t\t name_last='{$name_last}',\n\t\t\t\t\t\t\t name_first='{$name_first}',\n\t\t\t\t\t\t\t name_2='{$name_2}',\n\t\t\t\t\t\t\t name_3='{$name_3}',\n\t\t\t\t\t\t\t name_middle='{$name_middle}',\n\t\t\t\t\t\t\t name_maiden='{$name_maiden}',\n\t\t\t\t\t\t\t name_others='{$name_others}',\n\t\t\t\t\t\t\t date_birth='" . formatDate2STD($date_birth, $date_format) . "',\n\t\t\t\t\t\t\t blood_group='" . trim($blood_group) . "',\n\t\t\t\t\t\t\t rh='" . trim($rh) . "',\n\t\t\t\t\t\t\t sex='{$sex}',\n\t\t\t\t\t\t\t addr_str='{$addr_str}',\n\t\t\t\t\t\t\t addr_str_nr='{$addr_str_nr}',\n\t\t\t\t\t\t\t addr_zip='{$addr_zip}',\n\t\t\t\t\t\t\t addr_citytown_nr='{$addr_citytown_nr}',\n\t\t\t\t\t\t\t addr_citytown_name='{$addr_citytown_name}',\n\t\t\t\t\t\t\t phone_1_nr='{$phone_1_nr}',\n\t\t\t\t\t\t\t phone_2_nr='{$phone_2_nr}',\n\t\t\t\t\t\t\t cellphone_1_nr='{$cellphone_1_nr}',\n\t\t\t\t\t\t\t cellphone_2_nr='{$cellphone_2_nr}',\n\t\t\t\t\t\t\t fax='{$fax}',\n\t\t\t\t\t\t\t email='',\n\t\t\t\t\t\t\t citizenship ='{$citizenship}',\n\t\t\t\t\t\t\t civil_status='{$civil_status}',\n\t\t\t\t\t\t\t sss_nr='',\n\t\t\t\t\t\t\t nat_id_nr='',\n\t\t\t\t\t\t\t religion='{$religion}', insurance_ID='{$insurance_ID}',\n\t\t\t\t\t\t\t ethnic_orig='{$ethnic_orig}',\n\t\t\t\t\t\t\t date_update='" . date('Y-m-d H:i:s') . "',"; if ($region != "-1" && $district != "-1" && $ward != "-1") { $sql .= "region='{$region}',\n\t\t\t\t\t\t\t district='{$district}',\n\t\t\t\t\t\t\t ward='{$ward}',"; } //if ($old_fn!=$photo_filename){ if ($valid_image) { # Compose the new filename $photo_filename = $pid . '.' . $picext; # Save the file $img_obj->saveUploadedImage($_FILES['photo_filename'], $root_path . $photo_path . '/', $photo_filename); # add to the sql query $sql .= " photo_filename='{$photo_filename}',"; } # complete the sql query $sql .= " history=" . $person_obj->ConcatHistory("Update " . date('Y-m-d H:i:s') . " " . $_SESSION['sess_user_name'] . " \n") . ", modify_id='" . $_SESSION['sess_user_name'] . "' WHERE pid={$pid}"; //$db->debug=true; $db->BeginTrans(); $ok = $db->Execute($sql); if ($ok) { $db->CommitTrans(); # Update the insurance data # Lets detect if the data is already existing if ($insurance_show) { if ($insurance_item_nr) { if (!empty($insurance_nr) && !empty($insurance_firm_name) && $insurance_firm_id) { $insure_data = array('insurance_nr' => $insurance_nr, 'firm_id' => $insurance_firm_id, 'class_nr' => $insurance_class_nr, 'history' => "Update " . date('Y-m-d H:i:s') . " " . $_SESSION['sess_user_name'] . " \n", 'modify_id' => $_SESSION['sess_user_name'], 'modify_time' => date('YmdHis')); $pinsure_obj->updateDataFromArray($insure_data, $insurance_item_nr); } } elseif ($insurance_nr && $insurance_firm_name && $insurance_class_nr) { $insure_data = array('insurance_nr' => $insurance_nr, 'firm_id' => $insurance_firm_id, 'pid' => $pid, 'class_nr' => $insurance_class_nr, 'history' => "Update " . date('Y-m-d H:i:s') . " " . $_SESSION['sess_user_name'] . " \n", 'create_id' => $_SESSION['sess_user_name'], 'create_time' => date('YmdHis')); $pinsure_obj->insertDataFromArray($insure_data); } } $newdata = 1; if (file_exists($this->displayfile)) { header("location: {$this->displayfile}" . URL_REDIRECT_APPEND . "&pid={$pid}&from={$from}&newdata=1&target=entry"); exit; } else { echo "Error! Target display file not defined!!"; } } else { $db->RollbackTrans(); } } else { $from = 'entry'; $_POST['date_birth'] = @formatDate2Std($date_birth, $date_format); $_POST['date_reg'] = date('Y-m-d H:i:s'); $_POST['blood_group'] = trim($_POST['blood_group']); $_POST['status'] = 'normal'; $_POST['history'] = "Init.reg. " . date('Y-m-d H:i:s') . " " . $_SESSION['sess_user_name'] . "\n"; //$_POST['modify_id']=$_SESSION['sess_user_name']; $_POST['create_id'] = $_SESSION['sess_user_name']; $_POST['create_time'] = date('YmdHis'); # Prepare internal data to be stored together with the user input data if (!$person_obj->InitPIDExists($GLOBAL_CONFIG['person_id_nr_init'])) { # If db is mysql, insert the initial pid value from global config # else let the dbms make an initial value via the sequence generator e.g. postgres # However, the sequence generator must be configured during db creation to start at # the initial value set in the global config if ($dbtype == 'mysql') { $_POST['pid'] = $GLOBAL_CONFIG['person_id_nr_init']; } } else { # Persons are existing. Check if duplicate might exist if (is_object($duperson = $person_obj->PIDbyData($_POST))) { $error_person_exists = TRUE; } } //echo $person_obj->getLastQuery(); if (!$error_person_exists || $mode == 'forcesave') { if ($person_obj->insertDataFromInternalArray()) { # If data was newly inserted, get the insert id if mysq, else get the pid number) if (!$update) { $oid = $db->Insert_ID(); $pid = $person_obj->LastInsertPK('pid', $oid); /* if($dbtype=='mysql'){ $pid=$db->Insert_ID(); }else{ $pid=$person_obj->postgre_Insert_ID($dbtable,'pid',$db->Insert_ID()); }*/ } //if(!$update) $pid=$db->Insert_ID(); # Save the valid uploaded photo if ($valid_image) { # Compose the new filename by joining the pid number and the file extension with "." $photo_filename = $pid . '.' . $picext; # Save the file if ($img_obj->saveUploadedImage($_FILES['photo_filename'], $root_path . $photo_path . '/', $photo_filename)) { # Update the filename to the databank $person_obj->setPhotoFilename($pid, $photo_filename); } } //echo $pid; //echo $citizenship; # Update the insurance data # Lets detect if the data is already existing if ($insurance_show) { if ($insurance_item_nr) { if (!empty($insurance_nr) && !empty($insurance_firm_name) && $insurance_firm_id) { $insure_data = array('insurance_nr' => $insurance_nr, 'firm_id' => $insurance_firm_id, 'class_nr' => $insurance_class_nr); $pinsure_obj->updateDataFromArray($insure_data, $insurance_item_nr); } } elseif ($insurance_nr && $insurance_firm_name && $insurance_class_nr) { $insure_data = array('insurance_nr' => $insurance_nr, 'firm_id' => $insurance_firm_id, 'pid' => $pid, 'class_nr' => $insurance_class_nr); $pinsure_obj->insertDataFromArray($insure_data); } } $newdata = 1; if (file_exists($this->displayfile)) { header("location: {$this->displayfile}" . URL_REDIRECT_APPEND . "&pid={$pid}&from={$from}&newdata=1&target=entry"); exit; } else { echo "Error! Target display file not defined!!"; } } else { echo "<p>{$db->ErrorMsg}()<p>{$LDDbNoSave}"; } } } } // end of if(!$error) } elseif (!empty($this->pid)) { # Get the person�s data if ($data_obj =& $person_obj->getAllInfoObject()) { $zeile = $data_obj->FetchRow(); extract($zeile); //print_r($zeile); # Get the related insurance data $p_insurance =& $pinsure_obj->getPersonInsuranceObject($pid); if ($p_insurance == FALSE) { $insurance_show = TRUE; } else { if (!$p_insurance->RecordCount()) { $insurance_show = TRUE; } elseif ($p_insurance->RecordCount() == 1) { $buffer = $p_insurance->FetchRow(); extract($buffer); $insurance_show = TRUE; $insurance_firm_name = $pinsure_obj->getFirmName($insurance_firm_id); } else { $insurance_show = FALSE; } } } } else { $date_reg = date('Y-m-d H:i:s'); } # Get the insurance classes $insurance_classes =& $pinsure_obj->getInsuranceClassInfoObject('class_nr,name,LD_var AS "LD_var"'); include_once $root_path . 'include/inc_photo_filename_resolve.php'; $search_obj =& new advanced_search(); if (!$update) { $tribe = $name_maiden; $town = $citizenship; } if (is_array($result_array = $search_obj->get_equal_words("tribe_name", "care_tz_tribes", false, 65, 'tribe_id')) && $name_maiden && !$no_tribe) { $tribe_array = $result_array; } else { $tribe_array = $result_array; } /* if (is_array($result_array=$search_obj->get_equal_words("village_name", "care_tz_village", false, 65, 'village_id',$ward)) && $addr_citytown_nr) { $town_array=$result_array; } else { $town_array=$result_array; }*/ if (is_array($result_array = $search_obj->get_equal_words("name", "care_tz_religion", false, 65, 'nr')) && $religion) { $religion_array = $result_array; } else { $religion_array = $result_array; } /* if (is_array($result_array=$search_obj->get_equal_words("region_name", "care_tz_region", false, 65, 'region_id')) && $email && !$person_email_hide ) { $region_array=$result_array; } else { $region_array=$result_array; } if (is_array($result_array=$search_obj->get_equal_words1("district_name", "care_tz_district", false, 65, 'district_id',$email)) && $sss_nr ) { $district_array=$result_array; } else { $district_array=$result_array; } if (is_array($result_array=$search_obj->get_equal_words1("ward_name", "care_tz_ward", false, 65, 'ward_id',$sss_nr)) && $nat_id_nr ) { $ward_array=$result_array; } else { $ward_array=$result_array; } */ ######## Here starts the GUI output ####################################################### $img_male = createComIcon($root_path, 'spm.gif', '0'); $img_female = createComIcon($root_path, 'spf.gif', '0'); $tbg = 'background="' . $root_path . 'gui/img/common/' . $theme_com_icon . '/tableHeader_gr.gif"'; if (!empty($this->pretext)) { echo $this->pretext; } ?> <script language="javascript"> <!-- function test(){ document.aufnahmeform.action="<?php $_SERVER['PHP_SELF']; ?> "; document.aufnahmeform.submit(); } function forceSave(){ document.aufnahmeform.mode.value="forcesave"; document.aufnahmeform.submit(); } function showpic(d){ if(d.value) document.images.headpic.src=d.value; } function popSearchWin(target,obj_val,obj_name){ urlholder="./data_search.php<?php echo URL_REDIRECT_APPEND; ?> &target="+target+"&obj_val="+obj_val+"&obj_name="+obj_name; DSWIN<?php echo $sid; ?> =window.open(urlholder,"wblabel<?php echo $sid; ?> ","menubar=no,width=400,height=550,resizable=yes,scrollbars=yes"); } function list_popup(d,chosentype) { if(d.value=="notinlist") { urlholder="<?php echo $root_path; ?> modules/registration_admission/notinlist.php<?php echo URL_APPEND . '&chosentype=" + chosentype + "'; ?> "; notinlist=window.open(urlholder,"notinlist","width=500,height=450,menubar=no,resizable=yes,scrollbars=yes"); } } function chkform(d) { <?php if ($person_obj->IsHospitalFileNrMandatory()) { echo 'if(d.selian_pid.value==""){ alert("Please enter Hospital File Number"); d.selian_pid.focus(); return false; }else'; } ?> if(d.name_last.value==""){ alert("<?php echo $LDPlsEnterLastName; ?> "); d.name_last.focus(); return false; }else if(d.name_first.value==""){ alert("<?php echo $LDPlsEnterFirstName; ?> "); d.name_first.focus(); return false; }else if(d.name_2.value==""){ alert("<?php echo 'Please Enter Father Name'; ?> "); d.name_2.focus(); return false; }else if(d.date_birth.value==""){ alert("<?php echo $LDPlsEnterDateBirth; ?> "); d.date_birth.focus(); return false; }else if(d.sex[0]&&d.sex[1]&&!d.sex[0].checked&&!d.sex[1].checked){ alert("<?php echo $LDPlsSelectSex; ?> "); return false; <?php if ($update) { $sql = "SELECT * FROM care_person where pid=" . $pid; $ergebnis = $db->Execute($sql); while ($person = $ergebnis->FetchRow()) { $region = $person['region']; } } if (!$update or $region == '') { echo '}else if(d.region.value=="-1"){'; echo 'alert("Please select region");'; echo 'd.region.focus();'; echo 'return false;'; echo '}else if(d.district.value=="-1"){'; echo 'alert("Please select district");'; echo 'd.district.focus();'; echo 'return false;'; echo '}else if(d.ward.value=="-1"){'; echo ' alert("Please select Ward");'; echo ' d.ward.focus();'; echo ' return false;'; } else { echo '}else if(d.region.value!="-1"){'; echo 'if(d.district.value=="-1")'; echo '{'; echo 'alert("Please select district");'; echo 'd.district.focus();'; echo 'return false;'; echo '}'; echo 'if(d.ward.value=="-1")'; echo '{'; echo ' alert("Please select ward");'; echo ' d.ward.focus();'; echo ' return false;'; echo '}'; } ?> }else if(d.user_id.value==""){ alert("<?php echo $LDPlsEnterFullName; ?> "); d.user_id.focus(); return false; }else if(d.name_maiden.value=="-1"){ alert ("Select tribe!"); return false; }else if(d.religion.value=="-1"){ alert ("Select religion!"); return false; }else{ return true; } } <?php require $root_path . 'include/inc_checkdate_lang.php'; ?> --> </script> <script language="javascript" src="<?php echo $root_path; ?> js/setdatetime.js"></script> <script language="javascript" src="<?php echo $root_path; ?> js/checkdate.js"></script> <script language="javascript" src="<?php echo $root_path; ?> js/dtpick_care2x.js"></script> <FONT SIZE=-1 FACE="Arial"> <form method="post" action="<?php echo $thisfile; ?> " name="aufnahmeform" ENCTYPE="multipart/form-data" onSubmit="return chkform(this)"> <table border=0 cellspacing=0 cellpadding=0> <?php if ($error) { echo "<script language=\"Javascript\" type=\"text/javascript\"> </script>"; //alert('Information is missing in the input field marked red!') ; ?> <tr bgcolor=#ffffee> <td colspan=3> <center> <font face=arial color=#7700ff size=4> <img <?php echo createMascot($root_path, 'mascot1_r.gif', '0', 'bottom'); ?> align="absmiddle"> <?php if ($error > 1) { echo "<script language=\"Javascript\" type=\"text/javascript\"> </script>"; //alert('$LDErrorS') echo $LDErrorS; } else { /* echo "<script language=\"Javascript\" type=\"text/javascript\"> alert('Information is missing in the input field marked red!') </script>"; */ echo $LDError; } ?> </center> </td> </tr> <?php } elseif ($error_person_exists) { ?> <tr bgcolor=#ffffee> <td colspan=3> <center> <table border=0> <tr> <td><img <?php echo createMascot($root_path, 'mascot1_r.gif', '0', 'bottom'); ?> align="absmiddle"></td> <td><font face=arial color=#7700ff size=4> <?php echo $LDPersonDuplicate; if ($duperson->RecordCount() > 1) { echo " {$LDSimilarData2} {$LDPlsCheckFirst2}"; } else { echo "{$LDSimilarData} {$LDPlsCheckFirst}"; } echo "<script language=\"Javascript\" type=\"text/javascript\"> </script>"; // alert('$LDSimilarData $LDPlsCheckFirst') echo ' </td> </tr> </table> </center> </td> </tr> <tr> <td colspan=3> <table border=0 cellspacing=0 cellpadding=1 bgcolor="#000000" width=100%> <tr> <td> <table border=0 cellspacing=0 width=100% bgcolor="#ffffff">'; echo ' <tr bgcolor="#66ee66" background="' . $root_path . 'gui/img/common/default/tableHeaderbg.gif">'; echo "\n\t\t\t\t\t<td {$tbg}><FONT SIZE=-1 FACE=\"Arial\" color=\"#000066\"><b>\n\t\t\t\t\t\t{$LDRegistryNr}</b></td>\n\t\t\t\t\t<td {$tbg}><FONT SIZE=-1 FACE=\"Arial\" color=\"#000066\"><b>\n\t\t\t\t\t\t{$LDLastName}</b></td>\n\t\t\t\t\t<td {$tbg}><FONT SIZE=-1 FACE=\"Arial\" color=\"#000066\"><b>\n\t\t\t\t\t\t{$LDFirstName}</b></td>\n\t\t\t\t\t<td {$tbg}><FONT SIZE=-1 FACE=\"Arial\" color=\"#000066\"><b>\n\t\t\t\t\t\t{$LDBday}</b></td>\n\t\t\t\t\t<td {$tbg}><FONT SIZE=-1 FACE=\"Arial\" color=\"#000066\"><b>\n\t\t\t\t\t\t{$LDSex}</b></td>\n\t\t\t\t\t<td {$tbg}><FONT SIZE=-1 FACE=\"Arial\" color=\"#000066\"><b>\n\t\t\t\t\t\t{$LDOptions}</b></td>\n\t\t\t\t\t</tr>"; # Show the probable same person while ($dup = $duperson->FetchRow()) { echo ' <tr> <td><font face=arial color=#000000 size=2>' . $dup['pid'] . '</td> <td><font face=arial color=#000000 size=2>' . $dup['name_last'] . '</td> <td><font face=arial color=#000000 size=2>' . $dup['name_first'] . '</td> <td><font face=arial color=#000000 size=2>' . formatDate2Local($dup['date_birth'], $date_format) . '</td> <td>'; switch ($dup['sex']) { case 'f': echo '<img ' . $img_female . '>'; break; case 'm': echo '<img ' . $img_male . '>'; break; default: echo ' '; break; } echo ' </td> <td><font face=arial color=#000000 size=2>:: <a href="person_reg_showdetail.php' . URL_APPEND . '&pid=' . $dup['pid'] . '&from=$from&newdata=1&target=entry" target="_blank">' . $LDShowDetails . '</a> :: <a href="patient_register.php' . URL_APPEND . '&pid=' . $dup['pid'] . '&update=1">' . $LDUpdate . '</a> </td> </tr>'; } echo ' </table> </td> </tr> </table>'; } ?> </td> </tr> <tr> <td> <FONT SIZE=-1 FACE="Arial"><?php if ($pid) { echo $LDRegistryNr; } ?> </td> <td > <FONT SIZE=-1 FACE="Arial" color="#800000"> <?php if ($pid) { if (IS_TANZANIAN) { echo $this->showPID($pid); } else { echo $pid; } } ?> </td> <td rowspan=6 class="photo_id" > <FONT SIZE=-1 FACE="Arial"> <a href="#" onClick="showpic(document.aufnahmeform.photo_filename)"><img <?php echo $img_source; ?> id="headpic" name="headpic"></a> <br> <?php echo $LDPhoto; ?> <br><input name="photo_filename" type="file" size="15" onChange="showpic(this)" value="<?php if (isset($photo_filename)) { echo $photo_filename; } ?> "> </td> </tr> <tr> <td class="reg_item"> <?php echo $LDRegDate; ?> : </td> <td class="reg_input"> <FONT SIZE=-1 FACE="Arial" color="#800000"> <?php echo formatDate2Local($date_reg, $date_format); ?> <input name="date_reg" type="hidden" value="<?php echo $date_reg; ?> "> </td> </tr> <tr> <td class="reg_item"> <?php echo $LDRegTime; ?> : </td> <td class="reg_input"> <FONT SIZE=-1 FACE="Arial" color="#800000"><?php echo convertTimeToLocal(formatDate2Local($date_reg, $date_format, 0, 1)); ?> </td> </tr> <tr> <td class="reg_item"> <FONT SIZE=-1 FACE="Arial"><?php if ($person_obj->IsHospitalFileNrMandatory()) { $asterik = '*'; } else { $asterik = ' '; } if ($errorfilenr) { echo '<font color="#ff0000">*' . $LDFileNr . '</font><br> Try this one: ' . $person_obj->GetNewSelianFileNumber(); } else { echo $asterik . $LDFileNr; } ?> </td> <td class="reg_input"> <input type="text" name="selian_pid" size=14 maxlength=6 value="<?php echo $selian_pid; ?> " onFocus="this.select();"> </td> </tr> <?php $this->createTR($errornamefirst, 'name_first', ' *' . $LDFirstName, $name_first, '', '', FALSE); $this->createTR($errorname2, 'name_2', ' *' . $LDName2, $name_2, '', '', FALSE); $this->createTR($errornamelast, 'name_last', ' *' . $LDLastName, $name_last, '', '', FALSE); $this->createTR($errornamemid, 'name_middle', $LDNameMid, $name_middle, '', '', FALSE); // This is for balozi if (!$no_tribe) { ?> <tr> <td class="reg_item"><FONT SIZE=-1 FACE="Arial,verdana,sans serif"> <?php if ($errormaiden) { echo '<font color="FF0000">'; } echo '* ' . $LDNameMaiden; ?> </td> <td class="reg_input" colspan=1> <?php echo '<SELECT name="name_maiden" onChange="list_popup(this, \'tribe\');">'; echo '<OPTION value="-1" >' . $LDPleaseSelectTribe . '</OPTION>'; foreach ($tribe_array as $unit) { //if($update && (strtoupper($name_maiden) == strtoupper($unit[1]))) if (strtoupper($name_maiden) == strtoupper($unit[1])) { $check = 'selected'; } else { $check = ''; } echo '<OPTION value="' . $unit[1] . '" ' . $check . '>' . $unit[0] . '</OPTION>'; } // echo '<OPTION value="notinlist">NOT IN LIST</OPTION>'; echo '</SELECT>'; ?> </td> </tr> <?php } ?> <tr> <td class="reg_item"> <FONT SIZE=-1 FACE="Arial"><?php if ($errordatebirth) { echo "<font color=red>"; } ?> * <?php echo $LDBday; ?> </font>: </td> <td class="reg_input"> <FONT SIZE=-1 FACE="Arial"> <input name="date_birth" type="text" size="15" maxlength=10 value="<?php if ($date_birth) { if ($mode == 'save' || $error || $error_person_exists) { echo $date_birth; } else { echo formatDate2Local($date_birth, $date_format); } } # Uncomment the following when the current date must be inserted # automatically at the start of each document /*else{ echo formatDate2Local(date('Y-m-d'),$date_format); }*/ ?> " onFocus="this.select();" onBlur="IsValidDate(this,'<?php echo $date_format; ?> ')" onKeyUp="setDate(this,'<?php echo $date_format; ?> ','<?php echo $lang; ?> ');"> <a href="javascript:show_calendar('aufnahmeform.date_birth','<?php echo $date_format; ?> ')"> <img <?php echo createComIcon($root_path, 'show-calendar.gif', '0', 'absmiddle'); ?> ></a> <font size=1>[ <?php $dfbuffer = "LD_" . strtr($date_format, ".-/", "phs"); echo ${$dfbuffer}; ?> ] </font><br> <input name="date_age" type="text" size="15" maxlength=10 value="" onKeyUp="setDatebyAge(this,this.form.date_birth,'<?php echo $date_format; ?> ','<?php echo $lang; ?> ')"> <font size=1> <?php echo $LDAge; ?> </font> </td> <td> </td> <tr> <td class="reg_item"> <FONT SIZE=-1 FACE="Arial"> <?php if ($errorsex) { echo "<font color=#ff0000>"; } echo '* ' . $LDSex . '</font>'; ?> :<td> <input name="sex" type="radio" value="m" <?php if ($sex == "m") { echo "checked"; } ?> ><?php echo $LDMale; ?> <input name="sex" type="radio" value="f" <?php if ($sex == "f") { echo "checked"; } ?> > <?php echo $LDFemale; if ($errorsex) { echo "</font>"; } # But patch 2004-03-10 # Clean blood group $blood_group = trim($blood_group); ?> </td> </tr> <tr> <td class="reg_item"> <FONT SIZE=-1 FACE="Arial"><?php if ($errorreligion) { echo "<font color=red>"; } ?> * <?php echo $LDReligion; ?> : </td> <td class="reg_input"> <?php echo '<SELECT name="religion" onChange="list_popup(this,\'religion\');">'; echo '<OPTION value="-1" >' . $LDSelectReligion . '</OPTION>'; foreach ($religion_array as $unit) { if (strtoupper($religion) == strtoupper($unit[1])) { $check = 'selected'; } else { $check = ''; } echo '<OPTION value="' . $unit[1] . '" ' . $check . '>' . $unit[0] . '</OPTION>'; } // echo '<OPTION value="notinlist">NOT IN LIST</OPTION>'; echo '</SELECT>'; ?> </td> </tr> <?php if (!$person_name_others_hide) { $this->createTR($errornameothers, 'name_others', $LDNameOthers, $name_others); } ?> <!-- TODO: Kompletly not shown, or dependig on who is editing: Doctor, Lab? --> <tr> <td class="reg_item"> <?php echo $LDBloodGroup; ?> : </td> <td class="reg_input"> <FONT SIZE=-1 FACE="Arial"> <input name="blood_group" type="radio" value="A" <?php if ($blood_group == 'A') { echo 'checked'; } ?> ><?php echo $LDA; ?> <input name="blood_group" type="radio" value="B" <?php if ($blood_group == 'B') { echo 'checked'; } ?> ><?php echo $LDB; ?> <input name="blood_group" type="radio" value="AB" <?php if ($blood_group == 'AB') { echo 'checked'; } ?> ><?php echo $LDAB; ?> <input name="blood_group" type="radio" value="O" <?php if ($blood_group == 'O') { echo 'checked'; } ?> ><?php echo $LDO; ?> </td> <td> <?php echo $LDRHfactor; ?> <input name="rh" type="radio" value="pos" <?php if ($rh == 'pos') { echo 'checked'; } ?> ><?php echo $LDRHpos; ?> <input name="rh" type="radio" value="neg" <?php if ($rh == 'neg') { echo 'checked'; } ?> ><?php echo $LDRHneg; ?> </td> </tr> <tr> <td class="reg_item"> <FONT SIZE=-1 FACE="Arial"><?php if ($errorcivil) { echo "<font color=red>"; } ?> <?php echo $LDCivilStatus; ?> </font>: </td> <td colspan=2 class="reg_input"> <FONT SIZE=-1 FACE="Arial"> <input name="civil_status" type="radio" value="single" <?php if ($civil_status == "single") { echo "checked"; } ?> ><?php echo $LDSingle; ?> <input name="civil_status" type="radio" value="married" <?php if ($civil_status == "married") { echo "checked"; } ?> ><?php echo $LDMarried; ?> <FONT SIZE=-1 FACE="Arial"> <input name="civil_status" type="radio" value="divorced" <?php if ($civil_status == "divorced") { echo "checked"; } ?> ><?php echo $LDDivorced; ?> <input name="civil_status" type="radio" value="widowed" <?php if ($civil_status == "widowed") { echo "checked"; } ?> ><?php echo $LDWidowed; ?> <FONT SIZE=-1 FACE="Arial"> <input name="civil_status" type="radio" value="separated" <?php if ($civil_status == "separated") { echo "checked"; } ?> ><?php echo $LDSeparated; ?> </td> </tr> <tr> <td class="reg_item"> <FONT SIZE=-1 FACE="Arial"> <?php echo $LDInsurance; ?> : </td> <td class="reg_input"> <?php // Create array of all insurances for GUI $coreObj->sql = "SELECT DISTINCT parent FROM care_tz_insurance WHERE cancel_flag='0' order by name asc"; $result = $db->Execute($coreObj->sql); $name_insurer_array = array(); while ($row = $result->FetchRow()) { $nr = $row['insurance_ID']; if ($nr != -1) { $coreObj->sql = "SELECT name FROM care_tz_company WHERE insurance_ID={$nr}"; $ergebnis = $db->Execute($coreObj->sql); $row = $ergebnis->FetchRow(); $arrayTemp = array("name" => $row['name'], "id" => $nr); array_push($name_insurer_array, $arrayTemp); } } echo '<SELECT name="insurance_ID">'; echo '<OPTION value="-1" >--select insurance--</OPTION>'; foreach ($name_insurer_array as $row) { if ($insurance_ID == $row[id]) { $check = 'selected'; } else { $check = ''; } echo '<OPTION value="' . $row[id] . '" ' . $check . '>' . $row[name] . '</OPTION>'; } echo '</SELECT>'; ?> </td> </tr> <tr> <td class="reg_item"> <FONT SIZE=-1 FACE="Arial"><?php echo $LDOccupation; ?> : </td> <td class="reg_input"> <input type="text" name="title" size=14 maxlength=25 value="<?php echo $title; ?> " onFocus="this.select();"> </td> </tr> <tr> <td class="reg_item"> <FONT SIZE=-1 FACE="Arial"><?php echo $LDEducation; ?> : </td> <td class="reg_input"> <input type="text" name="name_others" size=14 maxlength=25 value="<?php echo $name_others; ?> " onFocus="this.select();"> </td> </tr> <!-- <tr> <td colspan=2> <FONT SIZE=-1 FACE="Arial"><?php if ($erroraddress) { echo "<font color=red>"; } echo $LDAddress; ?> </font>: </td> </tr> --> <?php if (!$person_email_hide) { //{ ?> <tr> <td class="reg_item"><FONT SIZE=-1 FACE="Arial,verdana,sans serif"> <?php if ($errormaiden) { echo '<font color="FF0000">'; } echo '* ' . 'Region'; $sql = "SELECT DISTINCT region_id, region_name FROM care_tz_region region INNER JOIN care_tz_district distrcit ON distrcit.is_additional=region.region_id INNER JOIN care_tz_ward ward ON distrcit.district_id=ward.is_additional ORDER BY region_name, district_name, ward_name"; //$sql="SELECT region_id,region_name FROM view_care_region_district_ward GROUP BY region_id order by region_name "; $catchment_area_obj = $db->Execute($sql); ?> </td> <td class="reg_input" colspan=1> <select name="region" size="1" onChange="redirect(this.options.selectedIndex)"> <option value="-1" id="-1">---select region--------</option> <?php while ($catchment_area_row = $catchment_area_obj->FetchRow()) { echo '<option value="' . $catchment_area_row['region_name'] . '" id=' . $catchment_area_row['region_id'] . '>' . $catchment_area_row['region_name'] . '</option>'; } ?> </select> <?php } ?> </td> <?php if ($update) { ?> <td class="reg_input"><FONT SIZE=-1 FACE="Arial,verdana,sans serif"> <?php if ($errormaiden) { echo '<font color="FF0000">'; } $sql = "Select * from care_person where pid=" . $pid; $result = $db->Execute($sql); $region = $result->FetchRow(); echo '' . 'Region:<FONT SIZE=-1 FACE="Arial" color="#800000"> ' . $region['region'] . '</FONT>'; ?> </td><?php } ?> </tr> <tr></tr> <tr> <td class="reg_item"><FONT SIZE=-1 FACE="Arial,verdana,sans serif"> <?php if ($errormaiden) { echo '<font color="FF0000">'; } echo '* ' . 'District'; ?> </td> <td class="reg_input" colspan=1> <select name="district" size="1" onChange="redirect1(this.options.selectedIndex)"> <option value="-1" >---select district--------</option> </select> </td> <?php if ($update) { ?> <td class="reg_input"><FONT SIZE=-1 FACE="Arial,verdana,sans serif"> <?php if ($errormaiden) { echo '<font color="FF0000">'; } $sql = "Select * from care_person where pid=" . $pid; $result = $db->Execute($sql); $region = $result->FetchRow(); echo '' . 'District: <FONT SIZE=-1 FACE="Arial" color="#800000">' . $region['district'] . '</FONT>'; ?> </td><?php } ?> </tr> <tr></tr> <tr> <td class="reg_item"><FONT SIZE=-1 FACE="Arial,verdana,sans serif"> <?php if ($errormaiden) { echo '<font color="FF0000">'; } echo '* ' . 'Ward'; ?> </td> <td class="reg_input" colspan=1> <select name="ward" size="1"> <option value="-1" >-select Ward-</option> </select> <?php ?> <script language="javascript"> <?php // fill up all regions, districts and wards: $sql = "SELECT region_id, region_name, district_id, district_name, ward_id, ward_name FROM care_tz_region region INNER JOIN care_tz_district distrcit ON distrcit.is_additional=region.region_id INNER JOIN care_tz_ward ward ON distrcit.district_id=ward.is_additional ORDER BY region_name, district_name, ward_name"; $catchment_area_obj = $db->Execute($sql); $number_of_rows = $catchment_area_obj->RecordCount(); echo "var group=new Array(" . $number_of_rows . ")\n"; echo "for (i=0; i<" . $number_of_rows . "; i++)\n"; echo "group[i]=new Array()\n"; echo "group[0]= new Option(\"---select Region -----\");\n"; echo "group[0][0]=new Option(\"---select district--------\");\n"; echo "group[1][0]=new Option(\"now select this one\");\n"; echo "group[1][0][0]=new Option(\"-select Ward-\");\n"; // define some variables that eclipse will get no trouble by syntax error check... $previous_region_id = -1; $previous_district_id = -1; $region_id = 1; $district_id = 0; $ward_id = 0; // remember if it's the first row... $FIRST_ROW = TRUE; while ($catchment_area_row = $catchment_area_obj->FetchRow()) { // reading out all information of this row and store each to a variable $this_region_name = $catchment_area_row['region_name']; $this_district_name = $catchment_area_row['district_name']; $this_district_id = $catchment_area_row['district_id']; $this_ward_name = $catchment_area_row['ward_name']; $this_ward_id = $catchment_area_row['ward_id']; if ($FIRST_ROW == TRUE) { // it's the first row, the "this" is the same as the "previous" status $previous_region_id = $region_id; $previous_ward_id = $ward_id; $previous_district_id = $district_id; // if its the first row, so we can attach this line directly to the jscript-array: echo "group[" . $region_id . "][" . $district_id . "]=new Option(\"" . $this_district_name . "\");\n"; // "this" is no longer the first row, set it to FALSE $FIRST_ROW = FALSE; } else { // reading out all information of this row and store each to a variable $this_region_id = $catchment_area_row['region_id']; $this_region_name = $catchment_area_row['region_name']; $this_district_name = $catchment_area_row['district_name']; $this_district_id = $catchment_area_row['district_id']; // it is not the first row, so we have to be a bit more carefully if ($this_region_id == $previous_region_id) { // if its the same region ID like the previous one, so check if it's a new district as well: if ($this_district_id == $previous_district_id) { // if its the same district ID like the previous one, then we have a new ward echo "group[" . $region_id . "][" . $district_id . "][" . $ward_id . "]=new Option(\"" . $this_ward_name . "\"); // Ward_id=" . $this_ward_id . "\n"; $ward_id = $ward_id + 1; } else { $district_id = $district_id + 1; $previous_district_id = $this_district_id; $ward_id = 0; echo "group[" . $region_id . "][" . $district_id . "]=new Option(\"" . $this_district_name . "\"); //Region_id=" . $this_region_id . "\n"; } } else { // it's a new region, so reset the value of "this region" $district_id = 0; $region_id = $region_id + 1; echo "group[" . $region_id . "][" . $district_id . "]=new Option(\"" . $this_district_name . "\"); //Region_id=" . $this_region_id . "\n"; $previous_region_id = $this_region_id; } // end of if ($this_region_id==$previous_region_id) } // end of if ($FIRST_ROW==TRUE) } ?> var temp_district=document.aufnahmeform.district var temp_ward=document.aufnahmeform.ward function redirect(x){ // delete all previous entries for (m=temp_district.options.length-1;m>0;m--) temp_district.options[m]=null; // set the new ones to this option list for (i=1;i<group[x].length;i++){ temp_district.options[i]=new Option(group[x][i].text) } temp_district.options[0].selected=true; temp_district.options[0].value=-1; redirect1(0) } function redirect1(y){ for (m=temp_ward.options.length-1;m>=0;m--) temp_ward.options[m]=null; var region_index = document.aufnahmeform.region.options.selectedIndex; var district_index = document.aufnahmeform.district.options.selectedIndex; var i = 0; for (i=0;i<100;i++){ temp_ward.options[i]=new Option(group[region_index][district_index][i].text) } temp_ward.options[0].selected=true temp_ward.options[0].value=-1; } </script> </td> <?php if ($update) { ?> <td class="reg_input"><FONT SIZE=-1 FACE="Arial,verdana,sans serif"> <?php if ($errormaiden) { echo '<font color="FF0000">'; } $sql = "Select * from care_person where pid=" . $pid; $result = $db->Execute($sql); $region = $result->FetchRow(); echo '' . 'Ward: <FONT SIZE=-1 FACE="Arial" color="#800000">' . $region['ward'] . '</FONT>'; ?> </td><?php } ?> <tr> <td colspan=2> <FONT SIZE=-1 FACE="Arial"><?php if ($erroraddress) { echo "<font color=red>"; } echo $LDAddress; ?> </font>: </td> </tr> <tr> <td class="reg_item"> <FONT SIZE=-1 FACE="Arial"><?php echo $LDTownCity; ?> : </td> <td class="reg_input"><input name="citizenship" type="text" value="<?php echo $citizenship; ?> " ></td> <!--<td class="reg_input"> <?php echo '<SELECT name="addr_citytown_nr" onChange="list_popup(this,\'city\');">'; echo '<OPTION value="-1" >-- select location --</OPTION>'; foreach ($town_array as $unit) { if (strtoupper($addr_citytown_nr) == strtoupper($unit[1])) { $check = 'selected'; } else { $check = ''; } echo '<OPTION value="' . $unit[1] . '" ' . $check . '>' . $unit[0] . '</OPTION>'; } // echo '<OPTION value="notinlist">NOT IN LIST</OPTION>'; echo '</SELECT>'; ?> </td>--> <td class="reg_input"> <FONT SIZE=-1 FACE="Arial"><?php if ($errorzip) { echo "<font color=red>"; } echo $LDPOBOX . " "; ?> <input name="addr_zip" type="text" size="10" value="<?php echo $addr_zip; ?> " > </td> </tr> <?php if ($insurance_show) { if (!$person_insurance_1_nr_hide) { ?> <!--<tr> <td class="reg_item"> <FONT SIZE=-1 FACE="Arial"><?php if ($errorinsurancecoid) { echo '<font color="' . $error_fontcolor . '">'; } echo $LDInsuranceCo; ?> : </td> <td colspan=2 class="reg_input"><FONT SIZE=-1 FACE="Arial"><?php if ($errorinsuranceclass) { echo '<font color="' . $error_fontcolor . '">'; } ?> <input name="insurance_category" type="radio" value="silver" <?php if ($insurance_category == "silver") { echo 'checked'; } ?> > <?php echo $LDInsuranceSilver; ?> <input name="insurance_category" type="radio" value="gold" <?php if ($insurance_category == "gold") { echo 'checked'; } ?> > <?php echo $LDInsuranceGold; ?> <input name="insurance_category" type="radio" value="friedkin" <?php if ($insurance_category == "friedkin") { echo 'checked'; } ?> > <?php echo $LDInsuranceFriedkin; ?> <input name="insurance_category" type="radio" value="selian" <?php if ($insurance_category == "selian") { echo 'checked'; } ?> > <?php echo $LDInsuranceSelianstuff; ?> </td> </tr>--> <?php } } else { ?> <tr> <td colspan=2 class="reg_item"> <a><?php echo $LDSeveralInsurances; ?> <img <?php echo createComIcon($root_path, 'frage.gif', '0'); ?> ></a> </td> </tr> <?php } if (!$person_phone_1_nr_hide) { $this->createTR($errorphone1, 'phone_1_nr', $LDPhone, $phone_1_nr, 2); } if (!$person_cellphone_1_nr_hide) { $this->createTR($errorcell1, 'cellphone_1_nr', $LDCellPhone, $cellphone_1_nr, 2); } if (!$person_cellphone_2_nr_hide) { $this->createTR($errorcell2, 'cellphone_2_nr', $LDCellPhone . ' 2', $cellphone_2_nr, 2); } if (!$person_religion_hide) { ?> <?php } ?> <!--<tr> <td class="reg_item" valign=top class="reg_input"> <?php echo $LDOtherHospitalNr; ?> </td> <td colspan=2 class="reg_input"> <?php /* $other_hosp_list = $person_obj->OtherHospNrList(); $sOtherNrBuffer=''; foreach( $other_hosp_list as $k=>$v ){ echo "<b>".$kb_other_his_array[$k].":</b> ".$v."<br />\n"; } echo '<SELECT name="other_his_org"> <OPTION value="">--</OPTION>'; foreach( $kb_other_his_array as $k=>$v ){ echo '<OPTION value="$k" $check>$v</OPTION>'; } echo '</SELECT> '.$LDNr.':<INPUT name="other_his_no" size=20><br>'; echo '('.$LDSelectOtherHospital.' - '.$LDNoNrNoDelete.')<br></TD></TR>'; */ ?> </td> </tr>--> <tr> <td class="reg_item"> <FONT SIZE=-1 FACE="Arial" ><FONT SIZE=2 FACE="Arial"><font color=#ff0000><?php echo $LDRegBy; ?> </font> </td> <td colspan=2 class="reg_input"> <FONT SIZE=-1 FACE="Arial"><nobr> <input name="user_id" type="text" value="<?php if (isset($user_id) && $user_id) { echo $user_id; } else { echo $_SESSION['sess_user_name']; } ?> " size="35" readonly> </nobr> </td> </tr> </table> <p> <INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="1000000"> <input type="hidden" name="itemname" value="<?php echo $itemname; ?> "> <input type="hidden" name="sid" value="<?php echo $sid; ?> "> <input type="hidden" name="lang" value="<?php echo $lang; ?> "> <input type="hidden" name="linecount" value="<?php echo $linecount; ?> "> <input type="hidden" name="mode" value="save"> <input type="hidden" name="insurance_item_nr" value="<?php echo $insurance_item_nr; ?> "> <input type="hidden" name="insurance_firm_id" value="<?php echo $insurance_firm_id; ?> "> <input type="hidden" name="insurance_show" value="<?php echo $insurance_show; ?> "> <input type="hidden" name="ethnic_orig" value="<?php echo $ethnic_orig; ?> "> <?php if ($update) { echo '<input type="hidden" name="update" value=1>'; echo '<input type="hidden" name="pid" value="' . $pid . '">'; } ?> <input type="image" <?php echo createLDImgSrc($root_path, 'savedisc.gif', '0'); ?> alt="<?php echo $LDSaveData; ?> " align="absmiddle"> <a href="javascript:document.aufnahmeform.reset()"><img <?php echo createLDImgSrc($root_path, 'reset.gif', '0'); ?> alt="<?php echo $LDResetData; ?> " align="absmiddle"></a> <?php //if($error||$error_person_exists) echo '<input type="button" value="'.$LDForceSave.'" onClick="forceSave()">'; ?> </form> <?php if (!$newdata) { ?> <form action=<?php echo $thisfile; ?> method=post> <input type=hidden name=sid value=<?php echo $sid; ?> > <input type=hidden name=patnum value=""> <input type=hidden name="lang" value="<?php echo $lang; ?> "> <input type=hidden name="date_format" value="<?php echo $date_format; ?> "> <input type=submit value="<?php echo $LDNewForm; ?> " > </form> <?php } }
echo createComIcon($root_path, 'varrow.gif', '0'); ?> > <a href="op-pflege-logbuch-start.php?sid=<?php echo "{$sid}&lang={$lang}&mode=fresh&dept_nr={$dept_nr}&saal={$saal}"; ?> " <?php if ($child) { echo "target=\"_parent\""; } ?> ><?php echo "{$LDStartNewDocu} [{$LDOrLogBook}]"; ?> </a><br> <img <?php echo createComIcon($root_path, 'varrow.gif', '0'); ?> > <a href="javascript:gethelp('oplog.php','search','<?php echo $mode; ?> ','<?php echo $rows; ?> ','<?php echo $datafound; ?> ')"><?php echo "{$LDHelp}"; ?> </a><br>
<font face="Verdana, Arial" size=3 color="#0000cc"> <b>Departments</b></font> <p> <font size=2 face="verdana,arial" > <form> <a name="sel"><img <?php echo createComIcon('../', 'frage.gif', '0'); ?> > <font color="#990000"><b></a> How to read news or information from a department?</b></font> <ul> <b>Step: </b>Click the department's name or the <img <?php echo createComIcon('../', 'top_help.gif', '0'); ?> > icon.<p> </ul> </form>
/* Create the green bars */ /* Note $h is used here as counter */ for ($h = 1; $h < 8; $h++) { echo ha() . '<img ' . createComIcon($root_path, 'qbar_' . $event['rose_' . $h] . '_green.gif', '0') . ' alt="' . $LDFullDayName[$h] . '" name="green_' . $h . '" ' . gx(); } echo '<img ' . createComIcon($root_path, 'qbar_trans.gif', '0') . '>'; /* Create the rose bars*/ /* Note $h is used here as counter */ for ($h = 1; $h < 25; $h++) { echo ha() . '<img ' . createComIcon($root_path, 'qbar_' . $event['rose_' . $h] . '_rose.gif', '0') . ' alt="' . $h . ' ' . $LDHour . '" name="rose_' . $h . '" ' . rx(); if ($h == 6 || $h == 12 || $h == 18) { echo '<img ' . createComIcon($root_path, 'qbar_trans.gif', '0') . '>'; } } echo ' <tr bgcolor="#696969" > <td colspan=3 background="' . createBgSkin($root_path, 'folderskin2.jpg') . '"> </td> </tr>' . '' . ''; echo '</nobr></td></tr>'; echo '<tr bgcolor="#696969" > <td background="' . createBgSkin($root_path, 'folderskin2.jpg') . '" width="10px"> </td> <td valign="top" bgcolor="#ffffff">'; echo '<img src="' . $root_path . 'main/imgcreator/barcode_label_single_large.php?sid=' . $sid . '&lang=' . $lang . '&fen=' . $full_en . '&en=' . $pn . '&pid=' . $pid . '" width=282 height=178 align="left" hspace=5 vspace=5>'; echo ' <table border=0 cellspacing=1 cellpadding=0 width="140px" style="border:0px solid black;"> <tr> <td bgcolor="#ffff00"><font size=1> </font></td>
></a></td> <td><FONT SIZE=-1 FACE="Arial"><?php if ($row['personell_nr']) { echo $row['personell_nr']; } ?> </td> <td><FONT SIZE=-1 FACE="Arial"><?php echo $_SESSION['sess_full_en']; ?> </td> </tr> <?php } ?> </table> <p> <img <?php echo createComIcon($root_path, 'bul_arrowgrnlrg.gif', '0', 'absmiddle'); ?> > <a href="<?php echo $thisfile . URL_APPEND . '&pid=' . $_SESSION['sess_pid'] . '&target=' . $target . '&mode=new'; ?> "> <?php echo $LDEnterNewRecord; ?> </a>