-
Notifications
You must be signed in to change notification settings - Fork 0
/
track-refrencenum.php
executable file
·143 lines (128 loc) · 5.7 KB
/
track-refrencenum.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<?php
include "common/config.php";
include "common/check_login.php";
include "common/common_code.php";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<title>Track your reference | <?php echo $company_title;?></title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta property="og:locale" content="en_US" />
<meta property="og:keyword" content="<?php echo $company_title;?>" />
<meta property="og:title" content="<?php echo $company_title;?>" />
<meta property="og:description" content="<?php echo $company_title;?>" />
<meta name="robots" content="noindex, follow" />
<link rel="icon" href="<?php echo $base_url_images; ?>fevicon.png" sizes="32x32" />
<link rel="icon" href="<?php echo $base_url_images; ?>fevicon.png" sizes="192x192" />
<link rel="apple-touch-icon" href="<?php echo $base_url_images; ?>fevicon.png" />
<meta name="msapplication-TileImage" content="<?php echo $base_url_images; ?>fevicon.png" />
<?php include "common/header-css.php";?>
</head>
<body class="custom-cursor">
<div class="custom-cursor__cursor"></div>
<div class="custom-cursor__cursor-two"></div>
<!-- <div class="preloader">
<div class="preloader__image"></div>
</div> -->
<div class="page-wrapper">
<?php include 'common/header.php';?>
<div class="stricky-header stricked-menu main-menu">
<div class="sticky-header__content"></div><!-- /.sticky-header__content -->
</div><!-- /.stricky-header -->
<!--Page Header Start-->
<section class="page-header">
<div class="page-header-bg" style="background-image: url(assets/images/backgrounds/page-header-bg.jpg)">
</div>
<div class="page-header-shape-1"><img src="assets/images/shapes/page-header-shape-1.png" alt=""></div>
<div class="container">
<div class="page-header__inner">
<ul class="thm-breadcrumb list-unstyled">
<li><a href="index.html">Home</a></li>
<li><span>/</span></li>
<li>Track your reference</li>
</ul>
<h2>Track your reference</h2>
</div>
</div>
</section>
<!--Page Header End-->
<!--About Four Start-->
<section class="about-four">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="search-popup__content" style="max-width: 100%;">
<form id="contact_form" method="POST" data-parsley-validate style="border-radius: 4px;">
<label for="search" class="sr-only">search here</label>
<input type="text" class="form-control" name="track_num" id="track_num" placeholder="Enter reference number..." style="border: 1px solid #b5afaf;" data-parsley-required="true">
<button type="submit" aria-label="search submit" class="thm-btn">
<i class="icon-magnifying-glass"></i>
</button>
</form>
</div>
</div>
</div><br><br>
<div class="row" id="history_dev">
</div>
</div>
</section>
<?php include 'common/footer.php';?>
<?php include 'common/footer-js.php';?>
<script type="text/javascript">
$(document).ready(function ()
{
$('#contact_form').parsley();
$('#contact_form').on('submit', function (e)
{
e.preventDefault();
var f = $(this);
f.parsley().validate();
if (f.parsley().isValid())
{
$.ajax(
{
url: "<?php echo $base_url; ?>track-refrence-num.php",
type: "POST",
data: $('#contact_form').serialize(),
dataType: 'json',
encode: true,
beforeSend: function ()
{
$.blockUI({message: '<img src="<?php echo $base_url_images;?>loading-old.gif" alt="Loading.."/>'});
},
success: function (data)
{
$.unblockUI();
if (data.status == 'success')
{
$('#history_dev').html(data.html_message);
}
else
{
$.notifyBar({cssClass: "error", html: data.html_message});
//dataTable.ajax.reload();
}
},
error: function (data, errorThrown)
{
$.unblockUI();
$.notifyBar({cssClass: "error", html: "Error occured!"});
}
});
}
else
{
e.preventDefault();
}
});
});
$("#contact_form").click(function ()
{
$('#contact_form').parsley().destroy();
});
</script>
</body>
</html>