-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpayment1.php
More file actions
118 lines (114 loc) · 4.2 KB
/
payment1.php
File metadata and controls
118 lines (114 loc) · 4.2 KB
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
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js">
</script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js">
</script>
<link rel = "stylesheet" type = "text/css" href = "style.css">
<style>
.panel-default {
position: relative;
top: 100px;
max-width: 40%;
left: 30px;
}
#pos {
position: relative;
left: 800px;
top: -500px;
}
</style>
<script>
function displayForm(c) {
if (c.value == "1") {
document.getElementById("ccformContainer").style.visibility = 'visible';
document.getElementById("cashContainer").style.visibility = 'hidden';
document.getElementById("paypalContainer").style.visibility = 'hidden';
}
else if (c.value == "2") {
document.getElementById("ccformContainer").style.visibility = 'hidden';
document.getElementById("cashContainer").style.visibility = 'visible';
document.getElementById("paypalContainer").style.visibility = 'hidden';
}
else if (c.value == "3") {
document.getElementById("ccformContainer").style.visibility = 'hidden';
document.getElementById("cashContainer").style.visibility = 'hidden';
document.getElementById("paypalContainer").style.visibility = 'visible';
}
}
</script>
</head>
<body>
<nav class="navbar navbar-inverse" >
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" >BOOKATRUCK</a>
</div>
<ul class="nav navbar-nav navbar-right">
<li><a href="explore.php"><span class = "glyphicon glyphicon-log-in"></span>Home</a></li>
<li><a href="W_logout.php"><span class = "glyphicon glyphicon-log-in"></span>LogOut</a></li>
</ul>
</div>
</nav>
<form>
<div class = "panel panel-default">
<div class = "panel-heading" style = "background-color : #62f781"><b><h3>Payment</h3><b></div>
<div class="panel-body">
<input value = "1" type = "radio" name = "formselector" onClick = "displayForm(this)"></input>Via Credit Card<br>
<input value = "2" type = "radio" name = "formselector" onClick = "displayForm(this)"></input> Cash On Delivery</form><br>
<input value = "3" type = "radio" name ="formselector" onClick = "displayForm(this)"></input> Paypal</form><br>
<div style = "visibility:hidden; position: relative" id = "ccformContainer">
<form id = "ccform">
<label>Enter your details:</label><br><br>
<dd>
<p>Credit Card Name :
<input type = "text" id = "ccname" name = "ccname">
</p>
<p>Credit Card Type :
<select name="cctype" required>
<option value = "Visa">Visa</option>
<option value = "Mastercard">Mastercard</option>
<option value = "American Express">American Express</option>
<option value = "Maestro">Maestro</option>
</select>
<p>Credit Card Number :
<input type="text" minlength="16" id = "ccnumber" name = "ccnumber">
</p>
<p>Credit Expiry Date : Month :
<input type = "date" name = "expirydate" id = "expirydate">
</p>
<p>Credit Card CVV:
<input type="text" minlength="3" id="cccvc" name="cccvc" value="$cccvc">
</p>
</dd>
</form>
</div>
<div style="visibility:hidden;position:relative;top:-110px;margin-top:-110px" id = "cashContainer">
<form id = "cash">
<dd>
<p>You can directly pay to the vendor</p>
</dd>
</form>
</div>
<div style="visibility:hidden;position:relative;top:-110px;margin-top:-110px" id="paypalContainer">
<form id = "paypalform">
<label>Enter your Paypal Details</label><br><br>
<dd>Paypal Address :
<input type="text" id="paypal" name="paypal" value="$paypal">
</dd>
</form>
</div>
<div id="float_right">
<input type="submit" name="submit3" value="Pay Now">
</div>
</div>
</div>
</form>
<div id = "pos">
<p> For Orders and Bills :</p>
<a href = "rate1.php">CLick here</a>
</div>
</body>
</html>