<?php

include "../classes/Principal.php";
$acao = $_GET['acao'];
$id = $_GET['id'];
$principal = new Principal();
$descricao = "";
if ($acao == "alt") {
    $extra = "WHERE idhistorico=" . $id;
    foreach ($principal->retornaHistoricos($extra) as $historico) {
        $descricao = $historico->getDescricao();
    }
}
?>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />


<!-- <link rel="stylesheet" href="css/style_forms.css" /> -->
<!-- Incluimos a biblioteca do jquery e as Funçoes -->
<script type="text/javascript"  src="../scripts/jquery-1.4.2.min.js"></script>
<!-- <script type="text/javascript"  src="scripts/funcoes.js"></script> -->

<script type="text/javascript">  
    jQuery(document).ready(function(){  
        jQuery('#formulario').submit(function(){  
            var dados = jQuery( this ).serialize();  
              jQuery.ajax({  
                type: "POST",