Server Admin
Server Info
File Manager
Commander
MySQL Client
PHP Info
Editing: travelnew.php
<?php session_start(); include 'header.php'; include 'db.php'; $sql_query_dom = "select * from tours where status=1 AND `tours`.`tour_type`='domestic' "; $sql_query_int = "select * from tours where status=1 AND `tours`.`tour_type`='international' "; ?> <section id="team" class="team"> <div class="container"> <div class="section-title"> <h2>Domestic Destinations</h2> </div> <div class="row"> <?php $result = mysqli_query($conn,$sql_query_dom); while($row = $result->fetch_assoc()) { // print_r($row); $pid = $row['id'] ; $tid = $row['id']; $tour_name = $row['name']; $tour_image = $row['image']; $tour_file = $row['attachment']; $tour_price = $row['tour_price']; $tour_days = $row['tour_days']; ?> <div class="col-lg-3 col-md-6"> <div class="member aos-init aos-animate" data-aos="zoom-in" data-aos-delay="100"> <div class="pic"><img src="../admin/uploads/images/<?php echo $tour_image?>" class="img-fluid" alt=""></div> <div class="member-info"> <h4><a href="tour_detail.php?tour_id=<?php echo $tid ?>&img=<?php echo $tour_image ?>"><?php echo $tour_name ?></a></h4> <span><?php echo $tour_days?></span> <div class="social"> <h4>Rs-<?php echo $tour_price ;?>/Per Person</h4> </div> </div> </div> </div> <?php }?> </div> <div class="section-title"> <a class="cta-btn" id="#right" href="travelall.php">View All</a> </div> </div> </section> <section id="team" class="team"> <div class="container"> <div class="section-title"> <h2>International Destinations</h2> </div> <div class="row"> <?php $result = mysqli_query($conn, $sql_query_int); while($row = $result->fetch_assoc()) { // print_r($row); $pid = $row['id'] ; $tid = $row['id']; $tour_name = $row['name']; $tour_image = $row['image']; $tour_file = $row['attachment']; $tour_price = $row['tour_price']; $tour_days = $row['tour_days']; ?> <div class="col-lg-3 col-md-6"> <div class="member aos-init aos-animate" data-aos="zoom-in" data-aos-delay="100"> <div class="pic"><img src="../admin/uploads/images/<?php echo $tour_image?>" class="img-fluid" alt=""></div> <div class="member-info"> <h4><a href="tour_detail.php?tour_id=<?php echo $tid ?>&img=<?php echo $tour_image ?>"><?php echo $tour_name ?></a></h4> <span><?php echo $tour_days?></span> <div class="social"> <h4>Rs-<?php echo $tour_price ;?>/Per Person</h4> </div> </div> </div> </div> <?php }?> </div> <div class="section-title"> <a class="cta-btn" id="#right" href="travelall.php">View All</a> </div> </div> </section> <style> /*-------------------------------------------------------------- # Team --------------------------------------------------------------*/ .team { background: #fff; } .team .member { text-align: center; margin-bottom: 150px; position: relative; } .team .member .pic { border-radius: 4px; overflow: hidden; } .team .member img { transition: all ease-in-out 0.4s; } .team .member:hover img { transform: scale(1.1); } .team .member img { max-width: 250px; border-radius: 1%; */ margin: 0 0 30px 0; border:none; background: rgb(255, 255, 255); padding: 6px; aspect-ratio: 1; } .team .member .member-info { position: absolute; bottom: -80px; left: 0px; right: 0px; background: transparent; padding: 15px 0; border-radius: 0 0 4px 4px; box-shadow: 0px 19px 5px 3px rgba(0, 0, 0, 0.1); } .member-info h4 a { color: black; } .team .member h4 { font-weight: 700; margin-bottom: 10px; font-size: 16px; color: #191919; position: relative; /* padding-bottom: 10px; */ text-align: justify; margin: 5px; } .team .member h4::after { content: ""; position: absolute; display: block; width: 50px; height: 1px; background:none; bottom: 0; left: calc(50% - 25px); } .team .member span { font-style: italic; display: block; font-size: 13px; color: #01036f; text-align: justify; margin: 9px; } .team .member .social { margin-top: 10px; } .team .member .social a { transition: color 0.3s; color: #01036f; } .team .member .social a:hover { color: #1acc8d; } .team .member .social i { font-size: 16px; margin: 0 2px; } .social h4 { text-align: justify; margin: 7px; } </style> <?php include 'footer.php'; ?>
Save Changes
Back to File Manager