<?php

#
# Returns list of patients matched with list of pending specimens
# Called via Ajax form result_entry.php
#
include "../includes/db_lib.php";
include "../includes/user_lib.php";
LangUtil::setPageId("results_entry");
$attrib_value = $_REQUEST['labSectionId'];
$dynamic = 1;
$search_settings = get_lab_config_settings_search();
$rcap = $search_settings['results_per_page'];
//echo "Max results per page : ".$rcap;
$lab_config = LabConfig::getById($_SESSION['lab_config_id']);
$uiinfo = "labSectionId=" . $_REQUEST['labSectionId'];
putUILog('result_entry_patient_lab_section', $uiinfo, basename($_SERVER['REQUEST_URI'], ".php"), 'X', 'X', 'X');
?>
<style type="text/css">
    .prev_link{
        position: relative;
        float: left;
    }
    .next_link{
        position: relative;
        float: right;
    }
.customers
{
font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
width:100%;
示例#2
0
        public function getSearchFieldsCheckboxes($lab_config_id=null)
	{
		# Returns a set of checkboxes with existing fields types checked.
		
		$lab_config = get_lab_config_by_id($lab_config_id);
		if($lab_config == null && $lab_config_id != "")
		{
			?>
			<div class='sidetip_nopos'>
			ERROR: Lab configuration not found
			</div>
			<?php
			return;
		}
		# Fetch all specimen types
		//if($lab_config_id == "")
			//$specimen_list = get_specimen_types_catalog();
		//else
			//$specimen_list = get_search_fields($lab_config_id);
                        $sfields = get_search_fields($lab_config_id);
                        $ssfields = get_lab_config_settings_search();
                       //"SELECT pid, p_addl, daily_num, pname, age, sex, dob FROM lab_config WHERE lab_config_id=$lab_config_id";

		//$current_specimen_list = array();
		//if($lab_config_id != "")
		//	$current_specimen_list = get_lab_config_specimen_types($lab_config_id);
		# For each specimen type, create a check box. Check it if specimen already in lab configuration
		?>
		<table class='hor-minimalist-b' style='width:700px;'>
			<tbody>
			
                        <tr>
				<td><input type='checkbox' class='sfields_entry' name='sfields_daily_num' id='sfields_daily_num' value='1'
				<?php
					if($sfields['daily_num'] == 12 || $sfields['daily_num'] == 11 || $sfields['daily_num'] == 10)
					{
						echo " checked ><span class='clean-ok'>Patient Number</span>";
					}
					else
                                        {
						echo ">Patient Number";
                                        }
				?>
				</input></td>
                                <br>
                                <td><input type='checkbox' class='sfields_entry' name='sfields_age' id='sfields_age' value='1'
				<?php
					if($sfields['age'] == 12 || $sfields['age'] == 11 || $sfields['age'] == 10)
					{
						echo " checked ><span class='clean-ok'>Patient's Age</span>";
					}
					else
                                        {
						echo ">Patient's Age";
                                        }
				?>
				</input></td>
				
			</tr>
                       
                        
			</tbody>
		</table>
                <br><br>
                Number of Results Per Page: 
                                <?php 
                                echo "<select name='sfields_resultsPerPage' id='sfields_resultsPerPage'>";
                                $i = 1;
			while($i < 101) 
                        {
                            if($ssfields['results_per_page'] == $i)
				echo "<option selected value='".$i."'>".$i."</option>";
                            else
                                echo "<option value='".$i."'>".$i."</option>";
                            $i++;
			}
			echo "</select>";?>
                        
		<?php
	}