Şuanki Dizin: /home/wwwdreamtechnolo/public_html/b2bflight.com/B2BFlight/project/dashboard/ |
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/b2bflight.com/B2BFlight/project/dashboard/add-booking-hall.php |
<?php require_once('lib/functions.php'); $db = new class_functions(); $flag = 0; if(isset($_SESSION['current_login_admin'])) { $current_login_admin=$_SESSION['current_login_admin']; } if(isset($_POST['hall_name'])) { $function_hall_id = $_POST['function_hall_id']; $hall_name = $_POST['hall_name']; $hall_type = $_POST['hall_type']; $booking_date_from = $_POST['booking_date_from']; $booking_date_to = $_POST['booking_date_to']; $booking_for = $_POST['booking_for']; $contact_name = $_POST['contact_name']; $mobile_no = $_POST['mobile_no']; $address = $_POST['address']; $total_amount = $_POST['total_amount']; $status = $_POST['status']; $others_2 = ""; $others_3 = ""; $others_4 = ""; $others_5 = ""; if($db->add_event_booking($function_hall_id,$hall_name,$hall_type,$booking_date_from,$booking_date_to,$booking_for,$contact_name,$mobile_no,$address,$total_amount,$status,$others_2,$others_3,$others_4,$others_5)) { $flag = 1; } } ?> <!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'); ?> </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 ==1) { ?> <div class="mb-3 alert alert-left alert-success alert-dismissible fade show" role="alert" style="width:80%; margin:auto; margin-top:25px;"> <span>Event Booking Record Saved Successfully</span> <button type="button" class="btn-close btn-close-white" data-bs-dismiss="alert" aria-label="Close"></button> </div> <?php } else if($flag==2) { ?> <div class="alert alert-warning d-flex align-items-center" role="alert" style="width:80%; margin:auto; margin-top:25px;"> <svg class="flex-shrink-0 bi me-2 icon-24" width="24" height="24"> <use xlink:href="#exclamation-triangle-fill" /> </svg> <div> Event Booking Record Already Exist </div> </div> <?php } else 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> Event Booking 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"> <h4 class="card-title mb-0">Add Event Booking</h4> </div> <div class="card-body"> <div class="table-responsive"> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST" enctype="multipart/form-data"> <div class="row"> <div class="col-lg-3"> <div class="form-group"> <label class="form-label">Function Id</label> <select name="function_hall_id" class="form-control"> <option value="Select">Select</option> <?php $data = array(); $data = $db->get_all_hall_names(); $counter = 1; if(!empty($data)) { foreach($data as $record) { $res_id = $record[0]; $function_hall_id = $record[1]; ?> <option value="<?php echo $res_id; ?>"><?php echo $function_hall_id; ?></option> <?php } } ?> </select> </div> </div> <div class="col-lg-3"> <div class="form-group"> <label for="dob" class="form-label">Hall Name</label> <select name="hall_name" class="form-control"> <option value="Select Doctor">Select </option> <?php $data = array(); $data = $db->get_all_hall_names(); $counter = 1; if(!empty($data)) { foreach($data as $record) { $res_id = $record[0]; $hall_name = $record[2]; ?> <option value="<?php echo $res_id; ?>"><?php echo $hall_name; ?></option> <?php } } ?> </select> </div> </div> <div class="col-lg-3"> <div class="form-group"> <label class="form-label">Hall Type</label> <select name="hall_type" class="form-control "> <option value="Select">Select</option> <option value="Ac">Ac</option> <option value="Non-Ac">Non-Ac</option> </select> </div> </div> <div class="col-lg-3"> <div class="form-group"> <label for="dob" class="form-label">Booking Date From</label> <input type="datetime-local" name="booking_date_from" class="form-control" id="dob" placeholder=" " /> </div> </div> <div class="col-lg-3"> <div class="form-group"> <label for="dob" class="form-label">Booking Date To</label> <input type="datetime-local" name="booking_date_to" class="form-control" id="dob" placeholder=" " /> </div> </div> <div class="col-lg-3"> <div class="form-group"> <label for="dob" class="form-label">Booking For</label> <select name="booking_for" class="form-control"> <option value="Select">Select</option> <?php $data = array(); $data = $db->get_all_function_event(); $counter = 1; if(!empty($data)) { foreach($data as $record) { $res_id = $record[0]; $event_name = $record[2]; ?> <option value="<?php echo $res_id; ?>"><?php echo $event_name; ?></option> <?php } } ?> </select> </div> </div> <div class="col-lg-3"> <div class="form-group"> <label for="age" class="form-label">Contact Name</label> <input type="text" name="contact_name" class="form-control" id="age" placeholder=" " /> </div> </div> <div class="col-lg-3"> <div class="form-group"> <label for="mobile_1" class="form-label"> Mobile No </label> <input type="number" name="mobile_no" class="form-control" id="mobile_no" placeholder=" " /> <span style="color: #F3686D;" class="err" id="error_mobile_no1"></span> </div> </div> <div class="col-lg-3"> <div class="form-group"> <label for="email" class="form-label">Address </label> <input type="text" name="address" class="form-control" id="address" placeholder=" " /> </div> </div> <div class="col-lg-3"> <div class="form-group"> <label for="email" class="form-label">Total Amount </label> <input type="text" name="total_amount" class="form-control" id="address" placeholder=" " /> </div> </div> <div class="col-lg-3"> <div class="form-group"> <label class="form-label">Status</label> <select name="status" class="form-control "> <option value="Select">Select</option> <option value="Completed">Completed</option> <option value="Pending">Pending</option> </select> </div> </div> <!--<div class="col-lg-3"> <div class="form-group"> <label for="phone" class="form-label">Others 2</label> <input type="text" class="form-control" name="others_2" id="phone" placeholder=" " /> </div> </div> <div class="col-lg-3"> <div class="form-group"> <label for="phone" class="form-label">Others 3</label> <input type="text" class="form-control" name="others_3" id="phone" placeholder=" " /> </div> </div> <div class="col-lg-3"> <div class="form-group"> <label for="phone" class="form-label">Others 4</label> <input type="text" class="form-control" name="others_4" id="phone" placeholder=" " /> </div> </div> <div class="col-lg-3"> <div class="form-group"> <label for="phone" class="form-label">Others 5</label> <input type="text" class="form-control" name="others_5" id="phone" placeholder=" " /> </div> </div>--> </div> <div class="d-flex justify-content-center"> <button type="submit" name="submit "class="btn btn-primary">Submit Details</button> </div> </div> <br /> </form> </div> </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> <script type="text/javascript"> $(document).ready(function(){ $("#submit").click(function(event){ $("#error_mobile_no1").text(""); var var_mobile_no1 = $("#mobile_no").val(); if(var_mobile_no1.length != 10){ $("#error_mobile_no1").text("10 digit mobile number required"); $("#mobile_no").focus(); return false; } no return true; }); }); </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