} else {
    $result = $machine_result;
}
$result = getVLNumericResult($result, $machine_type, $factor);
$numerical_result = getNumericalResult($result);
$suppressed = isSuppressed2($numerical_result, $sample_type, $test_date);
switch ($suppressed) {
    case 'YES':
        // patient suppressed, according to the guidlines at that time
        $smiley = "smiley.smile.gif";
        $recommendation = getRecommendation($suppressed, $sampleVLTestDate, $sampleType);
        break;
    case 'NO':
        // patient suppressed, according to the guidlines at that time
        $smiley = "smiley.sad.gif";
        $recommendation = getRecommendation($suppressed, $sampleVLTestDate, $sampleType);
        break;
    default:
        $smiley = "smiley.sad.gif";
        $recommendation = "There is No Result Given. The Test Failed the Quality Control Criteria. We advise you send a a new sample.";
        break;
}
$location_id = "{$row_lrCategory}{$row_lrEnvelopeNumber}/{$row_lrNumericID}";
$signature = end(explode("/", $signature_path));
$now_s = strtotime(date("Y-m-d"));
$repeated = !empty($row_repeated) ? 1 : 2;
$rejected = $row_verify_outcome == "Rejected" ? 1 : 2;
?>
<page size="A4">
	<div style="height:95%">
<!-- <div class="print-container"> -->
Exemple #2
0
Fichier : er.php Projet : Peaso/CER
if (!isset($op)) {
    $op = isset($_REQUEST['op']) ? $_REQUEST['op'] : null;
}
switch ($op) {
    case 'skills':
        // Gets the list of available skills
        $output = getSkills();
        break;
    case 'subskills':
    case 'backgrounds':
        // Gets the list of available subskills
        $output = getSubskills();
        break;
    case 'request':
        // Gets a recommendation according to the request
        $output = getRecommendation();
        break;
    case 'translate':
        // Translate the request to specific requirements
        $output = getTranslation();
        break;
    case 'getUserInfo':
        // Gets basic info about the candidate
        $output = getUserInfo($_REQUEST['user']);
        break;
    case 'deleteUser':
        // Deletes the user
        $userToDelete = isset($_REQUEST['userToDelete']) ? $_REQUEST['userToDelete'] : null;
        $output = deleteCandidate($userToDelete);
        break;
    default: