<?php require_once("includes/initialize.php");
$display = "";
if (isset($_POST['submit'])) {
    $result = mysql_real_escape_string($_POST['sformno']);
//echo $result;
    $chk_result = Screening::check_result($result);

    $display = $chk_result->score;
}
?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
            "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <title>OSCOTECH::Screening Result</title>
    </head>

    <body style="

background: rgba(234,239,251,1);
background: -moz-linear-gradient(left, rgba(234,239,251,1) 0%, rgba(199,210,240,1) 63%, rgba(195,206,239,1) 71%, rgba(207,214,242,1) 87%, rgba(186,206,238,1) 100%);
background: -webkit-gradient(left top, right top, color-stop(0%, rgba(234,239,251,1)), color-stop(63%, rgba(199,210,240,1)), color-stop(71%, rgba(195,206,239,1)), color-stop(87%, rgba(207,214,242,1)), color-stop(100%, rgba(186,206,238,1)));
background: -webkit-linear-gradient(left, rgba(234,239,251,1) 0%, rgba(199,210,240,1) 63%, rgba(195,206,239,1) 71%, rgba(207,214,242,1) 87%, rgba(186,206,238,1) 100%);
background: -o-linear-gradient(left, rgba(234,239,251,1) 0%, rgba(199,210,240,1) 63%, rgba(195,206,239,1) 71%, rgba(207,214,242,1) 87%, rgba(186,206,238,1) 100%);
background: -ms-linear-gradient(left, rgba(234,239,251,1) 0%, rgba(199,210,240,1) 63%, rgba(195,206,239,1) 71%, rgba(207,214,242,1) 87%, rgba(186,206,238,1) 100%);
background: linear-gradient(to right, rgba(234,239,251,1) 0%, rgba(199,210,240,1) 63%, rgba(195,206,239,1) 71%, rgba(207,214,242,1) 87%, rgba(186,206,238,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eaeffb', endColorstr='#baceee', GradientType=1 );

">
    <div style="">OSUN STATE COLLEGE OF TECHNOLOGY, ESA OKE</div>
    <!--<div style="

    background: rgba(234,239,251,1);
    background: -moz-linear-gradient(left, rgba(234,239,251,1) 0%, rgba(199,210,240,1) 63%, rgba(195,206,239,1) 71%, rgba(207,214,242,1) 87%, rgba(186,206,238,1) 100%);
    background: -webkit-gradient(left top, right top, color-stop(0%, rgba(234,239,251,1)), color-stop(63%, rgba(199,210,240,1)), color-stop(71%, rgba(195,206,239,1)), color-stop(87%, rgba(207,214,242,1)), color-stop(100%, rgba(186,206,238,1)));
    background: -webkit-linear-gradient(left, rgba(234,239,251,1) 0%, rgba(199,210,240,1) 63%, rgba(195,206,239,1) 71%, rgba(207,214,242,1) 87%, rgba(186,206,238,1) 100%);
    background: -o-linear-gradient(left, rgba(234,239,251,1) 0%, rgba(199,210,240,1) 63%, rgba(195,206,239,1) 71%, rgba(207,214,242,1) 87%, rgba(186,206,238,1) 100%);
    background: -ms-linear-gradient(left, rgba(234,239,251,1) 0%, rgba(199,210,240,1) 63%, rgba(195,206,239,1) 71%, rgba(207,214,242,1) 87%, rgba(186,206,238,1) 100%);
    background: linear-gradient(to right, rgba(234,239,251,1) 0%, rgba(199,210,240,1) 63%, rgba(195,206,239,1) 71%, rgba(207,214,242,1) 87%, rgba(186,206,238,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eaeffb', endColorstr='#baceee', GradientType=1 );

    ">-->


    <form method="post" action="screening_result.php">

        <label>Form No</label><input type="text" name="sformno" value="<?php //echo htmlentities($sformno);?>"/>
        <input type="submit" name="submit" value="Check result"/>

    </form>

    <div><?php
        if ($display != "") {
            echo "Your screening result is: " . $display;
        }
        ?>
    </div>
    <a href="www.oscotech.edu.ng">Return to OSCOTECH website</a>
    </div>
    </body>
    </html>
<?php if (isset($database)) {
    $database->close_connection();

}
?>