-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbase.php
57 lines (48 loc) · 1.26 KB
/
base.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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="utf-8">
<title>Sistema FISL</title>
<link rel="stylesheet" href="bootstrap/css/bootstrap.css">
</head>
<body>
<div class="container">
<header class="row">
<div class="navbar navbar-inverse">
</div> <!-- navbar -->
</header>
<section class="row">
<div class="col-lg-3">
<div class="list-group">
<a href="?op=listar_produtos" class="list-group-item">Listar Produtos</a>
<a href="?op=add_produtos" class="list-group-item">Adicionar Produtos</a>
</div>
</div>
<div class="col-lg-9">
<?php
if(isset($_GET['msg'])){
if($_GET['msg'] == "ok"){
$msg = "Pronto, sua requisição foi feita com sucesso";
$class = "success";
}else{
$msg = "Ops, houve um problema na requisição. Tente novamente.";
$class = "danger";
}
include_once 'views/alert.php';
}
if(isset($_GET['op'])){
switch($_GET['op']){
case "listar_produtos":
include_once 'controller/listar_produtos.php';
break;
case "add_produtos":
include_once 'views/add_produto.php';
break;
}
}
?>
</div>
</section>
</div>
</body>
</html>