コード例 #1
0
ファイル: new_patient_updated.php プロジェクト: jfurlong/BLIS
				document.getElementById("card_num_msg").innerHTML = msg_string;
			}
		}
	}
	xmlHttp.open("GET", url, true);
	xmlHttp.send(null);
}

function reset_new_patient()
{
	$('#new_record').resetForm();
}

</script>
<p style="text-align: right;"><a rel='facebox' href='#regn_sidetip'>Page Help</a></p>
<b><?php echo LangUtil::getTitle(); ?></b>
 | <a href='find_patient.php'>&laquo; <?php echo LangUtil::$pageTerms['MSG_BACKTOLOOKUP']; ?></a>
<br><br>
<div id='new_patient_msg' class='sidetip_nopos' style='display:none;width:510px;'>
</div>
<br>
<table cellspacing='0px'>
<tr valign='top'>
<td>
<div id='patient_new'>
<div class='pretty_box' style='width:500px'>
<form name="new_record" action="add_patient.php" method="post" id="new_record" class="new_record">
	<?php # Hidden field for db key ?>
	<input type='hidden' name='card_num' id='card_num' value="<?php echo get_max_patient_id()+1; ?>" ></input>
	<table cellpadding="2" class='regn_form_table'>
	<?php CustomFieldOrderGeneration_Patient::init(); 
コード例 #2
0
ファイル: getcustomfields.php プロジェクト: caseyi/BLIS
<?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['type'];
?>
<option value='0'><?php 
echo LangUtil::$generalTerms['ALL'];
//
?>
</option>
                           <?php 
$lab_config = LabConfig::getById($_SESSION['lab_config_id']);
if ($selvalue == "p") {
    $custom_field_list = $lab_config->getPatientCustomFields();
    foreach ($custom_field_list as $custom_field) {
        echo "<option value='p_" . $custom_field->id . "'>" . $custom_field->fieldName . "</option>";
    }
} elseif ($selvalue == "s") {
    $custom_field_list = $lab_config->getSpecimenCustomFields();
    foreach ($custom_field_list as $custom_field) {
        echo "<option value='s_" . $custom_field->id . "'>" . $custom_field->fieldName . "</option>";
    }
}
コード例 #3
0
ファイル: select_test_profile.php プロジェクト: jfurlong/BLIS
<?php

#
# Main page for showing patient profile, test history,
# and options like updating profile, registering new specimen
#
include "redirect.php";
include "includes/header.php";
LangUtil::setPageId("patient_profile");
$pid = $_REQUEST['pid'];
$script_elems->enableJQueryForm();
$script_elems->enableDatePicker();
$script_elems->enableTableSorter();
$script_elems->enableLatencyRecord();
$admin = 0;
if (is_admin_check(get_user_by_id($_SESSION['user_id']))) {
    $admin = 1;
}
$rem_recs = get_removed_specimens($_SESSION['lab_config_id'], "test");
foreach ($rem_recs as $rem_rec) {
    $rem_specs[] = $rem_rec['r_id'];
    $rem_remarks[] = $rem_rec['remarks'];
}
$labsection = 0;
if (isset($_REQUEST['labsection'])) {
    $labsection = $_REQUEST['labsection'];
}
//print_r($rem_specs);
?>
<script type='text/javascript'>
function toggle_profile_divs()
コード例 #4
0
ファイル: worksheet.php プロジェクト: caseyi/BLIS
'></input>
&nbsp;&nbsp;&nbsp;&nbsp;
<input type='button' onclick="javascript:export_as_word('export_content');" value='<?php 
echo LangUtil::$generalTerms['CMD_EXPORTWORD'];
?>
'></input>
&nbsp;&nbsp;&nbsp;&nbsp;
<input type='button' onclick="javascript:window.close();" value='<?php 
echo LangUtil::$generalTerms['CMD_CLOSEPAGE'];
?>
'></input>
&nbsp;&nbsp;&nbsp;&nbsp;
<?php 
LangUtil::setPageId("reports");
$page_elems->getTableSortTip();
LangUtil::setPageId("results_entry");
?>
<hr>
<div id='export_content'>
<link rel='stylesheet' type='text/css' href='css/table_print.css' />
<style type='text/css'>
	<?php 
$page_elems->getReportConfigCss($margin_list, false);
?>
</style>
<div id='report_config_content'>
<h3>
	<?php 
echo $report_config->headerText;
?>
 | 
コード例 #5
0
ファイル: use_stock.php プロジェクト: jfurlong/BLIS
					<td>
						<div id="quant_div"></div>
					</td>
				</tr>
                                <tr>
					<td>
						&nbsp;<?php 
