<?php
require ("includes/check_auth_user.php");
require ("includes/dbconnect.php");
include ('includes/function.php');

include("includes/menu_rights.php");
$admin = $_SESSION["admin_" . $dbname];
$usertype = $_SESSION["usertype_" . $dbname];
$zroot = $_SESSION["zdir"];
include("includes/linkshead.php");
?>
<!--<script src="MyScript/outward.js" type="text/javascript"></script>-->
<style>
    .flex-container {
        display: flex;
        flex-wrap: wrap;
        background-color: transparent;
    }

    .flex-container > div {
        background-color: #8cc4f5;
        width: 340px;
        height: 300px;
        margin: 13px;
        text-align: center;
        line-height: 75px;
        font-size: 12px;
        margin-bottom: 65px;
    }
    .flex-container > div:hover {

        /*cursor: pointer;*/
    }
    td {
        font-weight: bold;
        color: snow;
    }
    th {
        background: darkgray;
        position: sticky;
        top: 0; 
    }
    .chead {
        font-weight: bold;
        font-size: 20px;
    }
    .ttotal {
        background-color: #337ab7;
        text-align: right;
        font-weight: bolder;
    }

    .subtd {
        color: black;
        font-weight: bold;
    }
    .tottd{
        font-size: 20px;
    }
    .currdt {
        text-align: center;
        font-weight: bold;
        font-size: 15px;
    }
</style>
</head>
<body>

    <?php
    $zdb = $_SESSION["zdbyear_" . $dbname];
    mysqli_select_db($conn, $zdb);
    $todaydt = date("Y-m-d");

//  SALE 
    $getsl = mysqli_query($conn, "SELECT `vouchno`, `vouchdt`, `party`, `invno`, `netamt` FROM `salemain` WHERE vouchno !='' AND vouchdt = '$todaydt'")or die(mysqli_error($conn));


//   MATERIAL GIVEN TO KARIGAR
    $getmatkar = mysqli_query($conn, "SELECT `vouchno`, `vouchdt`, `invno`, `netamt`, `party` FROM `rawmain` WHERE vouchno !='' AND vouchdt = '$todaydt'")or die(mysqli_error($conn));

//   CASH RECEIPT
    $getcashrcp = mysqli_query($conn, "SELECT `vouchno` , `vouchdt`, `recpno`, `party`, `amount` FROM `cashrecp` WHERE vouchno !='' AND vouchdt = '$todaydt'")or die(mysqli_error($conn));

//   CASH PAYMENT
    $getcashpay = mysqli_query($conn, "SELECT `vouchno` , `vouchdt`, `recpno`, `party`, `amount` FROM `cashpay` WHERE vouchno !='' AND vouchdt = '$todaydt'")or die(mysqli_error($conn));

//  SALE GST MULTI
    $getslgst = mysqli_query($conn, "SELECT `vouchno`, `vouchdt`, `invno`, `party`, `netamt` FROM `gstmain` WHERE vouchno !='' AND vouchdt = '$todaydt'")or die(mysqli_error($conn));

//  GOODS RECEIVED FROM KARIGAR
    $getgdrecv = mysqli_query($conn, "SELECT `vouchno`, `vouchdt`, `invno`, `netamt`, `party` FROM `purmain` WHERE vouchno !='' AND vouchdt = '$todaydt'")or die(mysqli_error($conn));

//   BANK RECEIPT
    $getbankrecp = mysqli_query($conn, "SELECT `vouchno` , `vouchdt`, `recpno`, `bankname`, `amount`,party FROM `bankrecp` WHERE vouchno !='' AND vouchdt = '$todaydt'")or die(mysqli_error($conn));

//   BANK PAYMENT
    $getbankpay = mysqli_query($conn, "SELECT `vouchno`, `vouchdt`, `recpno`, `bankname`, `amount`,party FROM `bankpay` WHERE vouchno !='' AND vouchdt = '$todaydt'")or die(mysqli_error($conn));

