Ejemplo n.º 1
0
# Prepare the title
if ($encounter_nr) {
    $headframe_title = "{$headframe_title} {$headframe_append} ";
}
# Prepare onLoad JS code
if (!$encounter_nr && !$pid) {
    $sOnLoadJs = 'onLoad="if(document.searchform.searchkey.focus) document.searchform.searchkey.focus();"';
}
# Start Smarty templating here
/**
 * LOAD Smarty
 */
# 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');
# Title in the toolbar
$smarty->assign('sToolbarTitle', $headframe_title);
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('','')");
$smarty->assign('breakfile', $breakfile);
# Window bar title
$smarty->assign('title', $headframe_title);
# Onload Javascript code
$smarty->assign('sOnLoadJs', $sOnLoadJs);
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('registration_overview.php','Person Registration :: Overview')");
# Hide the return button
$smarty->assign('pbBack', FALSE);
# Start collectiong extra Javascript code
ob_start();
    # Load the department list with oncall doctors
    include_once $root_path . 'include/care_api_classes/class_department.php';
    $dept_obj = new Department();
    $dept_OC = $dept_obj->getAllActiveWithNOC();
    include_once $root_path . 'include/care_api_classes/class_personell.php';
    $pers_obj = new Personell();
    $quicklist =& $pers_obj->getNOCQuicklist($dept_OC, $pyear, $pmonth);
}
# Start Smarty templating here
/**
 * LOAD Smarty
 */
# 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');
# Title in toolbar
$smarty->assign('sToolbarTitle', "{$LDORNOC} :: {$LDQuickView}");
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('op_duty.php','quick')");
# href for close button
$smarty->assign('breakfile', $breakfile);
# Body onLoad javascript
$smarty->assign('sOnLoadJs', 'onUnload="killchild()"');
# Window bar title
$smarty->assign('sWindowTitle', "{$LDORNOC} :: {$LDQuickView}");
# Collect extra javascript
ob_start();
?>

<script language="javascript">
            $pagen->setSortItem($oitem);
            $pagen->setSortDirection($odir);
        }
    }
    # end of else if mode== get
}
# end of if (srcword!="")
//echo $sql;
# Start Smarty templating here
/**
 * LOAD Smarty
 */
# 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('nursing');
# Title in toolbar
$smarty->assign('sToolbarTitle', "{$LDOrLogBook} - {$LDSearch}");
# hide return button
$smarty->assign('pbBack', FALSE);
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('oplog.php','search','{$mode}','{$rows}','{$datafound}')");
# href for close button
$smarty->assign('breakfile', $breakfile);
# Window bar title
$smarty->assign('sWindowTitle', "{$LDOrLogBook} - {$LDSearch}");
# Body Onload js
$smarty->assign('sOnLoadJs', 'onLoad="if (window.focus) window.focus();document.suchform.srcword.select();"');
# Body OnUnload js
$smarty->assign('sOnUnloadJs', 'onUnload="if (wwin) wwin.close();"');
# Collect js code
Ejemplo n.º 4
0
                # Create nursing notes object
                include_once $root_path . 'include/care_api_classes/class_ward.php';
                $obj = new Ward();
                $station = $obj->WardName($location_nr);
        }
        echo $obj->getLastQuery();
    }
}
# Start Smarty templating here
/**
 * LOAD Smarty
 */
# 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('nursing');
# Title in toolbar
$smarty->assign('sToolbarTitle', $LDNotes . ' :: ' . ${$station} . ' (' . formatDate2Local($s_date, $date_format) . ')');
# hide back button
$smarty->assign('pbBack', FALSE);
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('outpatient_notes.php','Outpatient Clinic :: Notes on the patient','','{$station}','{$LDNotes}')");
# href for close button
$smarty->assign('breakfile', 'javascript:window.close()');
# OnLoad Javascript code
if ($mode == 'save' && $occup || $saved) {
    $sTemp = "window.opener.location.reload();";
} else {
    $sTemp = '';
}
$smarty->assign('sOnLoadJs', 'onLoad="' . $sTemp . ' if (window.focus) window.focus();"');
# Prepare title
$sTitle = "{$title}::{$LDCatalog}::";
$buff = $dept_obj->LDvar($dept_nr);
if (isset(${$buff}) && !empty(${$buff})) {
    $sTitle = $sTitle . ${$buff};
} else {
    $sTitle = $sTitle . $dept_obj->FormalName($dept_nr);
}
# Start Smarty templating here
/**
 * LOAD Smarty
 */
