<title>Escritor De Software</title> <link rel="stylesheet" type="text/css" href="style/style.css" /> </head> <body> <div id="topo"> <img src="images/logo.png" alt="" /> </div> <div id="conteiner"> <?php if ($_GET['idsoftware']) { // vou fechar isso lá no final $_SESSION['meuSoftwareId'] = $_GET['idsoftware']; $conexao = Conexao::retornaConexaoComBanco(); $softwaredao = new SoftwareDAO(); $softwaredao->setConexao($conexao); $software = new Software(); $software->setId($_GET['idsoftware']); $software = $softwaredao->retornaSoftwareDetalhado($software); ?> <div id="esquerda"> <?php echo '<h1>' . $software->getNome() . '</h1>'; echo '<h2>Informações:</h2> <p>Linguagem: ' . $software->getLinguagem(); if ($software->getBancoDeDados()) {
} ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Escritor De Software</title> <link rel="stylesheet" type="text/css" href="style/style.css" /> </head> <body> <?php if ($_GET['id_atributo']) { //iremos deletar um atributo aqui. $atributo = new Atributo(); $atributo->setId($_GET['id_atributo']); $atributodao = new AtributoDAO(); $atributodao->setConexao(Conexao::retornaConexaoComBanco()); if ($atributodao->deletarAtributo($atributo)) { echo 'Atributo deletado com sucesso<META HTTP-EQUIV="REFRESH" CONTENT="5; URL=software.php"> <a href="javascript:window.history.go(-1)">Voltar</a>'; } else { echo 'Falha. <a href="javascript:window.history.go(-1)">Voltar</a>'; } } ?> </body> </html>