<?php
include 'xs_config.php';
include 'xs_db.php';
include 'template.php';

global $dbhost, $dbuser, $dbpass, $dbname;
  
   
    $conn  =  new mysqli($dbhost, $dbuser, $dbpass, $dbname);

    $page = "'".$_GET['page']."'";
    $title = $_GET['page'];
    $query =  "SELECT * from `pages` where Name = $page";
  
    $result = mysqli_query($conn,"$query;")
    or die(mysqli_error());

    

    $data = [];
    while ($row = mysqli_fetch_array($result,MYSQLI_ASSOC)) {
        $data = $row;
    }


show_header($title, $data['SEO_Title'], $data['SEO_Keywords'], $data['SEO_Description']);
// print_r($data);
?>

<!-- faq sectione -->

<section class="second-test sec-pad">
        <div class="container">

            <div class="tests-section">
                <nav aria-label="breadcrumb">

                    <p class="breadcrumb-header"><?= $_GET['page']; ?></p>
                </nav>
            </div>
        </div>
    </section>



    



<section class="organ-page centered" style="margin-top: -40px;">
        <div class="container">
        
            <div class="row">                
                <div class="col-md-4 col-sm-6 col-xs-12 team-colmun">
                    <div class="row">
                        <div class="col-md-12 col-sm-12 col-xs-12 team-colmun">
                            <div class="single-item">
                                <div class="img-box">
                                    <figure>
                                        <img src="content/pages/<?= $data['Image1'] ?>" alt="">
                                    </figure>

                                </div>
                            </div>
                        <!-- </div>
                        <div class="col-md-4 col-sm-6 col-xs-12 team-colmun"> -->
                            <div class="single-item">
                                <div class="img-box">
                                    <figure>
                                        <img src="content/pages/<?= $data['Image2'] ?>" alt="">
                                    </figure>

                                </div>
                            </div>
                        <!-- </div>
                        <div class="col-md-4 col-sm-6 col-xs-12 team-colmun"> -->
                            <div class="single-item">
                                <div class="img-box">
                                    <figure>
                                        <img src="content/pages/<?= $data['Image3'] ?>" alt="">
                                    </figure>

                                </div>
                            </div> 
                            <div class="single-item">
                                <div class="img-box">
                                    <figure>
                                        <img src="content/pages/<?= $data['Image4'] ?>" alt="">
                                    </figure>

                                </div>
                            </div>  
                        </div>
                    </div>
                </div>
                <div class="col-md-8 col-sm-6 col-xs-12 team-colmun" style="font-size:20px; text-align:justify; color:black;">
                <?= $data['Body'] ?>
                </div>
                    
            </div>
            
        </div>
    </section>
    <!-- faq sectione -->
    


    <!-- faq sectione -->







<?php show_footer() ?>