//   CUSTOMER TO KARIGAR
    $getcustokar = mysqli_query($conn, "SELECT `vouchno`, `vouchdt`, `karigar`, `party`, `amount` FROM `custtokari` WHERE vouchno !='' AND vouchdt = '$todaydt'")or die(mysqli_error($conn));


    $dt = date("Y-m-d");
    $currdt = date("d-m-Y", strtotime($dt));
    ?>
    <div class="row">
        <h5 class="currdt">Date : <?php echo $currdt; ?></h5>
    </div>
    <div class="flex-container">
        <div class="zoom" <?= $sale; ?> onclick="location.href = 'sale.php?mode=last';">
            <div style="height: 305px; overflow-x: auto">

                <table class="table table-bordered" style="">
                    <thead class="thead-dark">
                        <tr >
                    <h6 class="chead" >Sale Entry</h6>
                    </tr>
                    <tr>
                        <th scope="col" class="text-left">Sr</th>
                        <th scope="col" class="text-center">Invoice</th>
                        <th scope="col" class="text-center">Party</th>
                        <th scope="col" class="text-right">Amount</th>
                    </tr>
                    </thead>

                    <tbody>
                        <?php
                        $ctr = 0;
                        $totnetamt = 0;
                        $totctr = 0;
                        while ($main = mysqli_fetch_array($getsl)) {
                            $ctr++;
                            $vouchno = $main[vouchno];
                            $originalDate = $main[vouchdt];
                            $vouchdt = date("d-m-Y", strtotime($originalDate));
                            $getp = mysqli_query($conn, "SELECT accode, name FROM `accmast` WHERE accode = '$main[party]' AND grpcode = '010'")or die(mysqli_error($conn));
                            $fetp = mysqli_fetch_array($getp);
                            $party = $fetp[name];

                            $invno = $main[invno];
                            $netamt = $main[netamt];

                            Echo "<tr>";
                            Echo "<td class='subtd'>$ctr</td>";
                            Echo "<td class='subtd'><a href='sale.php?mode=edit&vouchno=$vouchno' style='color: white;'>$invno</a></td>";
                            Echo "<td class='subtd'>$party</td>";
                            Echo "<td class='subtd text-right'>$netamt</td>";
                            Echo "</tr>";

                            $totnetamt = $totnetamt + $netamt;
                        }
                        ?>
                    </tbody>
                </table>
            </div>
            <div >
                <table class="table table-bordered" style="">
                    <thead class="">
                        <tr class="ttotal">
                            <td class="tottd text-center" ><?php echo $ctr; ?></td> 
                            <td class="tottd">Total</td> 
                            <td class="tottd"><?php echo $totnetamt; ?></td> 
                        </tr>
                    </thead>
                </table>

            </div>
        </div>  


        <div class="zoom" <?= $salematmulti; ?> onclick="location.href = 'salematmulti.php?mode=last';">
            <div style="height: 305px; overflow-x: auto">
                <table class="table table-bordered" style="">
                    <thead class="thead-dark">
                        <tr >
                    <h6 class="chead" >Material Given To Karigar</h6>
                    </tr>
                    <tr>
                        <th scope="col" class="text-left">Sr</th>
                        <th scope="col" class="text-center">Invoice</th>
                        <th scope="col" class="text-center">Karigar</th>
                        <th scope="col" class="text-right">Amount</th>
                    </tr>
                    </thead>

                    <tbody>
                        <?php
                        $mctr = 0;
                        $mtotnetamt = 0;
                        $mtotctr = 0;
                        while ($main = mysqli_fetch_array($getmatkar)) {
                            $mctr++;
                            $getkr = mysqli_query($conn, "SELECT accode, name FROM accmast WHERE accode = '$main[party]' AND `grpcode`='009' AND active = '1' ")or die(mysqli_error);
                            $fetkr = mysqli_fetch_array($getkr);
                            $karigar = $fetkr[name];
                            
                            $vouchno = $main[vouchno];
                            $originalDate = $main[vouchdt];
                            $vouchdt = date("d-m-Y", strtotime($originalDate));

                            $invno = $main[invno];
                            $netamt = $main[netamt];
//                            browse($karigar);


                            Echo "<tr>";
                            Echo "<td class='subtd'>$mctr</td>";
                            Echo "<td class='subtd'><a href='salematmulti.php?mode=edit&vouchno=$vouchno' style='color: white;'>$invno</a></td>";
                            Echo "<td class='subtd'>$karigar</a></td>";
                            Echo "<td class='subtd text-right'>$netamt</td>";
                            Echo "</tr>";

                            $mtotnetamt = $mtotnetamt + $netamt;
                        }
                        ?>
                    </tbody>
                </table>
            </div>
            <div >
                <table class="table table-bordered" style="">
                    <thead class="">
                        <tr class="ttotal">
                            <td class="tottd text-center" ><?php echo $mctr; ?></td> 
                            <td class="tottd">Total</td> 
                            <td class="tottd"><?php echo $mtotnetamt; ?></td> 
                        </tr>
                    </thead>
                </table>

            </div>
        </div>  


        <div class="zoom" <?= $cashrecp; ?> onclick="location.href = 'cashrecp.php?mode=last';">
            <div style="height: 305px; overflow-x: auto">

                <table class="table table-bordered" style="">
                    <thead class="thead-dark">
                        <tr >
                    <h6 class="chead" >Cash Receipt</h6>
                    </tr>
                    <tr>
                        <th scope="col" class="text-left">Sr</th>
                        <th scope="col" class="text-center">Voucher</th>
                        <th scope="col" class="text-center">Account</th>
                        <th scope="col" class="text-right">Amount</th>
                    </tr>
                    </thead>

                    <tbody>
                        <?php
                        $tctr = 0;
                        $totamt = 0;
                        while ($cpmain = mysqli_fetch_array($getcashrcp)) {
                            $tctr++;
                            $vouchno = $cpmain[vouchno];
                            $recpno = $cpmain[recpno];
                            $amount = $cpmain[amount];

                            $getac = mysqli_query($conn, "SELECT accode, name FROM `accmast` WHERE accode = '$cpmain[party]' AND grpcode > '002' AND grpcode !=''")or die(mysqli_error($conn));
                            $fetac = mysqli_fetch_array($getac);
                            $acname = $fetac[name];


                            Echo "<tr>";
                            Echo "<td class='subtd'>$tctr</td>";
                            Echo "<td class='subtd'><a href='cashrecp.php?mode=edit&vouchno=$vouchno' style='color: white;'>$vouchno</a></td>";
                            Echo "<td class='subtd'>$acname</td>";
                            Echo "<td class='subtd text-right'>$amount</td>";
                            Echo "</tr>";

                            $totamt = $totamt + $amount;
                        }
                        ?>
                    </tbody>
                </table>
            </div>
            <div >
                <table class="table table-bordered" style="">
                    <thead class="">
                        <tr class="ttotal">
                            <td class="tottd text-center" ><?php echo $tctr; ?></td> 
                            <td class="tottd">Total</td> 
                            <td class="tottd"><?php echo $totamt; ?></td> 
                        </tr>
                    </thead>
                </table>

            </div>
        </div>  
        <div class="zoom" <?= $cashpay; ?> onclick="location.href = 'cashpay.php?mode=last';">
            <div style="height: 305px; overflow-x: auto">

                <table class="table table-bordered" style="">
                    <thead class="thead-dark">
                        <tr >
                    <h6 class="chead" >Cash Payment</h6>
                    </tr>
                    <tr>
                        <th scope="col" class="text-left">Sr</th>
                        <th scope="col" class="text-center">Voucher</th>
                        <th scope="col" class="text-center">Account</th>
                        <th scope="col" class="text-right">Amount</th>
                    </tr>
                    </thead>

                    <tbody>
                        <?php
                        $tctr = 0;
                        $totamt = 0;
                        while ($cpmain = mysqli_fetch_array($getcashpay)) {
                            $tctr++;
                            $vouchno = $cpmain[vouchno];
                            $recpno = $cpmain[recpno];
                            $amount = $cpmain[amount];

                            $getac = mysqli_query($conn, "SELECT accode, name FROM `accmast` WHERE accode = '$cpmain[party]' AND grpcode > '002' AND grpcode !=''")or die(mysqli_error($conn));
                            $fetac = mysqli_fetch_array($getac);
                            $acname = $fetac[name];


                            Echo "<tr>";
                            Echo "<td class='subtd'>$tctr</td>";
                            Echo "<td class='subtd'><a href='cashpay.php?mode=edit&vouchno=$vouchno' style='color: white;'>$vouchno</a></td>";
                            Echo "<td class='subtd'>$acname</td>";
                            Echo "<td class='subtd text-right'>$amount</td>";
                            Echo "</tr>";

                            $totamt = $totamt + $amount;
                        }
                        ?>
                    </tbody>
                </table>
            </div>
            <div >
                <table class="table table-bordered" style="">
                    <thead class="">
                        <tr class="ttotal">
                            <td class="tottd text-center" ><?php echo $tctr; ?></td> 
                            <td class="tottd">Total</td> 
                            <td class="tottd"><?php echo $totamt; ?></td> 
                        </tr>
                    </thead>
                </table>

            </div>
        </div>  
        <div class="zoom" <?= $salegstmulti; ?> onclick="location.href = 'salegstmulti.php?mode=last';">
            <div style="height: 305px; overflow-x: auto">

                <table class="table table-bordered" style="">
                    <thead class="thead-dark">
                        <tr >
                    <h6 class="chead" >Sale GST Multi</h6>
                    </tr>
                    <tr>
                        <th scope="col" class="text-left">Sr</th>
                        <th scope="col" class="text-center">Invoice</th>
                        <th scope="col" class="text-center">Party</th>
                        <th scope="col" class="text-right">Amount</th>
                    </tr>
                    </thead>

                    <tbody>
                        <?php
                        $ctr = 0;
                        $totnetamt = 0;
                        $totctr = 0;
                        while ($gmain = mysqli_fetch_array($getslgst)) {
                            $getgp = mysqli_query($conn, "SELECT accode, name FROM `accmast` WHERE accode = '$gmain[party]' AND grpcode = '010'")or die(mysqli_error($conn));
                            $fetgp = mysqli_fetch_array($getgp);
                            $partyname = $fetgp[name];

                            $ctr++;
                            $vouchno = $gmain[vouchno];
                            $originalDate = $gmain[vouchdt];
                            $vouchdt = date("d-m-Y", strtotime($originalDate));

                            $invno = $gmain[invno];
                            $netamt = $gmain[netamt];

                            Echo "<tr>";
                            Echo "<td class='subtd'>$ctr</td>";
                            Echo "<td class='subtd'><a href='salegstmulti.php?mode=edit&vouchno=$vouchno' style='color: white;'>$invno</a></td>";
                            Echo "<td class='subtd'>$partyname</td>";
                            Echo "<td class='subtd text-right'>$netamt</td>";
                            Echo "</tr>";

                            $totnetamt = $totnetamt + $netamt;
                        }
                        ?>
                    </tbody>
                </table>
            </div>
            <div >
                <table class="table table-bordered" style="">
                    <thead class="">
                        <tr class="ttotal">
                            <td class="tottd text-center" ><?php echo $ctr; ?></td> 
                            <td class="tottd">Total</td> 
                            <td class="tottd"><?php echo $totnetamt; ?></td> 
                        </tr>
                    </thead>
                </table>

            </div>
        </div>  
        <div class="zoom" <?= $purchase; ?> onclick="location.href = 'purchase.php?mode=last';">
            <div style="height: 305px; overflow-x: auto">

                <table class="table table-bordered" style="">
                    <thead class="thead-dark">
                        <tr >
                    <h6 class="chead" >Goods Received From Karigar</h6>
                    </tr>
                    <tr>
                        <th scope="col" class="text-left">Sr</th>
                        <th scope="col" class="text-center">Invoice</th>
                        <th scope="col" class="text-center">Karigar</th>
                        <th scope="col" class="text-right">Amount</th>
                    </tr>
                    </thead>

                    <tbody>
                        <?php
                        $ctr = 0;
                        $totnetamt = 0;
                        $totctr = 0;
                        while ($gdmain = mysqli_fetch_array($getgdrecv)) {
                            $ctr++;
                            $vouchno = $gdmain[vouchno];
                            $originalDate = $gdmain[vouchdt];
                            $vouchdt = date("d-m-Y", strtotime($originalDate));

                            $getkr = mysqli_query($conn, "SELECT accode, name FROM accmast WHERE accode = '$gdmain[party]' AND `grpcode`='009' AND active = '1' ")or die(mysqli_error);
                            $fetkr = mysqli_fetch_array($getkr);
                            $karigar = $fetkr[name];
                            $invno = $gdmain[invno];
                            $netamt = $gdmain[netamt];

                            Echo "<tr>";
                            Echo "<td class='subtd'>$ctr</td>";
                            Echo "<td class='subtd'><a href='purchase.php?mode=edit&vouchno=$vouchno' style='color: white;'>$invno</a></td>";
                            Echo "<td class='subtd'>$karigar</td>";
                            Echo "<td class='subtd text-right'>$netamt</td>";
                            Echo "</tr>";

                            $totnetamt = $totnetamt + $netamt;
                        }
                        ?>
                    </tbody>
                </table>
            </div>
            <div >
                <table class="table table-bordered" style="">
                    <thead class="">
                        <tr class="ttotal">
                            <td class="tottd text-center" ><?php echo $ctr; ?></td> 
                            <td class="tottd">Total</td> 
                            <td class="tottd"><?php echo $totnetamt; ?></td> 
                        </tr>
                    </thead>
                </table>

            </div>
        </div>  
        <div class="zoom" <?= $bankrecp; ?> onclick="location.href = 'bankrecp.php?mode=last';">
            <div style="height: 305px; overflow-x: auto">

                <table class="table table-bordered" style="">
                    <thead class="thead-dark">
                        <tr >
                    <h6 class="chead" >Bank Receipt</h6>
                    </tr>
                    <tr>
                        <th scope="col" class="text-left">Sr</th>
                        <th scope="col" class="text-center">Voucher</th>
                        <th scope="col" class="text-center">Bank</th>
                        <th scope="col" class="text-center">Account</th>
                        <th scope="col" class="text-right">Amount</th>
                    </tr>
                    </thead>

                    <tbody>
                        <?php
                        $tctr = 0;
                        $totamt = 0;
                        while ($cpmain = mysqli_fetch_array($getbankrecp)) {
                            $tctr++;
                            $vouchno = $cpmain['vouchno'];
                            $recpno = $cpmain['recpno'];
                            $amount = $cpmain['amount'];

                            $getac = mysqli_query($conn, "SELECT accode, name FROM `accmast` WHERE accode = '$cpmain[bankname]'")or die(mysqli_error($conn));
                            $fetac = mysqli_fetch_array($getac);
                            $acname = $fetac['name'];
                            $getac2  = mysqli_query($conn, "SELECT accode, name FROM `accmast` WHERE accode = '$cpmain[party]'")or die(mysqli_error($conn));
                            $fetac2  = mysqli_fetch_array($getac2);
                            $acname2 = $fetac2['name'];


                            Echo "<tr>";
                            Echo "<td class='subtd'>$tctr</td>";
                            Echo "<td class='subtd'><a href='bankrecp.php?mode=edit&vouchno=$vouchno' style='color: white;'>$vouchno</a></td>";
                            Echo "<td class='subtd'>$acname</td>";
                            Echo "<td class='subtd'>$acname2</td>";
                            Echo "<td class='subtd text-right'>$amount</td>";
                            Echo "</tr>";

                            $totamt = $totamt + $amount;
                        }
                        ?>
                    </tbody>
                </table>
            </div>
            <div >
                <table class="table table-bordered" style="">
                    <thead class="">
                        <tr class="ttotal">
                            <td class="tottd text-center" ><?php echo $tctr; ?></td> 
                            <td class="tottd"></td> 
                            <td class="tottd">Total</td> 
                            <td class="tottd"><?php echo $totamt; ?></td> 
                        </tr>
                    </thead>
                </table>

            </div>
        </div>
        <div class="zoom" <?= $bankpay; ?> onclick="location.href = 'bankpay.php?mode=last';">
            <div style="height: 305px; overflow-x: auto">

                <table class="table table-bordered" style="">
                    <thead class="thead-dark">
                        <tr >
                    <h6 class="chead" >Bank Payment</h6>
                    </tr>
                    <tr>
                        <th scope="col" class="text-left">Sr</th>
                        <th scope="col" class="text-center">Voucher</th>
                        <th scope="col" class="text-center">Bank</th>
                        <th scope="col" class="text-center">Account</th>
                        <th scope="col" class="text-right">Amount</th>
                    </tr>
                    </thead>

                    <tbody>
                        <?php
                        $tctr = 0;
                        $totamt = 0;
                        while ($cpmain = mysqli_fetch_array($getbankpay)) {
                            $tctr++;
                            $vouchno = $cpmain['vouchno'];
                            $amount = $cpmain['amount'];

                            $getac = mysqli_query($conn, "SELECT accode, name FROM `accmast` WHERE accode = '$cpmain[bankname]' AND grpcode = '001' AND grpcode !=''")or die(mysqli_error($conn));
                            $fetac = mysqli_fetch_array($getac);
                            $acname = $fetac['name'];
                            $getac2  = mysqli_query($conn, "SELECT accode, name FROM `accmast` WHERE accode = '$cpmain[party]'")or die(mysqli_error($conn));
                            $fetac2  = mysqli_fetch_array($getac2);
                            $acname2 = $fetac2['name'];


                            Echo "<tr>";
                            Echo "<td class='subtd'>$tctr</td>";
                            Echo "<td class='subtd'><a href='bankpay.php?mode=edit&vouchno=$vouchno' style='color: white;'>$vouchno</a></td>";
                            Echo "<td class='subtd'>$acname</td>";
                            Echo "<td class='subtd'>$acname2</td>";
                            Echo "<td class='subtd text-right'>$amount</td>";
                            Echo "</tr>";

                            $totamt = $totamt + $amount;
                        }
                        ?>
                    </tbody>
                </table>
            </div>
            <div >
                <table class="table table-bordered" style="">
                    <thead class="">
                        <tr class="ttotal">
                            <td class="tottd text-center" ><?php echo $tctr; ?></td> 
                            <td class="tottd"></td> 
                            <td class="tottd">Total</td> 
                            <td class="tottd"><?php echo $totamt; ?></td> 
                        </tr>
                    </thead>
                </table>

            </div>
        </div>
        <div class="zoom" <?= $custtokari; ?> onclick="location.href = 'custtokari.php?mode=last';">
            <div style="height: 305px; overflow-x: auto">

                <table class="table table-bordered" style="">
                    <thead class="thead-dark">
                        <tr >
                    <h6 class="chead" >Customer To Karigar</h6>
                    </tr>
                    <tr>
                        <th scope="col" class="text-left">Voucher</th>
                        <th scope="col" class="text-center">Customer</th>
                        <th scope="col" class="text-center">Karigar</th>
                        <th scope="col" class="text-right">Amount</th>
                    </tr>
                    </thead>

                    <tbody>
                        <?php
                        $ckctr = 0;
                        $cktotamt = 0;
                        $cktotvouch = 0;
                        while ($ckmain = mysqli_fetch_array($getcustokar)) {
                            $cktotvouch++;
                            $vouchno = $ckmain[vouchno];
                            $amount = $ckmain[amount];
                            $getckr = mysqli_query($conn, "SELECT accode, name FROM `accmast` WHERE accode = '$ckmain[karigar]' ")or die(mysqli_error($conn));
                            $fetckr = mysqli_fetch_array($getckr);
                            $karname = $fetckr[name];

                            $getckparty = mysqli_query($conn, "SELECT accode, name FROM `accmast` WHERE accode = '$ckmain[party]'")or die(mysqli_error($conn));
                            $fetckparty = mysqli_fetch_array($getckparty);
                            $ckparty = $fetckparty[name];


                            Echo "<tr>";
                            
                            Echo "<td class='subtd'><a href='custtokari.php?mode=edit&vouchno=$vouchno' style='color: white;'>$vouchno</a></td>";
                            Echo "<td class='subtd'>$ckparty</td>";
                            Echo "<td class='subtd'>$karname</td>";
                            Echo "<td class='subtd text-right'>$amount</td>";
                            Echo "</tr>";

                            $cktotamt = $cktotamt + $amount;
                        }
                        ?>
                    </tbody>
                </table>
            </div>
            <div >
                <table class="table table-bordered" style="">
                    <thead class="">
                        <tr class="ttotal">
                            <td class="tottd text-center" ><?php echo $cktotvouch; ?></td> 
                            <td class="tottd">Total</td> 
                            <td class="tottd"><?php echo $cktotamt; ?></td> 
                        </tr>
                    </thead>
                </table>

            </div>
        </div>