echo LangUtil::$pageTerms['Quantity_Signed_Out'];
$page_elems->getAsterisk();
?>
					</td>
					<td></td>
					<td>
						<input type="text" name="quant_u" id="quant_u" class='uniform_width'/>
                                                <label class="error" for="quant_u" id="quant_u_error"><small><font color="red"><?php 
echo LangUtil::getGeneralTerm("MSG_REQDFIELD");
?>
</font></small></label>
                                                <label class="error" for="quant_u" id="quant_e_error"><small><font color="red"><?php 
echo "Exceeds available quantity";
?>
</font></small></label>
					</td>
				</tr>
				<tr>
					<td>
						&nbsp;<?php 
echo "Date of Usage";
$page_elems->getAsterisk();
?>
 
コード例 #6
0
ファイル: current_inventory.php プロジェクト: caseyi/BLIS
<?php

#
# Shows infection summary report for a site/location
#
include "redirect.php";
include "includes/header.php";
include "includes/stats_lib.php";
LangUtil::setPageId("stocks");
$script_elems->enableFlotBasic();
$script_elems->enableFlipV();
$script_elems->enableTableSorter();
$script_elems->enableLatencyRecord();
?>

<br>
<b>Inventory Report</b> 
| <a href='reports.php'>&laquo; Back To Reports</a>
<br><br>

<?php 
$date_from = $_REQUEST['yyyy_from'] . "-" . $_REQUEST['mm_from'] . "-" . $_REQUEST['dd_from'];
$date_to = $_REQUEST['yyyy_to'] . "-" . $_REQUEST['mm_to'] . "-" . $_REQUEST['dd_to'];
$name = $_REQUEST['reagent_name'];
$date_from_js = str_replace("-", "/", $date_from);
$date_to_js = str_replace("-", "/", $date_to);
$all = 'ALL';
if ($name != $all) {
    $retval = get_current_inventory_byName($date_to, $date_from, $name);
} else {
    $retval = get_current_inventory($date_to, $date_from);
コード例 #7
0
ファイル: lab_config_hom_old.php プロジェクト: caseyi/BLIS
?>
</a>
				<br><br></li><li>
				<a id='option4' class='menu_option' href="javascript:right_load(4, 'fields_div');"><?php 
echo LangUtil::$pageTerms['MENU_CUSTOM'];
?>
</a>
				<br><br></li><li>
				<a href='lang_edit?locale=<?php 
echo $_SESSION['locale'];
?>
&id=<?php 
echo $_REQUEST['id'];
?>
'><?php 
echo LangUtil::getPageTerm("MODIFYLANG");
?>
 </a>
				<br><br></li>
				<li>
				<a id='option14' class='menu_option' href="javascript:export_html();"><?php 
echo "Setup Network";
?>
</a>
				<br><br></li>
				<li>
				<a href='export_config?id=<?php 
echo $_REQUEST['id'];
?>
' target='_blank'><?php 
echo LangUtil::$pageTerms['MENU_EXPORTCONFIG'];
コード例 #8
0
ファイル: lab_admin_edit.php プロジェクト: jfurlong/BLIS
<?php
#
# Main page for editting lad admin account
#
include("redirect.php");
include("includes/header.php"); 
LangUtil::setPageId("lab_admins");

$saved_session = SessionUtil::save();

$user_id = $_REQUEST['id'];
$user = get_user_by_id($user_id);
?>
<script type='text/javascript'>
function toggle_and_clear(div_id)
{
	$('#password_row').toggle();
	$('#admin_pwd').attr("value", "");
}

function update_lab_admin()
{
	var username = $('#username').attr('value');
	var pwd = $('#admin_pwd').attr('value');
	var email = $('#email').attr('value');
	var phone = $('#phone').attr('value');
	var fullname = $('#fullname').attr('value');
	var lang_id = $('#lang_id').attr('value');
	var url_string = 'ajax/lab_admin_update.php';
	var data_string = 'id=<?php echo $user_id; ?>&un='+username+'&p='+pwd+'&fn='+fullname+'&em='+email+'&ph='+phone+'&lang='+lang_id;
	$('#edit_admin_progress').show();
コード例 #9
0
ファイル: lab_config_status.php プロジェクト: jfurlong/BLIS
<?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);
コード例 #10
0
ファイル: header.php プロジェクト: jfurlong/BLIS
                $lab_config_list = get_lab_configs($_SESSION['user_id']);
                ?>
		<a href='switchto_tech.php?id=<?php 
                echo $lab_config_list[0]->id;
                ?>
'><?php 
                echo LangUtil::getPageTerm("SWITCH_TOTECH");
                ?>
</a> | 
		<?php 
            }
        }
    }
    ?>
	<a rel='facebox' href='user_rating.php'><?php 
    echo LangUtil::getPageTerm("LOGOUT");
    ?>
