include("sx.php"); ?>
|
|
if (!$q=mysql_query("select * from 05_corsi order by id desc limit 0, 3", $db)) die(mysql_error());
$EVENTI=array(); $i=0;
while($r=mysql_fetch_object($q)) {
list($ai,$mi,$di)=split("-",$r->data_in);
list($af,$mf,$df)=split("-",$r->data_out);
$EVENTI[$i]="$di.$mi.$ai".(($r->data_out!="0-0-0")?" ($df.$mf.$af)":"")." ".strtoupper($r->luogo)." $r->nome";
if ($i==0) $EVENTI[$i].=" ".substr(strip_tags($r->descrizione),0,100)."";
$EVENTI[$i].=" [ dettagli ]";
$i++;
}
?>
echo"".$EVENTI[0]." ".$EVENTI[1]; ?> |
|
|
|
|
//if (!$q=mysql_query("select * from 05_eventi where data_in>='".date("Y-m-d")."' order by id desc limit 0, 3", $db)) die(mysql_error());
if (!$q=mysql_query("select * from 05_eventi where id_tipo='7' order by id desc limit 0, 3", $db)) die(mysql_error());
$EVENTI=array(); $i=0;
while($r=mysql_fetch_object($q)) {
list($ai,$mi,$di)=split("-",$r->data_in);
list($af,$mf,$df)=split("-",$r->data_out);
$EVENTI[$i]="$di.$mi.$ai".(($r->data_out!="0-0-0")?" ($df.$mf.$af)":"")." ".strtoupper($r->luogo)." $r->nome";
if ($i==0) $EVENTI[$i].=" ".substr(strip_tags($r->descrizione),0,100)."";
$EVENTI[$i].=" [ dettagli ]";
$i++;
}
?>
echo"".$EVENTI[0]." ".$EVENTI[1]; ?> |
|
|
|
|
if (!$q=mysql_query("select * from 05_gallery where homepage='s'", $db)) die("err1 ".mysql_error());
$r=mysql_fetch_object($q);
?>
$foto="fotogallery/".$r->fotoH;
//echo"-$foto- ";
$LX=400; $LY=350;
list($width, $height, $type, $attr) = getimagesize("$foto");
$dimensioni="";
if ($width>=$height) { if($width>$LX) $dimensioni="width=$LX"; }
else { if($height>$LY) $dimensioni="height=$LY"; }
echo"";
?>
|
|
|
|
|
//if (!$q=mysql_query("select * from 05_eventi where data_in>='".date("Y-m-d")."' order by id desc limit 0, 3", $db)) die(mysql_error());
if (!$q=mysql_query("select * from 05_eventi where id_tipo!='7' order by id desc limit 0, 3", $db)) die(mysql_error());
$EVENTI=array(); $i=0;
while($r=mysql_fetch_object($q)) {
list($ai,$mi,$di)=split("-",$r->data_in);
list($af,$mf,$df)=split("-",$r->data_out);
$EVENTI[$i]="$di.$mi.$ai".(($r->data_out!="0-0-0")?" ($df.$mf.$af)":"")." ".strtoupper($r->luogo)." $r->nome";
if ($i==0) $EVENTI[$i].=" ".substr(strip_tags($r->descrizione),0,250)."";
$EVENTI[$i].=" [ dettagli ]";
$i++;
}
?>
echo"".$EVENTI[0]; ?>
|
echo"".$EVENTI[1]; ?> |
[
visualizza tutte le news ] |
|
|
|
|