Mini Shell

Direktori : /home/sicomercio/domains/sicomerciomppa.com.br/private_html/
Upload File :
Current File : /home/sicomercio/domains/sicomerciomppa.com.br/private_html/fotos.php

<?
 
 include"topo.php"; 
 
	   
$URL_ATUAL= "https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";

 
 ?>

  
  <div class="container" style = "width:99%;" >

 
 

    <title>GALERIA DE FOTOS | Sicomercio</title>
    <meta charset="utf-8">
	
<meta name="netconn " content="HTML-Based Android App">

<meta charset="utf-8">
<link rel="shortcut icon" href="https://www.sicomerciomppa.com.br/logopeq.png" type="image/x-icon">
<link rel="icon" href="https://www.sicomerciomppa.com.br/logopeq.png" type="image/x-icon">
<meta http-equiv="Content-Language" content="pt-br">
	
	<meta name="subject" content="<? echo "$titulo";?>">
<meta name="rating" content="GENERAL">
<meta name="robots" content="index, follow">
<meta name="googlebot" content="index, follow">
<meta name="msnbot" content="index, follow">
<meta name="audience" content="all">
<meta name="REVISIT-AFTER" content="01 days">
<meta lang="pt-br" name="KEYWORDS" content="<? echo "$titulo";?>">
<meta property="og:locale" content="pt_BR">
<meta property="og:url" content="<? echo "$URL_ATUAL";?>">
<meta property="og:title" content="<? echo "$titulo";?>">
<meta property="og:site_name" content="Sicomercio Miguel Pereira / Paty do Alferes">
<meta property="og:description" content="<? echo "$titulo";?>">
<meta property="og:image:alt" content="">
<meta property="og:image" content="https://www.sicomerciomppa.com.br/logonovo.png">
<meta property="og:image:type" content="image/png">
<meta property="og:image:width" content="600">
<meta property="og:type" content="article">
 
<meta property="ia:markup_url" content="<? echo "$URL_ATUAL";?>">
<meta property="og:site_name" content="Sicomercio Miguel Pereira / Paty do Alferes">

<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="<? echo "$URL_ATUAL";?>">
<meta property="twitter:title" content="<? echo "$titulo";?>">
<meta property="twitter:description" content="<? echo "$titulo";?>">
<meta property="twitter:image" content="https://www.sicomerciomppa.com.br/novologo.png">




	
	
	
	</br>
 	
 <a href="index.php" class="btn btn-danger" role="button"><i class="fa fa-reply" aria-hidden="true"></i>
 VOLTAR</a>
 </br>
 </br>

 
 
<? echo "<h2 = \"font-color:#00a6a3;\" ><b>FOTOS</b></h2>";?> 
 
 
 
 
   <center>  
  <select name="catnome" class="form-control  animated  bounceInUp"  style="width:250px; margin-bottom:10px" onChange="window.location.href = this.value;">

  <?   echo" <option value=\"\" disabled selected>FILTRE PELA CATEGORIA</option>";
 
include"adm/conexao.php";
$sql = "SELECT * FROM galeriadefotoscategoria order by categoria asc ";
$res = mysqli_query($con, $sql);
$total = mysqli_num_rows($res);
 
while ($f = mysqli_fetch_array($res))
{
$catt = $f["categoria"];
$idcatt = $f["id"];

echo"  <option value=\"fotos.php?categlist=$idcatt\">$catt</option>";
}
// fecha a conexão
mysqli_close($con);
echo"</select></label>

 
";



?> 
  
  
  
  
  
  
  
  
  </center>
  <br>
 
  <?

// executa a consulta

include"adm/conexao.php";
 
 //  print_r($_GET);
 
     $categlist = $_GET["categlist"]; 
 
 
 
if(empty($categlist))
 {
  $sql = "SELECT * FROM galeriadefotos order by id desc";
 
 exit();
 }
 else
 {
 $sql = "SELECT * FROM galeriadefotos where categoria = '$categlist' order by id desc";
 }

 
 
 
  


$res = mysqli_query($con, $sql);
 
$total = mysqli_num_rows($res);
  echo"<center><h5> <b> $total fotos </b></h5></center>";
while ($f = mysqli_fetch_array($res))
{


$id = $f["id"];
$idd = $f["id"];



$arquivo = $f["arquivo"];
$cat = $f["categoria"];
$legenda = $f["legenda"];
 

   $id = base64_encode($id);
   $id = base64_encode($id);
   

 
 

// conexão e seleção do banco de dados
$conn = mysqlI_connect($host, $user, $pass, $db);
// executa a consulta
$sqll = "SELECT * FROM galeriadefotoscategoria where id = '$cat'";
$ress = mysqli_query($conn, $sqll);
// conta o número de registros
$total = mysqli_num_rows($ress);
while ($f = mysqli_fetch_array($ress))
{
$nomecat = $f['categoria'];
}
 




echo"<div class=\"col-md-3\">
<div class=\"thumbnail\" style=\"background-color:#ffffff; width:100%; margin-botton:55px;\">
 <center>
<a href='show.php?arquivo=adm/fotos/galeria/$arquivo'  data-fancybox='group' data-caption=''> 
<img src='show.php?arquivo=adm/fotos/galeria/$arquivo&pai=caduso&largura=800&altura=550&tipocorte=fill' style='height:180px;' class='img-responsive'>
</a>


<font color=\"#000000\" size=\"2\" face=\"Arial, Helvetica, sans-serif\"><b>$nomecat</b></font>
<font color=\"#000000\" size=\"2\" face=\"Arial, Helvetica, sans-serif\"><b>$legenda</b></font>
 
</center>
 </div>
 </div>
 
 
 ";














}

?>






 
 
</body>
</html>
</p>


</div>
</br>
</br>
</br>
</br>



</p> 
<?
include"rodape.php";
?>


 

Zerion Mini Shell 1.0