<!--        <div class="zoom" <?= $customer; ?> onclick="location.href = 'customer.php?mode=last';">Customer</div>  
        <div class="zoom" <?= $supplier; ?> onclick="location.href = 'supplier.php?mode=last';">Supplier</div>
        <div class="zoom" <?= $cashpay; ?> onclick="location.href = 'cashpay.php?mode=last';">CashPay</div>
        <div class="zoom" <?= $bankpay; ?> onclick="location.href = 'bankpay.php?mode=last';">BankPay</div>  
        <div class="zoom" <?= $cashrecp; ?> onclick="location.href = 'cashrecp.php?mode=last';">CashRecd</div>
        <div class="zoom" <?= $bankrecp; ?> onclick="location.href = 'bankrecp.php?mode=last';">BankRecd</div>
        <div class="zoom" <?= $rpdailyreport; ?> onclick="location.href = 'dailyrep.php';">Daily Report</div>  
        <div class="zoom" <?= $dailycashrep; ?> onclick="location.href = 'dailyrepcash.php';">Daily Cash</div>
        <div <?= $rpcashbook; ?> onclick="location.href = 'bankbook.php?para=C';">CashBook</div>
        <div <?= $rpbankbook; ?> onclick="location.href = 'bankbook.php?para=B';">BankBook</div>  -->
    </div>

    <?php include("includes/linksfoot.php"); ?>
</body>
</html>
