
<div class="mydiv">
    <div style="background:black;width:20px;height:20px;float:left;"></div>
    <div style="background:black;width:20px;height:20px;float:right;"></div>
    <br><br>
    <div class="tab-content">

        <div style="width:100%;">

            <div style="width:100%;float:left;">
                <table cellspacing="0" style="width:100%;color:#d11d53;text-align:center;border-color:#d11d53" border="1">
                    <tr>
                        <td style="background:pink;color:black;font-weight:600">Class</td>
                        <td style="background:pink;color:black;font-weight:600">Student's Name</td>
                        <td style="background:pink;color:black;font-weight:600">Subject</td>
                        <td style="background:pink;color:black;font-weight:600;width:100px;">Roll No.</td>
                    </tr>
                    <tr>
                        <!--<td style="height:25px;font-weight:600;"><?php echo $stu['omr']; ?></td>-->
                        <!--<td style="height:25px;font-weight:600;"><?php echo $stu['name']; ?></td>-->
                        <!--<td style="height:25px;font-weight:600;"><?php echo $subomr;?></td>-->
                        <!--<td style="height:25px;font-weight:600;"><?php echo $stu['fincome']; ?></td>-->
                        <td style="height:25px;font-weight:600;"><?php //echo $stu['omr']; ?></td>
                        <td style="height:25px;font-weight:600;"><?php //echo $stu['name']; ?></td>
                        <td style="height:25px;font-weight:600;"><?php //echo $subomr;?></td>
                        <td style="height:25px;font-weight:600;"><?php //echo $stu['fincome']; ?></td>
                    </tr>
                </table>
            </div>

        </div>

    </div>
    <div style="width:950px;color:transparent">.</div>

    <div style="width:100%;float:left;margin-top:20px;">
        <?php
        $max = 80;//count($allquestions);
        if(/*count($allquestions)>0*/true ){
            ?>
            <table cellspacing="0" style="color:#d11d53;text-align:center;display:inline-block;float:left;margin-top:0px;width:5%;margin-left:20px;">
                <?php
                for($i=1;$i<41;$i++){
                    if($i<=$max){   ?>
                        <tr>
                            <td style="width:20px;font-weight:bold;padding:5px;border:solid 1px;"><?php echo $i; ?></td>
                        </tr>
                        <?php
                    }   }
                ?>
            </table>

            <table cellspacing="0" style="color:#d11d53;text-align:center;display:inline-block;float:left;margin-top:0px;width:41%;border:solid 1px;margin-left:5px;">
                <?php
                for($i=1;$i<41;$i++){
                    if($i<=$max){   ?>
                        <tr>
                            <?php foreach( range('A', 'D') as $ele) {
                                echo "<td style='font-weight:bold;text-align:center;padding:5px;width:90px;padding-left:39px;'><p style='border:solid 1px;width:18px;height:18px;border-radius:50%;'>$ele</p></td>";
                            }
                            ?>
                        </tr>
                        <?php
                    }   }
                ?>
            </table>
            <?php if($max > 40) { ?>
                <table cellspacing="0" style="color:#d11d53;text-align:center;display:inline-block;float:left;margin-top:0px;width:5%;margin-left:20px;">
                    <?php
                    for($i=41;$i<81;$i++){
                        if($i<=$max){   ?>
                            <tr>
                                <td style="width:20px;font-weight:bold;padding:5px;border:solid 1px;"><?php echo $i; ?></td>
                            </tr>
                            <?php
                        }   }
                    ?>
                </table>

                <table cellspacing="0" style="color:#d11d53;text-align:center;display:inline-block;float:left;margin-top:0px;width:40%;border:solid 1px;margin-left:10px;">
                    <?php
                    for($i=41;$i<81;$i++){
                        if($i<=$max){   ?>
                            <tr>
                                <?php foreach( range('A', 'D') as $ele) {
                                    echo "<td style='font-weight:bold;text-align:center;padding:5px;width:90px;padding-left:37px;'><p style='border:solid 1px;width:18px;height:18px;border-radius:50%;'>$ele</p></td>";
                                }
                                ?>
                            </tr>
                            <?php
                        }   }
                    ?>
                </table>
            <?php }
        }

        ?>
    </div>

    <div style="background:black;width:20px;height:20px;float:left;bottom:-5px;position:relative;"></div>
    <div style="background:black;width:20px;height:20px;bottom:-5px;position:relative;float:right;"></div>

</div>
<style>
    @media print {
        .mydiv {page-break-after: always;}
    }
</style>
