include "sessioni.php";
include "config.php";
?>
Allevamento per selezione del cane da Pastore Maremmano Abruzzese
 |
|
|
|
$rapp2 = 0.75;
$indimg = "photo_prod/";
$qq = "select * from prodotti where categoria like '4||%' and abilita = 'si' ";
$eqq = mysql_query($qq);
$num = mysql_num_rows($eqq);
if (($num % 4) == 0){
$righe = ($num / 4);
}
else
{
$righe = intval($num / 4) + 1;
}
//
for ($r = 1; $r <= $righe; $r++){
print "";
for ($c = 1; $c <= 4; $c++){
print "";
$rqq = mysql_fetch_array($eqq);
if ($rqq){
$idphoto = $rqq['idprodotto'];
$pedigree = $rqq['pedigree'];
$expo = $rqq['descrizione1'];
$descrizione = $rqq['descrizione'];
$nomec = $rqq['nomeprodotto'];
$qq2 = "select * from prod_photo where idphoto='$idphoto' and img <> '' order by idevento limit 0,1 ";
$eqq2 = mysql_query($qq2);
$num2 = mysql_num_rows($eqq2);
if($num2 == 1){
$rqq2 = mysql_fetch_array($eqq2);
$img2 = $rqq2['img'];
$iddesc = $rqq2['idevento'];
$style = "border:1px solid white";
}
else
{
$img2 = "vuoto.gif";
$style = "border:0px solid white";
}
}
else
{
$pedigree = "";
$expo = "";
$descrizione = "";
$img2 = "vuoto.gif";
$style = "border:0px solid white";
$nomec = "";
}
$dimimg = getimagesize($base.$indimg.$img2);
$widthimg = $dimimg[0];
$heightimg = $dimimg[1];
if ($widthimg >= $heightimg){
$rapp = ($heightimg / $widthimg);
if ($rapp > $rapp2){
$dimt = "&h=124&zc=1";
}
else
{
$dimt = "&w=165&zc=1";
}
}
else
{
$dimt = "&h=124&zc=1";
}
?>
print $nomec; ?> |
if ($img2 == "vuoto.gif"){
?>
}
else
{
?>
}
?>
|
|
if (strlen(trim($expo)) > 2){
?>
Expo Results
|
}
?>
if (strlen(trim($pedigree)) > 2){
?>
Show Pedigree
|
}
?>
print " | ";
}
print " ";
print " | ";
}
?>
|
selection of the "Maremmano-Abruzzese" sheepdog by Agostino Molinelli, Tel.+39.335.652.68.22
|
|
|