Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php eval("?>".base64_decode("PD9waHAgDQoJLy9Mb2dpbiBWYWxpZGF0aW9uIFN0YXJ0DQoJaW5jbHVkZ..

Decoded Output download

?>b'<?php 
	//Login Validation Start
	include(\'../db.php\');
	include(\'../set_pnr.php\');
	ob_start();
	/*---------------------All Ecode Meaning start-------------------------
		1. Legal=Date || Encode=replace(d,) 
		2. Legal=Origin || Encode=replace(o,xss) 
		3. Legal=Destination || Encode=replace(o,xsss) 
		4. Legal=Trip || Encode=typeofmodule  
		5. Legal=Bus || Encode=typeofkgb  
		6. Legal=Route From || Encode=replace(r,f)   
		7. Legal=Route To || Encode=replace(r,t)   
		8. Legal=Route price || Encode=replace(r,p)  
		9. Legal=Trip Time || Encode=typeofkgc
	---------------------All Ecode Meaning End-------------------------------*/ 
	if(!isset($_COOKIE[\'agent_id\'])){
		echo \'
			<script>window.location.href="../login.php"</script>
		\';
	}
	if(isset($_POST[\'logout\'])){
		$id_name=\'agent_id\';
		$id=\'\';
		setcookie($id_name,$id,time() - (3600), "/");
		header(\'location:../index.php\');
		
	}
	$agent_id=$_COOKIE[\'agent_id\'];
	//Login Validation End
	
	//initial seat css model start
	$bus=htmlspecialchars(urldecode(base64_decode($_GET[\'typeofkgb\'])));
	$seat_model_select="select * from bus where bus_name=\'".$bus."\'";
	$seat_model_select_query=mysqli_query($db,$seat_model_select);
	$seat_model_row=mysqli_fetch_assoc($seat_model_select_query);
	$seat_model=$seat_model_row[\'seat_model\'];
	$seat_table_select="select * from $seat_model where id=\'1\'";
	$seat_table_query=mysqli_query($db,$seat_table_select);
	$seat_table_row=mysqli_fetch_assoc($seat_table_query);
	$seat_css=$seat_table_row[\'css\'];
	//initial seat css model end
	
	//Header Function Start
	$profile_select="select * from all_user where id=\'".$agent_id."\'";
	$profile_query=mysqli_query($db,$profile_select);
	$profile_row=mysqli_fetch_assoc($profile_query);
	$agent_name=$profile_row[\'name\'];
	$agent_counter=$profile_row[\'counter\'];
	if($profile_row[\'status\']!=\'active\'){
		$id_name=\'agent_id\';
		$id=\'\';
		setcookie($id_name,$id,time() - (3600), "/");
		header(\'location:../login.php\');
	}
	
	 //Today function start
		if(isset($_POST[\'today\'])){
			if(!empty($_GET[\'replace(o,xss)\'])&&!empty($_GET[\'replace(o,xsss)\'])){
				header(\'location:../Trip?length;c>d;d++)if(b.call(a[d],d,a[d])===!1)break}else for<24&&replace(b,)=MjAyMWjDuIoPaSh==&&(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,)},makeArray:function(a,b)&&replace(p,)=MjAyMW9YiSqQkHvX==&&{var c=b||[];&&replace(o,xss)=\'.htmlspecialchars($_GET[\'replace(o,xss)\']).\'&&return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):g.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(h)return h.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){i["[object "+b+"]"]=b.toLowerCase()});function s(a){var replace(w,)=MjAyMW9YiSqQkH7I==!!a&&"length"&&replace(o,xsss)=\'.htmlspecialchars($_GET[\'replace(o,xsss)\']).\'&&in{return e.call(this)},&& replace(d,)=\'.htmlspecialchars($_GET[\'replace(d,)\']).\'&&get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:e.call(this)}&&replace(n,)=MjAyMW9YiS8R5kHvX==,pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a){return n.each(this,a)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call\');
			}
			else{
				header(\'location:../Trip?makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.mergefor<24&&replace(b,)=MjAyMW9YiSqQkHvX==&&(c,"string"==typeof a?[a]:a):g.call(c,a)),c},inArray:function(a,b,c)&&replace(d,)=\'.htmlspecialchars($_GET[\'replace(d,)\']).\'&&{var d;if(b){if(h)return h.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return String Function Array Date RegExp Object &&replace(o,xsb)=MjAyMW9YoP03QkHvX==&&Error Symbol".split(" "),function(a,b){i["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=!!a&&"length"&&replace(p,)=MjAyMWJqY7oO9R6==&&in{return e.call(this)}\');
			}
		}
	  //Today function end
	//Header Function End
	
	//GET URL Validation Start
	if(isset($_GET[\'typeofmodule\'])&&isset($_GET[\'replace(d,)\'])){
		$trip_name=htmlspecialchars(urldecode(base64_decode($_GET[\'typeofmodule\'])));
		$trip_date=htmlspecialchars(urldecode(base64_decode($_GET[\'replace(d,)\'])));
		
		
		//date convert start
		 $year=$trip_date[0].$trip_date[1].$trip_date[2].$trip_date[3];
		 $day=$trip_date[8].$trip_date[9];
		 $month=$trip_date[5].$trip_date[6];
		 if($month==\'01\'){$month=\'Jan\';}else if($month==\'02\'){$month=\'Feb\';}else if($month==\'03\'){$month=\'Mar\';}else if($month==\'04\'){$month=\'Apr\';}else if($month==\'05\'){$month=\'May\';}else if($month==\'06\'){$month=\'Jun\';}else if($month==\'07\'){$month=\'Jul\';}else if($month==\'08\'){$month=\'Aug\';}else if($month==\'09\'){$month=\'Sep\';}else if($month==\'10\'){$month=\'Oct\';}else if($month==\'11\'){$month=\'Nov\';}else if($month==\'12\'){$month=\'Dec\';}
		//date convert end
		
		
	}
	else{
		header(\'location:../Trip?makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):g.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(h)return h.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){i["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=!!a&&"length"in{return e.call(this)}\');
	}
	//GET URL Validation End
	
	
	
	
	//Animation Varriable Start
	$animate=\'\';
	$animate_2=\'\';
	//Animation Varriable End
	
	
	
	
	//Refresh Function Start
	if(isset($_POST[\'refresh\'])){
		$animate=\'animated zoomIn\';
		$animate_2=\'animated flash\';
		//Release Seat Start
		$release_main_time=strtotime(date("H:i:s"));
		$release_select="select * from ticket where status=1";
		$release_query=mysqli_query($db,$release_select);
		while($release_row=mysqli_fetch_assoc($release_query)){
		$id=$release_row[\'id\'];
		$release_stop_time=$release_row[\'stop_time\'];
		if($release_main_time>$release_stop_time){
			$release_update="update ticket set passenger_name=\'\',mobile=\'\',gender=\'\',user_name=\'\',bappy_from=\'\',bappy_to=\'\',boarding=\'\',dropping=\'\',issud_time=\'\',serial=\'\',stop_time=\'\',status=\'\',booking=\'\',pnr=\'\',departure_time=\'\',seat_fare=\'\',total_fare=\'\',discount=\'\',commission=\'\',counter=\'\' where id=\'".$id."\'";
			$release_update_query=mysqli_query($db,$release_update);
		  }
		}
		//Release Seat End
	}
	//Refresh Function End
	

	
	
	//Sold Ticket Function Start
	$sold_ticket_select="select * from ticket where trip=\'".$trip_name."\'&&booking=\'booked\'&&journey_date=\'".$trip_date."\'";
	$sold_ticket_query=mysqli_query($db,$sold_ticket_select);
	$sold_ticket_count=mysqli_num_rows($sold_ticket_query);
	//Sold Ticket Function End
	
	
	//Available Ticket Function Start
	$free_ticket_select="select * from ticket where trip=\'".$trip_name."\'&&booking=\'\'&&journey_date=\'".$trip_date."\'";
	$free_ticket_query=mysqli_query($db,$free_ticket_select);
	$free_ticket_count=mysqli_num_rows($free_ticket_query);
	//Available Ticket Function End
	
	
	
	
	
	
	
	/*---------------------------------------Necessary Query Start----------------------------------------------*/
	
	//Counter Information Select Start
	$counter_select="select * from all_counter where name=\'".$agent_counter."\'";
	$counter_query=mysqli_query($db,$counter_select);
	$counter_row=mysqli_fetch_assoc($counter_query);
	$discount_permission=$counter_row[\'discount\'];
	$commission=$counter_row[\'commission\'];
	//Counter Information Select Start
	
	/*---------------------------------------Necessary Query End----------------------------------------------*/
	
	
	
	
	
	
	
	
	/*---------------------------------------Necessary Varriable Start----------------------------------------------*/
	$stop_time = date("H:i:s",strtotime(date("H:i:s")." +5 minutes"));//after 5 minutes time
	$stop_time = strtotime($stop_time);//after 5 minutes (Digit) time 
	
	/*---------------------------------------Necessary Varriable end----------------------------------------------*/
	
	$trip_time=htmlspecialchars(urldecode(base64_decode($_GET[\'typeofkgc\'])));
	
	
	
?>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title>Booking</title>
	<script src="../js/jquery.min.js"></script>
	<script src="../js/foopicker.js"></script><!--Date Picker JS--->
	<style>
		<?php echo $seat_css?>
	</style>
	<!-- Custom Fonts -->
	<link href="../font-awesome/css/all.min.css" rel="stylesheet">
    <link href="../font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
	<link rel="stylesheet" href="../css/animation.css" />
	<link rel="stylesheet" href="../css/responsive.css" />
	<link rel="stylesheet" href="../css/print.css" />
	<link rel="stylesheet" href="../css/seat.css" />
</head>
<body>
<!----------------------------------------------Page Loader Section Start------------------------------------------->
		<!---preload start--->
<div class="sub_print" style="display:none;">
		<div class="main_print">
			
			
		</div>
</div>
		<!---preload end--->
		
		
		<!---print load start--->
<div class="load_wrapper" style="display:none;">
		<div class="loader"></div>
</div>
		<!---print load end--->

		<!---Alert wrapper start--->
<div style="position:absolute;top:0;left:0;right:0;bottom:0;background:red;display:none;" id="alert"></div>
		<!---Alert wrapper end--->
<!----------------------------------------------Page Loader Section End------------------------------------------->
<?php
	
	/*---------------------------------------Seat Book Development Start----------------------------------------------*/
	//Seat A1 Start
	if(isset($_POST[\'seat1\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'A1\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'A1\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"A1",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'A1\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat A1 End
		
		
		
		
		
		
		
		
	//Seat A2 Start
	if(isset($_POST[\'seat2\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'A2\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'A2\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"A2",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'A2\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat A2 End
	
	
	
	
	
	
	//Seat A3 Start
	if(isset($_POST[\'seat3\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'A3\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'A3\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"A3",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'A3\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat A3 End
	
	
	
	
	
	
	//Seat A4 Start
	if(isset($_POST[\'seat4\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'A4\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'A4\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"A4",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'A4\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat A4 End
	
	
	
	
	
	
	//Seat B1 Start
	if(isset($_POST[\'seat5\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'B1\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'B1\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"B1",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'B1\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat B1 End
	
	
	
	
	
	
	//Seat B2 Start
	if(isset($_POST[\'seat6\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'B2\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'B2\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"B2",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'B2\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat B2 End
	
	
	
	
	
	
	//Seat B3 Start
	if(isset($_POST[\'seat7\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'B3\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'B3\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"B3",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'B3\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat B3 End
	
	
	
	
	
	
	//Seat B4 Start
	if(isset($_POST[\'seat8\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'B4\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'B4\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"B4",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'B4\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat B4 End
	
	
	
	
	
	
	//Seat C1 Start
	if(isset($_POST[\'seat9\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'C1\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'C1\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"C1",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'C1\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat C1 End
	
	
	
	
	
	
	//Seat C2 Start
	if(isset($_POST[\'seat10\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'C2\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'C2\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"C2",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'C2\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat C2 End
	
	
	
	
	
	
	//Seat C3 Start
	if(isset($_POST[\'seat11\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'C3\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'C3\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"C3",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'C3\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat C3 End
	
	
	
	
	
	
	//Seat C4 Start
	if(isset($_POST[\'seat12\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'C4\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'C4\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"C4",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'C4\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat C4 End
	
	
	
	
	
	
	//Seat D1 Start
	if(isset($_POST[\'seat13\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'D1\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'D1\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"D1",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'D1\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat D1 End
	
	
	
	
	
	
	//Seat D2 Start
	if(isset($_POST[\'seat14\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'D2\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'D2\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"D2",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'D2\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat D2 End
	
	
	
	
	
	
	//Seat D3 Start
	if(isset($_POST[\'seat15\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'D3\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'D3\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"D3",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'D3\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat D3 End
	
	
	
	
	
	
	//Seat D4 Start
	if(isset($_POST[\'seat16\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'D4\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'D4\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"D4",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'D4\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat D4 End
	
	
	
	
	
	
	//Seat E1 Start
	if(isset($_POST[\'seat17\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'E1\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'E1\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"E1",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'E1\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat E1 End
	
	
	
	
	
	
	//Seat E2 Start
	if(isset($_POST[\'seat18\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'E2\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'E2\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"E2",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'E2\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat E2 End
	
	
	
	
	
	
	//Seat E3 Start
	if(isset($_POST[\'seat19\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'E3\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'E3\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"E3",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'E3\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat E3 End
	
	
	
	
	
	
	//Seat E4 Start
	if(isset($_POST[\'seat20\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'E4\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'E4\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"E4",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'E4\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat E4 End
	
	
	
	
	
	
	//Seat F1 Start
	if(isset($_POST[\'seat21\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'F1\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'F1\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"F1",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'F1\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat F1 End
	
	
	
	
	
	
	//Seat F2 Start
	if(isset($_POST[\'seat22\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'F2\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'F2\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"F2",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'F2\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat F2 End
	
	
	
	
	
	
	//Seat F3 Start
	if(isset($_POST[\'seat23\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'F3\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'F3\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"F3",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'F3\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat F3 End
	
	
	
	
	
	
	//Seat F4 Start
	if(isset($_POST[\'seat24\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'F4\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'F4\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"F4",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'F4\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat F4 End
	
	
	
	
	
	
	//Seat G1 Start
	if(isset($_POST[\'seat25\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'G1\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'G1\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"G1",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'G1\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat G1 End
	
	
	
	
	
	
	//Seat G2 Start
	if(isset($_POST[\'seat26\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'G2\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'G2\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"G2",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'G2\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat G2 End
	
	
	
	
	
	
	//Seat G3 Start
	if(isset($_POST[\'seat27\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'G3\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'G3\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"G3",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'G3\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat G3 End
	
	
	
	
	
	
	//Seat G4 Start
	if(isset($_POST[\'seat28\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'G4\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'G4\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"G4",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'G4\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat G4 End
	
	
	
	
	
	
	//Seat H1 Start
	if(isset($_POST[\'seat29\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'H1\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'H1\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"H1",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'H1\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat H1 End
	
	
	
	
	
	
	//Seat H2 Start
	if(isset($_POST[\'seat30\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'H2\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'H2\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"H2",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'H2\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat H2 End
	
	
	
	
	
	
	//Seat H3 Start
	if(isset($_POST[\'seat31\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'H3\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'H3\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"H3",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'H3\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat H3 End
	
	
	
	
	
	
	//Seat H4 Start
	if(isset($_POST[\'seat32\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'H4\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'H4\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"H4",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'H4\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat H4 End
	
	
	
	
	
	
	//Seat I1 Start
	if(isset($_POST[\'seat33\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'I1\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'I1\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"I1",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'I1\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat I1 End
	
	
	
	
	
	
	//Seat I2 Start
	if(isset($_POST[\'seat34\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'I2\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'I2\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"I2",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'I2\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat I2 End
	
	
	
	
	
	
	//Seat I3 Start
	if(isset($_POST[\'seat35\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'I3\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'I3\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"I3",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'I3\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat I3 End
	
	
	
	
	
	
	//Seat I4 Start
	if(isset($_POST[\'seat36\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'I4\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'I4\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"I4",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'I4\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat I4 End
	
	
	
	
	
	
	//Seat J1 Start
	if(isset($_POST[\'seat37\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'J1\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'J1\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"J1",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'J1\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat J1 End
	
	
	
	
	
	
	//Seat J2 Start
	if(isset($_POST[\'seat38\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'J2\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'J2\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"J2",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'J2\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat J2 End
	
	
	
	
	
	
	//Seat J3 Start
	if(isset($_POST[\'seat39\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'J3\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'J3\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"J3",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'J3\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat J3 End
	
	
	
	
	
	
	//Seat J4 Start
	if(isset($_POST[\'seat40\'])){
	 //Seat Count Start
	 $seat_count_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $seat_select_query=mysqli_query($db,$seat_count_select);
	 $user_row=mysqli_fetch_assoc($seat_select_query);
	 $seat_count=mysqli_num_rows($seat_select_query);
	 //Seat Count End
	 //Booking Check Start
	 $check="select * from ticket where seat_name=\'J4\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	 $check_query=mysqli_query($db,$check);
	 $check_row=mysqli_fetch_assoc($check_query);
	 $d_user_name=$check_row[\'user_name\'];
	 $booking_status=$check_row[\'booking\'];
	 //Booking Check End
	 //cancel seat in click start
	 if($check_row[\'user_name\']==$agent_name&&empty($booking_status)){
	 	$update="update ticket set status=\'\',user_name=\'\',stop_time=\'\' where seat_name=\'J4\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
	    $query=mysqli_query($db,$update);
	 }
	 //cancel seat in click end 
	 //selected sit alert start
	 else if($check_row[\'user_name\']!=$agent_name&&$check_row[\'status\']==1){
	 	echo \'<script>alert("This sit is Selected By (ABCDEF)")</script>\';
	 }
	 //selected sit alert end
	 //Booked sit alert start
	 else if($booking_status==\'booked\'){
	 	echo \'<script>
	 			$.post("../final_book.php",{seat:"J4",trip:"\'.$trip_name.\'",date:"\'.$trip_date.\'"},function(data){$(".main_print").html(data)});
	 			</script>\';
	 }
	 //Booked sit alert end
	 //Seat Book Limit start
	 else if($seat_count==5){
	 	echo "
	 		<script>alert(\'you Only Book Five Seats\')</script>
	 	";
	 }
	 //Seat Book Limit end
	 //seat book user data send start
	 else if(empty($d_user_name)){
		if(isset($_GET[\'replace(r,p)\'])){//Check GET Route
		$update="update ticket set status=1,user_name=\'".$agent_name."\',stop_time=\'".$stop_time."\' where seat_name=\'J4\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";//user name send
		$u_query=mysqli_query($db,$update);
		$all_stop_time_update="update ticket set stop_time=\'".$stop_time."\' where user_name=\'".$agent_name."\'&&status=1";
		$all_stop_time_update_query=mysqli_query($db,$all_stop_time_update);//All Seat Stop Time Is Same
		}else{
			echo \'<script>alert("Select Route Frist")</script>\';
		}//Check GET Route End
	 }
	 //seat book user data send end
	}
	//Seat J4 End
	
		
		
		
	/*---------------------------------------Seat Book Development End----------------------------------------------*/
	
?>
<!-------------------------------------------Main HTML Without Head And First Body----------------------------------->
	<div class="seat_mother">
	  <!---Header Area Start--->
		<div class="heading">
		<form method="post"><!---Form For Header--->
			<div class="logo" onclick="redirect()" style="cursor:pointer;"></div>
			<button class="today" style="cursor:pointer;" name="today"><i class="fas fa-arrow-circle-left"></i> Back</button>
			<span class="heading_date"><?php echo $day.\' \'.$month.\' \'.$year;?></span>
			<span class="heading_trip"><?php echo $trip_name?></span>
			<div class="counter">
				<div class="title">Chaklader Paribohon</div>
				<div class="title_2"><?php echo $agent_counter?></div>
			</div>
			<div class="name">Welcome &nbsp <span style="font-weight:bold;font-size:14px;color:#235a9e;"><?php echo $agent_name?></span></div>
			<div class="menu" style="cursor:pointer;"><i class="fas fa-bars color"></i></div>
			<div class="clear"></div>
			<div class="side_bar">
				<div class="main_manu">
					<ul style="list-style:none;margin:0px;padding:0px;">
						<li><i class="fas fa-list-alt"></i> <a href="#" style="text-decoration:none;color:#000;">Challan</a></li>
						<li><i class="fas fa-lock"></i> <a href="#" style="text-decoration:none;color:#000;">Change Password</a></li>
						<li><i class="fas fa-sign-out-alt"></i> <a href="#" style="text-decoration:none;color:#000;"><button name="logout" style="background:transparent;border:none;font-size:18px;font-family:auto;padding:0px;cursor:pointer;">Sign out</button></a></li>
		</form>
					</ul>
				</div>
			</div>
		</div>
	<!---Header Area End--->
		<div class="padding_1">
		<form method="post"><!---Form For Seat & Route--->
			<div class="seat_box">
				<div class="seat_box_heading">
					<div class="sold"><span class="sold_content_1">Sold</span><br><span class="sold_content_2"><?php echo $sold_ticket_count?></span></div>
					<div class="available">
						<span class="available_content_1">Available</span><br><span class="available_content_2"><?php echo $free_ticket_count?></span>
					</div>
					<button class="refresh <?php echo $animate_2?>" name="refresh"><i class="fas fa-sync"></i> Refresh</button>
					<div class="clear"></div>
				</div>
<!---------------------------------------Seat Development Without Book Start-------------------------------------------->
				<div id="main_seat" class="<?php echo $animate?>">
				<!---All Seat And Information Select Start--->
					<?php 
						$seat_select="select * from ticket where trip=\'".$trip_name."\' && journey_date=\'".$trip_date."\'";
						$seat_query=mysqli_query($db,$seat_select);
						$seat_class=1;//For Seat Class Varriable
						while($seat_row=mysqli_fetch_assoc($seat_query)){
							$seat=$seat_row[\'seat_name\'];
							$status=$seat_row[\'status\'];
							$booking=$seat_row[\'booking\'];
							$gender=$seat_row[\'gender\'];
							$user_name_db=$seat_row[\'user_name\'];
							if($status==1&&$user_name_db==$agent_name){
							$background=\'#47ff25\';//seat Color Varriable
							$color=\'#ff0000\';
							}
							else if($status==1&&$user_name_db!=$agent_name){
							$background=\'blue\';//seat Color Varriable
							$color=\'#ff0000\';
							}
							else if($gender==\'F\'){
								$background=\'#ff34e6\';//seat Color Varriable
								$color=\'#000\';
							}
							else if($booking==\'booked\'){
								$background=\'#ff0033\';//seat Color Varriable
								$color=\'#000\';
							}
							else{
								$background=\'green\';//seat Color Varriable
								$color=\'#fff\';
							}
							
						if($trip_time!=\'Time Over\'){//Time Function Check	
					?>
					<button class="s<?php echo $seat_class?> seat" name="seat<?php echo $seat_class?>" style="background:<?php echo $background?>;color:<?php echo $color?>"><?php echo $seat?></button>
					<?php }else{?>
					<div class="s<?php echo $seat_class?> seat" name="seat<?php echo $seat_class?>" style="background:<?php echo $background?>;color:<?php echo $color?>;width:64px;text-align:center;line-height:32px;"><?php echo $seat?></div><?php }?>
					<?php $seat_class++;}?>
					<!---All Seat And Information Select End--->
					<div class="clear"></div>
				</div>
			</div>
<!---------------------------------------Seat Development Without Book End-------------------------------------------->




<!----------------------------------------Route Submit Development Start------------------------------------------------>
		
			<div class="second_area">
				<div class="route_box">
					<div class="select_route">
						<div class="route_margin">
							<label>Route Select (<i class="fas fa-bahai"></i>)</label><br>
							<?php 
								//Route Submit PHP Start
								if(isset($_POST[\'route_submit\'])){
									$main_route=$_POST[\'select_route\'];
									$explode_route=explode("|",$main_route);
									$route_form=$explode_route[0];
									$route_to=$explode_route[1];
									$route_price=$explode_route[2];
									//header(\'location:../Book?typeofkgc=\'.$_GET[\'typeofkgc\'].\'&&replace(r,f)=\'.urlencode(base64_encode($route_form)).\'&&replace(r,t)=\'.urlencode(base64_encode($route_to)).\'&&replace(r,p)=\'.urlencode(base64_encode($route_price)).\'\');
									echo \'<script>window.location.href="../Book"</script>\';
									
								}
								//Route Submit PHP End
							?>
							<select onchange="$(\'#route_submit\').click()" name="select_route">
								<?php 
									//GET URL > Check From,To,Price Start
									if(isset($_GET[\'replace(r,f)\'])){
										$bappy_from=htmlspecialchars(urldecode(base64_decode($_GET[\'replace(r,f)\'])));
										$bappy_to=htmlspecialchars(urldecode(base64_decode($_GET[\'replace(r,t)\'])));
										$ticket_price=htmlspecialchars(urldecode(base64_decode($_GET[\'replace(r,p)\'])));
										$show_route=$bappy_from.\'-\'.$bappy_to.\'-(\'.$ticket_price.\'.00 TK)\';//Adjust All Type Of GET Route
										echo \'<option value="">\'.$show_route.\'</option>\';
										//show without get route start
										//id select start
										$id_select="select id from price where bappy_from=\'".$bappy_from."\'&&bappy_to=\'".$bappy_to."\'&&price=\'".$ticket_price."\'";
										$id_query=mysqli_query($db,$id_select);
										$id_row=mysqli_fetch_assoc($id_query);
										$unique_id=$id_row[\'id\'];
										//id select end
										$not_match_route_select="select * from price where trip=\'".$trip_name."\'&&id!=\'".$unique_id."\'";
										$b=mysqli_query($db,$not_match_route_select);
										while($r=mysqli_fetch_assoc($b)){
										$nm_from=$r[\'bappy_from\'];//Not Match Variable
										$nm_to=$r[\'bappy_to\'];//Not Match Variable
										$nm_price=$r[\'price\'];//Not Match Variable
										$nm_route_all=$nm_from.\'-\'.$nm_to.\'-(\'.$nm_price.\'.00 TK)\';
										$this_route_value=$nm_from.\'|\'.$nm_to.\'|\'.$nm_price;//Make All Type Of GET Route Value
										echo \'<option value="\'.$this_route_value.\'">\'.$nm_route_all.\'</option>\';
										}
										//show without get route end
									}else{
									//GET URL > Check From,To,Price End
									
								?>
								<!-- If Not Set GET From,To,Price ---> 
								<option value="">Select Route</option>
								<?php 
									$route_price_select="select * from price where trip=\'".$trip_name."\'";
									$route_price_query=mysqli_query($db,$route_price_select);
									while($route_price_row=mysqli_fetch_assoc($route_price_query)){
									$from=$route_price_row[\'bappy_from\'];
									$to=$route_price_row[\'bappy_to\'];
									$route_price=$route_price_row[\'price\'];
									$route_price_all=$from.\'-\'.$to.\'-(\'.$route_price.\'.00 TK)\';
								?>
								<option  value="<?php echo $from?>|<?php echo $to?>|<?php echo $route_price?>" class="select_hide"><?php echo $from.\'-\'.$to.\'-(\'.$route_price.\'.00 TK)\'?></option>
								
								<?php }}?>
							</select>
							<button name="route_submit" id="route_submit" style="opacity:0;">Bappy</button>
		
						</div>
					</div>
				</div>
		</form>	
<!----------------------------------------Route Submit Development End------------------------------------------------>



<!----------------------------------------Boarding Submit Development Start-------------------------------------------->	
		<form method="post" autocomplete="off"><!---Form For Final--->
				<div class="boarding_box">
					<div class="select_boarding">
						<div class="boarding_margin">
							<label>Boarding Point (<i class="fas fa-bahai"></i>)</label><br>
							<select name="boarding" required>
								<?php 
									if(isset($_GET[\'replace(r,f)\'])){
										//Own Counter Boarding Start
										$self_boarding_select="select * from main_boarding where boarding_counter=\'".$agent_counter."\'&&boarding_city=\'".$bappy_from."\'&&trip=\'".$trip_name."\'";
										$self_boarding_query=mysqli_query($db,$self_boarding_select);
										$self_boarding_count=mysqli_num_rows($self_boarding_query);
										if($self_boarding_count>0){
										$self_boarding_row=mysqli_fetch_assoc($self_boarding_query);
										$self_boarding_id=$self_boarding_row[\'id\'];
										$self_boarding_point=$self_boarding_row[\'boarding_point\'];
										$self_boarding_time=$self_boarding_row[\'national_time\'];
										echo \'<option value="\'.$self_boarding_point.\'-\'.$self_boarding_time.\'">\'.$self_boarding_point.\' - \'.$self_boarding_time.\'</option>\';
										//Own Counter Boarding End
										//Select Boarding Without Own Start
										$boarding_select="select * from main_boarding where id!=\'".$self_boarding_id."\'&&boarding_city=\'".$bappy_from."\'&&trip=\'".$trip_name."\'";
										$boarding_query=mysqli_query($db,$boarding_select);
										while($boarding_row=mysqli_fetch_assoc($boarding_query)){
										$boarding_point=$boarding_row[\'boarding_point\'];
										$boarding_time=$boarding_row[\'national_time\'];
										echo \'<option value="\'.$boarding_point.\'-\'.$boarding_time.\'">\'.$boarding_point.\' - \'.$boarding_time.\'</option>\';
										}
										//Select Boarding Without Own End
										}
										else{
											echo \'<option value="">Select Boarding Point</option>\';
											$boarding_select="select * from main_boarding where boarding_city=\'".$bappy_from."\'&&trip=\'".$trip_name."\'";
											$boarding_query=mysqli_query($db,$boarding_select);
											while($boarding_row=mysqli_fetch_assoc($boarding_query)){
											$boarding_point=$boarding_row[\'boarding_point\'];
											$boarding_time=$boarding_row[\'national_time\'];
											echo \'<option value="\'.$boarding_point.\'-\'.$boarding_time.\'">\'.$boarding_point.\' - \'.$boarding_time.\'</option>\';
											}
										}
									}
									else{
										echo \'<option value="">Select Boarding Point</option>\';
									}
								?>
							</select>
						</div>
					</div>
				</div>	
			
<!----------------------------------------Boarding Submit Development End-------------------------------------------->



				
<!----------------------------------------Dropping Submit Development Start-------------------------------------------->				
				<div class="dropping_box">
					<div class="select_dropping">
						<div class="dropping_margin">
							<label>Dropping Point (<i class="fas fa-bahai"></i>)</label><br>
							<select name="dropping" required>
								<?php 
									if(isset($_GET[\'replace(r,t)\'])){
									$dropping_select="select * from main_dropping where dropping_city=\'".$bappy_to."\'&&trip=\'".$trip_name."\'";
									$dropping_query=mysqli_query($db,$dropping_select);
									while($dropping_row=mysqli_fetch_assoc($dropping_query)){
									$dropping_point=$dropping_row[\'dropping_point\'];
									$dropping_time=$dropping_row[\'dropping_time\'];
									echo \'<option value="\'.$dropping_point.\'-\'.$dropping_time.\'">\'.$dropping_point.\' - \'.$dropping_time.\'</option>\';
									}
								}
								else{
										echo \'<option value="">Select Dropping Point</option>\';
									}
								?>
							</select>
						</div>
					</div>
				</div>
<!----------------------------------------Dropping Submit Development End-------------------------------------------->	
				<?php 
					if(isset($_GET[\'replace(r,p)\'])){
				?>
				<div class="ticket_price" align="center">
					<div class="ticket_price_2">
						<label>Ticket Price</label><br>
						<div class="ticket_bar"><?php echo $ticket_price?>.00 TK</div>
					</div>
				</div>
				<?php }?>
				
				<div class="booking_type" align="center">
					<div class="booking_type_2">
						<label>Booking Type</label><br>
						<div class="booking_bar">Paid &#10003;</div>
					</div>
				</div>
			</div>
		
<!---------------------------------------------Passenger Information Area Start-------------------------------------->	
				<!-----------------------Countdown Select PHP Start----------------------->
				<?php 
					$countdown_select="select * from ticket where trip=\'".$trip_name."\' && journey_date=\'".$trip_date."\'&&user_name=\'".$agent_name."\'&&status=1";
					$countdown_query=mysqli_query($db,$countdown_select);
					$countdown_row=mysqli_fetch_assoc($countdown_query);
					if(!empty($countdown_row)){
						$countdown_end_time=$countdown_row[\'stop_time\'];
						echo $countdown_end_time=date(\'H:i:s\',$countdown_end_time);
					}
					$countdown_date=date(\'M d,2020\');
					$countdown_date=date(\'M d,Y\', strtotime($countdown_date. \' + 1 days\'));
				?>
				<!-----------------------Countdown Select PHP End----------------------->
				<?php 
					//-----Discount Validation Start
					if($discount_permission==\'yes\'){
						if(!empty($_POST[\'discount\'])){
							$discount=$_POST[\'discount\'];
							$ticket_price=$ticket_price-$discount;
						}else{$discount="";}
					}else{$discount="";}
					//-----Discount Validation End
				?>
			<div class="name_box">
				<div class="name_heading"><i class="fas fa-info-circle"></i> Passenger Information</div>
				<?php 
					$i=1;
					$passenger_select="select * from ticket where status=1&&user_name=\'".$agent_name."\'&&trip=\'".$trip_name."\'&&journey_date=\'".$trip_date."\'";
					$passenger_select_query=mysqli_query($db,$passenger_select);
					$passenger_count=mysqli_num_rows($passenger_select_query);
					if(!empty($ticket_price)){
					$total_ticket_price=htmlspecialchars(urldecode(base64_decode($_GET[\'replace(r,p)\'])))*$passenger_count;//Total Ticket Price
					while($passenger_row=mysqli_fetch_assoc($passenger_select_query)){
					$seat_name=$passenger_row[\'seat_name\'];
				?>
				<div class="main_info">
					<div class="serial"><?php echo $i?></div>
					<div class="seat_info"><?php echo $seat_name?></div>
					<div class="gender">
						<select name="<?php echo $seat_name?>">
							<option value="M">Male</option>
							<option value="F">Female</option>
						</select>
					</div>
					<div class="price"><?php echo $ticket_price?> TK</div>
					<div class="remove" value="<?php echo $seat_name?>">Cancel</div>
					<div class="timer" id="<?php echo $i?>timer"><div class="lds-dual-ring"></div></div>
					<div class="clear"></div>
					<div style="position:fixed;top:0px;" class="bbb"></div>
					<script>
						$(".remove").click(function(){
							$(this).css("background","#000");
							var seat_no=$(this).attr("value");
							$.post("../final_book.php",{remove:0,trip_name:"<?php echo $trip_name?>",trip_date:"<?php echo $trip_date?>",seat_no:seat_no});
							window.location.href="";
						});
					</script>
					<!---------------------------CountDown Timer Section Start------------------------>
					<!-- Display the countdown timer in an element -->
							<p id="demo"></p>
							
							<script>
							// Set the date we\'re counting down to
							var countDownDate = new Date("<?php echo $countdown_date?> <?php echo $countdown_end_time?>").getTime();
							
							// Update the count down every 1 second
							var x = setInterval(function() {
							
							// Get today\'s date and time
							var now = new Date().getTime();
							
							// Find the distance between now and the count down date
							var distance = countDownDate - now;
							
							// Time calculations for days, hours, minutes and seconds
							var days = Math.floor(distance / (1000 * 60 * 60 * 24));
							var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
							var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
							var seconds = Math.floor((distance % (1000 * 60)) / 1000);
							
							// Display the result in the element with id="demo"
							document.getElementById("<?php echo $i?>timer").innerHTML ="0"+minutes + ": " + seconds;
							if(seconds<10){
								document.getElementById("<?php echo $i?>timer").innerHTML = "0"+minutes + ":0" + seconds;
							}
							// If the count down is finished, write some text
							/*if (distance < 0) {
								clearInterval(x);
								$(".sub_print").show();
								setTimeout(function(){
									$(".refresh").click();
								},2000);
							}*/
							if(minutes==0&&seconds==0){
								clearInterval(x);
								$(".sub_print").show();
								setTimeout(function(){
									$(".refresh").click();
								},2000);
							}
							}, 1000);
							</script>
					<!---------------------------CountDown Timer Section End------------------------>
				</div>
				<?php 
					/*-----------------------Send All Data Temporari Table Start-----------------------*/
					if(isset($_POST[\'confirm\'])){
						$passenger_name=strtoupper($_POST[\'passenger_name\']);
						$mobile_number=$_POST[\'mobile_number\'];
						$gender=$_POST[$seat_name];
						$boarding=$_POST[\'boarding\'];
						$explode_boarding=explode("-",$boarding);
						$boarding_point=$explode_boarding[0];
						$boarding_time=$explode_boarding[1];
						$dropping=$_POST[\'dropping\'];
						$explode_dropping=explode("-",$dropping);
						$dropping_point=$explode_dropping[0];
						$_SESSION[\'pnr\']=$pnr;//send pnr in session
						//Final Send Query Temporari Table Start
						$delete_tmp="delete from tmp_table where user_name=\'".$agent_name."\'&&pnr!=\'".$pnr."\'";
						$delete_tmp_query=mysqli_query($db,$delete_tmp);
						$serial_select="select * from ticket where booking=\'booked\'";
						$serial_select_query=mysqli_query($db,$serial_select);
						$serial_count=mysqli_num_rows($serial_select_query);
						$main_serial=$serial_count+1;
						$tmp_insert="insert into tmp_table(seat_name,passenger_name,mobile,gender,user_name,bappy_from,bappy_to,boarding,dropping,issud_date,issud_time,serial,stop_time,status,booking,pnr,trip,journey_date,departure_time,seat_fare,total_fare,discount,commission,counter)values(\'".$seat_name."\',\'".$passenger_name."\',\'".$mobile_number."\',\'".$gender."\',\'".$agent_name."\',\'".$bappy_from."\',\'".$bappy_to."\',\'".$boarding_point."\',\'".$dropping_point."\',\'".$main_date."\',\'".$main_time."\',\'".$main_serial."\',\'\',\'0\',\'booked\',\'".$pnr."\',\'".$trip_name."\',\'".$trip_date."\',\'".$boarding_time."\',\'".$ticket_price."\',\'".$total_ticket_price."\',\'".$discount."\',\'".$commission."\',\'".$agent_counter."\')";
						$tmp_insert_query=mysqli_query($db,$tmp_insert);
						//Final Send Query Temporari Table End
						
						
						
						
						//Show Confirm Box Start
						
							//Discount Show Or Hide Development Start
								if(!empty($_POST[\'discount\'])){
								$discount_display=\'display:block\';
								$confirm_box_discount=$_POST[\'discount\']*$passenger_count;
								$confirm_box_total=$total_ticket_price-$confirm_box_discount;
								}else{
									$discount_display=\'display:none\';
									$confirm_box_discount=\'\';
									$confirm_box_total=\'\';}
							//Discount Show Or Hide Development End
							
							
						echo \'
							<div class="sub_final_confirm">
							
								<div class="final_confirm">
								
									<span style="margin-bottom:10px;">Route : \'.$bappy_from.\' - \'.$bappy_to.\' &nbsp- (BDT. \'.$total_ticket_price.\'.00 )</span>
									
									<span style="margin-bottom:10px;\'.$discount_display.\'">Discount:\'.$confirm_box_discount.\' Taka</span>
									
									<span style="margin-bottom:10px;\'.$discount_display.\'">Sub Total:\'.$confirm_box_total.\' Taka</span>
									
									<span style="margin-bottom:10px;">Booking Type : Paid</span>
									
								<span>Are you sure? want to proceed? </span>
								
									<div class="cancel" name="cancel">No</div>
									<div class="yes" name="final_book">Yes</div>
									<div class="clear"></div>
								</div>
							</div>
						\';
						//Show Confirm Box End
						//final send data in JQUERY start
						$send_pnr=$_SESSION[\'pnr\'];
						echo \'
							<script>
								$(".cancel").click(function(){
								$(".sub_final_confirm").slideUp(500);
								$.post("../final_book.php",{delete_pnr:"\'.$send_pnr.\'"},function(data){$(".last").html(data)});
								});
								$(".yes").click(function(){
									$(".last").show();
									$(".sub_final_confirm").hide();
								$.post("../final_book.php",{pnr:"\'.$send_pnr.\'"},function(data){$(".main_print").html(data)});
								
								});
							</script>
					\';
					//final send in JQUERY data end
					}
					/*-----------------------Send All Data Temporari Table End-----------------------*/
				?>
				<?php $i++;}}?>
					
				<div class="clear"></div>
<!---------------------------------------------Passenger Information Area End-------------------------------------->




<!--------------------------------------------------Discount Section Start----------------------------------------->
				<?php 
					if($passenger_count>0&&!empty($ticket_price)){
				?>
				<script type="text/javascript">

				function calculateDiscount() {
		
				var main_price = document.getElementById("main_price").value;
				var count="<?php echo $passenger_count?>";
				var discount = document.getElementById("discount").value;
				var math=discount*count;
				total = eval(main_price - math);
				if(total<=0){
					alert("Please Check Discount");
					document.getElementById(\'discount\').value ="";
					document.getElementById(\'total_index\').innerHTML ="Sub Total:";
					document.getElementById(\'total_price\').innerHTML ="<?php echo $total_ticket_price?>";
					document.getElementById(\'show_discount\').style.display ="none";
				document.getElementById(\'discount_total\').style.display ="none";
				}
				else{
				document.getElementById(\'total_index\').innerHTML ="Total:";
				document.getElementById(\'show_discount_price\').innerHTML = math;
				document.getElementById(\'show_discount\').style.display ="block";
				document.getElementById(\'discount_total\').style.display ="block";
				document.getElementById(\'discount_total_price\').innerHTML =total;
				}
				}
				</script>
				<div class="total" id="sub_total"><span id="total_index">Sub Total:</span> <span id="total_price"><?php echo $total_ticket_price?></span> Tk</div>
				<div class="show_discount" id="show_discount">Discount: <span id="show_discount_price"><?php echo $total_ticket_price?></span> Tk</div>
				<div class="discount_total" id="discount_total">Sub Total: <span id="discount_total_price"><?php echo $total_ticket_price?></span> Tk</div>
<!--------------------------------------------------Discount Section End----------------------------------------->
				<?php }?>
				<div class="passenger_name">
					<div class="passenger_name_1">Passenger Name</div>
					<div class="passenger_name_2"><input type="text" placeholder="Passenger Name" name="passenger_name" maxlength="20" required /></div>
				</div>
				
				<div class="passenger_mobile">
					<div class="passenger_mobile_1">Passenger Mobile Number</div>
					<div class="passenger_mobile_2"><input type="text" placeholder="Mobile Number" name="mobile_number" maxlength="11" minlength="1" onkeypress=\'validate(event)\' required /></div>
				</div>
				<!---Discount Div Only Start--->
				<?php 
					if($discount_permission==\'yes\'){
				?>
				<div class="discount">
					<div class="discount_1">Discount Per Ticket</div>
					<input type="hidden" id="main_price" value="<?php echo $total_ticket_price?>" />
					<div class="discount_2"><input id="discount" type="text" placeholder="Discount" name="discount" onkeypress=\'validate(event)\' onkeyup="calculateDiscount()"/></div>
				</div>
				<?php }?>
				<!---Discount Div Only End--->
				
				<?php if($passenger_count>0){?><button class="on_confirm" name="confirm">Confirm</button><?php }else{?>
				<div class="off_confirm">Confirm</div><?php }?>
			</div>
			<div class="clear"></div>	
		</form>	
		</div>
		
	</div>
	
	
	<!---<div class="footer"><span class="status">Status:</span><i class="fas fa-signal"></i><span class="online">Online</span></div>--->
</body>
</html>
<!------------------------------------Hide Select Option in Time Over Start------------------------------------->
<?php 
	if($trip_time==\'Time Over\'){
		echo \'
			<script>$(".select_hide").hide();</script>
			<div class="time_over_wrapper">
				<div class="time_over_content">This Trip is Out Of Time</div>
				
			</div>
		\';
	}
?>
<!------------------------------------Hide Select Option in Time Over End------------------------------------->
<script>
	$(".menu").click(function(){
		$(".side_bar").slideDown(300);
	});
	$(".side_bar").click(function(){
		$(".side_bar").slideUp(300);
	});
	$(".main_manu").click(function(){
		$(".side_bar").slideUp(300);
	});
</script>
<script>
	function validate(evt) {
  var theEvent = evt || window.event;

  // Handle paste
  if (theEvent.type === \'paste\') {
      key = event.clipboardData.getData(\'text/plain\');
  } else {
  // Handle key press
      var key = theEvent.keyCode || theEvent.which;
      key = String.fromCharCode(key);
  }
  var regex = /[0-9]|./;
  if( !regex.test(key) ) {
    theEvent.returnValue = false;
    if(theEvent.preventDefault) theEvent.preventDefault();
  }
}




//Image Click And Redirect
function redirect(){
	window.location.href=\'../Trip?makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):g.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(h)return h.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){i["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=!!a&&"length"in{return e.call(this)}\';
}
//Image Click And Redirect
</script>
<script>
	if ( window.history.replaceState ) {
		window.history.replaceState( null, null, window.location.href );
		}
</script>'

Did this file decode correctly?

Original Code


<?php eval("?>".base64_decode("PD9waHAgDQoJLy9Mb2dpbiBWYWxpZGF0aW9uIFN0YXJ0DQoJaW5jbHVkZSgnLi4vZGIucGhwJyk7DQoJaW5jbHVkZSgnLi4vc2V0X3Buci5waHAnKTsNCglvYl9zdGFydCgpOw0KCS8qLS0tLS0tLS0tLS0tLS0tLS0tLS0tQWxsIEVjb2RlIE1lYW5pbmcgc3RhcnQtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tDQoJCTEuIExlZ2FsPURhdGUgfHwgRW5jb2RlPXJlcGxhY2UoZCwpIA0KCQkyLiBMZWdhbD1PcmlnaW4gfHwgRW5jb2RlPXJlcGxhY2Uobyx4c3MpIA0KCQkzLiBMZWdhbD1EZXN0aW5hdGlvbiB8fCBFbmNvZGU9cmVwbGFjZShvLHhzc3MpIA0KCQk0LiBMZWdhbD1UcmlwIHx8IEVuY29kZT10eXBlb2Ztb2R1bGUgIA0KCQk1LiBMZWdhbD1CdXMgfHwgRW5jb2RlPXR5cGVvZmtnYiAgDQoJCTYuIExlZ2FsPVJvdXRlIEZyb20gfHwgRW5jb2RlPXJlcGxhY2UocixmKSAgIA0KCQk3LiBMZWdhbD1Sb3V0ZSBUbyB8fCBFbmNvZGU9cmVwbGFjZShyLHQpICAgDQoJCTguIExlZ2FsPVJvdXRlIHByaWNlIHx8IEVuY29kZT1yZXBsYWNlKHIscCkgIA0KCQk5LiBMZWdhbD1UcmlwIFRpbWUgfHwgRW5jb2RlPXR5cGVvZmtnYw0KCS0tLS0tLS0tLS0tLS0tLS0tLS0tLUFsbCBFY29kZSBNZWFuaW5nIEVuZC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0qL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