</a>
	
	<?php 
    //if(User::onlyOneLabConfig($_SESSION['user_id'], $_SESSION['user_level']))
    if (false) {
        $lab_config_list = get_lab_configs($_SESSION['user_id']);
        ?>
		<br><br>
		<a class='dummy_class' id='top_pane_secondrow' href='data_backup?id=<?php 
        echo $lab_config_list[0]->id;
        ?>
' ><?php 
        echo LangUtil::$pageTerms['MENU_BACKUP'];
        ?>
コード例 #11
0
ファイル: search_s.php プロジェクト: jfurlong/BLIS
<?php

#
# Returns list of matched specimens
# Called via Ajax from /search.php
#
include "../includes/db_lib.php";
LangUtil::setPageId("search");
$q = $_REQUEST['q'];
$a = $_REQUEST['a'];
$uiinfo = "op=" . $a . "&qr=" . $q;
putUILog('search_s', $uiinfo, basename($_SERVER['REQUEST_URI'], ".php"), 'X', 'X', 'X');
$specimen_list = array();
# Fetch list from DB
if ($a == 0) {
    # Fetch by specimen ID
    $specimen_list = search_specimens_by_id($q);
} else {
    if ($a == 1) {
        # Fetch by additional ID
        $specimen_list = search_specimens_by_addlid($q);
    } else {
        if ($a == 2) {
            # Fetch by Session No.
            $specimen_list = search_specimens_by_session($q);
        }
    }
}
if (count($specimen_list) == 0 || $specimen_list[0] == null) {
    ?>
	<br>
コード例 #12
0
ファイル: edit_profile.php プロジェクト: caseyi/BLIS
<tr>
<td><br></td>
<td>
<input type="button" value="<?php 
echo LangUtil::$generalTerms["CMD_UPDATE"];
?>
" onclick="javascript:check_entry_profile();"/>&nbsp;&nbsp;
</td>
</tr>
</table>
</form>
</div>
<div id='change_pwd_div' style='display:none;'>
<b><?php 
echo LangUtil::getPageTerm("LINK_CHANGEPWD");
?>
</b>
<br><br>
<div id="err_message_pwd"></div>
<form name='change_pwd_form' id='change_pwd_form' action='change_pwd.php' method='post'>
<table>
<tr>
<td><?php 
echo LangUtil::$generalTerms['USERNAME'];
?>
</td>
<td><?php 
echo $_SESSION['username'];
?>
</td>
コード例 #13
0
ファイル: page_elems.php プロジェクト: jfurlong/BLIS
	public function getPatientSearchCondition()
	{
		?>
        	<option value='%[pq]%'><?php echo LangUtil::getSearchCondition('SEARCH_CONTAINS'); ?></option>
			<option value='[pq]%'><?php echo LangUtil::getSearchCondition('SEARCH_BEGIN_WITH'); ?></option>           
		<?php
		
	}
コード例 #14
0
ファイル: bill_review.php プロジェクト: caseyi/BLIS
<?php

#
# Main page for reviewing a generated bill, and recieving payment/printing
#
include "redirect.php";
include "includes/header.php";
LangUtil::setPageId("bill_review");
$lab_config_id = $_SESSION['lab_config_id'];
$pid = $_REQUEST['pid'];
$billId = $_REQUEST['bill_id'];
$script_elems->enableTableSorter();
?>
<html>
	<head>
		<script type='text/javascript'>
			function apply_discount(id)
			{
				var selected = $("#selector_for_discount_of_association_" + id).val();
				var amount = $("#discount_amount_for_association_" + id).val();
				$.post('update_discount_for_association.php', {sel : selected, amt : amount, id : id}, function (response) {
					var decoded_resp = JSON.parse(response);
					$("#calculated_cost_for_test_" + id).hide();
					$("#calculated_cost_for_test_" + id).text(decoded_resp["a"]);
					$("#calculated_cost_for_test_" + id).fadeIn('fast');
					$("#bill_total").hide().html(decoded_resp["b"]).fadeIn('fast');
				});
			}
			function print_bill(id, lab_id)
			{
				var url = "reports_billing_specific.php?bill_id=" + id + "&lab_config_id=" + lab_id;
コード例 #15
0
ファイル: test_type_edit_agg.php プロジェクト: jfurlong/BLIS
<?php

#
#
# Main page for modifying an existing test type
#
include "redirect.php";
include "includes/header.php";
include "includes/ajax_lib.php";
LangUtil::setPageId("catalog");
$script_elems->enableJQueryForm();
$script_elems->enableTokenInput();
?>
<br>
<?php 
//$tips_string=LangUtil::$pageTerms['TIPS_MEASURES'];
//$tips_string = LangUtil::$pageTerms['TIPS_CATALOG'];
$tips_string = "To know more about a particular field select on the [?] next to the field name.";
//$page_elems->getSideTip("Tips", $tips_string);
?>
<b><?php 
echo LangUtil::$pageTerms['EDIT_TEST_TYPE'];
?>
</b>
| <a href="country_catalog.php?show_t=1"><?php 
echo LangUtil::$generalTerms['CMD_CANCEL'];
?>
</a>
<br><br>

<?php 
コード例 #16
0
ファイル: db_analysis.php プロジェクト: caseyi/BLIS
<?php

/*
Buea : cameroon : 129
bamenda : cameroon : 128
nphrel:ghana : 1006
kaneshie: ghana : 153
*/
include "redirect.php";
include "includes/header.php";
LangUtil::setPageId("home");
//echo "hi";
db_analysis_ratings(153);
//echo "<br>count=".$count;
?>

<?php 
include "includes/footer.php";
コード例 #17
0
<?php

#
# Returns a list of similar patient names
# To aid/help during new patient registration
#
include "../includes/db_lib.php";
LangUtil::setPageId("new_patient");
$q = $_REQUEST['q'];
$query_string = "SELECT * FROM patient " . "WHERE name LIKE '%{$q}%' ";
$resultset = query_associative_all($query_string, $row_count);
if (count($resultset) == 0 || $resultset == null) {
    return;
}
$patient_list = array();
foreach ($resultset as $record) {
    $patient_list[] = Patient::getObject($record);
}
?>
<table class='hor-minimalist-c' style='width:450px;'>
	<thead>
		<tr valign='top'>
			<th>
				<span style='background-color:#FFCC66'><?php 
echo LangUtil::$pageTerms['SIMILAR_NAMES'];
?>
</span>
			</th>
			<?php 
if ($_SESSION['pid'] != 0) {
    ?>
コード例 #18
0
<?php

#
# (c) C4G, Santosh Vempala, Ruban Monu and Amol Shintre
# Main file for updating to new version
# Calls ajax/update.php which actually performs the update operations
/*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)) &&
	!(isAdmin(get_user_by_id($_SESSION['user_id'])) && in_array(basename($_SERVER['PHP_SELF']), $adminPageList)) )
	header( 'Location: home.php' );
*/
include "redirect.php";
include "../includes/script_elems.php";
include "lang/lang_util.php";
LangUtil::setPageId("exportNationalDbUI");
$script_elems = new ScriptElems();
$script_elems->enableJQuery();
$script_elems->enableJQueryForm();
?>
<html>
<head>
<script type="text/javascript">
function exportDb() {
	$.ajax({
		type : 'POST',
		url : 'export/exportNationalDatabase.php',
		success : function (param) {
			$('#exporting').hide();
			if ( param != false ) {
				$('#exportSuccess').html(param);
コード例 #19
0
ファイル: login.php プロジェクト: caseyi/BLIS
						<td></td>
						<td>
							<input type="button" class="btn" id="login_button" value="<?php 
echo LangUtil::$generalTerms["CMD_LOGIN"];
?>
" onclick="check_input_boxes()"/>
						
						</td>
					</tr>
					<tr>
						<td>
						</td>
						<td>
							<!-- <a href='password_reset.php'>
								<small><?php 
echo LangUtil::getPageTerm("MSG_NEWPWD");
?>
</small>
							</a> -->
						</td>
					</tr>
					<?php 
$password_reset_needed = password_reset_required();
if ($password_reset_needed) {
    ?>
					<tr>
						<td>
						</td>
						<td>
							<a href='oneTime_password_reset.php'>
								<small>Reset the Password</small>
コード例 #20
0
ファイル: page_elemsdff.php プロジェクト: jfurlong/BLIS
	function getNewSpecimenForm($form_num, $pid, $dnum, $session_num, $doc="" ,$title ="Dr.")
	{
		# Returns HTML for new specimen form
		LangUtil::setPageId("new_specimen");
		$form_name = 'specimenform_'.$form_num;
		$form_id = $form_name; 
		$form_class = 'specimenform_class';
		$testbox_id = $form_id.'_testbox';
		$stype_id = $form_id.'_stype';
		$dnum_id = $form_id.'_dnum';
		$time_id = $form_id.'_ctime';
		$div_id = 'specimen_form_container_'.$form_num;
		$dialog_id = $div_id."_dialog";
		$specimen_id_div_id = 'specimen-id_'.$form_num;
		$specimen_err_div_id = 'specimen_msg_'.$form_num;
		$doc_row_id = 'doc_row_'.$form_num;
		$ref_out_row_id = 'ref_out_row_'.$form_num;
		$ref_out_check_id = 'ref_out_'.$form_num;
		$lab_config = LabConfig::getById($_SESSION['lab_config_id']);
		?>
		<div id='<?php echo $div_id; ?>'>
		<div class='pretty_box' style='width:530px;'>
		<form name='<?php echo $form_name; ?>' id='<?php echo $form_id; ?>' action='ajax/specimen_add.php?session_num=<?php echo $session_num ?>' method='post'>
			<input type='hidden' name='pid' value='<?php echo $pid; ?>' class='uniform_width'></input>
			<?php /*<input type='hidden' name='session_num' value='<?php echo get_session_number(); ?>' class='uniform_width'></input> */ ?>
			<table class='regn_form_table'>
			<tbody>
			<tr valign='top' <?php
				if(is_numeric($_SESSION['dnum']) && $_SESSION['dnum'] == 0)
				{
					# Hide if daily num not in use
					echo " style='display:none;' ";
				}
				?>
			>
				<td>
					<label for='dnum'><?php echo LangUtil::$generalTerms['PATIENT_DAILYNUM']; ?><?php $this->getAsterisk(); ?></label>
				</td>
				<td>   </td>
				<td>
					<input type="text" name="dnum" id="dnum" value=<?php echo $dnum; ?> size="20" class='uniform_width'> </input>
				</td>
			</tr>
			<tr valign='top'>				
				<td>
					<label for='stype'><?php echo LangUtil::$generalTerms['SPECIMEN_TYPE']; ?><?php $this->getAsterisk(); ?></label>
				</td>
				<td>   </td>
				<td>
					<select 
						name='stype' 
						id='<?php echo $stype_id; ?>' 
						onchange="javascript:get_testbox('<?php echo $testbox_id; ?>', '<?php echo $stype_id; ?>');" 
						class='uniform_width'
					>
						option value="">-<?php echo LangUtil::$generalTerms['CMD_SELECT']; ?>-</option>
						<?php $this->getSpecimenTypesSelect($_SESSION['lab_config_id']); ?>
					</select>
				</td>
			</tr>
			<tr valign='top'>
				<td>
					<label for='tests'><?php echo LangUtil::$generalTerms['TESTS']; ?> <?php $this->getAsterisk(); ?></label>
				</td>
				<td>   </td>
				<td>
					<span id='<?php echo $testbox_id; ?>' class='uniform_width'>
						-<?php echo LangUtil::$pageTerms['MSG_SELECT_STYPE']; ?>-
					</span>
				</td>
			</tr>
			<tr valign='top'<?php
			//if($_SESSION['sid'] == 0)
			if(true)
				echo " style='display:none;' ";
			?>>
				<td>
					<label for='sid'>DB Key 
					<?php if($_SESSION['sid'] == 2) $this->getAsterisk(); ?></label>
				</td>
				<td>   </td>
				<td>
					<!--
					<input type="text" name="specimen_id" id="<?php echo $specimen_id_div_id; ?>" value="" onblur="javascript:check_specimen_id('<?php echo $specimen_id_div_id; ?>', '<?php echo $specimen_err_div_id; ?>');" size="20" class='uniform_width'>
					</input>
					-->
					<input type='text' name='specimen_id' id='specimen_id' value="<?php echo $form_num; ?>" readonly="readonly" class='uniform_width'>
					</input>
					<br><span id='<?php echo $specimen_err_div_id; ?>'></span>
				</td>
			</tr>
			<tr valign='top' <?php
				if($lab_config->specimenAddl == 0)
					echo " style='display:none;' ";
			?>>
				<td>
					<label for='addlid'><?php echo LangUtil::$generalTerms['SPECIMEN_ID']; ?><?php if($_SESSION['s_addl'] == 2) $this->getAsterisk(); ?> </label>
				</td>
				<td>   </td>
				<td>
					<input type="text" name="addl_id" id="addl_id" value="" size="20" class='uniform_width'> </input>
				</td>
			</tr>
			<tr valign='top' <?php
			if($_SESSION['rdate'] == 0)
				echo " style='display:none;' ";
			?>>
				<td>
					<label><?php echo LangUtil::$generalTerms['R_DATE']; ?> <?php if($_SESSION['rdate'] == 2) $this->getAsterisk(); ?></label>
				</td>
				<td>  </td>
				<td>
					<?php
					$today = date("Y-m-d");
					$today_array = explode("-", $today);
					$name_list = array("receipt_yyyy", "receipt_mm", "receipt_dd");
					$id_list = array($form_id."_receipt_yyyy", $form_id."_receipt_mm", $form_id."_receipt_dd");
					$value_list = array($today_array[0], $today_array[1], $today_array[2]);
					$this->getDatePicker($name_list, $id_list, $value_list, true); 
					?>
				</td>
			</tr>
			<tr valign='top' style='display:none;'>
				<td>
					<label><?php echo LangUtil::$generalTerms['C_DATE']; ?></label>
				</td>
				<td>  </td>
				<td>
					<?php
					$today = date("Y-m-d");
					$today_array = explode("-", $today);
					$name_list = array("collect_yyyy", "collect_mm", "collect_dd");
					$id_list = array($form_id."_collect_yyyy", $form_id."_collect_mm", $form_id."_collect_dd");
					$value_list = array($today_array[0], $today_array[1], $today_array[2]);
					$this->getDatePicker($name_list, $id_list, $value_list, false); 
					?>
				</td>
			</tr>
			<tr valign='top' style='display:none;'>
				<td>
					<label><?php echo LangUtil::$generalTerms['C_TIME']; ?></label>
				</td>
				<td>
					<select name='ctime_hh' autocomplete="OFF">
					<?php
					$time = date("H:i");
					$time_parts = explode(":", $time);
					for($i = 0; $i < 24; $i++)
					{
						if($i < 10)
							$option = '0'.$i;
						else
							$option = $i;
						echo "<option value='$option' ";
						if($option == $time_parts[0])
						//if($option == 9)
							echo "selected ";
						echo ">$option</option>";
						
						
					}
					?>
					</select>
					:
					<select name='ctime_mm' autocomplete="OFF">
					<?php
					for($i = 0; $i < 60; $i++)
					{
						if($i < 10)
							$option = '0'.$i;
						else
							$option = $i;
						echo "<option value='$option' ";
						if($option == $time_parts[1])
						//if($option == "00")
							echo "selected ";
						echo ">$option</option>";
					}
					?>
					</select>
					&nbsp;&nbsp;hrs
				</td>
			</tr>
			<tr valign='top'<?php
			if($_SESSION['comm'] == 0)
				echo " style='display:none;' ";
			?>>
				<td>
					<label for='comments' valign='top'><?php echo LangUtil::$generalTerms['COMMENTS']; ?><?php if($_SESSION['comm'] == 2) $this->getAsterisk(); ?></label>
				</td><td>   </td>
				<td>
					<textarea name="comments" id="comments" class='uniform_width'></textarea>
				</td>
			</tr>
			<tr valign='top' style='display:none' <?php ## Disabled for now ?>>
				<td>
					<label for='report_to' valign='top'>Report To</label>
				</td>
				<td>  </td>
				<td>
					<select name='report_to' class='uniform_width'>
					<?php
					# Enable the following line if this field is to be used:
					echo " onchange=\"javascript:checkandtoggle(this, '$doc_row_id');\" ";
					?>
						<option value='1'>Patient</option>
						<option value='2'>Doctor/Hospital</option>
					</select>
				</td>
			</tr>
			<tr valign='top' id='<?php echo $doc_row_id; ?>' <?php
			if($_SESSION['doctor'] == 0)
				echo " style='display:none;' ";
			?>>
				<td><label for='doctor' valign='top'><?php echo LangUtil::$generalTerms['DOCTOR']; ?><?php if($_SESSION['doctor'] == 2) $this->getAsterisk(); ?></label></label>
				</td>
				<td> 
					<SELECT name='title' id='<?php echo $doc_row_id; ?>_title'>
					<?php
					$labtitlefieldoptions = get_custom_fields_labtitle(1);
					$lab_titles = explode("/",$labtitlefieldoptions);
					
					foreach($lab_titles as $option)
					{
						if(trim($option) == "")
							continue;
						echo "<option value='$option'";
						if($option == $field_value)
						{
							echo " selected ";
						}
						echo " >$option</option>";
					}
					?>
					</SELECT>
				</td>
				<td>
					<input type='text' name='doctor' id='<?php echo $doc_row_id."_input"; ?>'  value='<?php echo $doc; ?>' ></input>
				</td>
			</tr>
			<?php
			$custom_field_list = get_custom_fields_specimen();
			foreach($custom_field_list as $custom_field)
			{	if(($custom_field->flag)==NULL)
				{
				?>
				<tr valign='top'>
					<td><?php echo $custom_field->fieldName; ?></td>
					<td></td>
					<td><?php $this->getCustomFormField($custom_field); ?></td>
				</tr>
				<?php
				}
			}
			?>
			<tr valign='top'<?php
			if($_SESSION['refout'] == 0)
				echo " style='display:none;' ";
			?>>
				<td>
					<label for='ref_out' valign='top'><?php echo LangUtil::$generalTerms['REF_OUT']; ?>? <?php if($_SESSION['refout'] == 2) $this->getAsterisk(); ?></label>
				</td>
				<td>   </td>
				<td>
					<INPUT TYPE=RADIO NAME="ref_out" id='<?php echo $ref_out_check_id; ?>' VALUE="Y" onchange="javascript:checkandtoggle_ref('<?php echo $ref_out_check_id; ?>', '<?php echo $ref_out_row_id; ?>');"><?php echo LangUtil::$generalTerms['YES']; ?>
					<INPUT TYPE=RADIO NAME="ref_out" onchange="javascript:checkandtoggle_ref('<?php echo $ref_out_check_id; ?>', '<?php echo $ref_out_row_id; ?>');" VALUE="N" checked><?php echo LangUtil::$generalTerms['NO']; ?>
				</td>
			</tr>
			<tr valign='top' id='<?php echo $ref_out_row_id; ?>' style='display:none'>
				<td><?php echo LangUtil::$generalTerms['REF_TO']; ?></td>
				<td>
					<input name='ref_out_name' class='uniform_width'></input>
				</td>
			</tr>
			<?php
			if($form_num != 1)
			{
				?>
				<tr valign='top'>
					<td>
						<a href="javascript:show_dialog_box('<?php echo $div_id; ?>');"><?php echo LangUtil::$generalTerms['CMD_REMOVE']; ?></a>
					</td>
					<td>
					<?php
					$message = LangUtil::$pageTerms['MSG_SURETO_REMOVE'];
					$ok_function = "remove_specimenbox('$div_id')";
					$cancel_function = "hide_dialog_box('$div_id')";
					$this->getConfirmDialog($dialog_id, $message, $ok_function, $cancel_function, $width=200);
					?>
					</td>
				</tr>
				<?php
			}
			?>
			</tbody>
			</table>
		</form>
		</div>
		<small>
		<span style='float:right'>
			<?php $this->getAsteriskMessage(); ?>
		</span>
		</small>
		<br>
		</div>
		<?php
	}
コード例 #21
0
ファイル: blis_update.php プロジェクト: jfurlong/BLIS
#
# (c) C4G, Santosh Vempala, Ruban Monu and Amol Shintre
# Main file for updating to new version
# Calls ajax/update.php which actually performs the update operations

/*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)) &&
	!(isAdmin(get_user_by_id($_SESSION['user_id'])) && in_array(basename($_SERVER['PHP_SELF']), $adminPageList)) )
	header( 'Location: home.php' );
*/
include("redirect.php");
include("../includes/db_lib.php");
include("../includes/user_lib.php");

LangUtil::setPageId("update");

$user = get_user_by_id($_SESSION['user_id']);

$def = '';

if ( is_super_admin($user) || is_country_dir($user) ) {
	//$labConfigList = get_lab_configs($user->userId);
	//foreach($labConfigList as $labConfig) {
		//$labConfigId = $labConfig->id;
		//runUpdate($labConfigId);
//          }
	//runGlobalUpdate();
    $db_name = "blis_revamp";
        $ufile = "db_update_revamp";
        blis_db_update($lab_config_id, $db_name, $ufile);
コード例 #22
0
<?php 
include "../includes/db_lib.php";
include "../includes/script_elems.php";
LangUtil::setPageId("find_patient");
$script_elems = new ScriptElems();
$dynamic_fetch = 1;
if (!isset($_REQUEST['result_cap'])) {
    $result_cap = 10;
} else {
    $result_cap = $_REQUEST['result_cap'];
}
if (!isset($_REQUEST['result_counter'])) {
    $result_counter = 1;
} else {
    $result_counter = $_REQUEST['result_counter'];
}
$a = $_REQUEST['a'];
$saved_db = "";
$lab_config = null;
$q = $_REQUEST['q'];
$q = strip_tags($q);
if (isset($_REQUEST['l'])) {
    # Save context
    $lab_config = LabConfig::getById($_REQUEST['l']);
    $saved_db = DbUtil::switchToLabConfig($_REQUEST['l']);
} else {
    $lab_config = LabConfig::getById($_SESSION['lab_config_id']);
}
$patient_list = array();
# Fetch list from DB
コード例 #23
0
ファイル: help.php プロジェクト: jfurlong/BLIS
<?php

include "redirect.php";
include "includes/header.php";
include "includes/random.php";
include "includes/stats_lib.php";
LangUtil::setPageId("blis_help_page");
$script_elems->enableTableSorter();
$script_elems->enableJQueryForm();
?>
<br>
<style type='text/css'>
label
{
	width: 10em;
	float: left;
	text-align: right;
	margin-right: 0.5em;
	display: block
}
</style>
<script>

function labconfig_disp()
{
if(document.getElementById('labconfig_disp').style.display =='none')
$('#labconfig_disp').show();
else
$('#labconfig_disp').hide();
//$('.right_pane').hide();
}
コード例 #24
0
ファイル: lang_util.php プロジェクト: jfurlong/BLIS
 public static function setPageId($page_id)
 {
     global $LANG_ARRAY;
     self::$pageId = $page_id;
     self::$pageTerms = $LANG_ARRAY[self::$pageId];
 }
コード例 #25
0
ファイル: specimen_info.php プロジェクト: caseyi/BLIS
	//var target_div = "fetch_specimen";
	$('.result_form_pane').html("");
	var target_div = "result_form_pane_"+specimen_id;
	$("#"+target_div).load(url, 
		{sid: specimen_id , page_id:pg}, 
		function() 
		{
			$('#fetch_progress_bar').hide();
			$("#fetched_specimen").show();
		}
	);
}
</script>
<br>
<b><?php 
echo LangUtil::getTitle();
?>
</b>
 | <a href='javascript:history.go(-1);'>&laquo; <?php 
echo LangUtil::$generalTerms['CMD_BACK'];
?>
</a>
&nbsp;&nbsp;<?php 
if ($isTestDel) {
    ?>
    			<span class='clean-orange' id='msg_box_test'>
					<?php 
    echo "Test Deleted Successfully";
    ?>
 &nbsp;&nbsp;<a href="javascript:toggle('msg_box_test');"><?php 
    echo LangUtil::$generalTerms['CMD_HIDE'];
コード例 #26
0
ファイル: db_lib.php プロジェクト: nchopra/C4G-BLIS
 public function getName()
 {
     global $CATALOG_TRANSLATION;
     if ($CATALOG_TRANSLATION === true) {
         return LangUtil::getMeasureName($this->measureId);
     } else {
         return $this->name;
     }
 }
コード例 #27
0
ファイル: lab_user_new.php プロジェクト: jfurlong/BLIS
# (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');
コード例 #28
0
ファイル: help_old.php プロジェクト: jfurlong/BLIS
<?php

include "redirect.php";
include "includes/header.php";
include "includes/random.php";
include "includes/stats_lib.php";
LangUtil::setPageId("help");
$script_elems->enableTableSorter();
$script_elems->enableJQueryForm();
?>
<br>
<style type='text/css'>
label
{
	width: 10em;
	float: left;
	text-align: right;
	margin-right: 0.5em;
	display: block
}
</style>
<script>

function labconfig_disp()
{
if(document.getElementById('labconfig_disp').style.display =='none')
$('#labconfig_disp').show();
else
$('#labconfig_disp').hide();
//$('.right_pane').hide();
}
コード例 #29
0
<?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();
コード例 #30
0
#
# (c) C4G, Santosh Vempala, Ruban Monu and Amol Shintre
# Main file for updating to new version
# Calls ajax/update.php which actually performs the update operations

/*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)) &&
	!(isAdmin(get_user_by_id($_SESSION['user_id'])) && in_array(basename($_SERVER['PHP_SELF']), $adminPageList)) )
	header( 'Location: home.php' );
*/

include("redirect.php");
include("../includes/script_elems.php");
include("lang/lang_util.php");
LangUtil::setPageId("updateCountryDbAtLocal");

$script_elems = new ScriptElems();
$script_elems->enableJQuery();
$script_elems->enableJQueryForm();

?>
<html>
<head>
<script type="text/javascript">
function performDbUpdate() {
	$.ajax({
		type : 'POST',
		url : 'update/updateCountryDbAtLocal.php',
		success : function (param) {
			$('#updating').hide();