Al-HUWAITI Shell
Al-huwaiti


Server : LiteSpeed
System : Linux us-phx-web1202.main-hosting.eu 4.18.0-553.84.1.lve.el8.x86_64 #1 SMP Tue Nov 25 18:33:03 UTC 2025 x86_64
User : u615232177 ( 615232177)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /home/u615232177/domains/ellexsleevesapartments.com/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/u615232177/domains/ellexsleevesapartments.com/public_html/apartments.php
<?php session_start();
$page_name = basename($_SERVER['PHP_SELF']);
$page_title = "Apartments";
$page_header = "a83b937b9e.jpg";
include("header.php"); ?>
<title><?php echo $company_name; ?> - <?php echo $page_title; ?></title>
<?php include("page_header.php"); ?>

            <section class="relative lines-deco">
                <div class="container">
                    <div class="row g-4">
<?php $six=6; $yes="Yes";
	$stmt1 = $con -> prepare('SELECT id,header,paragraph,price,picture1,picture2,picture3,picture4,discount FROM rooms WHERE featured = ? ORDER BY RAND() LIMIT ?'); 
	$stmt1 -> bind_param('si',$yes,$six);
	$stmt1 -> execute(); 
	$stmt1 -> store_result(); 
	$stmt1 -> bind_result($r_id_f,$header_f,$paragraph_f,$price_f,$picture1_f,$picture2_f,$picture3_f,$picture4_f,$discount_f); 
	$numrows1 = $stmt1 -> num_rows();
	if($numrows1 > 0){
		while ($stmt1 -> fetch()) { 
            //get 60 characters
            $paragraph_part_f = substr($paragraph_f,0,60);
            ?>
                        <!-- room begin -->
                        <div class="col-lg-4 col-sm-6">
                            <div class="hover relative text-light text-center wow fadeInUp" data-wow-delay=".3s">
                                <?php if($discount_f !== ""){ ?>
                                            <div class="d-label m-2 text-uppercase">
                                               <?php echo "$discount_f% OFF!"; ?>
                                            </div>
                                            <?php } ?>
                               <img src="rooms/<?php echo $picture1_f ?>" class="w-100" style="object-fit:cover; height:300px;">
                                <div class="abs hover-op-1 z-4 hover-mt-40 abs-centered">
                                    <div class="fs-14">From</div>
                                    <h3 class="fs-30 lh-1 mb-4">
                                                    <?php if($discount_f == ""){ 
    echo $currency;
    echo number_format((float)$price_f, 2, '.', ','); echo"<span>/night</span> ";
}
if($discount_f !== ""){
    $amount_to_remove = calculatePercentageOfNumber($price_f, $discount_f);
    $discounted_price = $price_f - $amount_to_remove;
    echo"<span class='cross'>";
    echo $currency;echo number_format((float)$price_f, 2, '.', ','); 
    echo"</span>&nbsp;";
    echo"<br><b>";
    echo $currency;echo number_format((float)$discounted_price, 2, '.', ','); 
    echo"/night";
    echo"</b>";
}
?>
                                                </h3>
                                                <a class="btn-line" href="room_details.php?u=<?php echo $r_id_f; ?>">View Details</a>
                                </div>
                                <div class="abs bg-color z-2 top-0 w-100 h-100 hover-op-1"></div>
                                <div class="abs z-2 bottom-0 mb-3 w-100 text-center hover-op-0">
                                    <h3 class="mb-0"><?php echo $header_f ?></h3>
                                    <div class="text-center fs-14">
                                        <span class="mx-2">
                                             <?php if($discount_f == ""){ 
    echo $currency;
    echo number_format((float)$price_f, 2, '.', ','); echo"<span>/night</span> ";
}
if($discount_f !== ""){
    $amount_to_remove = calculatePercentageOfNumber($price_f, $discount_f);
    $discounted_price = $price_f - $amount_to_remove;
    echo"<span class='cross'>";
    echo $currency;echo number_format((float)$price_f, 2, '.', ','); 
    echo"</span>&nbsp;";
    echo"<br><b>";
    echo $currency;echo number_format((float)$discounted_price, 2, '.', ','); 
    echo"/night";
    echo"</b>";
}
?>
                                        </span>
                                        
                                    </div>
                                </div>
                                <div class="gradient-trans-color-bottom abs w-100 h-40 bottom-0"></div>
                            </div>
                        </div>
                        <!-- room end -->
                     <?php } } ?>                           
                    </div>
                </div>
            </section>
        </div>
        <!-- content close -->
        
      <?php include("footer.php"); ?>

Al-HUWAITI Shell