# 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');
# Title in toolbar
$smarty->assign('sToolbarTitle', $sTitle);
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('products.php','maincat','','{$cat}')");
# href for close button
$smarty->assign('breakfile', $breakfile);
# Window bar title
$smarty->assign('sWindowTitle', $sTitle);
# Body OnLoad Javascript code
$smarty->assign('sOnLoadJs', 'onLoad="document.smed.keyword.focus()"');
# Buffer page output
ob_start();
?>

<script language=javascript>
        $breakfile = $root_path . "modules/med_depot/medlager-datenbank-functions.php" . URL_APPEND . "&userck={$userck}";
        $imgpath = $root_path . "med_depot/img/";
        break;
    default:
        header("location:" . $root_path . "language/" . $lang . "/lang_" . $lang . "_invalid-access-warning.php");
        exit;
}
require $root_path . "include/inc_products_search_mod.php";
# Start Smarty templating here
/**
 * LOAD Smarty
 */
# 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');
# Title in the title bar
$smarty->assign('sToolbarTitle', "{$title} {$LDPharmaDb} {$LDSearch}");
# href for the back button
// $smarty->assign('pbBack',$returnfile);
# href for the help button
$smarty->assign('pbHelp', "javascript:gethelp('products_db.php','search','{$from}','{$cat}')");
# href for the close button
$smarty->assign('breakfile', $breakfile);
# Window bar title
$smarty->assign('sWindowTitle', "{$title} {$LDPharmaDb} {$LDSearch}");
# Assign Body Onload javascript code
$smarty->assign('sOnLoadJs', 'onLoad="document.suchform.keyword.select()"');
# Collect javascript code
ob_start();
?>
Ejemplo n.º 7
0
$returnfile = $breakfile;
$_SESSION['sess_file_return'] = basename(__FILE__);
$_SESSION['sess_path_referer'] = str_replace($doc_root . '/', '', __FILE__);
if (!isset($stb)) {
    $stb = 0;
}
# Start Smarty templating here
/**
 * LOAD Smarty
 */
