<?php

if ($_SESSION['logado'] != 'sim') {
    header('Location:index.php');
}
require_once 'cls/pagamentosClass.php';
$pagamento = new pagamentosClass();
$pagamento->efetuarPagamento($_POST['dataPagamento'], $_POST['cliente']);
header('Location:principal.php');
<?php

require_once 'cls/pagamentosClass.php';
$pagamentos_class = new pagamentosClass();
$pagamentos_class->buscarPorCliente($_GET['id']);
?>
<div align = center>
<fieldset>
<legend id = "qual"></legend>

<table border = 2>
	<tr>
		<td style = "background-color:yellow;">Data de Pagamento</td>
		<td style = "background-color:yellow;">Tipo de seguro</td>
	</tr>
	<?php 
while ($linha = mysql_fetch_array($pagamentos_class->getConsulta())) {
    ?>
	<tr>
		<td><?php 
    echo date('d/m/Y', strtotime($linha['data_pagamento']));
    ?>
</td>
		<td><?switch ($linha['tipo']){
				case "1":
					echo ("Aeronáutico");
					break;
				case "2":
					echo ("Auto");
					break;
				case "3":
<?php

if ($_SESSION['logado'] != 'sim') {
    header('Location:index.php');
}
require_once 'cls/pagamentosClass.php';
require_once 'cls/segurosClass.php';
$pagamento = new pagamentosClass();
$pagamento->mostrar();
$seguro = new segurosClass();
$seguro->mostrar();
$active = 'seguros';
?>

<!DOCTYPE html>
<html>
<head>
	<title> Efetuar Pagamento</title>
</head>
<body>
	<form class="form-horizontal" id = "form" method="POST" action='processarPagamento.php'>
<fieldset>

<!-- Form Name -->
<legend align = "center">Efetuar Pagamento</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">