D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home3
/
encodto1
/
bambooinn.in
/
admin
/
Filename :
tour-list.php
back
Copy
<?php include'config.php'; $view_events = "select * from tour_packages"; $run_query = mysqli_query($conn, $view_events); ?> <!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <title>Admin, Tour Packages List | <?php echo $company; ?></title> <?php include'style.php'; ?> </head> <body> <div id="layout-wrapper"> <?php include'header.php'; ?> <div class="main-content"> <div class="page-content"> <div class="container-fluid"> <div class="row"> <div class="col-12"> <div class="page-title-box d-sm-flex align-items-center justify-content-between"> <h4 class="mb-sm-0 font-size-18">Tour List</h4> <div class="page-title-right"> <ol class="breadcrumb m-0"> <li class="breadcrumb-item"><a href="javascript: void(0);">Admin</a></li> <li class="breadcrumb-item active">Tour List</li> </ol> </div> </div> </div> </div> <div class="row"> <div class="col-12"> <div class="card"> <div class="card-body"> <div class="table-responsive"> <table class='table table-editable table-nowrap align-middle table-edits' cellspacing="0"> <thead> <tr> <th>Tour ID</th> <th>Tour title</th> <th>Tour duration</th> <th>Tour location</th> <th>Tour places</th> <th>Tour content</th> <th>Tour Image1</th> <th>Tour Image2</th> <th>Tour Status</th> <th>Action</th> </tr> </thead> <tbody> <?php $sn = 0; if($run_query-> num_rows > 0){ while($row = mysqli_fetch_assoc($run_query)) { $tour_id = $row['tour_id']; $tour_title = $row['tour_title']; $tour_duration = $row['tour_duration']; $tour_location = $row['tour_location']; $tour_places = $row['tour_places']; $tour_content = $row['tour_content']; $tour_img1 = $row['tour_img1']; $tour_img2 = $row['tour_img2']; $tour_status = $row['tour_status']; $sn++; echo "<tr data-id='1'> <td data-field='banner_id' style='width: 80px'> ".$sn.".</td> <td data-field='banner_title' class='banner_title'>".$tour_title."</td> <td data-field='banner_title' class='banner_title'>".$tour_duration."</td> <td data-field='banner_title' class='banner_title'>".$tour_location."</td> <td data-field='banner_title' class='banner_title'>".$tour_places."</td> <td data-field='banner_content' class='banner_content'> <p>".$tour_content."</p> </td> <td data-field='banner_img' class='banner_img' cell-padding='0' cell-spacing='0'> <img src='tour-images/".$tour_img1."'> </td> <td data-field='banner_img' class='banner_img' cell-padding='0' cell-spacing='0'> <img src='tour-images/".$tour_img2."'> </td> <td data-field='banner_title' class='banner_title'>".$tour_status."</td> <td style='width: 100px'> <a href='manage-package.php?id=$tour_id&action=edit_package' class='btn btn-outline-secondary btn-sm edit' title='Edit'> <i class='fas fa-pencil-alt'></i></a> <a href='manage-package.php?id=$tour_id&action=delete_package' class='btn btn-outline-secondary btn-sm edit' title='Delete'> <i class='fas fa-trash-alt'></i></a> </td> </tr>"; } } else{ echo "<span style='color:#fe0002;font-size:15px;'>Food Item list is Empty.</span>"; } ?> </tbody> </table> </div> </div> </div> </div> <!-- end col --> </div> </div> </div> <?php include'right-sidebar.php'; ?> <?php include'script.php'; ?> </body> </html>