<?php
include_once '../session/admin-session.php';
include_once '../classes/class_admin.php';
include_once '../classes/validation.php';
include_once '../classes/common.php';
include_once 'read-configration.php';

ob_start();

$ObjDB = new class_db();
$objadm = new class_admin();
$val = new validation();

$BatchList = $objadm->MasterActiveBatchFlagSetting();
?>
<div class="container-fluid">
    <div class="row">
        <div class="col-xl-12 col-xxl-12 col-sm-12">
            <div class="card">
                <div class="card-header">
                    <h5 class="card-title">Credit Distribution/ Cleared</h5>
                </div>
                <div class="card-body">
                    <div class="table-responsive">
                        <table class="table table-bordered ">
                            <thead>
                                <tr>
                                    <th>
                                        Batch
                                    </th>
                                    <th>
                                        Credit Distribution
                                    </th>
                                     <th>
                                        Credit Cleared
                                    </th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php while($res = mysqli_fetch_array($BatchList)){ 
                                    if($res['flag_active'] == "Y" || $res['flag_active'] == "Z"){
                                    ?>
                                
                                <tr>
                                    <td><?php echo $res['flag_user']; ?></td>
                                    <td><a href="reports-credit-distribution-view.php?batch=<?php echo $res['flag_user']; ?>" target="_blank">View</a></td>
                                    <td><a href="reports-credit-cleared-view.php?batch=<?php echo $res['flag_user']; ?>" target="_blank">View</a></td>
                                </tr>
                                
                                <?php } 
                                }
                                ?>
                                <tr>
                                    <td colspan="3">
                                        <strong><Big>Credit Cleared sem 1 to 4</Big></strong>
                                    </td>
                                </tr>
                                 <tr>
                                    <td colspan="3">
                                        <a HREF="reports-transcript-cgpa.php?batch=b16" target="_BLANK">b16</a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php
$pagemaincontent = ob_get_contents();
ob_clean();
$PAGENAME = 'reports-credit-distribution';
$HTMLTITLE = '';
$HTMLDESCRIPTION = '';
$HTMLKEYWORDS = '';
include("admin-master.php");
?>