# 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', $LDTechSupport);
# Added for the common header top block
$smarty->assign('pbHelp', "javascript:gethelp('submenu1.php','{$LDTechSupport}')");
$smarty->assign('breakfile', $breakfile);
# Window bar title
$smarty->assign('title', $LDTechSupport);
# Add the bot onLoad code
if (isset($stb)) {
    if ($stb == 1) {
        $smarty->assign('sOnLoadJs', 'onLoad="startbot(\'r\')"');
    } else {
        if ($stb == 2) {
            $smarty->assign('sOnLoadJs', 'onLoad="startbot(\'f\')"');
        }
Ejemplo n.º 8
0
# Set PID to load the data
$person->setPID($pid);
# Import the current encounter number
$current_encounter = $person->CurrentEncounter();
# Import the death date
$death_date = $person->DeathDate();
# Load GUI page
//include('./gui_bridge/default/gui_person_reg_show.php');
# Start Smarty templating here
/**
 * LOAD Smarty
 */
# 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');
# Title in the toolbar
$smarty->assign('sToolbarTitle', $LDPatientRegister);
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('submenu1.php','{$LDPatientRegister}')");
$smarty->assign('breakfile', $breakfile);
# Window bar title
$smarty->assign('title', $LDPatientRegister);
# Onload Javascript code
$smarty->assign('sOnLoadJs', "if (window.focus) window.focus();");
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('person_admit.php')");
# Hide the return button
$smarty->assign('pbBack', FALSE);
# Loads the standard gui tags for the registration display page
require './gui_bridge/default/gui_std_tags.php';
Ejemplo n.º 9
0
$breakfile = $root_path . 'modules/news/start_page.php' . URL_APPEND;
$_SESSION['sess_path_referer'] = $top_dir . basename(__FILE__);
$_SESSION['sess_user_origin'] = 'amb';
$_SESSION['sess_parent_mod'] = '';
/* Create department object and load all medical depts */
require_once $root_path . 'include/care_api_classes/class_department.php';
$dept_obj = new Department();
$medical_depts =& $dept_obj->getAllMedical();
# Start Smarty templating here
/**
 * LOAD Smarty
 */
# 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');
# Title in toolbar
$smarty->assign('sToolbarTitle', $LDAmbulatory);
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('outpatient_overview.php','Outpatient :: Overview')");
# href for close button
$smarty->assign('breakfile', $breakfile);
# Window bar title
$smarty->assign('sWindowTitle', $LDAmbulatory);
# Prepare the submenu icons
$smarty->assign('sTitleIcon', '<img ' . createComIcon($root_path, 'l-arrowgrnlrg.gif', '0', '', TRUE) . '>');
if ($cfg['icons'] != 'no_icon') {
    $smarty->assign('sApptIcon', '<img ' . createComIcon($root_path, 'icon-date-hour.gif', '0') . '>');
    $smarty->assign('sOutPatientIcon', '<img ' . createComIcon($root_path, 'forums.gif', '0') . '>');
    //$smarty->assign('sPendReqIcon','<img '.createComIcon($root_path,'waiting.gif','0').'>');
    //$smarty->assign('sNewsIcon','<img '.createComIcon($root_path,'bubble2.gif','0').'>');
Ejemplo n.º 10
0
    ///* End of case 'edit': */
    default:
        $mode = '';
}
// end of switch($mode)
if ($edit) {
    $returnfile .= '&batch_nr=' . $batch_nr . '&pn=' . $pn . '&tracker=' . $tracker;
}
# Start Smarty templating here
/**
 * LOAD Smarty
 */
# 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('nursing');
# Title in toolbar
$smarty->assign('sToolbarTitle', $LDRadioDiagnostics . " (" . $batch_nr . ")");
# hide back button
$smarty->assign('pbBack', $returnfile);
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('pending_radio_findings.php')");
# href for close button
$smarty->assign('breakfile', $breakfile);
# Window bar title
$smarty->assign('sWindowTitle', $LDRadioDiagnostics . " (" . $batch_nr . ")");
$smarty->assign('sOnLoadJs', 'onLoad="if (window.focus) window.focus();"');
# Collect extra javascript code
ob_start();
?>
Ejemplo n.º 11
0
define('LANG_FILE', 'edp.php');
$local_user = '******';
require_once $root_path . 'include/inc_front_chain_lang.php';
if (isset($ck_edv_admin_user)) {
    setcookie('ck_edvzugang_user', $ck_edv_admin_user);
}
$breakfile = 'edv.php' . URL_APPEND;
$_SESSION['sess_file_return'] = basename(__FILE__);
# Start Smarty templating here
/**
 * LOAD Smarty
 */
# 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');
# Title in toolbar
$smarty->assign('sToolbarTitle', "{$LDEDP} {$LDSystemAdmin}");
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('system_admin.php')");
# href for close button
$smarty->assign('breakfile', $breakfile);
# Window bar title
$smarty->assign('sWindowTitle', "{$LDEDP} {$LDSystemAdmin}");
# Buffer page output
ob_start();
?>

<br><ul>
<FONT    SIZE=2  FACE="verdana,Arial">
<?php 
    }
} elseif ($user_origin == 'bill') {
    $local_user = '******';
    $breakfile = $root_path . 'modules/billing_tz/billing_tz.php' . URL_APPEND;
} else {
    $local_user = '******';
    $breakfile = $root_path . 'modules/nursing/nursing-station-patientdaten.php' . URL_APPEND . '&pn=' . $pn . '&station=' . $station . '&edit=' . $edit . '&user_origin=' . $user_origin;
}
require_once $root_path . 'include/inc_front_chain_lang.php';
/**
 * LOAD Smarty
 */
