File: /home/cafsindia/allyindian_com/backend/customers/error.php
<?php
require_once('./sbltt_lib/sblttObject.php');
$sbltt_session = sblttObject::newObject('sbltt_session');
$is_customer = false;
$sbltt_session->startSession();
$libObject = $sbltt_session->is_session_exist();
if(!$libObject){
header( "Location: ./login.php?mode=index");
exit(0);
}
$is_customer = $libObject->is_customer();
if(!$is_customer){
header( "Location: ./login.php?mode=index");
exit(0);
}
// ONLY FOR CUSTOMER
$cust_id = $libObject->cust_id;
$custtitle = $libObject->custtitle;
$custfname = $libObject->custfname;
$custlname = $libObject->custlname;
$custgender = $libObject->custgender;
$custdob = $libObject->custdob;
$custemail = $libObject->custemail;
$custoccu = $libObject->custoccu;
$custaddress = $libObject->custaddress;
$custcity = $libObject->custcity;
$custstate = $libObject->custstate;
$custcountry = $libObject->custcountry;
$custpincode = $libObject->custpincode;
$custphone = $libObject->custphone;
$custmobile = $libObject->custmobile;
$custnational = $libObject->custnational;
$custloginid = $libObject->custloginid;
$custpassword = $libObject->custpassword;
$custnewsletter = $libObject->custnewsletter;
$custmaileroffer = $libObject->custmaileroffer;
$custagentcode = $libObject->custagentcode;
$custref = $libObject->custref;
$cust_name = "$custfname $custlname";
// $orderid = $sbltt_session->get_value('orderid');
// if(!$orderid){
// header( "Location: ./index.php?mode=errorindex");
// exit(0);
// }
if(isset($_SESSION['orderid'])){
unset($_SESSION['orderid']);
}
if(isset($_SESSION['pnr'])){
unset($_SESSION['pnr']);
}
if(isset($_SESSION['track_id'])){
unset($_SESSION['track_id']);
}
if(isset($_SESSION['final_amt'])){
unset($_SESSION['final_amt']);
}
?>
<!DOCTYPE html>
<html>
<head>
<title>SBLTT Customer payment error - © CAFS Infotech </title>
<!-- META -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0"/>
<meta name="Description" content="Book online bus tickets in India. SBLTT Customer payment success."/>
<meta name="Keywords" content="Bus ,Booking ,Online , Tours ,Travels ,volvo , Sleeper"/>
<meta name="robots" content="index,follow"/>
<!-- STYLE SHEET -START -->
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="icon" href="/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="./asset/bootstrap.min.css">
<link rel="stylesheet" href="./asset/css/style.css">
<link rel="stylesheet" href="./asset/fonts/font-awesome.min.css">
</head>
<style>
.head1{text-align: center;font-weight: bold;color:#d3434d;font-size: 25px;}
.para1{text-align: center;color:#000;font-size: 18px;padding: 15px 45px;font-weight: bold;}
.btn-mod{background-color: #74AD46; border: none; padding: 11px 29px; font-weight: bold;}
.btn-mod:hover{border:2px solid #74AD46; background-color:#fff;color:#74AD46;}
</style>
<body>
<!-- NAVBAR -START -->
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#sbltt_nav_menu" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#" style="color:#FFFFFF;">
<img src="asset/images/sbltt_batch.png" style="margin-top:-13px;" alt="SBLTT LOGO">
</a>
</div>
<div class="collapse navbar-collapse" id="sbltt_nav_menu">
<ul class="nav navbar-nav navbar-right nav-pills">
<li><a href="https://sblt.co.in/#home">Home</a></li>
<li><a href="#mybooking_tab" role="tab" data-toggle="tab">My Booking</a></li>
<li><a href="#enquiry_tab" role="tab" data-toggle="tab">Enquiry</a></li>
<li class="dropdown">
<a href="https://sblt.co.in/#logo" class="dropdown-toggle " data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" style='display:-webkit-inline-box;'>
<div class='myprofile'><?php echo $custemail;?></div> <span class="caret"></span>
</a>
<ul class="dropdown-menu" style="width:315px !important;padding:8px;">
<li>
<table style="width:100%;">
<tr>
<td style="text-align:center;padding: 4px;">
<span style='color:#d3434d;'><i class="fa fa-user-circle fa-3x" aria-hidden="true"></i></span>
</td>
<td style="padding: 4px;">
<span style="font-weight:bold;"><?php echo $cust_name;?></span><br/>
<?php echo $custemail;?><br/>
<?php echo $custmobile;?>
</td>
</tr>
<tr>
<td style="text-align:left;padding: 4px;">
<a href="#profile_tab" role="tab" data-toggle="tab" class='btn btn-default btn-xs'>My Profile</a>
</td>
<td style="text-align:right;padding: 4px;">
<a href="./logout.php" class='btn btn-default btn-xs'>Sign out</a>
</td>
</tr>
</table>
</li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<!-- NAVBAR -END -->
<!-- MAIN COINTAINER - START -->
<div class="container-fluid" style="margin-top:58px;padding: 0px;">
<div class="tab-content ">
<div role="tabpanel" class="tab-pane active" id="mybooking_tab" style='padding: 5px'>
<div style='width: 750px; margin-left: auto; margin-right: auto;margin-top:7%; padding: 15px; background-color: #fff; border-radius: 9px; box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2);'>
<div style='text-align:center;'>
<img src="asset/images/close-icon.png" style="width:80px;height:80px; alt="failed">
</div>
<h1 class='head1'>Sorry!! </h1>
<p class='para1'>Something went wrong We have encountered an error..</p>
<p class='para1'>
For further clarification kindly contact our support team <br/>
<span style='color:#D8343F'>044 - 4666 4666</span> / <span style='color:#D8343F'>tours@sbltt.co.in</span>
</p>
<div style='text-align:center;'>
<a type="button" class="btn btn-danger btn-mod" href='./index.php'>Home</a>
</div>
</div>
</div>
</div>
<div class='row mg0'>
<div class='col-md-12 sb_center'>
<p class='md15'>Copyright © <?php echo date("Y");?> SBLTT | Powered by .<a href="https://cafsinfotech.com/">CAFS INFOTECH</a></p>
</div>
</div>
</div>
<!-- SCRIPT -START -->
<script src="./asset/jquery.min.js"></script>
<script src="./asset/bootstrap.min.js"></script>
<script type="text/javascript">
// $(document).ready(function(){
// var orderid = "<?php echo $orderid;?>";
// window.setTimeout(function(){window.location.replace("./index.php");},3000);
// });
</script>
</body>
</html>