<?php
include 'header.php';
?>

<div style="margin-bottom:1px;" class="container-xxl py-5">
    <div style="margin:0px;" class="container">
        <div class="row g-12">
            <div class="col-lg-6">
                <h1 class="mb-4">Welcome to <span class="text-primary text-uppercase">District Judiciary Buner</span></h1>
                <p class="mb-2">I am delighted to welcome you to the official website of the District Judiciary Buner. Through this website the people of District Buner in general and litigants in particular will have access to information about their cases pending before different courts. It will help them to know the proceedings alongwith next date of hearing of their cases. It may help you to know the total number of pending cases and monthly performance of the Judicial Officers in disposal of cases against its institutions. It is an effort to provide information and facilitate the aspirants to avail the opportunity of recruitment in Judicial Staff of the District Judiciary to serve the masses. I wish you all the best in your pursuit of justice.</p>
                <h4>(SUMERA WALI)</h4>
                <h5>District & Sessions Judge/Zilla Qazi, Buner</h5>
                <br><br> <br>
            </div>
            <div class="col-lg-6">
                <div class="row g-6" style="margin-top: 12%;">
                    <div class="col-6 text-end">
                        <img class="img-fluid rounded w-75 wow zoomIn" data-wow-delay="0.1s" src="img/Session Gate.jpg" style="margin-top: 1%;">
                    </div>
                    <div class="col-6 text-start">
                        <img class="img-fluid rounded w-100 wow zoomIn" data-wow-delay="0.3s" src="img/New Civil.jpg">
                    </div>
                    <div class="col-6 text-end">
                        <img class="img-fluid rounded w-50 wow zoomIn" data-wow-delay="0.5s" src="img/Session 1.jpg" style="margin-top: 5%;">
                    </div>
                    <div class="col-6 text-start">
                        <img class="img-fluid rounded w-75 wow zoomIn" data-wow-delay="0.7s" src="img/Civil New Block.jpg" style="margin-top: 5%;"><br><br><br><br>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="container-xxl" style="margin-top:0px;">
    <div style="margin:0px;min-height:450px;" class="container">
        <div class="row g-12 align-items-center" style="height: 100%;">
            <div class="col-lg-4" style="height: 450px;">
                <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Announcements...</b>
                <section style="width: 98%; height: 100%; float: left;border:6px solid lightgreen;border-radius: 13px;padding-left: 3px; margin-left:16px;">
                    <marquee width="100%" direction="up" height="100%" scrolldelay="200">
                        <?php
                        $stmt = $conn->prepare("SELECT an_titile, details FROM `announcement` WHERE 1 ORDER BY ID DESC LIMIT 3");
                        $stmt->execute();
                        $aresult = $stmt->get_result();
                        if ($aresult && $aresult->num_rows > 0) {
                            $announcement = "";
                            while ($arow = $aresult->fetch_assoc()) {
                                $announcement .= "*". htmlspecialchars($arow["an_titile"]) . "&nbsp;&nbsp;";
                            }
                            echo '<h6 style="color: red;">' . $announcement . '</h6>';
                        }
                        $stmt->close();
                        ?>
                    </marquee>
                </section>
            </div>
            <div class="col-lg-8">
                <div class="row g-3" style="height: 450px;margin-top:10px;">
                    <section style="width: 99%; height: 100%; float: right; margin-bottom:1px;">
                        <iframe src="./Chart Circle.php" style="width: 100%;height: 100%;border:none;"> </iframe>
                    </section>
                </div>
            </div>
        </div>
    </div>
    <br><br><br>
</div>
<?php
include 'footer.php';
?>