<?php if ($_SESSION['logado'] != 'sim') { header('Location:index.php'); } include 'cls/segurosClass.php'; $seguro = new segurosClass(); $seguro->novoSeguro($_POST['dataInicio'], $_POST['dataVencimento'], $_POST['precoMensal'], '1', $_POST['tipo'], $_POST['cliente']); header('Location:principal.php?m=c');
<?php if ($_SESSION['logado'] != 'sim') { header('Location:index.php'); } include 'cls/segurosClass.php'; $seguro = new segurosClass(); $seguro->mostrar(); $active = 'seguros'; ?> <div align = "center"> <table border ="1"> <tr> <td style = "background-color:yellow;" align="center">Cliente</td> <td style = "background-color:yellow;" align="center">Seguro</td> <td style = "background-color:yellow;" align="center">Valor</td> <td style = "background-color:yellow;" align="center">Data de Vencimento</td> <td style = "background-color:yellow;" align ="center">Editar</td> </tr> <?php while ($linha = mysql_fetch_array($seguro->getconsulta())) { ?> <tr> <td align="center"><? echo $linha['nome'];?></td> <td align="center"> <?php switch ($linha['tipo']) { case "1": echo "Aeronáutico"; break; case "2":
<?php if ($_SESSION['logado'] != 'sim') { header('Location:index.php'); } require_once 'cls/segurosClass.php'; $seguro = new segurosClass(); $seguro->atualizarSeguro($_POST['dataVencimento'], $_POST['precoMensal'], $_POST['status'], $_POST['id']); header('Location:principal.php?m=c');
<?php if ($_SESSION['logado'] != 'sim') { header('Location:index.php'); } require_once 'cls/segurosClass.php'; $seg = new segurosClass(); $seg->buscarUm($_GET['id']); $seguro = mysql_fetch_array($seg->getconsulta()); $active = 'seguros'; ?> <!DOCTYPE html> <html> <head> <title>Atualizar Seguro</title> </head> <body> <form class="form-horizontal" id = "form" method="POST" action='processarAtualizarSeguro.php'> <fieldset> <!-- Form Name --> <legend align = "center">Alterar Seguro </legend> <input type = hidden name = id value = <?php echo $seguro['idSeguros']; ?> > <div align="center"> Seguro do Cliente <?php echo $seguro['nome']; ?> - <?php
<?php if ($_SESSION['logado'] != 'sim') { header('Location:index.php'); } require_once 'cls/segurosClass.php'; require_once 'cls/clientesClass.php'; $seguro = new segurosClass(); $seguro->mostrar(); $cliente = new clientesClass(); $cliente->mostrar(); $active = 'seguros'; ?> <!DOCTYPE html> <html> <head> <title> Novo Seguro</title> </head> <body> <form class="form-horizontal" id = "form" method="POST" action='processarSeguro.php'> <fieldset> <!-- Form Name --> <legend align = "center">Cadastro de Seguros</legend> <!-- Select Basic --> <div class="form-group"> <label class="col-md-4 control-label" for="cliente">Cliente</label> <div class="col-md-2"> <select id="cliente" name="cliente" class="form-control">