# 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('nursing');
$thisfile = basename($_SERVER['PHP_SELF']);
$db_request_table = $target;
//$db->debug=1;
/* Check for the patietn number = $pn. If available get the patients data, */
if (isset($pn) && $pn) {
    include_once $root_path . 'include/care_api_classes/class_encounter.php';
    $enc_obj = new Encounter();
    if ($enc_obj->loadEncounterData($pn)) {
        $edit = true;
        include_once $root_path . 'include/care_api_classes/class_globalconfig.php';
        $GLOBAL_CONFIG = array();
        $glob_obj = new GlobalConfig($GLOBAL_CONFIG);
        $glob_obj->getConfig('patient_%');
        switch ($enc_obj->EncounterClass()) {
            case '1':
Ejemplo n.º 13
0
            break;
        default:
            if ($_COOKIE["ck_login_logged" . $sid]) {
                $mode = "dummy";
            }
    }
    // end of switch
}
# Start the smarty templating
/**
 * LOAD Smarty
 */
# 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('nursing');
# Added for the common header top block
$smarty->assign('sToolbarTitle', "{$LDOrDocument} :: (" . $_SESSION['sess_dept_name'] . ")");
# href for help button
if (!$mode) {
    $sBuffer = 'dummy';
} else {
    $sBuffer = $mode;
}
$smarty->assign('pbHelp', "javascript:gethelp('opdoc.php','create','{$sBuffer}')");
# hide return button
$smarty->assign('pbBack', FALSE);
# href for close button
$smarty->assign('breakfile', $breakfile);
# Window bar title
$smarty->assign('sWindowTitle', "{$LDOrDocument} :: (" . $_SESSION['sess_dept_name'] . ")");
Ejemplo n.º 14
0
                }
            } else {
                $mode = 'bad_data';
            }
            break;
    }
    // end of switch($mode)
}
# Start Smarty templating here
/**
 * LOAD Smarty
 */
# 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('system_admin');
# Title in toolbar
$smarty->assign('sToolbarTitle', "{$LDAddress} :: {$LDNewCityTown}");
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('address_new.php')");
# href for close button
$smarty->assign('breakfile', $breakfile);
# Window bar title
$smarty->assign('sWindowTitle', "{$LDAddress} :: {$LDNewCityTown}");
# Coller Javascript code
ob_start();
?>

<script language="javascript">
<!-- 
function check(d)
Ejemplo n.º 15
0
require_once $root_path . 'include/inc_front_chain_lang.php';
# Set break file
require 'include/inc_breakfile.php';
$thisfile = basename($_SERVER['PHP_SELF']);
$_SESSION['sess_file_return'] = $thisfile;
if (empty($target)) {
    $target = 'search';
}
# Start Smarty templating here
/**
 * LOAD Smarty
 */
# 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('nursing');
# Title in toolbar
$smarty->assign('sToolbarTitle', "{$LDUploadDicom} :: {$LDSearch} ");
# hide back button
$smarty->assign('pbBack', FALSE);
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('patient_search.php')");
# href for close button
$smarty->assign('breakfile', $breakfile);
# Window bar title
$smarty->assign('sWindowTitle', "{$LDUploadDicom} :: {$LDSearch} ");
# Body onLoad javascript code
$smarty->assign('sOnLoadJs', 'onLoad="document.searchform.searchkey.select()";');
# Start creating the search module
require_once $root_path . 'include/care_api_classes/class_gui_search_person.php';
$psearch =& new GuiSearchPerson();
        @$enc_obj->searchEncounterBasicInfo($searchkey);
        $totalcount = $enc_obj->LastRecordCount();
        $pagen->setTotalDataCount($totalcount);
    }
    $pagen->setSortItem($oitem);
    $pagen->setSortDirection($odir);
}
//echo $target;
# Start Smarty templating here
/**
 * LOAD Smarty
 */
# 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('nursing');
# Title in toolbar
$smarty->assign('sToolbarTitle', $LDTestRequest . " - " . $LDSearchPatient);
# hide back button
$smarty->assign('pbBack', FALSE);
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('laboratory_testrequest.php','Laboratories :: Test Request','lab')");
# href for close button
if ($_COOKIE["ck_login_logged" . $sid]) {
    $smarty->assign('breakfile', $root_path . 'main/startframe.php' . URL_APPEND);
} else {
    $smarty->assign('breakfile', $breakfile);
}
# Window bar title
$smarty->assign('sWindowTitle', $LDTestRequest . " - " . $LDSearchPatient);
# Body onload javascript code
Ejemplo n.º 17
0
//$_SESSION['sess_file_return']=basename(__FILE__);
/* get the title = name of department */
$title = $_SESSION['sess_title'];
/* Get the news article */
require $root_path . 'include/inc_news_get_one.php';
/* Get the news table width */
$config_type = 'news_normal_display_width';
include_once $root_path . 'include/inc_get_global_config.php';
# Start Smarty templating here
/**
 * LOAD Smarty
 */
