-
Notifications
You must be signed in to change notification settings - Fork 0
/
principal.php
executable file
·113 lines (91 loc) · 2.79 KB
/
principal.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
103
104
105
106
107
108
109
110
111
112
113
<?php
session_start();
if($_SESSION['logado'] != 'sim'){
header('Location:index.php');
}
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="dist/css/bootstrap.min.css">
</head>
<body>
<br>
<br>
<a href = "#VAIPRAHOME#"><img alt="logo" src="img/teste.png"></a>
<div class="container">
<br>
<br>
<hr>
<ul class="nav nav-pills" role="tablist">
<li id = "home" class=""><a href="?m=h">Home</a></li>
<li class="dropdown" id = "clientes">
<a class="dropdown-toggle" data-toggle="dropdown" href="#"> Clientes <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li class = ""><a href="?m=x">Mostrar</a></li>
<li><a href="?m=w">Novo</a></li>
</ul>
</li>
<li class="dropdown" id = "seguros">
<a class="dropdown-toggle" data-toggle="dropdown" href="#"> Seguros <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="?m=y">Novo</a></li>
<li><a href="?m=c">Mostrar</a></li>
<li><a href="?m=f">Efetuar Pagamento</a></li>
</ul>
</li>
<li id = "historico" class=""><a href="?m=d">Historico de Alterações</a></li>
</ul>
</div>
<br>
<br>
<br>
<?php
if(!isset($_GET['m']) && !isset($_POST['m']))
require_once('principal.php');
else{
switch($_REQUEST['m']){
case 'h':
require_once('principal.php');
break;
case 'x':
require_once('clientes.php');
break;
case 'w':
require_once('cadastrarCliente.php');
break;
case 'y':
require_once('novoSeguro.php');
break;
case 'a':
require_once ('atualizarCliente.php');
break;
case 'b':
require_once ('teste.php');
break;
case 'c':
require_once ('seguros.php');
break;
case 'd':
require_once 'historico.php';
break;
case 'e':
require_once 'atualizarSeguro.php';
break;
case 'f':
require_once 'efetuarPagamento.php';
break;
case 'mp':
require_once 'mostrarPagamentoDoCliente.php';
break;
}
}
?>
<script type = "text/javascript" src="dist/jquery-1.11.1.min.js"></script>
<script src="dist/js/bootstrap.min.js"></script>
<!-- FOOTER -->
<?php require_once 'footer.php'?>
</body>
</html>