Foreach
<?php
session_start();
if ($_SESSION['logado'] == false) {
header("location: ../../loginAdmin.php");
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Nimal Pet</title>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<style>
h1.page-header {
margin-top: -5px;
}
.sidebar {
padding-left: 0;
}
.main-container {
background: #FFF;
padding-top: 15px;
margin-top: -20px;
}
.footer {
width: 100%;
}
.nav-pills>li.active>a, .nav-pills>li.active>a:hover, .nav-pills>li.active>a:focus {
color: #fff;
background-color: #428bca;
}
.margintop20 {
margin-top:20px;
}
.nav-pills>li>a {
border-radius: 0px;
}
a {
color: #000;
text-decoration: none;
}
a:hover {
color: #000;
text-decoration: none;
}
.nav-stacked>li+li {
margin-top: 0px;
margin-left: 0;
border-bottom:1px solid #dadada;
border-left:1px solid #dadada;
border-right:1px solid #dadada;
}
.active2 {
border-right:4px solid #428bca;
}
.button-primary {
font-family: "Lato", sans-serif;
border-radius: 3px;
background-color: #eff2f4;
color: #40484A;
cursor: pointer;
line-height: 1em;
text-align: center;
text-decoration: none;
display: inline-block;
transition: all .3s ease;
border: 1px solid #e0e6ea;
min-width: 240px;
text-transform: uppercase;
padding: 18px;
font-weight: 700;
font-size: 12px;
/*
Added CSS
*/
vertical-align: middle;
transform: translateZ(0);
}
/* Gray: #E0E6EA */
/* Green: #77B747 */
/* Blue: #44B5F3 */
/* Border Fade Original */
.border-fade {
backface-visibility: hidden;
-moz-osx-font-smoothing: grayscale;
transition-property: box-shadow;
}
.border-fade:hover{
border: 1px solid transparent;
box-shadow: inset 0 0 0 4px #77B747, 0 0 0 1px rgba(0, 0, 0, 0);
}
.border-fade-2 {
backface-visibility: hidden;
-moz-osx-font-smoothing: grayscale;
transition-property: box-shadow;
}
.border-fade-2:hover{
border: 1px solid transparent;
box-shadow: inset 0 0 0 4px #44B5F3, 0 0 0 1px rgba(0, 0, 0, 0);
}
.border-fade-3 {
backface-visibility: hidden;
-moz-osx-font-smoothing: grayscale;
transition-property: box-shadow;
}
.border-fade-3:hover{
border: 1px solid transparent;
color: black;
box-shadow: inset 0 0 0 4px #E0E6EA, 0 0 0 1px rgba(0, 0, 0, 0);
}
/* Text gradient */
.text-gradient {
color: ##40484A; /*non-webkit fallback*/
background-image: linear-gradient(to left, #26BDA6, #FF9F65, #77B747, #26BDA6, #000, #000, #000, #000);
background-size: auto 250%;
background-position: 0 100%;
transition: background-position .75s;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.text-gradient:hover {
background-position: 100% 0;
cursor: pointer;
}
/* Text gradient and Border Combo */
.text-border {
color: ##40484A; /*non-webkit fallback*/
background-image: linear-gradient(to left, #26BDA6, #FF9F65, #77B747, #26BDA6, #000, #000, #000, #000);
background-size: auto 250%;
background-position: 0 100%;
transition: all .75s ease;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.text-border:hover {
background-position: 100% 0;
cursor: pointer;
border: 1px solid transparent;
color: black;
box-shadow: inset 0 0 0 4px #E0E6EA, 0 0 0 1px rgba(0, 0, 0, 0);
}
li{
list-style: none;
}
#panel-produto:hover{
background-color: #eeeeee;
}
.panel-produto{
width: 20%;
}
.panel-produto{
text-align: center;
}
#produto:hover {
background:#f6f6f6;
}
.produto{
padding: 10px;
}
.productbox {
background-color:#ffffff;
padding:10px;
margin:5px 0;
border: 1px solid #cfcfcf;
-moz-box-shadow: 2px 2px 4px 0px #cfcfcf;
-webkit-box-shadow: 2px 2px 4px 0px #cfcfcf;
-o-box-shadow: 2px 2px 4px 0px #cfcfcf;
box-shadow: 2px 2px 4px 0px #cfcfcf;
filter:progid:DXImageTransform.Microsoft.Shadow(color=#cfcfcf, Direction=134, Strength=4);
}
.producttitle {
font-weight:bold;
font-size:1.2em;
padding:5px 0 5px 0;
}
.producttext {
}
.productprice {
border-top:1px solid #dadada;
padding-top:5px;
}
.pricetext {
font-weight:bold;
font-size:1.4em;
}
</style>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<img src="../images/Rhenan (1).png" height="100" width="100" align="center" id="fh5co-logo" >
</a>
</div>
</div>
</nav>
<div class="container-fluid">
<div class="row">
<?php foreach ($listaProdutos as $lista): ?>
<div class="col-xs-6 col-lg-4">
<div class="productbox">
<img src="<?= $lista['imagem'] ?>" class="img-responsive">
<div class="producttitle"></div>
<p class="text-justify"></p>
<!-- <h5><?= $lista['licenca'] ?></h5> -->
<!-- <h5><?= $lista['raca'] ?></h5> -->
<h5> Sexo: <?= $lista['sexo'] ?></h5>
<h5> Tem Pedigree ?<?= $lista['pedigree'] ?></h5>
<h5> Qual seu tamanho ?<?= $lista['tamanho'] ?></h5>
<h5> Qual seu Peso ?<?= $lista['peso'] ?></h5>
<h5> Qual sua Idade ?<?= $lista['idade'] ?></h5>
<h5> Qual seu valor ?<?= $lista['valor'] ?></h5>
<h5> Aceita Troca ?<?= $lista['troca'] ?></h5>
<strong> Nome do Animal:<?= $lista['nome'] ?></strong><br>
</address>
<div class="productprice">
<div class="pricetext">
<a href="#" class="btn btn-warning btm-sm" role="button">Enviar Email <span class=""></span></a>
</div>
</div>
</div>
</div>
<?php endforeach; ?>
<!-- Termina Venda-->
<div class="container-fluid">
<div class="row">
<?php foreach ($listaProdutosComprar as $lista): ?>
<div class="col-xs-6 col-lg-4">
<div class="productbox">
<img src="<?= $lista['imagem'] ?>" class="img-responsive">
<div class="producttitle"></div>
<p class="text-justify"></p>
<!-- <h5><?= $lista['licenca'] ?></h5> -->
<!-- <h5><?= $lista['raca'] ?></h5> -->
<h5><?= $lista['sexo'] ?></h5>
<h5><?= $lista['pedigree'] ?></h5>
<h5><?= $lista['tamanho'] ?></h5>
<h5><?= $lista['idade'] ?></h5>
<h5><?= $lista['detalhe'] ?></h5>
</address>
<div class="productprice">
<div class="pricetext">
<a href="#" class="btn btn-warning btm-sm" role="button">Enviar Email <span class=""></span></a>
</div>
</div>
</div>
</div>
<?php endforeach; ?>
<!-- Comprar -->
<div class="container-fluid">
<div class="row">
<?php foreach ($listaProdutosDoacao as $lista): ?>
<div class="col-xs-6 col-lg-4">
<div class="productbox">
<img src="<?= $lista['imagem'] ?>" class="img-responsive">
<h5 class="text-center"><?= $lista['tipo'] ?></h5>
<h5 class="text-center"><?= $lista['raca'] ?></h5>
<!-- <h5><?= $lista['licenca'] ?></h5> -->
<!-- <h5><?= $lista['raca'] ?></h5> -->
<h5><?= $lista['pedigree'] ?></h5>
<h5><?= $lista['tamanho'] ?></h5>
<h5><?= $lista['peso'] ?></h5>
<h5><?= $lista['idade'] ?></h5>
<h5><?= $lista['detalhe'] ?></h5>
</address>
<div class="productprice">
<div class="pricetext">
<a href="#" class="btn btn-warning btm-sm" role="button">Enviar Email <span class=""></span></a>
</div>
</div>
</div>
</div>
<?php endforeach; ?>
<!-- Fim Doação-->
<div class="container-fluid">
<div class="row">
<?php foreach ($listaProdutosCruzar as $lista): ?>
<div class="col-xs-6 col-lg-4">
<div class="productbox">
<img src="<?= $lista['imagem'] ?>" class="img-responsive">
<h5 class="text-center"><?= $lista['tipo_animal'] ?></h5>
<h5 class="text-center"><?= $lista['raca'] ?></h5>
<!-- <h5><?= $lista['licenca'] ?></h5> -->
<!-- <h5><?= $lista['raca'] ?></h5> -->
<h5><?= $lista['sexo'] ?></h5>
<h5><?= $lista['pedigree'] ?></h5>
<h5><?= $lista['tamanho'] ?></h5>
<h5><?= $lista['peso'] ?></h5>
<h5><?= $lista['idade'] ?></h5>
<h5><?= $lista['detalhe'] ?></h5>
<div class="productprice">
<div class="pricetext">
<a href="#" class="btn btn-warning btm-sm" role="button">Enviar Email <span class=""></span></a>
</div>
</div>
</div>
</div>
<?php endforeach; ?>
<footer class="pull-left footer">
<p class="col-md-12">
<hr class="divider">
Copyright © 2017 <a href="http://nimalpet.com.br">NimalPet</a>
</p>
</footer>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>
Está me passando um erro de Index e com Foreach
Discussão (2)
Carregando comentários...