if (!in_array(211, $acesso)) { echo '<script language= "JavaScript">location.href="' . EXTERNAL_ROOT_PORTAL . '/modulos.php";</script>'; } if (!empty($_GET['cmd']) && $_GET['cmd'] == 'del') { $id = ValidateInteger(INPUT_GET, 'id'); $retorno = $DAO->Deletar($id); $retorno2 = $DAO->DeletarArquivo($id); if ($retorno == 1 && $retorno2 == 1) { echo '<script language= "JavaScript">alert("Registro removido com sucesso");</script>'; echo '<script language= "JavaScript">location.href="index.php";</script>'; } else { echo '<script language= "JavaScript">alert("Erro ao remover o registro.");</script>'; } } if (!empty($_GET['cmd']) && $_GET['cmd'] == 'compact') { $pedido->zipar(limpaTexto($_GET['id'])); } ?> <!-- topbar ends --> <div class="container-fluid"> <div class="row-fluid"> <!-- left menu starts --> <div class="span2 main-menu-span"> <?php include_once '../menu.php'; ?> </div> <!--/span--> <!-- left menu ends -->