<?php if (!$session->is_logged_in()) {
    redirect_to("index.php");
}
?>
<?php require_once("includes/initialize.php");

$id = $session->user_id;
$user_data = Userdata::find_by_id($session->user_id);
//$user_data->std_process_id;

//$mode= $user_data->mode;
//echo  $user_data->std_process_id." level";

//$pay_settings = Pay_settings::authenticate(1);

$biodata = Biodata::find_by_id($user_data->formno, $user_data->email);

//$pay_settings->HNDI;

//$transaction = Transaction::authenticate($biodata->formno, $biodata->email);

$level = strtoupper($biodata->programme);


//echo $id= $session->user_id;
//$mode= $user_data->mode;
//$user_data->std_process_id;

//	$pay_settings = Pay_settings::authenticate(1);

//echo "Received ";
//echo $biodata->surname;
//echo $biodata->othernames;
//$transact = Transaction::t_processing($id);
$transaction = Transaction::authenticate($biodata->formno, $biodata->email);


//$message =$transaction->responsecode;


?>

<div class="art-content-layout">
    <div class="art-content-layout-row">

        <div class="art-layout-cell layout-item-0" style="width: 100%">

            <marquee behavior="alternate" scrolldelay="200" onmouseover="this.setAttribute('scrollamount',0,0);"
                     onmouseout="this.setAttribute('scrollamount',6,0);">
                <div style="color:#F00; font-style:italic; font-weight:bolder;">NOTE: <span
                            style="color:#F00; font-style:italic;"></span>
                </div>
            </marquee>


        </div>
    </div>
</div>
<div class="art-content-layout">
    <div class="art-content-layout-row">

        <div class="art-layout-cell layout-item-0" style="width: 100%">


            <div style="text-transform:uppercase; color:#099; font-weight:bolder; border-bottom:inset #000 thin;">
                Admission letter
            </div>
            <!--<hr style="width:100%;">
            <br />-->
            <?php if ($message != 'Approved Successfully') {
                echo output_message($message);
            } elseif ($message == 'Approved Successfully') {
                echo "<script>window.open('../admission_letter_printout.php')</script>";
                echo "<span style=\"color:#060; font-weight:bolder \">{$message}</span>";
            } else {
                echo output_message($message);
                //echo "<br/>";
            }
            //$message =$transaction->responsecode;


            ?>


        </div>
    </div>
</div>


<div class="art-content-layout">
    <div class="art-content-layout-row">
        <div class="art-layout-cell layout-item-0" style="width: 70%">

            <div style=" font-size:16px; font-weight:bolder;"><label
                        style="font-size:16px; margin-right:105px"></label><?php //echo $pay_settings->amount;
                ?></div>

            <div style=" font-size:16px; font-weight:bolder;"><label
                        style="font-size:16px; margin-right:108px"> </label><?php // echo $pay_settings->charge_interswitch + $pay_settings->charge_omoluabi.".00";
                ?></div>

                <a href="Report.php" target="_blank" id="accept"
                   style="background-color:#030; color:#FFF; font-weight:bolder; border-radius:5px;padding:5px; margin-top:5; text-decoration:none; font-size:17px; font-stretch:extra-expanded">
                    Semester ExamPass</a>
            <!--<input type="submit" name="submit" style="background-color:#069; color:#FFF; font-weight:bolder; border-radius:5px;padding:5px; margin-top:35" value="Bank branch payment">
            -->
            </form>
        </div>
    </div>
</div>
</div>


</article></div>
<style>
    #accept:hover {
        text-decoration: none;
        font-style: italic;
    }
</style>