MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /home/cafsindia/allyindian_com/backend/customers/feedback.php
<?php
require_once('./sbltt_lib/sblttObject.php');
$sbltt_session =  sblttObject::newObject('sbltt_session');
$sbltt_session->startSession();
$libObject   = $sbltt_session->is_session_exist();
// if($libObject){
// 	header( "Location: ./login.php?mode=index");
// 	exit(0);
// }

$is_customer = $libObject->is_customer();
if($is_customer){
	$cust_id     	  = $libObject->cust_id;
	$custfname   	  = $libObject->custfname;
	$custlname   	  = $libObject->custlname;
	$custaddress 	  = $libObject->custaddress;
	$custcity    	  = $libObject->custcity;
	$custstate   	  = $libObject->custstate;
	$custcountry 	  = $libObject->custcountry;
	$custpincode 	  = $libObject->custpincode;
	$custphone   	  = $libObject->custphone;
	$custmobile  	  = $libObject->custmobile;
	$custemail   	  = $libObject->custemail;
	$cust_name = "$custfname $custlname";
}else{
	$cust_name   = "";
	$custaddress = "";
	$custcity    = "";
	$custstate   = "";
	$custcountry = "";
	$custpincode = "";
	$custphone   = "";
	$custmobile  = "";
	$custemail   = "";
	$libObject   =  sblttObject::newObject('sbltt_customer');
}
$veh_type_details = $libObject->get_veh_type();
$veh_type_data = json_decode($veh_type_details);
$url           = $libObject->url;
?>
<!DOCTYPE html>
<html>
	<head>
		<title>SBLTT Customer - &copy; CAFS Infotech </title>
		<!-- META  -->
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0"/>
		<meta name="Description" content="Book online bus tickets in India. Find best prices and discounts on all Volvo, AC,semi Sleeper and sleeper buses in India."/>
        <meta name="Keywords" content="Bus ,Booking ,Online , Tours ,Travels ,volvo , Sleeper"/>
		<meta name="robots" content="index,follow"/>
		
		<!-- STYLE SHEET -START  -->
		<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
        <link rel="icon" href="/favicon.ico" type="image/x-icon">
		<link rel="stylesheet" href="./asset/bootstrap.min.css">
        <link rel="stylesheet" href="./asset/css/style.css">
		<link rel="stylesheet" href="./asset/bootstrap-datepicker-master/dist/css/bootstrap-datepicker.min.css">
        <link rel="stylesheet" href="../dist/toaster/toastr.css">
		<link rel="stylesheet" href="./asset/fonts/font-awesome.min.css">
		<link rel="stylesheet" type="text/css" href="../dist/select2/dist/css/select2.min.css"/>
		<style type="text/css">
			/* enable absolute positioning */			
			i #loginshow{
				float: right !important;
				margin-top: -23px !important;
    			margin-right: 6px !important;
			}
			.select2{
				width:100% !important;				
			}	
			#printmodal{
				overflow: auto;
			}		
			/* add padding  */
		</style>
	<head>
	<body>
<div role="tabpanel" class="tab-pane active" id="feedback">
	<h3>Feedback</h3>
	<div class='row mg0'>
		<div class='feedback'>
			<form class="form-inline" id="feedback_form">
				<div class="form-group " >
					<label>Customer Name</label>
					<input type="text" class="form-control" id="custname" name="custname" value="<?php echo $cust_name; ?>">
				</div>
				<div class="form-group">
					<label>Mobile</label>
					<input type="text" class="form-control" id="mobile" name="mobile" value="<?php echo $custmobile; ?>">
				</div>	
				<div class="form-group">
					<label>Email</label>
					<input type="text" class="form-control" id="emailid" name="emailid" value="<?php echo $custemail; ?>">
				</div>
				<div class="form-group" >
					<label>Feedback</label>
					<textarea class="form-control" id="comments" name="comments" rows="2" ></textarea>
				</div>							
				<button id="feedback_btn" class="btn btn-danger">Submit</button>
			</form>
		</div>
	</div>
</div>
<!-- SCRIPT -START  -->
<script src="./asset/jquery.min.js"></script>
<script src="./asset/bootstrap.min.js"></script>
<script src="./asset/js/index.js"></script>
<script src="./asset/js/jquery.validate.min.js"></script>
<script src="./asset/bootstrap-datepicker-master/dist/js/bootstrap-datepicker.min.js"></script>
<script src="../dist/toaster/toastr.js"></script>
<!-- Multiselect Plugin -->		
<script src="../dist/jquery-typeahead/dist/jquery.typeahead.min.js"></script>
<script src="../dist/select2/dist/js/select2.full.min.js"></script>
<!-- Multiselect Plugin End -->		
<script src="../dist/auto_fill/auto_fill.js"></script>	
<script type="text/javascript">
	$(document).ready(function(){
		//Enquiry Insert
	$("#feedback_form").validate({
		rules: {
		  custname  : "required",
		  emailid   : "email required",
		  mobile    : "required",
		  comments  : "required",		  
		},
		submitHandler: function(form){
			$("#feedback_btn").html("<i class='fa fa-spinner fa-spin'></i> Processing...");
			$('#feedback_btn').attr('disabled','disabled');
			var custname = $("#custname").val();
			var emailid  = $("#emailid").val();
			var mobile   = $("#mobile").val();
			var comments = $("#comments").val();			
			var frm      = "feedback_form";	
			$.ajax({
				type: "POST",
				url: "./bend/sbltt_callback.php",
				data:{frm:frm,custname:custname,emailid:emailid,mobile:mobile,comments:comments},
				success: function (data) {
					var rslt = JSON.parse(data);
					if(rslt.status){			
						toastr.success(rslt.msg);			
						$("#feedback_form")[0].reset();
						$('#feedback_btn').attr('disabled',false);
						$("#feedback_btn").html("Submit");				
					}else{
						toastr.error(rslt.msg);
					}					
				}
			});
		}
	});
});
</script>