-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·68 lines (60 loc) · 2.82 KB
/
index.php
File metadata and controls
executable file
·68 lines (60 loc) · 2.82 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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Calculadora de anos bissextos</title>
<link rel="stylesheet" href="estilo.css">
<link href='https://fonts.googleapis.com/css?family=Poppins' rel='stylesheet' type='text/css'>
</head>
<body>
<section id="section" >
<div id="block">
<header>
<h1>CALCULADORA DE ANOS BISSEXTOS</h1>
</header>
<p>Calcule aqui a data desejada</p>
<!--para alterar para php iclua um form aqui-->
<form method="GET" action="calculator.php">
<div><p>Dia:
<select class="inpt" name="dd" id="dd">
<?php
for($i=1;$i<=31;$i++):
?>
<option value="<?php echo $i?>"><?php echo $i?></option>
<?php
endfor ?>
</select></p>
</div>
<div><p>Mês:
<select class="inpt" name="mm" id="mm">
<?php
$m = array("Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro");
for($i=0;$i<12;$i++):
?>
<option value="<?php echo $i?>"><?php echo $m[$i]?></option>
<?php
endfor ?>
</select></p>
</div>
<p>Ano: <input type="number" class="inpt" placeholder=" Digite o ano" name="year" id="yyyy" min="0" max="9999"></p>
<label class="container">d.C
<input type="radio" id="dc"name="radio" value="1" checked="checked">
<span class="checkmark"></span>
</label>
<label class="container">a.C
<input type="radio" id="ac" name="radio" value="2">
<span class="checkmark"></span>
</label>
<p><input type="submit" class="bt" value="CALCULAR"id="calcular"></p>
<p id="res">Saiba o dia da semana da data desejada e se o ano é bissexto de acordo com o calendário
<a href="https://pt.wikipedia.org/wiki/Ano_bissexto#Calend%C3%A1rio_Gregoriano" target="balnk" >Gregoriano. </a>
</p>
</div>
</form>
<!--feche o form aqui-->
</section>
<script type="text/javascript" src="script.js"></script>
</body>
</html>