-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheckout.php
112 lines (93 loc) · 2.31 KB
/
checkout.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
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="login.css">
</head>
<body>
<nav><?php
include_once('index.php');
?>
</nav>
<div id="checkout">
<div id="head1">Enter the delivery address</div>
<form method="post" action="checkedout.php">
Recievers name:<input type="text" name="recname" required>
Recievers address:<input type="text" name="field1" required>
<input type="text" name="field2" required>
Pincode:<input type="number" name="pinc" value="<?php echo $_SESSION['pincode']; ?>">
<input type="submit" name="submit" value="PAY" class="button button-block">
</form>
</div>
</body>
<script type="text/javascript">
$('#form').find('input, textarea').on('keyup blur focus', function (e) {
var $this = $(this),
label = $this.prev('label');
if (e.type === 'keyup') {
if ($this.val() === '') {
label.removeClass('active highlight');
} else {
label.addClass('active highlight');
}
} else if (e.type === 'blur') {
if( $this.val() === '' ) {
label.removeClass('active highlight');
} else {
label.removeClass('highlight');
}
} else if (e.type === 'focus') {
if( $this.val() === '' ) {
label.removeClass('highlight');
}
else if( $this.val() !== '' ) {
label.addClass('highlight');
}
}
});
$('.tab a').on('click', function (e) {
e.preventDefault();
$(this).parent().addClass('active');
$(this).parent().siblings().removeClass('active');
target = $(this).attr('href');
$('.tab-content > div').not(target).hide();
$(target).fadeIn(600);
});
</script>
</html>
<style type="text/css">
#head1
{
margin-bottom:
20px;
opacity:.8;
}
nav
{
}
#checkout
{
position:absolute;
display:block;
margin-top:
10%;
font-family:
'sans-serif';
margin-left:
30%;
}
/* #checkout input[type=text],input[type=number]
{
width:250px;
background-color:
white;
box-shadow:
none;
border-color:
none;
border-radius:
3px;
height:10px;
}*/
</style>
<?php
?>