-
Notifications
You must be signed in to change notification settings - Fork 3
/
offline_verification.php
93 lines (80 loc) · 3.3 KB
/
offline_verification.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
<?php
date_default_timezone_set('Asia/Calcutta');
$strCurDate = date('d-m-Y');
if( isset($_SERVER['HTTPS'] ) ) {
$host ='https';
}else{
$host = 'http';
}
?>
<html>
<head>
<title>Offline Verification</title>
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1" />
<link rel="stylesheet" href="<?php echo $host."://".$_SERVER["HTTP_HOST"].'/php-checkoutjs/assets/css/bootstrap.min.css';?>">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-12">
<h2>Offline Verification :</h2>
<!-- <?php if(isset($_GET['message']) && $_GET['message'] == 'success') { ?>
<div class="alert alert-success">
<strong>Admin Details updated successfully !!</strong>
</div>
<?php } ?> -->
<form method="POST" id="myform" action="offline_request.php">
<table class="table table-bordered table-hover">
<tr class="info">
<th width="40%">Field Name</th>
<th width="60%">Value</th>
</tr>
<tr>
<td><label>Transaction Identifier <span style="color:red;">*</span></label></td>
<td><input class="form-control" type="text" name="transactionIdentifier" value=""/></td>
</tr>
<tr>
<td><label>Transaction Date <span style="color:red;">*</span></label></td>
<td><input class="form-control" type="date" name="transactionDate" value=""/></td>
</tr>
<tr>
<td colspan=2>
<input class="btn btn-info" type="submit" name="submit" value="Submit" />
</td>
</tr>
</table>
</form>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-12" id="mytable">
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js" type="text/javascript"></script>
<script src="<?php echo $host."://".$_SERVER["HTTP_HOST"].'/php-checkoutjs/assets/js/bootstrap.min.js';?>"></script>
<!-- <script type="text/javascript">
(function($){
function processForm( e ){
$.ajax({
url: 'offline_request.php',
dataType: 'text',
type: 'post',
contentType: 'application/x-www-form-urlencoded',
data: $(this).serialize(),
success: function( data, textStatus, jQxhr ){
$('#mytable').html( data );
},
error: function( jqXhr, textStatus, errorThrown ){
console.log( errorThrown );
}
});
e.preventDefault();
}
$('#myform').submit( processForm );
})(jQuery);
</script> -->
</body>
</html>