Ejemplo n.º 1
0
    echo DateLib::mysqlToString($date_from) . " to " . DateLib::mysqlToString($date_to);
}
?>
			</td>
		</tr>
		<?php 
if ($cat_code != 0) {
    # Specific tets category selected: Show category name in report
    ?>
			<tr>
				<td><?php 
    echo LangUtil::$generalTerms['LAB_SECTION'];
    ?>
:</td>
				<td><?php 
    echo getTestCategoryAggNameById($cat_code);
    ?>
</td>
			</tr>
			<?php 
}
?>
	</tbody>
</table>
<?php 
if (count($selected_test_types) == 0) {
    echo LangUtil::$pageTerms['TIPS_NOTATTESTS'];
    return;
}
$table_css = "style='padding: .3em; border: 1px black solid; font-size:14px;'";
?>
Ejemplo n.º 2
0
	public function getTestTypeInfoAggregate($testTypeMapping, $show_db_name=false)
	{
		# Returns HTML for displaying test type information
		$test_type = getAggregateTestTypeByName($testTypeMapping->name);
		?>
		<table class='hor-minimalist-b'>
			<tbody>
				<tr>
					<td><?php echo LangUtil::$generalTerms['NAME']; ?></td>
					<td><?php echo $test_type->name; ?></td>
				</tr>
				
				<tr>
					<td><?php echo LangUtil::$generalTerms['LAB_SECTION']; ?></td>
					<td><?php echo getTestCategoryAggNameById($test_type->testCategoryId); ?></td>
				</tr>

				<tr valign='top'>
					<td><?php echo LangUtil::$generalTerms['MEASURES']; ?></td>
					<td>
					<?php
						# Fetch all test measures
						$measure_id_list = $testTypeMapping->getMeasureIds();
						foreach($measure_id_list as $measure_id)
						{
							$measure = getAggregateMeasureById($measure_id);
							if($measure==NULL && count($meausre_id_list)==1 ) {	
									echo "No Measures Found!";
									break;
							}
							else if($measure!=NULL)
									echo $measure->getName()."<br>";
						}
					?>
					</td>
				</tr>
			
			</tbody>
		</table>
		<?php
	}