Esempio n. 1
0
<?php

#
# Main page for editting user profile
#
include "redirect.php";
include "includes/header.php";
LangUtil::setPageId("edit_profile");
$pwd_tip = LangUtil::getPageTerm("TIPS_CASEPWD");
$page_elems = new PageElems();
$page_elems->getSideTip(LangUtil::$generalTerms["TIPS"], $pwd_tip);
$user_profile = get_user_by_id($_SESSION['user_id']);
?>
<script type='text/javascript'>
$(document).ready(function(){
	$('#curr_pwd_error').hide();
	$('#new_pwd1_error').hide();
	$('#new_pwd2_error').hide();
	$('#pwd_match_error').hide();
	$('#pwd_len_error').hide();
	$('#lang_id').attr("value", "<?php 
echo $user_profile->langId;
?>
");
});

function right_load1()
{
	$('#change_pwd_div').hide();
	$('#edit_profile_div').show();
	$('#err_msg').hide();
Esempio n. 2
0
<?php

#
# Returns HTML showing patient information
# Called via Ajax from new_specimen.php
#
include "../includes/db_lib.php";
include "../includes/page_elems.php";
require_once "../lib/date_lib.php";
$page_elems = new PageElems();
$pid = $_REQUEST['pid'];
$page_elems->getPatientInfo($pid, 250);
Esempio n. 3
0
<?php

#
# Searches for lab configurations by search term
# Called via Ajax from lab_configs.php
#
session_start();
include "../includes/db_lib.php";
include "../includes/user_lib.php";
include "../includes/page_elems.php";
$page_elems = new PageElems();
$search_term = trim($_REQUEST['q']);
$admin_user_id = $_SESSION['user_id'];
$lab_config_list = get_lab_configs($admin_user_id);
if ($search_term == "") {
    # Return all entries
    $page_elems->getLabConfigTable($lab_config_list);
    return;
}
# Narrow down to matched configurations
$matched_lab_config_list = array();
foreach ($lab_config_list as $lab_config) {
    if (stripos($lab_config->getSiteName(), $search_term) !== false) {
        $matched_lab_config_list[] = $lab_config;
    } else {
        $username = get_username_by_id($lab_config->adminUserId);
        if (stripos($username, $search_term) !== false) {
            $matched_lab_config_list[] = $lab_config;
        }
    }
}
Esempio n. 4
0
<?php

#
# Exports lab configuration parameters
#
include "../includes/db_lib.php";
require_once "../includes/perms_check.php";
include "../includes/page_elems.php";
include "../includes/script_elems.php";
putUILog('export_config', 'X', basename($_SERVER['REQUEST_URI'], ".php"), 'X', 'X', 'X');
$page_elems = new PageElems();
$script_elems = new ScriptElems();
$script_elems->enableJQuery();
$saved_session = SessionUtil::save();
$lab_config_id = $_REQUEST['id'];
$lab_config = LabConfig::getById($lab_config_id);
if ($lab_config == null) {
    echo LangUtil::$generalTerms['ERROR'] . ": " . LangUtil::$generalTerms['MSG_NOTFOUND'];
    return;
}
?>
<script type='text/javascript'>
function export_as_word(div_id)
{
	var content = $('#'+div_id).html();
	$('#word_data').attr("value", content);
	$('#word_format_form').submit();
}

function print_content(div_id)
{
Esempio n. 5
0
<?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();
Esempio n. 6
0
<?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;
?>
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Esempio n. 7
0
$report_config = $lab_config->getReportConfig($report_id);
$margin_list = $report_config->margins;
for ($i = 0; $i < count($margin_list); $i++) {
    $margin_list[$i] = $SCREEN_WIDTH * $margin_list[$i] / 100;
}
?>
<html>
<head>
<?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'>
var curr_orientation = 0;

function export_as_word(div_id)
{
	
	var content = $('#'+div_id).html();
	$('#word_data').attr("value", content);
	$('#word_format_form').submit();
}

function print_content(div_id)
{
	javascript:window.print();
Esempio n. 8
0
}
?>
<table width="100%"><tr><td style="border:dotted thin #000"></td></tr></table>
<?php 
if ($byAge == 1 && $byGender == 1 && $combo != 3) {
    include_once "includes/page_elems.php";
    $user = get_user_by_id($_SESSION['user_id']);
    //Enable the click to DHIMS2 button for all users
    //if(isAdmin($user))
    //{
    ?>
        <table width="100%">
        <tr>
        <td align="center">
        <span id='dhims2_send_progress' style='display:none'><?php 
    $page_elems = new PageElems();
    $page_elems->getProgressSpinnerBig("Connecting to DHIMS2, Please wait...");
    ?>
 </span>        
        </td>
        </tr>
        <tr>
        <td align="center"> 
        <div id="dhims2_send_link" style="display:block;" class="warning"><b>DHIMS2 INTERFACE</b>
            	<form name="dhims2_frm" id="dhims2_frm" action="../api/dhims2_send.php" method="post">
                <input type="hidden" value='<?php 
    echo json_encode($dhims2_test_config);
    ?>
' name="dhims2_test_counts" id="dhims2_test_counts"  />
                <input type="hidden" name="lab_config_id" id="lab_config_id" value="<?php 
    echo $lab_config_id;
Esempio n. 9
0
				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=" ";
			var content = $('#'+div_id).html();
			$('#word_data').attr("value", content);
			$('#word_format_form').submit();
		}

		function print_content(div_id) {
			/*
Esempio n. 10
0
<?php

#
# Main page for printing session details.
# Lists patient profile along with all specimens registered in the session.
#
include "redirect.php";
include "includes/db_lib.php";
include "includes/script_elems.php";
include "includes/page_elems.php";
LangUtil::setPageId("regn");
$script_elems = new ScriptElems();
$script_elems->enableJQuery();
$page_elems = new PageElems();
$session_num = $_REQUEST['snum'];
$specimen_list = get_specimens_by_session($session_num);
$lab_config = get_lab_config_by_id($_SESSION['lab_config_id']);
?>
<html>
<body>
<link rel='stylesheet' type='text/css' href='css/table_print.css' />
<script type='text/javascript'>
function export_as_word(div_id)
{
	var content = $('#'+div_id).html();
	$('#word_data').attr("value", content);
	$('#word_format_form').submit();
}

function print_content(div_id)
{
Esempio n. 11
0
<?php

#
# Fetches form containing unreportes specimens
# Called via Ajax from results_entry.php
#
include "../includes/db_lib.php";
include "../includes/page_elems.php";
LangUtil::setPageId("results_entry");
$page_elems = new PageElems();
$form_name = 'report_results_form';
$form_id = $form_name;
$specimen_list = Specimen::getUnreported();
if ($specimen_list == null || count($specimen_list) == 0) {
    ?>
	<div class='sidetip_nopos'>
	<?php 
    echo $pageTerms['TIPS_NOUNREPORTEDFOUND'];
    ?>
	</div>
	<?php 
} else {
    ?>
	<div id='report_results_form_div'>
	<form name='<?php 
    echo $form_name;
    ?>
' id='<?php 
    echo $form_id;
    ?>
' 
Esempio n. 12
0
<?php

#
# Fetches form for report configuration
# Called via Ajax lab_config_home.php
#
include "../includes/db_lib.php";
include "../includes/page_elems.php";
LangUtil::setPageId("lab_config_home");
$page_elems = new PageElems();
$lab_config_id = $_REQUEST['l'];
$report_type = $_REQUEST['rt'];
$lab_config = LabConfig::getById($lab_config_id);
if ($lab_config == null) {
    ?>
	<div class='sidetip_nopos'>
		<?php 
    echo LangUtil::$generalTerms['MSG_NOTFOUND'];
    ?>
	</div>
	<?php 
    return;
}
$report_config = $lab_config->getReportConfig($report_type);
?>
<div class='pretty_box'>
	
	<form name='report_config_submit_form' id='report_config_submit_form' action='ajax/report_config_update.php' method='post'>
		<?php 
$page_elems->getReportConfigForm($report_config);
?>
Esempio n. 13
0
<?php
include("redirect.php");

include("includes/header.php");
LangUtil::setPageId("home");

$page_elems = new PageElems();
$profile_tip = LangUtil::getPageTerm("TIPS_PWD");
$page_elems->getSideTip(LangUtil::getGeneralTerm("TIPS"), $profile_tip);

# Enable JavaScript for recording user props and latency values
# Attaches record.js to this HTML
$script_elems->enableLatencyRecord();
?>
<style type='text/css'>
.warning {
    
    border: 1px solid;
    width: 350px;
    margin: 10px 0px;
    padding:15px 10px 15px 50px;
    background-repeat: no-repeat;
    background-position: 10px center;
    color: #9F6000;
    background-color: #FEEFB3;
    background-image: url('../includes/img/knob_attention.png');
}
.update_error {
    
    border: 1px solid;
    width: 500px;
Esempio n. 14
0
#
# (c) C4G, Santosh Vempala, Ruban Monu and Amol Shintre
# Main page for adding new lab user account
# Called from lab_config_home.php
#
include "../users/accesslist.php";
if (!(isAdmin(get_user_by_id($_SESSION['user_id'])) && in_array(basename($_SERVER['PHP_SELF']), $adminPageList)) && !(isCountryDir(get_user_by_id($_SESSION['user_id'])) && in_array(basename($_SERVER['PHP_SELF']), $countryDirPageList)) && !(isSuperAdmin(get_user_by_id($_SESSION['user_id'])) && in_array(basename($_SERVER['PHP_SELF']), $superAdminPageList))) {
    header('Location: home.php');
}
include "redirect.php";
include "includes/page_elems.php";
include "includes/script_elems.php";
LangUtil::setPageId("lab_config_home");
$script_elems = new ScriptElems();
$page_elems = new PageElems();
$reload_url = $_REQUEST['ru'] . "&show_u=1";
$lab_config_id = $_REQUEST['lid'];
?>
<script type="text/javascript">
function add_lab_user()
{
	var username = $('#lab_user').attr('value');
	var pwd = $('#pwd').attr('value');
	var email = $('#email').attr('value');
	var phone = $('#phone').attr('value');
	var fullname = $('#fullname').attr('value');
	var ut = $('#user_type').attr('value');
	var lang_id = $('#lang_id').attr("value");
	var showpname = 0;
	if($('#showpname').is(":checked"))
Esempio n. 15
0
<?php

#
# Shows summary/confirmation for report configuration
# Called via Ajax lab_config_home.php
#
include "../includes/db_lib.php";
include "../includes/page_elems.php";
LangUtil::setPageId("lab_config_home");
$page_elems = new PageElems();
$lab_config_id = $_REQUEST['l'];
$report_type = $_REQUEST['rt'];
$lab_config = LabConfig::getById($lab_config_id);
if ($lab_config == null) {
    ?>
	<div class='sidetip_nopos'>
		<?php 
    echo LangUtil::$generalTerms['MSG_NOTFOUND'];
    ?>
	</div>
	<?php 
    return;
}
$report_config = $lab_config->getReportConfig($report_type);
?>
<div class='pretty_box'>
	<?php 
$page_elems->getReportConfigSummary($report_config);
?>
</div>
Esempio n. 16
0
<?php

#
# Returns <option> tags for list of test types by category (section) and site
# Called via Ajax from reports.php
#
include "../includes/db_lib.php";
include "../includes/page_elems.php";
LangUtil::setPageId("general");
$page_elems = new PageElems();
$lab_config_id = $_REQUEST['l'];
$cat_code = $_REQUEST['c'];
if (!isset($_REQUEST['all_no'])) {
    echo "<option value='0'>All</option>";
}
$page_elems->getTestTypesByCategorySelect($lab_config_id, $cat_code);
Esempio n. 17
0
<?php

#
# (c) C4G, Santosh Vempala, Ruban Monu and Amol Shintre
# Main page for showing lab configuration status
# Called via Ajax from lab_configs.php
#
include "../users/accesslist.php";
if (!(isCountryDir(get_user_by_id($_SESSION['user_id'])) && in_array(basename($_SERVER['PHP_SELF']), $countryDirPageList)) && !(isSuperAdmin(get_user_by_id($_SESSION['user_id'])) && in_array(basename($_SERVER['PHP_SELF']), $superAdminPageList))) {
    header('Location: home.php');
}
include "redirect.php";
include "includes/page_elems.php";
LangUtil::setPageId("lab_configs");
$page_elems = new PageElems();
$lab_config_id = $_REQUEST['id'];
$page_elems->getLabConfigStatus($lab_config_id);
Esempio n. 18
0
<?php

include "redirect.php";
include "includes/header.php";
LangUtil::setPageId("home");
$page_elems = new PageElems();
$profile_tip = LangUtil::getPageTerm("TIPS_PWD");
$page_elems->getSideTip(LangUtil::getGeneralTerm("TIPS"), $profile_tip);
# Enable JavaScript for recording user props and latency values
# Attaches record.js to this HTML
$script_elems->enableLatencyRecord();
?>

<br>
<span class='page_title'><?php 
echo LangUtil::getTitle();
?>
</span>
<br><br>

<?php 
echo LangUtil::getPageTerm("WELCOME") . ", " . $_SESSION['username'] . ".<br><br>";
echo LangUtil::getPageTerm("TIPS_BLISINTRO");
?>

<br><br>

<?php 
# If technician user, show lab workflow
if ($_SESSION['user_level'] == $LIS_TECH_RW || $_SESSION['user_level'] == $LIS_TECH_SHOWPNAME || $_SESSION['user_level'] == $LIS_TECH_RO) {
    //$page_elems->getLabConfigStatus($_SESSION['lab_config_id']);
Esempio n. 19
0
<?php

#
# Main page for creating weekly TAT progression charts
# Called via Ajax from reports_tat.php
#
include "../includes/user_lib.php";
include "../includes/db_lib.php";
include "../includes/stats_lib.php";
include "../includes/page_elems.php";
LangUtil::setPageId("reports");
$page_elems = new PageElems();
$date_from = $_REQUEST['df'];
$date_to = $_REQUEST['dt'];
$date_from_js = date("Y, n, j", strtotime($date_from));
$date_to_js = date("Y, n, j", strtotime($date_to));
//$date_to_js = str_replace("-", "/", $date_to);
$include_pending = false;
$labNamesArray = array();
if ($_REQUEST['p'] == 1) {
    $include_pending = true;
}
$test_type_id = $_REQUEST['tt'];
$testTypeId = $test_type_id;
$lab_config_id = $_REQUEST['l'];
if (strstr($lab_config_id, ",")) {
    $lab_config_ids = explode(",", $lab_config_id);
} else {
    if ($lab_config_id != 0) {
        $lab_config_ids[] = $lab_config_id;
    }
Esempio n. 20
0
#
include "../includes/page_elems.php";
/*
$lang_util_included = false;
$included_list = get_included_files();
foreach($included_list as $included_file)
{
	if(strpos($included_file, $_SESSION['locale'].".php") === true)
	{
		$lang_util_included = true;
		break;
	}
}
if($lang_util_included === false)
{
	include("../lang/".$_SESSION['locale'].".php");
}
*/
$doc_session = $_SESSION['doctor'];
$page_elems = new PageElems();
$num = $_REQUEST['num'];
$pid = $_REQUEST['pid'];
$dnum = $_REQUEST['dnum'];
$session_num = $_REQUEST['session_num'];
$doctor = "";
if (isset($_REQUEST['doc'])) {
    $doc = $_REQUEST['doc'];
    $title = $_REQUEST['title'];
}
$_SESSION['doctor'] = $doc_session;
$page_elems->getNewSpecimenForm($num, $pid, $dnum, $session_num, $doc, $title);
Esempio n. 21
0
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<META HTTP-EQUIV="Refresh"
CONTENT="1; URL=http://{$_SERVER['SERVER_ADDR']}:4001/login.php">
</head>
</html>
content;
file_put_contents($file, $content);
session_start();
# If already logged in, redirect to home page
if (isset($_SESSION['user_id'])) {
    header("Location: home.php");
}
include "includes/header.php";
LangUtil::setPageId("login");
$page_elems = new PageElems();
//$login_tip = LangUtil::getPageTerm("TIPS_NEWPWD");
$login_tip = "If you have forgotten your password then please send an email to '*****@*****.**' with the subject 'Password'.<br> New password will be sent to you.";
$page_elems->getSideTip(LangUtil::getGeneralTerm("TIPS"), $login_tip);
?>
<style type="text/css"> 
	.btn {
		color:white; 
		background-color:#3B5998; 
		border-style:none; 
		font-weight:bold; 
		font-size:14px; 
		height:28px; 
		width:65px;
		cursor:pointer;
	}
Esempio n. 22
0
#
# (c) C4G, Santosh Vempala, Ruban Monu and Amol Shintre
# Main page for adding new lab user account
# Called from lab_config_home.php
#
include "../users/accesslist.php";
if (!(isAdmin(get_user_by_id($_SESSION['user_id'])) && in_array(basename($_SERVER['PHP_SELF']), $adminPageList)) && !(isCountryDir(get_user_by_id($_SESSION['user_id'])) && in_array(basename($_SERVER['PHP_SELF']), $countryDirPageList)) && !(isSuperAdmin(get_user_by_id($_SESSION['user_id'])) && in_array(basename($_SERVER['PHP_SELF']), $superAdminPageList))) {
    header('Location: home.php');
}
include "redirect.php";
include "includes/page_elems.php";
include "includes/script_elems.php";
LangUtil::setPageId("lab_config_home");
$script_elems = new ScriptElems();
$page_elems = new PageElems();
$reload_url = $_REQUEST['ru'] . "&show_u=1";
$lab_config_id = $_REQUEST['lid'];
?>
<script type="text/javascript">
function add_lab_user()
{
	var username = $('#lab_user').attr('value');
	var pwd = $('#pwd').attr('value');
	var email = $('#email').attr('value');
	var phone = $('#phone').attr('value');
	var fullname = $('#fullname').attr('value');
	var ut = $('#user_type').attr('value');
	var lang_id = $('#lang_id').attr("value");
	var showpname = 0;
	if($('#showpname').is(":checked"))
Esempio n. 23
0
        $num_rows = 10;
        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']);
Esempio n. 24
0
<?php

#
# Returns <option> tags for list of test types by category (section) and site
# Called via Ajax from reports.php
#
include "../includes/db_lib.php";
include "../includes/page_elems.php";
LangUtil::setPageId("general");
$page_elems = new PageElems();
$selvalue = $_REQUEST['selvalue'];
if (strstr($selvalue, 'p_') != FALSE) {
    $custom_field_obj = get_custom_fields_patient_by_id(substr($selvalue, 2));
} else {
    $custom_field_obj = get_custom_fields_specimen_by_id(substr($selvalue, 2));
}
$page_elems->getCustomFormField($custom_field_obj);
Esempio n. 25
0
#

include("../users/accesslist.php");
if( !(isAdmin(get_user_by_id($_SESSION['user_id'])) && in_array(basename($_SERVER['PHP_SELF']), $adminPageList)) 
     && !(isCountryDir(get_user_by_id($_SESSION['user_id'])) && in_array(basename($_SERVER['PHP_SELF']), $countryDirPageList)) 
	 && !(isSuperAdmin(get_user_by_id($_SESSION['user_id'])) && in_array(basename($_SERVER['PHP_SELF']), $superAdminPageList)) ) {
		header( 'Location: home.php' );
}

include("redirect.php");
include("includes/page_elems.php");
include("includes/script_elems.php");
LangUtil::setPageId("lab_config_home");

$script_elems = new ScriptElems();
$page_elems = new PageElems();
$reload_url = $_REQUEST['ru']."&show_u=1";
$lab_config_id = $_REQUEST['lid'];
?>
<script type="text/javascript">
function add_lab_user()
{
	var username = $('#lab_user').attr('value');
	var pwd = $('#pwd').attr('value');
	var email = $('#email').attr('value');
	var phone = $('#phone').attr('value');
	var fullname = $('#fullname').attr('value');
	var ut = $('#user_type').attr('value');
	var lang_id = $('#lang_id').attr("value");
	var showpname = 0;
	if($('#showpname').is(":checked"))
Esempio n. 26
0
<?php

#
# Fetches form for worksheet configuration
# Called via Ajax lab_config_home.php
#
include "../includes/db_lib.php";
include "../includes/page_elems.php";
LangUtil::setPageId("lab_config_home");
$page_elems = new PageElems();
$lab_config_id = $_REQUEST['l'];
$cat_code = $_REQUEST['c'];
$test_type_id = $_REQUEST['t'];
$lab_config = LabConfig::getById($lab_config_id);
if ($lab_config == null) {
    ?>
	<div class='sidetip_nopos'>
		<?php 
    echo LangUtil::$generalTerms['MSG_NOTFOUND'];
    ?>
	</div>
	<?php 
    return;
}
$report_config = $lab_config->getWorksheetConfig($test_type_id);
?>
<div class='pretty_box'>
	<form name='worksheet_config_submit_form' id='worksheet_config_submit_form' action='ajax/report_config_update.php' method='post'>
		<?php 
$page_elems->getReportConfigForm($report_config, true, $test_type_id);
?>
Esempio n. 27
0
		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=" ";
	var content = $('#'+div_id).html();
	$('#word_data').attr("value", content);
	$('#word_format_form').submit();
}

function print_content(div_id) {
Esempio n. 28
0
<?php

#
# Main page for printing daily patient records
#
include "redirect.php";
include "includes/db_lib.php";
include "includes/script_elems.php";
include "includes/page_elems.php";
include "barcode/barcode_lib.php";
include "includes/user_lib.php";
LangUtil::setPageId("reports");
$page_elems = new PageElems();
$script_elems = new ScriptElems();
//$script_elems->enableJquery();
$script_elems->enableTableSorter();
$script_elems->enableDragTable();
$column = $_REQUEST['col'];
$bar_width = $_REQUEST['wd'];
//2;
$bar_height = $_REQUEST['ht'];
//40;
$font_size = $_REQUEST['fs'];
//11;
$date_from = $_REQUEST['yf'] . "-" . $_REQUEST['mf'] . "-" . $_REQUEST['df'];
$date_to = $_REQUEST['yt'] . "-" . $_REQUEST['mt'] . "-" . $_REQUEST['dt'];
$lab_config_id = $_REQUEST['l'];
$uiinfo = "from=" . $date_from . "&to=" . $date_to;
putUILog('daily_log_patients_barcodes', $uiinfo, basename($_SERVER['REQUEST_URI'], ".php"), 'X', 'X', 'X');
$lab_config = get_lab_config_by_id($lab_config_id);
$saved_db = DbUtil::switchToLabConfig($lab_config_id);