echo '<script language= "JavaScript">location.href="' . EXTERNAL_ROOT_PORTAL . '/modulos.php";</script>'; } $DAO = new DocumentoDAO(); if (!empty($_GET['cmd']) && $_GET['cmd'] == 'fin') { $id = ValidateInteger(INPUT_GET, 'id'); $retorno = $DAO->AprovarAta($id); if ($retorno == 1) { echo '<script language= "JavaScript">alert("Ata aprovada com sucesso");</script>'; echo '<script language= "JavaScript">location.href="index.php";</script>'; } else { print_r($retorno); } } if (!empty($_GET['cmd']) && $_GET['cmd'] == 'del') { $id = ValidateInteger(INPUT_GET, 'id'); $retorno = $DAO->DeletarAta($id); if ($retorno == 1) { echo '<script language= "JavaScript">alert("Ata removida com sucesso");</script>'; echo '<script language= "JavaScript">location.href="index.php";</script>'; } else { print_r($retorno); } } ?> <!-- topbar ends --> <div class="container-fluid"> <div class="row-fluid"> <!-- left menu starts --> <div class="span2 main-menu-span"> <?php