felipebaum
(usa Linux Mint)
Enviado em 08/05/2013 - 22:37h
<!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>Editora Eureka</title>
<style type="text/css">
#logo_top {
position: absolute;
width: 1024px;
height: 160px;
z-index: 1;
left: 173px;
background-color: #FF0000;
}
#corpo {
position: absolute;
width: 1024px;
height: 478px;
z-index: 2;
left: 173px;
top: 170px;
background-color: #CCCCCC;
font-weight: bold;
}
#apDiv1 {
position: absolute;
left: 172px;
top: 649px;
width: 1024px;
height: 36px;
z-index: 3;
}
#corpo table tr td p {
font-size: 36px;
}
#apDiv2 {
position: absolute;
left: 344px;
top: 279px;
width: 502px;
height: 135px;
z-index: 4;
}
</style>
</head>
<body>
<form action="biblioteca.php" method="POST">
<div id="logo_top"><img src="../Eureka.jpg" width="1024" height="160" alt="Logomarca Eureka" /></div>
<div id="corpo">
<p> </p>
<table width="845" height="212" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="157" height="72"><img src="../inicio.jpg" alt="Inicio" width="138" height="47" usemap="#Map" border="0" /></td>
<td width="688" rowspan="3" valign="top"><p> </p>
<p> </p></td>
</tr>
<tr>
<td height="78"><img src="../biblioteca.jpg" alt="biblioteca" width="136" height="47" usemap="#Map2" border="0" /></td>
</tr>
<tr>
<td height="62"><img src="../Contatos.jpg" alt="Contato" width="136" height="47" usemap="#Map3" border="0" /></td>
</tr>
</table>
</div>
<div id="apDiv1"><img src="../Barra.jpg" width="1024" height="41" alt="barra inferior" /></div>
<div id="apDiv2">
<td style="text-align:right;"><form name="busca"><input type="text" name="txtBusca" placeholder="Digite o livro a ser encontrado" size="35" required />
<button name="btnFind" type="submit" >Buscar</button></form></td></tr>
<?php
$find=$_REQUEST['txtBusca'];
if ($find <> '') {
include_once("conecta2.php");
mysql_select_db($_GET['banco']);
$result = mysql_query("");
$result = "select * from tblivros a, tbautores b where a.nome_livro";
$result.=" like '%";
$result.="$find";
$result.="%' and a.id_autor = b.id;";
$query = mysql_query($result);
if(!$query) {
die(mysql_error()); // TODO: better error handling
}else{
echo "<table><tr>";
while($row = mysql_fetch_array($query))
{
echo '<td> id: '.$row['id'];
echo '</td><td><br/> Id Autor: '.$row['Id_autor'];
echo '</td><td><br/> Nome Livro: '.$row['nome_livro'];
echo '</td><td><br/> Genero.: '.$row['genero'];
echo '</td><td><br/> Resenha: '.$row['resenha'];
echo '</td><td><br/> Capa: '.$row['capa'];
echo '</td><td><br/> Nome Autor: '.$row['nome_autor'];
}
echo "</tr></table>";
}
}
?>
</div>
<map name="Map" id="Map">
<area shape="rect" coords="4,5,133,44" href="../index.html" alt="Inicio " />
</map>
<map name="Map2" id="Map2">
<area shape="rect" coords="3,3,157,54" href="../biblioteca.html" alt="Biblioteca" />
</map>
<map name="Map3" id="Map3">
<area shape="rect" coords="4,6,130,42" href="../contato.html" alt="Contato" />
</map>
</body>
</html>