-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.php
118 lines (89 loc) · 3.03 KB
/
home.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
<?php
require './includes/config.php';
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Payment page</title>
<link rel="stylesheet" type="text/css" href="./css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="./css/main.css">
</head>
<body>
<h3>Payment page</h3>
<!-- Button trigger modal -->
<button type="button" class="btn btn-primary callMpamba" data-toggle="modal" data-target="#Mpamba">
Mpamba
</button>
<button type="button" class="btn btn-primary callAirtel" data-toggle="modal" data-target="#Airtel">
Airtel Money
</button>
<!-- Modal 1-->
<div class="modal fade" id="Airtel" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="staticBackdropLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="staticBackdropLabel">Airtel money</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form>
<div class="form-group row">
<div class="col-sm-10">
<input type="text" class="form-control" placeholder="reference number" id="inputPassword">
</div>
</div>
<button type="button" class="btn btn-primary">Confirm payment</button>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Modal 2-->
<div class="modal fade" id="Mpamba" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="staticBackdropLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="staticBackdropLabel">TNM Mpamba</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="form-group row">
<div class="col-sm-10">
<input type="text" class="form-control" placeholder="reference number" id="inputPassword">
</div>
</div>
<button type="button" class="btn btn-primary">Confirm payment</button>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</body>
<script src="./js/jquery.min.js"></script>
<script src="./js/bootstrap.min.js" ></script>
<script>
$('.callAirtel').on('click',function(){
$('.modal-body').load('GetAirtel.php',function(){
$('#myModal').modal({show:true});
});
});
</script>
<script>
$('.callMpamba').on('click',function(){
$('.modal-body').load('GetMpamba.php',function(){
$('#myModal').modal({show:true});
});
});
</script>
</html>