# 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');
# 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') . '>');
Ejemplo n.º 18
0
<?php

$returnfile = $_SESSION['sess_file_return'];
# Start Smarty templating here
/**
 * LOAD Smarty
 */
# 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');
if ($parent_admit) {
    $sTitleNr = $_SESSION['sess_full_en'];
} else {
    $sTitleNr = $_SESSION['sess_full_pid'];
}
# Title in the toolbar
$smarty->assign('sToolbarTitle', "{$page_title} {$encounter_nr}");
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('submenu1.php','{$LDPatientRegister}')");
$smarty->assign('breakfile', $breakfile);
# Window bar title
$smarty->assign('title', "{$page_title} {$encounter_nr}");
# Onload Javascript code
$smarty->assign('sOnLoadJs', "if (window.focus) window.focus();");
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('medocs_entry.php')");
# href for return button
$smarty->assign('pbBack', $returnfile . URL_APPEND . '&pid=' . $_SESSION['sess_pid'] . '&target=' . $target . '&mode=show&type_nr=' . $type_nr);
# Buffer extra javascript code
ob_start();
Ejemplo n.º 19
0
        $breakfile = 'address_manage.php' . URL_APPEND;
}
if (isset($nr) && $nr && ($row =& $address_obj->getCityTownInfo($nr))) {
    $address = $row->FetchRow();
    $edit = true;
} else {
    # Redirect to search function
}
# Start Smarty templating here
/**
 * LOAD Smarty
 */
# 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('system_admin');
# Title in toolbar
$smarty->assign('sToolbarTitle', "{$LDCityTown} :: {$LDData}");
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('address_info.php')");
# href for close button
$smarty->assign('breakfile', $breakfile);
# Window bar title
$smarty->assign('sWindowTitle', "{$LDCityTown} :: {$LDData}");
# Buffer page output
ob_start();
?>

<ul>
<?php 
if (isset($save_ok) && $save_ok) {
Ejemplo n.º 20
0
    $rows = $newsobj->LastRecordCount();
}
$returnfile = $breakfile;
$readerpath = 'editor-4plus1-read.php' . URL_REDIRECT_APPEND;
$editorpath = 'editor-pass.php' . URL_APPEND;
$today = date('Y-m-d');
//$_SESSION['sess_dept_nr']=$dept_nr;
$_SESSION['sess_file_return'] = $top_dir . basename(__FILE__);
# Start Smarty templating here
/**
 * LOAD Smarty
 */
# 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');
# 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);
# href for return file
$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;
Ejemplo n.º 21
0
        $title = $LDCreateDoctorsList;
        $fileforward = 'doctors-dienst-personalliste.php' . URL_APPEND . '&retpath=' . $retpath;
        break;
    default:
        $title = $LDMakeDutyPlan;
        $fileforward = 'doctors-dienstplan-planen.php' . URL_APPEND . '&retpath=' . $retpath;
        break;
}
# Start Smarty templating here
/**
 * LOAD Smarty
 */
# 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');
# Title in toolbar
$smarty->assign('sToolbarTitle', $title);
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('dept_select.php')");
# href for return  button
$smarty->assign('pbBack', $breakfile);
# href for close button
$smarty->assign('breakfile', $breakfile);
# Window bar title
$smarty->assign('sWindowTitle', $title);
$smarty->assign('sMascotImg', '<img ' . createMascot($root_path, 'mascot1_r.gif', '0', 'bottom') . ' align="absmiddle">');
$smarty->assign('LDPlsSelectDept', $LDPlsSelectDept);
# Buffer department rows output
ob_start();
$toggler = 0;
        $deleteok = true;
    }
    //echo $sql;
}
//simulate update to search the keyword
$update = true;
# Load search routine
require $root_path . "include/inc_products_search_mod.php";
# Start Smarty templating here
/**
 * LOAD Smarty
 */
# 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');
# Title in the title bar
$smarty->assign('sToolbarTitle', "{$title} {$LDPharmaDb} {$LDManage}");
# href for the back button
// $smarty->assign('pbBack',$returnfile);
# href for the help button
$smarty->assign('pbHelp', "javascript:gethelp('products_db.php','delete','{$from}','{$cat}')");
# href for the close button
$smarty->assign('breakfile', $breakfile);
# Window bar title
$smarty->assign('sWindowTitle', "{$title} {$LDPharmaDb} {$LDManage}");
# Buffer page output
ob_start();
?>

