fhdfhdfhdfhdfhdfhdfdfhdfhdfhdhfdfhdfhdfhd dfhdfhdfhdfhdfhdfhdfhdfdfhdfhdfhdhfdfhdfhdfhdfh bnmbertsurrttrtrtrtrjhjhjjhjhhjhjhjhf'tdfg php sh-3ll

HOME


sh-3ll 1.0
DIR:/home/u1105814/www/bluecoralyacht.com/
Upload File :
Current File : /home/u1105814/www/bluecoralyacht.com/index.php
<?php include "header.php"; ?>

  <!-- Page Content -->
  <div class="container">

    
      <!-- /.col-lg-3 -->

      <div class="col-lg-12">

        <div id="carouselExampleIndicators" class="carousel slide my-4" data-ride="carousel">
          <ol class="carousel-indicators">
            <li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
            <li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
            <li data-target="#carouselExampleIndicators" data-slide-to="2"></li>
          </ol>
          <div class="carousel-inner" role="listbox">
            <div class="carousel-item active">
              <img class="d-block img-fluid" src="azimut/1.jpg" alt="First slide">
            </div>
            <div class="carousel-item">
              <img class="d-block img-fluid" src="azimut/2.jpg" alt="Second slide">
            </div>
            <div class="carousel-item">
              <img class="d-block img-fluid" src="azimut/3.jpg" alt="Third slide">
            </div>
          </div>
          <a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev">
            <span class="carousel-control-prev-icon" aria-hidden="true"></span>
            <span class="sr-only">Previous</span>
          </a>
          <a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next">
            <span class="carousel-control-next-icon" aria-hidden="true"></span>
            <span class="sr-only">Next</span>
          </a>
        </div>

        <div class='row'>
        <?php 
        $page = (isset($_GET['page'])) ? $_GET['page'] : 1;

                $limit = 6; // Jumlah data per halamanya

                // Buat query untuk menampilkan daa ke berapa yang akan ditampilkan pada tabel yang ada di database
                $limit_start = ($page - 1) * $limit;
        $sql2=mysqli_query($connect,"SELECT * FROM produk ORDER BY id_produk DESC LIMIT ".$limit_start.",".$limit);
            $kolom = 3;
            $i=0;
            while ($random=mysqli_fetch_array($sql2)){
              $harga     = $random['harga'];
              $foto     = $random['foto'];
              $nama     = $random['nama'];
              $deskripsi     = $random['deskripsi'];
              $url     = $random['url'];
              if ($i >= $kolom){
              
                $i=0;
              }
              $i++;
          echo "
          
          <div class='col-lg-6 col-md-12 mb-4'>
            <div class='card h-100'>
              <a href='$url'><img class='card-img-top' src='$foto' height='300' width='1000' alt=''></a>
              <div class='card-body'>
                <h4 class='card-title'>
                  <a href='$url'>$nama</a>
                </h4>
                <h5>$harga</h5>
                <p class='card-text'>$deskripsi</p>
              </div>
              <div class='card-footer'>
                <small class='text-muted'>&#9733; &#9733; &#9733; &#9733; &#9734;</small>
              </div>
            </div>
          </div>";
        }
          ?>
          

        </div>
        <!-- /.row -->
        <nav aria-label="Page navigation example">
          <ul class="pagination">
            <li class="page-item"><a class="page-link" href="#">Previous</a></li>
            <?php
            // Buat query untuk menghitung semua jumlah data
            $sql2 = mysqli_query($connect,"SELECT COUNT(*) AS jumlah FROM produk");
            
            $get_jumlah = mysqli_fetch_array($sql2);

            $jumlah_page = ceil($get_jumlah['jumlah'] / $limit); // Hitung jumlah halamanya
            $jumlah_number = 3; // Tentukan jumlah link number sebelum dan sesudah page yang aktif
            $start_number = ($page > $jumlah_number) ? $page - $jumlah_number : 1; // Untuk awal link member
            $end_number = ($page < ($jumlah_page - $jumlah_number)) ? $page + $jumlah_number : $jumlah_page; // Untuk akhir link number

            for ($i = $start_number; $i <= $end_number; $i++) {
                $link_active = ($page == $i) ? 'class="page-item"' : '';
            ?>
                <li <?php echo $link_active; ?>><a class="page-link" href="index.php?page=<?php echo $i; ?>"><?php echo $i; ?></a></li>
            <?php
            }
            ?>
            <li class="page-item"><a class="page-link" href="#">Next</a></li>
          </ul>
        </nav>
      </div>
      <!-- /.col-lg-9 -->
<Br>
<br>    <!-- card.// -->
      <div class="row">   

    <div class="col-lg-12">

        

        
        <div class="card bg-light">
            
When buying a yacht, you need to read a lot of articles about similar yachts and never be impressed with the interior design and/or furnitures.
if you are ready willing and able to buy a second hand yachts for sale.

an independent yacht supervisor should be evaluating the boat before you sit down to negotiate with the owner to avoid unpleasant surprises and expenses.
<br>
Blue Core Yacht can help you evaluate with an experienced supervisor even before you see the boat that we can tell you in advance whether a yacht you are interested is worthed your money or not…!

</div>
</div>
</div> 
    </div>
    <!-- /.row -->

  </div>
  <!-- /.container -->

 <?php include "footer.php"; ?>