示例#1
0
<?
//register a globals variable for security
$GLOBALS['vlDC']=true;
include "conf.php";
//log url
logURL(getThisURL(),getPostVariables());

//load variables
$option=getValidatedVariable("option");
$successsws=getValidatedVariable("successsws");
$searchQuery=getValidatedVariable("searchQuery");
$searchFilter=getValidatedVariable("searchFilter");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Viral Load</title>
<link href="/bootstrap/bootstrap.min.css" rel="stylesheet" type="text/css">

<link href="/css/vl.css" rel="stylesheet" type="text/css">
<link href="/css/vl2.css" rel="stylesheet" type="text/css">
<link href="/css/jsdialog.css" rel="stylesheet" media="screen" type="text/css">
<link href="/css/dhtmlxcombo.css" rel="stylesheet" type="text/css">
<link href="/css/datepicker.jquery.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="/css/jquery-ui.css">

<link   href="/css/select2.min.css" rel="stylesheet" />


<? $vlDC->printJavascript(); ?>
<?
//register a globals variable for security
$GLOBALS['vlDC']=true;
include "conf.php";

//get variables
$patientID=getValidatedVariable("patientID");

//query
$query=0;
$query=mysqlquery("select * from vl_samples where patientID='$patientID' order by created");
$num=0;
$num=mysqlnumrows($query);
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><table border="0" cellspacing="0" cellpadding="0" class="vl">
        <tr>
            <td class="tab_active">Samples&nbsp;from&nbsp;Patient&nbsp;<?php 
