unset($dados['salvar']); unset($dados['confirme']); $admin->ExeCreate($dados); } if (!empty($dados['editar'])) { } if (!empty($dados['deletar'])) { $usuario_id = $dados['usuario_id']; $admin->ExeDelete($usuario_id); } ?> <div class="clearfix"> <h2>Novo Usuário</h2> <form method="post" action=""> <?php if ($admin->getResult()) { WSErro($admin->getError()[0], $admin->getError()[1]); } ?> <fieldset> <p class = "p100"> <label for="campo_nome">Nome do usuário</label> <input class="w95" type="text" name="nome" id="campo_nome"/> </p> <p class = "p100"> <label for="campo_email">Email de acesso</label> <input class="w95" type="email" name="email" id="campo_email"/> </p> <p class = "p50"> <label for="campo_senha">Senha</label> <input type="password" name="senha" id="campo_senha"/>
} ?> <!DOCTYPE html> <html lang="pt-br"> <head> <link href="resources/css/estilo.css" rel="stylesheet" type="text/css"/> <link rel="icon" href="favicon.ico"> <meta charset="UTF-8"> <title>Login - PROEmpenho</title> </head> <body> <div class="formulario login"> <form method="post" action=""> <h2>Login - PROEmpenho</h2> <?php if ($adminUsuario->getResult()) { WSErro($adminUsuario->getError()[0], $adminUsuario->getError()[1]); } if (is_array($adminUsuario->getResult())) { header("Location: home.php"); } ?> <p> <input class = "entrada_form w100" type = "email" name = "email" id = "campo_email" placeholder = "Email" required/> </p> <p> <input class = "entrada_form w100" type = "password" name = "senha" id = "campo_senha" placeholder = "Senha" required/> </p> <p> <input class = "botao_form" type = "submit" name = "entrar" value = "Entrar"/> <input class = "botao_form" type = "reset" name = "limpar" value = "Limpar"/>