This repository was archived by the owner on Jun 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheckout.php
More file actions
157 lines (93 loc) · 3.1 KB
/
checkout.php
File metadata and controls
157 lines (93 loc) · 3.1 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
119
<?php
require($_SERVER['DOCUMENT_ROOT'] . "/athome/product/link.php");
$command = new Button('Commander','#');
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>ATHome - Récapitulatif</title>
<link rel="stylesheet" href="css/style.css"/>
<link rel="icon" type="image/png" href="res/icons/logo.ico" />
<script type="text/javascript" src="res/vendors/jquery.min.js"></script>
</head>
<body class="page-checkout">
<div class="slider">
<div class="overlay">
<div class="inner">
<h1 class="slogan">Finaliser votre commande</h1>
</div>
</div>
</div>
<main class="block-main">
<div class="inner">
<div class="card-checkout">
<h1>Votre commande</h1>
<p>Vos articles :</p>
<table class="articles">
<tr>
<td class="label">Table basse Gauthier 5f6eeS</td>
<td class="price">67<span>€</span></td>
</tr>
<tr>
<td class="label">Table basse Gauthier 5f6eeS</td>
<td class="price">67<span>€</span></td>
</tr>
<tr>
<td class="label">Table basse Gauthier 5f6eeS</td>
<td class="price">67<span>€</span></td>
</tr>
<tr>
<td class="label">Table basse Gauthier 5f6eeS</td>
<td class="price">67<span>€</span></td>
</tr>
<tr>
<td class="total-price"><p>Total : </p></td>
<td class="price">268<span>€</span></td>
</tr>
</table>
<p>Paiement par carte bancaire : </p>
<form class="pay-form">
<div class="row">
<div class="input owner">
<label for="card_owner">Titulaire de la carte :</label>
<input type="text" placeholder="Titulaire" name="card_owner" id="card_owner"/>
</div>
<div class="input number">
<label for="card_number">Numéro de la carte :</label>
<input type="text" id="card_number" placeholder="Numéro" name="card_number" maxlength="16" onkeypress='return event.charCode >= 48 && event.charCode <= 57'>
</input>
</div>
<div class="input date">
<label for="card_expire">Date d'expiration :</label>
<input type="month" id="card_expire" name="card_expire">
</div>
</div>
<div class="row">
<div class="input cvv">
<label for="card_cvv">CVV :</label>
<input type="text" placeholder="CVV" id="card_cvv" name="card_cvv" maxlength="3" onkeypress='return event.charCode >= 48 && event.charCode <= 57'>
</input>
</div>
</div>
<div class="row">
<div class="card_valid">
<?php
$validcard = new Button('Ajouter la carte', '');
$validcard->setID('add_card');
echo($validcard->getOutput());
?>
</div>
<p class="error" id="card_error">Des champs n'ont pas étés<br>saisi ou sont invalides</p>
<p id="card_validate" class="validate">Carte prête pour le paiement</p>
</div>
</form>
<div class="command">
<?php echo ($command->getOutput()); ?>
</div>
</div>
</div>
</main>
<script type="text/javascript" src="script/script.js"></script>
</body>
</html>