<a name="pagetop"></a>
Ejemplo n.º 23
0
if (empty($target)) {
    $target = 'search';
}
if ($_COOKIE['ck_login_logged' . $sid]) {
    $breakfile = $root_path . 'main/spediens.php' . URL_APPEND;
} else {
    $breakfile = 'personell_admin_pass.php' . URL_APPEND . '&target=' . $target;
}
# Start Smarty templating here
/**
 * LOAD Smarty
 */
# 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('system_admin');
# Title in toolbar
$smarty->assign('sToolbarTitle', $LDPatientRegister . " - " . $LDSearch);
# hide return button
$smarty->assign('pbBack', FALSE);
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('person_how2search.php')");
# href for close button
$smarty->assign('breakfile', $breakfile);
# Window bar title
$smarty->assign('sWindowTitle', $LDPatientRegister . " - " . $LDSearch);
# Body onLoad Javascript code
$smarty->assign('sOnLoadJs', 'onLoad="document.searchform.searchkey.select()"');
# Colllect javascript code
ob_start();
?>
Ejemplo n.º 24
0
}
require_once $root_path . 'include/care_api_classes/class_globalconfig.php';
$gc = new GlobalConfig($GCONFIG);
if (isset($mode) && $mode == 'save' && !empty($max_items)) {
    $gc->saveConfigItem('theme_control_buttons', $_POST['theme_control_buttons']);
    header('location:' . $thisfile . URL_REDIRECT_APPEND . '&mode=0');
    exit;
}
# Start Smarty templating here
/**
 * LOAD Smarty
 */
# 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('system_admin');
# Title in toolbar
$smarty->assign('sToolbarTitle', $LDTheme);
# href for return button
$smarty->assign('pbBack', $returnfile);
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('system_theme.php')");
# href for close button
$smarty->assign('breakfile', $breakfile);
# Window bar title
$smarty->assign('sWindowTitle', $LDTheme);
if ($rows) {
    $smarty->append('JavaScript', '<script language="javascript" src="' . $root_path . 'js/check_menu_item_same_item.js"></script>');
}
# Buffer page output
ob_start();
Ejemplo n.º 25
0
$newORnr = $OR_obj->NewORNr();
# Prepare title
$sTitle = "{$LDOR} :: ";
if ($mode == 'select') {
    $sTitle = $sTitle . $LDUpdate;
} else {
    $sTitle = $sTitle . $LDCreate;
}
# Start Smarty templating here
/**
 * LOAD Smarty
 */
# 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('system_admin');
# Title in toolbar
$smarty->assign('sToolbarTitle', $sTitle);
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('or_create.php')");
# href for close button
$smarty->assign('breakfile', $breakfile);
# Window bar title
$smarty->assign('sWindowTitle', $sTitle);
# Collect javascript code
ob_start();
?>

<script language="javascript">
<!-- 
    include_once $root_path . 'include/care_api_classes/class_encounter.php';
    $enc_obj = new Encounter();
    $admission = $enc_obj->searchInpatientNotInWardBasicInfo($searchkey);
    include_once $root_path . 'include/care_api_classes/class_globalconfig.php';
    $GLOBAL_CONFIG = array();
    $glob_obj = new GlobalConfig($GLOBAL_CONFIG);
    $glob_obj->getConfig('patient_%');
}
# Start Smarty templating here
/**
 * LOAD Smarty
 */
# 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('nursing');
# Title in toolbar
$smarty->assign('sToolbarTitle', "{$LDAssignOcc} {$s}");
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('nursing_station.php','assign','','{$s}','{$LDAssignOcc}')");
# href for close button
$smarty->assign('breakfile', "javascript:window.close();");
# OnLoad Javascript code
$smarty->assign('sOnLoadJs', 'onLoad="if (window.focus) window.focus(); document.psearch.searchkey.select();"');
# Window bar title
$smarty->assign('title', "{$LDAssignOcc} {$s}");
# Hide Copyright footer
$smarty->assign('bHideCopyright', TRUE);
# Collect extra javascript code
ob_start();
?>
Ejemplo n.º 27
0
            header("location:" . $root_path . "modules/nursing/nursing-station-patientdaten-nolabreport.php?sid={$sid}&lang={$lang}&edit={$edit}&station={$station}&pn={$pn}&nodoc=labor&user_origin={$user_origin}");
        }
        exit;
    }
} else {
    echo "<p>" . $lab_obj->getLastQuery() . "sql{$LDDbNoRead}";
    exit;
}
# Start Smarty templating here
/**
 * LOAD Smarty
 */
