File "sub_br_location.php"

Full path: /home/fsibplc/public_html/fsib/sub_br_location.php
File size: 3.53 B (3.53 KB bytes)
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Editor   Back

<?php
include('./includes/config.php'); 
$page_title = "First Security Islami Bank PLC.";
//echo $page_title;
//echo $data[0]['value'];
$meta_description = "First Security Islami Bank PLC. Home page description";
$meta_keywords = "First Security Islami Bank PLC., Bank, Website";
include('includes/header.php'); 
include('includes/navbar.php'); 
//include('includes/slider.php'); 
?>
<!-- ++++++++++++++++++++++++++Start Body Tag++++++++++++++++++++++++++ -->

<?php
  //Ahsan for Dynamic
include('search.php');
 

$sub_br_sql = '';
if (isset($_POST['search_btn'])) {

    $zone_name = $conn->real_escape_string($_POST['zone_name']);
    $br_name = $conn->real_escape_string($_POST['br_name']);

    $sub_br_sql = "select * from br_info_tbl type= 'sub branch'";

    if ((!empty($zone_name)) and (empty($br_name))) {
        $sub_br_sql .= " where zone_name ='" . $zone_name . "'";
    } else if ((!empty($zone_name)) and (!empty($br_name))) {
        $sub_br_sql .= " where br_name ='" . $br_name . "' and br_name ='" . $br_name . "'";
    } else if ((empty($zone_name)) and (!empty($br_name))) {
        $sub_br_sql .= " where br_name ='" . $br_name . "'";
    }
    // $result=$conn->query($sub_br_sql);
}

?>

    <div class="about_hero" style="background-image:url('HeroBg/Location.jpg');">
        <h3 style="color:#28336E">Sub Branch</h3>
    </div>
    
    <div class="tab about_tab" style="background:url('resources/mega.png');margin-bottom:0">
        <button class="tablinks" onclick="openTab(event, 'br_location')">Branch</button>
        <button class="tablinks" id="defaultOpen" onclick="openTab(event, 'sub_br_location')">Sub Branch</button>
        <button class="tablinks" onclick="openTab(event, 'atm_location')">ATM</button>
        <button class="tablinks" onclick="openTab(event, 'crm_location')">CRM</button>
        <button class="tablinks" onclick="openTab(event, 'collection_booth')">Collection Booth</button>
        <button class="tablinks" onclick="openTab(event, 'agent_outlet')" style="border:0">Agent Outlet</button>
    </div>

    <?php include 'about_location.php'; ?>
   
<!-- ++++++++++++++++++++++++++Start Footer Section++++++++++++++++++++++++++ -->
<?php include('includes/footer.php'); ?>      

    <!-- jquery 3.3.1 -->
    <!-- <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script> -->

    <!-- <script src="https://cdn.datatables.net/1.12.1/js/jquery.dataTables.min.js"></script> -->


    <script>
        $(document).ready(function() {

            $('#subbrTable').DataTable(

            );
            // scrollX: true,
            //  scrollY: 200

        });
    </script>

    <script>
        $(document).ready(function() {
            $("#subbrTable").on("click", ".ab", function() {
                id_location = $(this).attr('id');
                $.ajax({
                    url: "modal_api.php",
                    method: 'post',
                    data: {
                        modal_id: id_location
                    },
                    success: function(result) {
                        $('.map_moral').html(result);
                    }
                });
                $('#locationModal').modal('show');

                // your code goes here
            });
        })
    </script>

    <!-- <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"> -->
    </script>