-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
44 lines (40 loc) · 1.25 KB
/
index.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
<?php
include_once ("template/header.php");
include_once ("php/global.php");
include_once ("php/usuario.php");
if(estalogado()){
header("Location: cadastro_produtos.php");
}
$erro = login();
?>
<?php if(isset($erro)){ ?>
<div data-alert class="alert-box alert">
<?= (isset($erro)? $erro : "") ?>
<a href="#" class="close">×</a>
</div>
<?php } ?>
<form method="post">
<div class="row login">
<div class="large-12 small-12 medium-12 columns">
<label>
Email:
<input type="email" name="email" />
</label>
</div>
<div class="large-12 small-12 medium-12 columns">
<label>
senha:
<input type="password" name="senha" />
</label>
</div>
<div class="large-12 small-12 medium-12 columns">
<input type="submit" Value="Entrar" class="button tiny botao" />
</div>
</div>
</form>
<form action="cadastro.php">
<div class="large-12 small-12 medium-12 columns">
<input type="submit" Value="Cadastrar-se" class="button tiny botao" />
</div>
</form>
<?php include_once ("template/footer.php"); ?>