<section class="content-header">
    <h1>Preview<small>Students Management</small>
    </h1>
    <ol class="breadcrumb">
        <li><a href="<?php echo CONTROLLERS_PATH?>"><i class="fa fa-home"></i>Home</a></li>
        <li>Student</li>
        <li>Final Test</li>
        <li class="active">Preview</li>
    </ol>
</section>
<script>
    function printContent(el)
    {
        var restorepage = document.body.innerHTML;
        var printcontent = document.getElementById(el).innerHTML;
        document.body.innerHTML = printcontent;
        window.print();
        document.body.innerHTML = restorepage;
    }
</script>
<section class="content">
    <div class="row">
        <div class='form-group col-lg-12'>
            <a href="<?php echo CONTROLLERS_PATH?>students/edit/<?php echo $finalTestDetail['id']?>" class="btn btn-default btn-flat">Back</a>
            <button class="btn btn-flat btn-warning" onclick="printContent('printArea')">Print</button>
        </div>
        <div id="printArea" style="height:100%;" class="col-xs-12">
            <div class="box" style="border: 3px solid black; padding: 0px 10px 10px 10px;">
                <div style="text-align: center; padding: 20px 0px 20px 0px; margin: 0px 0px 10px 0px; border-bottom:2px solid grey">
                    <h4>ASPIRE - Redefining Horizons</h4>
                    <span>SCF-56, Top Floor, Kabir Park Market, Opp. GNDU, Amritsar - 143001</span>
                    </br>
                    <span>aspire.redefininghorizons@gmail.com</span>
                    </br>
                </div>
                <table width="100%" border="1" cellpadding="10">
                    <tbody>
                        <tr>
                            <td></td>
                            <td>Name</td>
                            <td><?php echo $finalTestDetail['firstName'] . " " . $finalTestDetail['lastName'];?></td>
                        </tr>
                        <tr>
                            <?php
                            if(isset($finalTestDetail['path']) && $finalTestDetail['path'] != "")
                            {
                                $img = $finalTestDetail['path'];
                            }
                            else
                            {
                                $img = "/assets/images/no_user.jpg";
                            }
                            ?>
                            <td width="25%" rowspan="7"><img src="<?php echo $img;?>" width="100% !important;" ></td>
                            <td width="40%">ID Number</td>
                            <td width="32%"><?php echo $finalTestDetail['lifeTimeNumber'];?></td>
                        </tr>
                        <tr>
                            <td>Test Date</td>
                            <td><?php echo $finalTestDetail['date'];?></td>
                        </tr>
                        <tr>
                            <td>Listening</td>
                            <td><?php echo $finalTestDetail['listening'];?></td>
                        </tr>
                        <tr>
                            <td>Reading</td>
                            <td><?php echo $finalTestDetail['reading'];?></td>
                        </tr>
                        <tr>
                            <td>Speaking</td>
                            <td><?php echo $finalTestDetail['speaking'];?></td>
                        </tr>
                        <tr>
                            <td>Writing</td>
                            <td><?php echo $finalTestDetail['writingA'];?></td>
                        </tr>
                        <tr>
                            <td>Overall Bands Scored</td>
                            <td><?php echo $finalTestDetail['writingB'];?></td>
                        </tr>
                    </tbody>
                </table>
                <hr>
                <div class="text-center">
                    <span><i>www.facebook.com/Aspire.redefining.horizons</i></span>
                </div>
            </div>
        </div>
    </div>
</section>