-
Notifications
You must be signed in to change notification settings - Fork 0
/
produto.php
102 lines (82 loc) · 2.41 KB
/
produto.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
<?php
$conexao = mysqli_connect("127.0.0.1","root","root","WD43");
$dados = mysqli_query($conexao, "SELECT * FROM produtos WHERE id=$_GET[id]");
$produto = mysqli_fetch_array($dados);
?>
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<title>Mirror Fashion</title>
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/estilos.css">
<link rel="stylesheet" href="css/mobile.css" media="(max-width: 939px)">
<link rel="stylesheet" href="css/produto.css">
</head>
<body>
<?php include ("cabecalho.php"); ?>
<div class="produto-back">
<div class="container">
<div class="produto">
<h1><?=$produto["nome"]?></h1>
<p>Por apenas <?= $produto["preco"]?></p>
<form action="checkout.php" method="GET">
<input type="hidden" name="nome" value="Fuzzy Cardigan">
<fieldset class="cores">
<legend>Escolha a cor:</legend>
<input type="radio" name="cor" value="verde" id="verde" checked>
<label for="verde">
<img src="img/produtos/foto2-verde.png" alt="verde">
</label>
<input type="radio" name="cor" value="rosa" id="rosa">
<label for="rosa">
<img src="img/produtos/foto2-rosa.png" alt="rosa">
</label>
<input type="radio" name="cor" value="azul" id="azul">
<label for="azul">
<img src="img/produtos/foto2-azul.png" alt="azul">
</label>
</fieldset>
<fieldset class="tamanhos">
<legend>Escolha o tamanho:</legend>
<input type="range" min="36" max="46" value="42" step="2" name="tamanho" id="tamanho">
</fieldset>
<input type="submit" class="comprar" value="Comprar">
</form>
</div>
<div class="detalhes">
<h2>Detalhes do produto</h2>
<p> <?= $produto["descricao"] ?> </p>
<table>
<thead>
<tr>
<th>Caracteristicas</th>
<th>Detalhes</th>
</tr>
</thead>
<tbody>
<tr>
<td>Modelo</td>
<td>Cadigã 7845</td>
</tr>
<tr>
<td>Material</td>
<td>Algodão e Poliester</td>
</tr>
<tr>
<td>Cores</td>
<td>Azul,Rosa e Verde</td>
</tr>
<tr>
<td>Lavagem</td>
<td>Lavar a mão</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<?php include ("rodape.php"); ?>
</body>
</html>