# 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');
# Title in toolbar
$smarty->assign('sToolbarTitle', "{$LDLabReport} - {$LDGraph}");
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('lab_list.php','graph','','','{$LDGraph}')");
# hide return  button
$smarty->assign('pbBack', FALSE);
# href for close button
$smarty->assign('breakfile', $breakfile);
# Window bar title
$smarty->assign('sWindowTitle', "{$LDLabReport} - {$LDGraph}");
# collect extra javascript code
ob_start();
?>

<style type="text/css" name="1">
        echo "<p>{$sql}<p>{$LDDbNoRead}";
        exit;
    }
    $mode = "save";
}
# Start the smarty templating
/**
 * LOAD Smarty
 */
# 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
# param 2 = initialize gui
# param 3 = display copyright footer
# param 4 = load standard javascripts
require_once $root_path . 'gui/smarty_template/smarty_care.class.php';
$smarty = new smarty_care('nursing');
if (!isset($edit) || empty($edit)) {
    $smarty->assign('edit', FALSE);
}
$smarty->assign('bgc1', $bgc1);
# Title in toolbar
$smarty->assign('sToolbarTitle', "{$LDDiagnosticTest} ::  {$formtitle}");
if ($user_origin == 'lab' && $edit) {
    $smarty->assign('pbAux1', $thisfile . "?sid={$sid}&lang={$lang}&station={$station}&user_origin={$user_origin}&status={$status}&target=patho&noresize={$noresize}");
    $smarty->assign('gifAux1', createLDImgSrc($root_path, 'newpat2.gif', '0'));
}
# href for help button
$smarty->assign('pbHelp', 'javascript:gethelp(\'request_patho.php\')');
# href for close button
$smarty->assign('breakfile', $breakfile);
# Window bar title
        // end of if ($ergebnis)
        echo "<p>{$sql}{$LDDbNoRead}";
        exit;
    }
} else {
    echo "{$LDDbNoLink}<br>{$sql}<br>";
}
$fr = strtolower(str_replace('.', '-', $result['encounter_nr'] . '_' . $result['name_last'] . '_' . $result['name_first'] . '_' . $result['date_birth']));
# Start Smarty templating here
/**
 * LOAD Smarty
 */
# 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('nursing');
# Title in toolbar
$smarty->assign('sToolbarTitle', "{$LDPatDataFolder} {$station}");
# hide return button
$smarty->assign('pbBack', FALSE);
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('patient_charts.php','Patient&acute;s chart folder :: Overview','','{$station}','Main folder')");
# href for close button
$smarty->assign('breakfile', 'javascript:window.close()');
# Window bar title
$smarty->assign('sWindowTitle', ucfirst($result[name_last]) . "," . ucfirst($result[name_first]) . " " . $result[date_birth] . " " . $LDPatDataFolder);
# Body Onload js
$sOnLoadJs = 'onLoad="initwindow();';
if ($mode == 'changes_saved') {
    $sOnLoadJs = $sOnLoadJs . 'window.opener.location.reload();';
}
Ejemplo n.º 30
0
# Load character set fx
#
include_once 'include/inc_charset_fx.php';
#
# Load image fx
#
require_once 'include/inc_img_fx.php';
#
# Start smarty templating
#
# Workaround for user config array to work inside the smarty class
#
$cfg = $USERCONFIG;
//while(list($x,$v)=each($cfg)) echo "$x => $v<br>";
require_once $root_path . 'gui/smarty_template/smarty_care.class.php';
$smarty = new smarty_care('common');
#
# Window bar title
#
$smarty->assign('sWindowTitle', $LDMainTitle);
#
# Assign the contents frame source
#
$smarty->assign('sContentsFrameSource', "src = \"blank.php?lang={$lang}&sid={$sid}\"");
#
# Load the gui template
#
//require('gui/html_template/default/tp_index.php');
#
# If the floating menu window is selected
#