Exemple #1
0
} else {
    $secondaryCurrencies = currencyConfig::getAllSecondaryCurrencies($lab_config_id, $defaultCurrency->getCurrencyTo());
}
// Currency Type
if (isset($_REQUEST['CT'])) {
    $currencyTo = $_REQUEST['CT'];
} else {
    if (!is_null($defaultCurrency)) {
        $currencyTo = $defaultCurrency->getCurrencyTo();
    } else {
        $currencyTo = $defCurrencyIfnotSet;
    }
}
$defaultFlag = 0;
if (!is_null($defaultCurrency)) {
    $exchange_rate = currencyConfig::getExchangeRateValue($lab_config_id, $defaultCurrency->getCurrencyTo(), $currencyTo);
} else {
    $exchange_rate = 1;
    $defaultFlag = 1;
}
if (isset($_REQUEST['yf'])) {
    $date_from = $_REQUEST['yf'] . "-" . $_REQUEST['mf'] . "-" . $_REQUEST['df'];
    $date_to = $_REQUEST['yt'] . "-" . $_REQUEST['mt'] . "-" . $_REQUEST['dt'];
} else {
    $date_from = date("Y-m-d");
    $date_to = $date_from;
}
$uiinfo = "from=" . $date_from . "&to=" . $date_to . "&ip=" . $_REQUEST['ip'] . "&viz=" . $_REQUEST['viz'];
putUILog('reports_testhistory', $uiinfo, basename($_SERVER['REQUEST_URI'], ".php"), 'X', 'X', 'X');
// function to draw vis
function draw_visualization($cleaned_result, $cleaned_range)