<?php include 'header.php';
include 'admin/config.php';
?>


<!-- breadcrumb -->
<div class="site-breadcrumb" style="background: url(assets/img/home/s0.png)">
    <div class="container">
        <h2 class="breadcrumb-title">RTI</h2>
        <ul class="breadcrumb-menu">
            <li><a href="index.php">Home</a></li>
            <li class="active">RTI</li>
        </ul>
    </div>
</div>
<!-- breadcrumb end -->

<!-- course-area -->
<div class="course-area py-80 pt-5">
    <div class="container">
        <div class=" mt-5 mb-4">
            <h2 class="mb-3">
                RTI
            </h2>

        </div>
        
        <div>
            <h4>
                   Ringing Information to the Citizens
            </h4>
             <p class="mt-3 mb-3">
                
Right to Information Act 2005 mandates timely response to citizen requests for government information. It is an initiative taken by Department of Personnel and Training, Ministry of Personnel, Public Grievances and Pensions to provide a– RTI Portal Gateway to the citizens for quick search of information on the details of first Appellate Authorities,PIOs etc. amongst others, besides access to RTI related information / disclosures published on the web by various Public Authorities under the government of India as well as the State Governments
                </p>
                
                <h4 class="mt-3">
                      Objective of the Right to Information Act :
                </h4>
<p class="mb-5">
  
The basic object of the Right to Information Act is to empower the citizens,promote transparency and accountability in the working of the Government,contain corruption, and make our democracy work for the people in real sense.It goes without saying that an informed citizen is better equipped to keep necessary vigil on the instruments of governance and make the government more accountable to the governed.The Act is a big step towards making the citizens informed about the activities of the Government.
</p>
            
        </div>
        
        <div class="table-responsive">
            <table class="table annual-report text-center table-bordered">
                <thead>

                    <tr class="table-primary ">
                        <th scope="col">Title</th>
                        <th scope="col">Date</th>
                        <th scope="col">Description</th>
                        <th scope="col">Address</th>
                        <th scope="col">View / Download</th>
                    </tr>
                </thead>
                <tbody class="">
                    <?php
                    $sql = "SELECT * FROM `rti` ORDER BY STR_TO_DATE(date, '%d-%m-%Y') DESC"; // Convert and order by date
                    $query = mysqli_query($con, $sql);
                    if ($query) {
                        while ($row = mysqli_fetch_assoc($query)) {
                            $title = $row['title'];
                            $date = date("d-m-Y", strtotime(str_replace('/', '-', $row['date']))); // Ensure date format
                            $description = $row['description'];
                            $address = $row['address'];
                            $pdf = $row['document'];
                            $pdf_path = "admin/image/" . $pdf;
                    ?>
                            <tr>
                                <td><?php echo $title; ?></td>
                                <td><?php echo $date; ?></td>
                                <td><?php echo $description; ?></td>
                                <td><?php echo $address; ?></td>
                                <td><a href="<?php echo $pdf_path; ?>" target="_blank"><i class="fa-solid fa-file-arrow-down"></i></a></td>
                            </tr>
                    <?php
                        }
                    }
                    ?>


                </tbody>
            </table>
        </div>


    </div>
</div>
<!-- course-area -->


<?php include 'footer.php' ?>