<?php session_start(); if (isset($_SESSION['user_name']) && isset($_SESSION['user_pswd'])) { ?> <?php require_once './EntidadeInterface.php'; require_once './Alunos.php'; require_once './Banco_Crud.php'; if ($_POST['buscar'] != null || $_POST['buscar'] != " ") { $nome_b = $_POST['buscar_nome']; $aluno_oo = new Alunos(); $banco = new banco_crud(require_once './conexao.php', $aluno_oo); $banco->listarPN_entity($nome_b); echo '<body>' . '<table>' . '<tr>' . '<td>Voltar Lista :</td>' . '<td alingn=middle width=550><a href=index.php?page=view_lista><input type="submit" name="nome_list" value="Alunos" ></a>' . '</td>' . '</tr>' . '</table>' . '</body>'; } } else { ?> <p>Por favor realizar seu login no sistema!</p> <br/><?php echo '<body>' . '<table>' . '<tr>' . '<td>Ir' . '</td>' . '<td>Login' . '</td>' . '<td alingn=middle width=550><a href=index.php?page=login_user><input type="submit" name="nome_lis" value="Click" ></a>' . '</td>' . '</tr>' . '</table>' . '</body>'; }