<style type="text/css"> .btn { color:white; background-color:#9fc748;/*#3B5998;*/ border-style:none; font-weight:bold; font-size:14px; height:25px; /*width:60px;*/ cursor:pointer; } </style> <?php $script_elems = new ScriptElems(); $script_elems->enableJQuery(); $script_elems->enableTableSorter(); $script_elems->enableDragTable(); $script_elems->enableLatencyRecord(); $script_elems->enableEditInPlace(); $page_elems = new PageElems(); ?> <script type="text/javascript" src="../js/nicEdit.js"></script> <script type='text/javascript'> var curr_orientation = 0; function export_as_word(div_id) { document.getElementById('printhead').innerHTML=" ";
<?php # # Main page for showing disease report and options to export # Called via POST from reports.php # include "redirect.php"; include "includes/db_lib.php"; include "includes/stats_lib.php"; include "includes/script_elems.php"; LangUtil::setPageId("reports"); $script_elems = new ScriptElems(); $script_elems->enableJQuery(); ?> <script type='text/javascript'> function export_as_word() { var html_data = $('#report_content').html(); $('#word_data').attr("value", html_data); //$('#export_word_form').submit(); $('#word_format_form').submit(); } function print_content(div_id) { var DocumentContainer = document.getElementById(div_id); var WindowObject = window.open("", "PrintWindow", "toolbars=no,scrollbars=yes,status=no,resizable=yes"); WindowObject.document.writeln(DocumentContainer.innerHTML); WindowObject.document.close(); WindowObject.focus(); WindowObject.print();
if (is_nan($_REQUEST['num_rows'])) { $num_rows = 10; } else { $num_rows = intval($_REQUEST['num_rows']); } $url_redirect .= "&ib=1&bn=" . $num_rows; } header("location:" . $url_redirect); } include "redirect.php"; include "includes/db_lib.php"; LangUtil::setPageId("results_entry"); include "includes/script_elems.php"; include "includes/page_elems.php"; $page_elems = new PageElems(); $script_elems = new ScriptElems(); $script_elems->enableJQuery(); $script_elems->enableTableSorter(); $script_elems->enableDragTable(); $cat_code = $_REQUEST['cat_code']; $test_type_id = $_REQUEST['t_type']; $is_blank = false; if ($_REQUEST['is_blank'] == "Y") { $is_blank = true; } $num_rows = 10; if (is_nan($_REQUEST['num_rows'])) { $num_rows = 10; } else { $num_rows = intval($_REQUEST['num_rows']); }
<?php # # Saves user_ratings before proceeding to logout # include "../includes/db_lib.php"; include "../includes/script_elems.php"; include "../includes/page_elems.php"; $script_elems = new ScriptElems(); $page_elems = new PageElems(); $script_elems->enableJQuery(); $script_elems->enableJQueryForm(); ?> <html> <head> <title> </title> <script type='text/javascript'> function submit_rating() { $('#submit_progress').show(); $('#rating_form').ajaxSubmit( { success:function() { $('#submit_progress').hide(); window.location="logout.php"; } }); } function skip_to_logout() { document.getElementById("skipped").setAttribute("value","-1"); $('#submit_progress').show();
<?php # # Main page for showing disease report and options to export # Called via POST from reports.php # include "redirect.php"; include "includes/db_lib.php"; include "includes/stats_lib.php"; include "includes/script_elems.php"; LangUtil::setPageId("reports"); $script_elems = new ScriptElems(); $script_elems->enableJQuery(); $script_elems->enableFlotBasic(); $script_elems->enableFlipV(); $script_elems->enableTableSorter(); $script_elems->enableLatencyRecord(); ?> <script type='text/javascript'> function export_as_word() { var html_data = $('#report_content').html(); $('#word_data').attr("value", html_data); //$('#export_word_form').submit(); $('#word_format_form').submit(); } function print_content(div_id) { var DocumentContainer = document.getElementById(div_id); var WindowObject = window.open("", "PrintWindow", "toolbars=no,scrollbars=yes,status=no,resizable=yes");
<?php # # Sends a new specimen registration form # Called via Ajax from new_specimen.php # include "../includes/page_elems.php"; include "../includes/script_elems.php"; LangUtil::setPageId("stocks"); $script_elems = new ScriptElems(); $script_elems->enableDatePicker(); $count = $_REQUEST['num']; $page_elems = new PageElems(); $name_request = "txtRow" . $count . "1"; $lot_number_request = "txtRow" . $count . "2"; $expiry_date_request = "txtRow" . $count . "3"; $manufacture_request = "txtRow" . $count . "4"; $quantity_supplied_request = "txtRow" . $count . "6"; $supplier_request = "txtRow" . $count . "5"; $unit_request = "txtRow" . $count . "7"; $cost_request = "txtRow" . $count . "8"; $name_list = array("yyyy_to" . $count, "mm_to" . $count, "dd_to" . $count); $name_list1 = array("yyyy_ex" . $count, "mm_ex" . $count, "dd_ex" . $count); $id_list = $name_list; $id_list1 = $name_list1; $today = date("Y-m-d"); $today_array = explode("-", $today); $value_list = $today_array; $value_list1 = $today_array; ?>
echo "<td>[{$curr_measure->unit}]</td>"; $range = $curr_measure->range; if (strpos($range, ":")) { $range_bounds = explode(":", $range); echo "<td>({$range_bounds['0']} - {$range_bounds['1']})</td>"; } else { echo "<td>---</td>"; } echo "</tr>"; } ?> </tbody> </table> <?php } $script_elems = new ScriptElems(); $script_elems->enableJQuery(); $script_elems->enableLatencyRecord(); $lab_config_id = $_REQUEST['location']; $specimen_id = $_REQUEST['specimen_id']; $test_type_id = $_REQUEST['t_type']; $test_name = get_test_name_by_id($test_type_id); DbUtil::switchToLabConfig($lab_config_id); $lab_config = get_lab_config_by_id($lab_config_id); $specimen = get_specimen_by_id($specimen_id); ?> <script type='text/javascript'> function export_as_word(div_id) { var content = $('#'+div_id).html(); $('#word_data').attr("value", content);
<?php include "../includes/db_lib.php"; include "../includes/script_elems.php"; $patientId = $_REQUEST['pid']; $type = $_REQUEST['type']; $script_elems = new ScriptElems(); $script_elems->enableTableSorter(); $script_elems->enableJQueryForm(); if ($type == 'national') { $user = get_user_by_id($_SESSION['user_id']); $country = strtolower($user->country); $saved_db = DbUtil::switchToCountry($country); $patient = Patient::getById($patientId); DbUtil::switchRestore($saved_db); $lab_config = LabConfig::getById($_SESSION['lab_config_id']); ?> <table class='hor-minimalist-b' <?php if ($width != "") { echo " style='width:" . $width . "px;' "; } ?> > <tbody> <tr> <td><u><?php echo LangUtil::$generalTerms['NAME']; ?> </u></td> <td><?php echo $patient->getName();
{ if ( $_SESSION['user_level'] == $LIS_ADMIN && ! User::onlyOneLabConfig($_SESSION['user_id'], $_SESSION['user_level']) ) { # Do not include update file as this lab admin account is incharge of multiple labs } else { include("update/update.php"); } } */ $script_elems = new ScriptElems(); $page_elems = new PageElems(); header('Content-Type: text/html; charset=UTF-8'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title> Basic Laboratory Information System v<?php echo $VERSION; ?> </title> <?php include "styles.php"; /*if ($_SESSION['theme'] == 1)
<?php # # Show printable custom workshete # Called via POST from results_entry.php # Redirected from worksheet.php # include "redirect.php"; include "includes/db_lib.php"; LangUtil::setPageId("results_entry"); include "includes/script_elems.php"; include "includes/page_elems.php"; $page_elems = new PageElems(); $script_elems = new ScriptElems(); $script_elems->enableJQuery(); $script_elems->enableDragTable(); $saved_session = SessionUtil::save(); $worksheet_id = $_REQUEST['id']; $lab_config = LabConfig::getById($_SESSION['lab_config_id']); if ($lab_config == null) { echo LangUtil::$generalTerms['MSG_NOTFOUND']; SessionUtil::restore($saved_session); return; } $worksheet = CustomWorksheet::getById($worksheet_id, $lab_config); if ($worksheet == null) { echo LangUtil::$generalTerms['MSG_NOTFOUND']; SessionUtil::restore($saved_session); return; } $num_rows = 10;
<?php # # Adds a new test type to catalog in DB # include "redirect.php"; include "includes/db_lib.php"; include "includes/user_lib.php"; include "includes/page_elems.php"; include "includes/script_elems.php"; include "includes/stats_lib.php"; include "lang/lang_xml2php.php"; include "users/accesslist.php"; LangUtil::setPageId("stocks"); $script_elems = new ScriptElems(); $page_elems = new PageElems(); $view_update = 1; $view_add = 1; $view_edit = 0; putUILog('view_stocks', 'X', basename($_SERVER['REQUEST_URI'], ".php"), 'X', 'X', 'X'); if (is_admin(get_user_by_id($_SESSION['user_id']))) { $view_edit = 1; //header( 'Location: home.php' ); } $script_elems->enableFlotBasic(); $script_elems->enableFlipV(); $script_elems->enableTableSorter(); $lid = $_SESSION['$lab_config_id']; ?> <script type='text/javascript'>