include "../includes/page_elems.php"; LangUtil::setPageId("reports"); $page_elems = new PageElems(); $test_type_id = $_REQUEST['tt']; $date_from = $_REQUEST['df']; $date_to = $_REQUEST['dt']; $lab_config_id = $_REQUEST['l']; $date_from_js = str_replace("-", "/", $date_from); $date_to_js = str_replace("-", "/", $date_to); $lab_config = get_lab_config_by_id($lab_config_id); $include_pending = false; if ($_REQUEST['p'] == 1) { $include_pending = true; } # Obtain stats as date_collected(millisec ts) => tat value $stat_list = StatsLib::getTatDailyProgressionStats($lab_config, $test_type_id, $date_from, $date_to, $include_pending); ksort($stat_list); # Build chart with time series $div_id = "tplaceholder_" . $test_type_id; $ylabel_id = "tylabel_" . $test_type_id; $legend_id = "tlegend_" . $test_type_id; ?> <table> <tbody> <tr valign='top'> <td> <span id="<?php echo $ylabel_id; ?> " class='flipv_up' style="width:30px;height:30px;"><?php echo LangUtil::$generalTerms['TAT'];