echo getDetailedTableInfo2("vl_patients", "id='{$patientID}'", "artNumber") ? getDetailedTableInfo2("vl_patients", "id='{$patientID}'", "artNumber") : getDetailedTableInfo2("vl_patients", "id='{$patientID}'", "otherID");
?>
</td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td style="border:1px solid #CCCCFF; padding:20px">
	<table width="100%" border="0" class="vl">
    <? if($num) { ?>
    <tr>
        <td>
<?
//register a globals variable for security
$GLOBALS['vlDC']=true;
include "conf.php";

//get variables
$sampleID=getValidatedVariable("sampleID");
$worksheetID=getValidatedVariable("worksheetID");

$formNumber=0;
$formNumber=getDetailedTableInfo2("vl_samples","id='$sampleID' limit 1","formNumber");

$sampleReferenceNumber=0;
$sampleReferenceNumber=getDetailedTableInfo2("vl_samples","id='$sampleID' limit 1","vlSampleID");

$worksheetReferenceNumber=0;
$worksheetReferenceNumber=getDetailedTableInfo2("vl_samples_worksheetcredentials","id='$worksheetID'","worksheetReferenceNumber");

$patientID=0;
$patientID=getDetailedTableInfo2("vl_samples","id='$sampleID' limit 1","patientID");

$artNumber=0;
$artNumber=getDetailedTableInfo2("vl_patients","id='$patientID' limit 1","artNumber");

$otherID=0;
$otherID=getDetailedTableInfo2("vl_patients","id='$patientID' limit 1","otherID");

$worksheetReferenceNumber=0;
$worksheetReferenceNumber=getDetailedTableInfo2("vl_samples_worksheetcredentials","id='$worksheetID'","worksheetReferenceNumber");

$factor=0;
<?
//register a globals variable for security
$GLOBALS['vlDC']=true;
include "conf.php";

//get variables
$id=getValidatedVariable("id");

$formNumber=0;
$formNumber=getDetailedTableInfo2("vl_samples","id='$id' limit 1","formNumber");

$batchNumber=0;
$batchNumber=getDetailedTableInfo2("vl_samples","id='$id' limit 1","batchNumber");

$facilityID=0;
$facilityID=getDetailedTableInfo2("vl_samples","id='$id' limit 1","facilityID");

$hubID=0;
$hubID=getDetailedTableInfo2("vl_samples","id='$id' limit 1","hubID");

$districtID=0;
$districtID=getDetailedTableInfo2("vl_samples","id='$id' limit 1","districtID");

$collectionDate=0;
$collectionDate=getDetailedTableInfo2("vl_samples","id='$id' limit 1","collectionDate");

$sampleType=0;
$sampleType=getDetailedTableInfo2("vl_samples","id='$id' limit 1","sampleTypeID");

$viralLoadTesting=0;
$viralLoadTesting=getDetailedTableInfo2("vl_samples","id='$id' limit 1","viralLoadTestingID");
<?
//register a globals variable for security
$GLOBALS['vlDC']=true;
include "conf.php";

//get variables
$id=getValidatedVariable("id");
$pg=getValidatedVariable("pg");

$formNumber=0;
$formNumber=getDetailedTableInfo2("vl_samples","id='$id' limit 1","formNumber");

$districtID=0;
$districtID=getDetailedTableInfo2("vl_samples","id='$id' limit 1","districtID");

$hubID=0;
$hubID=getDetailedTableInfo2("vl_samples","id='$id' limit 1","hubID");

$facilityID=0;
$facilityID=getDetailedTableInfo2("vl_samples","id='$id' limit 1","facilityID");

$currentRegimenID=0;
$currentRegimenID=getDetailedTableInfo2("vl_samples","id='$id' limit 1","currentRegimenID");

$pregnant=0;
$pregnant=getDetailedTableInfo2("vl_samples","id='$id' limit 1","pregnant");

$pregnantANCNumber=0;
$pregnantANCNumber=getDetailedTableInfo2("vl_samples","id='$id' limit 1","pregnantANCNumber");

$breastfeeding=0;
<?
//register a globals variable for security
$GLOBALS['vlDC']=true;
include "conf.php";

//get variables
$refNumber=getValidatedVariable("refNumber");

$query=0;
$query=mysqlquery("select * from vl_forms_clinicalrequest where refNumber='$refNumber'");
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><table border="0" cellspacing="0" cellpadding="0" class="vl">
        <tr>
            <td class="tab_active">Clinical&nbsp;Request&nbsp;Form&nbsp;#:&nbsp;<?php 
echo $refNumber;
?>
</td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td style="border:1px solid #CCCCFF; padding:20px">
	<table width="100%" border="0" class="vl">
    <tr>
    <? if(mysqlnumrows($query)) { ?>
        <td>
	        <div style="height: 280px; overflow: auto; padding:3px">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
示例#7
0
<?
//register a globals variable for security
$GLOBALS['vlDC']=true;
include "conf.php";

//declarations
$code="code128";
$o=2;
$dpi=50;
$t=50;
$r=1;
$rot=0;
$text=vlDecrypt(getValidatedVariable("sampleID"));
$f1="Arial.ttf";
$f2=0;
$a1=0;
$a2="B";
$a3=0;

$filename = $system_temp_array2[0];

require("modules.raw/barcodes/BCGColor.php");
require("modules.raw/barcodes/BCGBarcode.php");
require("modules.raw/barcodes/BCGDrawing.php");
require("modules.raw/barcodes/BCGFont.php");

if(include("modules.raw/barcodes/BCG".$code.".barcode.php")) {
	if($f1 && $f1 !== '-1' && intval($f2) >= 1) {
		$font = new BCGFont("modules.raw/barcodes/font/".$f1, intval($f2));
	} else {
		$font = 0;
<?
//register a globals variable for security
$GLOBALS['vlDC']=true;
include "conf.php";

//get variables
$id=getValidatedVariable("id");
$status=getValidatedVariable("status");

$outcome=0;
$outcome=getDetailedTableInfo2("vl_samples_verify","sampleID='$id' limit 1","outcome");

$outcomeReasonsID=0;
$outcomeReasonsID=getDetailedTableInfo2("vl_samples_verify","sampleID='$id' limit 1","outcomeReasonsID");

$outcomeReasons=0;
$outcomeReasons=getDetailedTableInfo2("vl_appendix_samplerejectionreason","id='$outcomeReasonsID' limit 1","appendix");

$comments=0;
$comments=getDetailedTableInfo2("vl_samples_verify","sampleID='$id' limit 1","comments");

$created=0;
$created=getDetailedTableInfo2("vl_samples_verify","sampleID='$id' limit 1","created");

$createdby=0;
$createdby=getDetailedTableInfo2("vl_samples_verify","sampleID='$id' limit 1","createdby");

$other_rejection_reasons=getData(
                          "GROUP_CONCAT(appendix SEPARATOR '<br>') AS other_reasons",
                          "vl_samples_verify_reasons AS r",
                          "LEFT JOIN vl_appendix_samplerejectionreason AS a ON r.reasonID=a.id WHERE sampleID=$id");