Şuanki Dizin: /home/wwwdreamtechnolo/www/b2bflight.com/B2BFlight/project/dashboard/ |
Şuanki Dosya : /home/wwwdreamtechnolo/www/b2bflight.com/B2BFlight/project/dashboard/group-request-report.php |
<?php require_once('lib/functions.php'); $db = new class_functions(); $flag = 0; if(isset($_GET['delete_id'])) { $delete_id =$_GET['delete_id']; if($db->delete_group_request($delete_id)) { $flag = 3; } } if (isset($_GET['id'])) { $res_id = $_GET['id']; $status = $_GET['status']; if ($db->set_status_active($res_id,$status)) { ?> <script> alert("Group Request status updated successfully"); </script> <?php } } $afrom_date = date("Y-m-d"); $ato_date = date("Y-m-d"); // $agent_name = ""; $atravel_date = ""; $ano_of_pax = ""; $aexpected_fare = ""; if(isset($_POST['submit_btn'])) { $afrom_date = $_POST['afrom_date']; $ato_date = $_POST['ato_date']; // $agent_name = $_POST['agent_name']; $atravel_date = $_POST['atravel_date']; $ano_of_pax = $_POST['ano_of_pax']; $aexpected_fare = $_POST['aexpected_fare']; $_SESSION['filter_afrom_date'] = $afrom_date; $_SESSION['filter_ato_date'] = $ato_date; // $_SESSION['filter_agent_name'] = $agent_name; $_SESSION['filter_atravel_date'] = $atravel_date; $_SESSION['filter_ano_of_pax'] = $ano_of_pax; $_SESSION['filter_aexpected_fare'] = $aexpected_fare; } else if(isset($_POST['print'])) { $afrom_date = $_POST['afrom_date']; $ato_date = $_POST['ato_date']; // $agent_name = $_POST['agent_name']; $atravel_date = $_POST['atravel_date']; $ano_of_pax = $_POST['ano_of_pax']; $aexpected_fare = $_POST['aexpected_fare']; $_SESSION['filter_afrom_date'] = $afrom_date; $_SESSION['filter_ato_date'] = $ato_date; // $_SESSION['filter_agent_name'] = $agent_name; $_SESSION['filter_atravel_date'] = $atravel_date; $_SESSION['filter_ano_of_pax'] = $ano_of_pax; $_SESSION['filter_aexpected_fare'] = $eaxpected_fare; echo "<script>window.location.href='print_group_reuest_pend.php';</script>"; } else if(isset($_SESSION['filter_afrom_date'])){ $afrom_date = $_SESSION['filter_afrom_date']; $ato_date = $_SESSION['filter_ato_date']; // $agent_name = $_SESSION['filter_agent_name']; $atravel_date = $_SESSION['filter_atravel_date']; $ano_of_pax = $_SESSION['filter_ano_of_pax']; $aexpected_fare = $_SESSION['filter_aexpected_fare']; } $data = array(); $data = $db->get_all_group_request_for_search($afrom_date,$ato_date,$atravel_date,$ano_of_pax,$aexpected_fare); ?> <!doctype html> <html lang="en" dir="ltr"> <head> <?php require_once('header-common.php'); ?> </head> <body class=" "> <aside class="sidebar sidebar-default sidebar-white sidebar-base navs-rounded-all "> <div class="sidebar-header d-flex align-items-center justify-content-start"> <a href="index.php" class="navbar-brand"> <img src="images/<?php echo $logo; ?>" class="software_logo" style="height:90px; width:220px;" /> </a> <div class="sidebar-toggle" data-toggle="sidebar" data-active="true"> <i class="icon"> <svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M4.25 12.2744L19.25 12.2744" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path> <path d="M10.2998 18.2988L4.2498 12.2748L10.2998 6.24976" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path> </svg> </i> </div> </div> <?php require_once('left-side.php'); ?> <div class="sidebar-footer"></div> </aside> <main class="main-content"> <?php require_once('navbar.php'); ?> <div class="conatiner-fluid content-inner mt-n5 py-0"> <div class="row"> <div class="col-sm-12"> <div class="card"> <?php if($flag ==3) { ?> <div class="mb-3 alert alert-left alert-success alert-dismissible fade show" role="alert" style="width:80%; margin:auto; margin-top:25px;"> <span>Group Request Record Deleted Successfully</span> <button type="button" class="btn-close btn-close-white" data-bs-dismiss="alert" aria-label="Close"></button> </div> <?php } ?> <div class="card-header d-flex justify-content-between flex-wrap"> <div class="header-title"> <h3 class="card-title mb-0">Group Request Report</h3> </div> </div> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST"> <div class="row" style="margin-left:30px;margin-top: 30px;"> <div class="col-lg-2"> <div class="form-group"> <label class="form-label">From Date</label> <input type="date" name="afrom_date" class="form-control" placeholder="" value="<?php echo $afrom_date ?>" /> </div> </div> <div class="col-lg-2"> <div class="form-group"> <label class="form-label">To Date</label> <input type="date" value="<?php echo $ato_date ?>" id="total_amount" name="ato_date" class="form-control" placeholder="" /> </div> </div> <div class="col-lg-2"> <div class="form-group"> <label class="form-label">Travel Date</label> <input type="date" value="<?php echo $atravel_date ?>" id="total_amount" name="atravel_date" class="form-control" placeholder="" /> </div> </div> <div class="col-lg-2"> <div class="form-group"> <label class="form-label">No of Fax</label> <input type="number" value="<?php echo $ano_of_pax ?>" id="total_amount" name="ano_of_pax" class="form-control" placeholder="" /> </div> </div> <div class="col-lg-2"> <div class="form-group"> <label class="form-label">Expected Fare</label> <input type="number" value="<?php echo $aexpected_fare ?>" id="total_amount" name="aexpected_fare" class="form-control" placeholder="" /> </div> </div> <div class="d-flex justify-content-center" style="margin-top:30px;gap:20px"> <button type="submit" name="submit_btn" class="btn btn-primary">Search</button> <button type="submit" name="print" class="btn btn-primary">Print</button> </div> </div> </form><br> <div class="card-body" style="overflow:scroll;"> <div class="table-responsive"> <table class="table table-bordered"> <thead> <th>Sr No</th> <th>Change Status</th> <th>Agent Name</th> <th>Agent Number</th> <th>Sector On Woard</th> <th>Travel Date</th> <th>No Of Pax</th> <th>Expected Fare</th> <th>note</th> <th>Status</th> <th>Other 1</th> <th>Other 2</th> <th>Other 3</th> <th>Date</th> <th>Time</th> <th class="text-center">Edit</th> <th class="text-center">Delete</th> </thead> <tbody> <?php $counter = 0; if(!empty($data)) { foreach($data as $record) { $id =$data[$counter][0]; $sector_on_woard =$data[$counter][1]; $travel_date =$data[$counter][2]; $no_of_pax =$data[$counter][3]; $expected_fare =$data[$counter][4]; $note =$data[$counter][5]; $agent_id =$data[$counter][6]; $status =$data[$counter][7]; $other_1 =$data[$counter][8]; $other_2 =$data[$counter][9]; $other_3 =$data[$counter][10]; $date =$data[$counter][11]; $time =$data[$counter][12]; $agent_name= $db->get_agent_name_from_id($agent_id); //$function_id_name= $db->get_function_hall_by_id($function_hall_id); ?> <tr class=""> <td class=""><?php echo $counter+1; ?></td> <td> <?php if ($status == 'Active') { ?> <a href="group-request-report.php?id=<?php echo $id; ?>&status=Pending"> <i style="color:#A92F42" class="fas fa-clock"></i> Pending</a> <a href="group-request-report.php?id=<?php echo $id; ?>&status=Block"> / <i style="color:#A92F42" class="fas fa-clock"></i> Block</a> <?php } elseif ($status == 'Pending' || $status == 'Block') { ?> <a href="group-request-report.php?id=<?php echo $id; ?>&status=Active"><i style="color:green" class="fas fa-check"></i> Activate</a> <a href="group-request-report.php?id=<?php echo $id; ?>&status=Pending">/ <i style="color:#A92F42" class="fas fa-clock"></i> Pending</a> <?php } ?> </td> <td class=""><?php echo $agent_name; ?></td> <td class=""><?php echo $agent_id; ?></td> <td class=""><?php echo $sector_on_woard; ?> <br></td> <td class=""><?php echo $travel_date; ?></td> <td class=""><?php echo $no_of_pax; ?></td> <td class=""><?php echo $expected_fare; ?></td> <td class=""><?php echo $note; ?></td> <td class=""><?php echo $status; ?></td> <td class=""><?php echo $other_1; ?></td> <td class=""><?php echo $other_2; ?></td> <td class=""><?php echo $other_3; ?></td> <td><?php echo $date;?></td> <td><?php echo $time;?></td> <td><a href="edit-group-request.php?edit_id=<?php echo $id; ?>">Edit</a></td> <td><a href="<?php echo $_SERVER['PHP_SELF']."?delete_id=".$id; ?>" class="delete_opt" onclick="return confirm('Are you sure to delete this bank record ?');">Delete</a></td> </tr> <?php $counter++; } } else { echo "no data found."; } ?> </tbody> </table> </div> </div> </div> </div> </div> <!-- Library Bundle Script --> <script src="../assets/js/core/libs.min.js"></script> <!-- External Library Bundle Script --> <script src="../assets/js/core/external.min.js"></script> <!-- Widgetchart Script --> <script src="../assets/js/charts/widgetcharts.js"></script> <!-- mapchart Script --> <script src="../assets/js/charts/vectore-chart.js"></script> <script src="../assets/js/charts/dashboard.js" ></script> <!-- fslightbox Script --> <script src="../assets/js/plugins/fslightbox.js"></script> <!-- Settings Script --> <script src="../assets/js/plugins/setting.js"></script> <!-- Slider-tab Script --> <script src="../assets/js/plugins/slider-tabs.js"></script> <!-- Form Wizard Script --> <script src="../assets/js/plugins/form-wizard.js"></script> <!-- AOS Animation Plugin--> <script src="../assets/vendor/aos/dist/aos.js"></script> <!-- App Script --> <script src="../assets/js/hope-ui.js" defer></script> <style> .sidebar.sidebar-default .nav-link:not(.static-item).active , .sidebar.sidebar-default .nav-link:not(.static-item).active, .sidebar.sidebar-default .nav-link:not(.static-item)[aria-expanded=true] { background-color:#FE6600 !important; } </style> </body> </html>
Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4