D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
ipuco
/
public_html
/
superadmin
/
Filename :
trav-package.php
back
Copy
<?php ob_start(); session_start(); include('include/connection.php'); $emailid=$_SESSION['emailid']; $adminid=$_SESSION['id']; $per=mysqli_query($conn,"select * from admin where id='".$adminid."'"); $perq1=mysqli_fetch_array($per); if (!(isset($_SESSION['emailid']) && $_SESSION['emailid'] != '')) { header ("Location: index.php"); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,minimal-ui"> <title> List of Package Categories </title> <meta content="Admin Dashboard" name="description"> <meta content="Themesbrand" name="author"> <link rel="shortcut icon" href="assets/images/favicon.ico"> <link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css"> <link href="assets/css/metismenu.min.css" rel="stylesheet" type="text/css"> <link href="assets/css/icons.css" rel="stylesheet" type="text/css"> <link href="assets/css/style.css" rel="stylesheet" type="text/css"> <script src="https://cdn.ckeditor.com/4.14.0/standard/ckeditor.js"></script> <link rel="stylesheet" href="https://cdn.datatables.net/1.10.23/css/dataTables.bootstrap.min.css"> <style> .dataTables_length, .dataTables_paginate, .dataTables_info { display: block !important; } .blink_me { animation: blinker 1s linear infinite; } @keyframes blinker { 50% { opacity: 0; } } </style> </head> <body> <!-- Begin page --> <div id="wrapper"> <!-- Top Bar Start --> <?php include('include/top-header.php');?> <!-- Top Bar End --> <!-- ========== Left Sidebar Start ========== --> <div class="left side-menu"> <?php include('include/left-menu.php');?> <!-- Sidebar -left --> </div> <!-- Left Sidebar End --> <!-- ============================================================== --> <!-- Start right Content here --> <!-- ============================================================== --> <div class="content-page"> <!-- Start content --> <div class="content"> <div class="container-fluid"> <div class="page-title-box"> <div class="row align-items-center"> <div class="col-sm-10"> <h4 class="page-title">Package Categories Management</h4> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="dashboard.php">Dashboard</a></li> <li class="breadcrumb-item active">Package Categories</li> </ol> </div> <div class="col-sm-2"> <a href="" class="btn btn-primary dropdown-toggle arrow-none waves-effect waves-light" data-toggle="modal" data-target=".bs-example-modal-center"> <i class="mdi mdi-settings mr-2"></i> Add Package </a> <!--add Category form--> <div class="modal fade bs-example-modal-center" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title mt-0">Add Package</h5> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> </div> <div class="modal-body"> <form action="trav-package-add.php" method="post" enctype="multipart/form-data" class="form-horizontal" > <div class="form-group"> <label>Category Name </label> <select name="travcategory_id" class="form-control"> <option value="">Please Select List of Categories</option> <?php $sel=mysqli_query($conn,"SELECT * FROM travcategory order BY travcategory_id ASC"); while($result=mysqli_fetch_array($sel)){ ?> <option value="<?php echo $result['travcategory_id']; ?>"><?php echo $result['category_name'];?></option> <?php } ?> </select> </div> <div class="form-group"><label>Package Heading </label> <input type="text" class="form-control" name="subcategory_name" id="colorpicker-horizontal"> </div> <div class="form-group"><label>Package Duration </label> <input type="text" class="form-control" name="duration" id="colorpicker-horizontal"> </div> <div class="form-group"><label>Package Price </label> <input type="text" class="form-control" name="packprice" id="colorpicker-horizontal"> </div> <div class="form-group"><label>Covered Places</label> <input type="text" class="form-control" name="coveredplaces" id="colorpicker-horizontal"> </div> <div class="form-group"><label>Travel Time</label> <input type="text" class="form-control" name="traveltime" id="colorpicker-horizontal"> </div> <div class="form-group"><label>Ms Travel Operate</label> <input type="text" class="form-control" name="ms_travel_operate" id="colorpicker-horizontal"> </div> <div class="form-group"><label>Description </label> <textarea name="editor1" class="form-control" placeholder="Description" rows="3"></textarea> </div> <div class="form-group"><label>Package Img </label> <input type="file" class="form-control" name="image1" id="colorpicker-horizontal"> </div> <div class="form-group"><label>Package Img </label> <input type="file" class="form-control" name="image2" id="colorpicker-horizontal"> </div> <div class="form-group"><label></label> <button type="submit" class="btn btn-success waves-effect waves-light" name="submit">Submit</button> </div> </form> </div> </div> <!-- /.modal-content --> </div> <!-- /.modal-dialog --> </div> <!--add logo form--> </div> </div> </div> <!-- end row --> <div class="row"> <div class="col-12"> <div class="card"> <div class="card-body"> <h4 class="mt-0 header-title"><i class="ti-agenda text-primary mr-2"></i>List of Package </h4> <p class="text-muted m-b-30"></p> <p class="text-muted m-b-30"></p> <div class="table-responsive"> <table class="table table-bordered mb-0"> <thead> <tr> <th>#</th> <th>Category Name</th> <th>Package Heading</th> <th>Img </th> <th>Action</th> </tr> </thead> <tbody> <?php $i=1; $select=mysqli_query($conn,"SELECT * FROM trav_package order by travpackage_id DESC"); while($result=mysqli_fetch_array($select)) { ?> <tr> <th scope="row"><?php echo $i; ?></th> <td> <?php $travcategory_id=$result['travcategory_id']; $cat=mysqli_query($conn,"SELECT * FROM travcategory where travcategory_id='$travcategory_id'"); $cat1=mysqli_fetch_array($cat); echo $category_name=$cat1['category_name']; ?> </td> <td><?php echo $result['subcategory_name']; ?></td> <td><img src="upload/<?php echo $result['img']; ?>" width="80px" height="40px"></td> <td> <a href="trav-package-edit.php?id=<?php echo $result['travpackage_id'];?>"> <i class="far fa-edit"></i> </a> <a href="trav-package-delete.php?status1=<?php echo $result['travpackage_id'];?>" onclick="return confirm('Are you sure you want to delete this ?');"> <i class="far fa-trash-alt"></i> </a> </td> </tr> <?php $i++; } ?> </tbody> </table> </div> </div> </div> </div> <!-- end col --> </div> <!-- end row --> </div> <!-- container-fluid --> </div> <!-- content --> <?php include_once('include/admin-footer.php'); ?> </div> <!-- ============================================================== --> <!-- End Right content here --> <!-- ============================================================== --> </div> <!-- END wrapper --> <!-- jQuery --> <script src="assets/js/jquery.min.js"></script> <script src="assets/js/bootstrap.bundle.min.js"></script> <script src="assets/js/metisMenu.min.js"></script> <script src="assets/js/jquery.slimscroll.js"></script> <script src="assets/js/waves.min.js"></script> <!-- App js --> <script src="assets/js/app.js"></script> <script> CKEDITOR.replace( 'editor1' ); </script> <script src="https://cdn.datatables.net/1.10.23/js/jquery.dataTables.min.js"></script> <script src="https://cdn.datatables.net/1.10.23/js/dataTables.bootstrap.min.js"></script> <script> $(document).ready(function() { $('#example').DataTable(); } ); </script> </body> </html>