<?php require_once('../Connections/conreceitas.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  if (PHP_VERSION < 6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  }

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}

mysql_select_db($database_conreceitas, $conreceitas);
$query_Rsaves = "SELECT * FROM receitas WHERE categoria = 'AVES' ORDER BY titulo ASC";
$Rsaves = mysql_query($query_Rsaves, $conreceitas) or die(mysql_error());
$row_Rsaves = mysql_fetch_assoc($Rsaves);
$totalRows_Rsaves = mysql_num_rows($Rsaves);
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Documento sem título</title>
   <!--<![SCRIPT]-->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script>
<script src="../bootstrap/js/bootstrap.js"></script>
<script src="../css/respond.min.js"></script>
<!--<![CSS]-->
<link href="../css/boilerplate.css" rel="stylesheet" type="text/css">
<link href="../css/estilos.css" rel="stylesheet" type="text/css">
<link href="../css/navbar.css" rel="stylesheet" type="text/css">
<link href="../bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css">


<![endif]-->
</head>
<body>
<div class="gridContainer clearfix">

  <div id="LayoutDiv1"><img src="../imagens/banner.png"></div><!--<![FIMLAYOUTDIV]-->

  <div class="menu">
  
<nav class="navbar navbar-expand-lg navbar-dark " style="background-color:#B8860B">
  <a class="navbar-brand" href="#">PENNET</a>
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>

  <div class="collapse navbar-collapse" id="navbarSupportedContent">
    <ul class="navbar-nav mr-auto">
      
      
      <li class="nav-item dropdown">
        <a class="nav-link dropdown-toggle" href="index.php" role="button" data-toggle="dropdown" aria-expanded="false">
          RECEITAS
        </a>
        <div class="dropdown-menu">
          <a class="dropdown-item" href="#">AVES</a>
          <a class="dropdown-item" href="#">BEBIDAS</a>
                    <a class="dropdown-item" href="#">BOLINHOS</a>
          <a class="dropdown-item" href="#">LEGUMES</a>
                    <a class="dropdown-item" href="#">DOCES</a>
          <a class="dropdown-item" href="#">MOLHOS</a>
                    <a class="dropdown-item" href="#">MASSAS</a>
          <a class="dropdown-item" href="#">PASTÉIS</a>
                    <a class="dropdown-item" href="#">PÃES</a>
          <a class="dropdown-item" href="#">PEIXES E FRUTOS DO MAR</a>
                    <a class="dropdown-item" href="#">PATÊS</a>
          <a class="dropdown-item" href="#">SOPAS</a>
                    <a class="dropdown-item" href="#">SALGADOS</a>
          <a class="dropdown-item" href="#">TORTAS</a>
                    <a class="dropdown-item" href="#">TEMPEROS</a>
          <a class="dropdown-item" href="#">BEBIDAS</a>
              <a class="dropdown-item" href="#">DIVERSOS</a>
        </div>
      </li>
      
    </ul>
    
<form action="../resultados.php" method="POST" name="buscar" target="_blank" id="buscar">
      <label>
 Nome da Receita.
<input name="buscar" type="text"  id="buscar" placeholder="Nome da Receita" />
</label>
    <input name="button" type="submit" id="button" value="Procurar"  class="bota"/>
</form>
  </div>
</nav>
</div><!--<![FIM MENU]-->

<div class="receitas_titulo"> AVES </div>
  <?php do { ?>    
<div class="detalhesgeralconteudo">

     <a href="receitasDetalhes.php/?id=<?php echo $row_Rsaves['id']; ?>=<?php echo $row_Rsaves['id']; ?>"><?php echo $row_Rsaves['titulo']; ?></a>
      </div>
 <?php } while ($row_Rsaves = mysql_fetch_assoc($Rsaves)); ?>
 
 <div class="receitas_titulo"> </div>
</body>
</html>
<?php
mysql_free_result($Rsaves);
?>
