//è stato inserito un controllo sulla data per far sparire il link dopo una certa data (es. Pasqua)
//giorno di scadenza (alla mezzanotte)
$giorno=06;
//mese di scadenza
$mese=01;
//annno di scadenza
$anno=2012;
if (time()<=mktime(0,0,0,$mese,$giorno+1,$anno) ) {
?>
|
}
else { ?>
|
}
?>
|
|
|
if ($nomepagina==index)
include ('prodotti_top.php')
?>
$sql="select * from ".$sezioni;
if ($psw=='cgln11') {$access='on';}?>
$result=mysql_query($sql,$conn);
while ($datarecord=mysql_fetch_row ($result)) {
if ($sezione==$datarecord[1]) {
echo "
PRODOTTI - ".$datarecord[2]." |
|
".stripslashes(stripslashes($datarecord[4]))."
|
";
$sql2="select * from ".$prodotti." where (sezione='$datarecord[1]' and lingua='it')";
$result2=mysql_query($sql2,$conn);
echo"";
}
}?>
|
|
include("../admin/config.php");
?>
|
|
|
|
|
|
|
$mex_nonews='Al momento la sezione AREA TECNICA e vuota!
';
if ($lang==it) {$lang2=$lang;} else {$lang2=uk;}
$sql="select * from ".$news2." where (lingua='$lang2' and tipo='areatec') order by id_news desc";
if(!($result=mysql_query($sql,$conn))) {
echo ("Error selecting data from NEWS table.\n");
}else{
while ($datarecord=mysql_fetch_row ($result)) {
if (time()>$datarecord[9]) {continue;}
if (time()<$datarecord[10]) {continue;}
$mex_nonews='';
} }
if(!($result=mysql_query($sql,$conn))) { echo ("Error selecting data from NEWS table.\n"); }else{
while ($datarecord=mysql_fetch_row ($result)) {
if (time()>$datarecord[9]) {continue;}
if (time()<$datarecord[10]) {continue;}
$data=date("d/m/Y G.i:s",$datarecord[1]);
$i++;
if ($i>10) {break;}
$cod=$datarecord[0];
echo "
".stripslashes($datarecord[2])." ".stripslashes($datarecord[3])." |
|
\n"; } }
?>
|
|
|
include("../admin/config.php");
if ($lang==it) {$lang2=$lang;} else {$lang2=uk;}
$sql="select * from ".$news2." where (lingua='$lang2' and tipo='news') order by id_news desc";
if(!($result=mysql_query($sql,$conn)))
{echo ("Error selecting data from NEWS table.\n");}else
{
while ($datarecord=mysql_fetch_row ($result))
{
if (time()<$datarecord[8]) {continue;}
if (time()>$datarecord[9]) {continue;}
$cod=$datarecord[0];
echo "
|
NEWS |
\n";
break;
}
}
?>
$mex_nonews='Al momento la sezione AREA TECNICA e vuota!
';
if ($lang==it) {$lang2=$lang;} else {$lang2=uk;}
$sql="select * from ".$news2." where (lingua='$lang2' and tipo='news') order by id_news desc";
if(!($result=mysql_query($sql,$conn))) {
echo ("Error selecting data from NEWS table.\n");
}else{
while ($datarecord=mysql_fetch_row ($result)) {
if (time()>$datarecord[9]) {continue;}
if (time()<$datarecord[10]) {continue;}
$mex_nonews='';
} }
if(!($result=mysql_query($sql,$conn))) { echo ("Error selecting data from NEWS table.\n"); }else{
while ($datarecord=mysql_fetch_row ($result)) {
if (time()>$datarecord[9]) {continue;}
if (time()<$datarecord[10]) {continue;}
$data=date("d/m/Y G.i:s",$datarecord[1]);
$i++;
if ($i>10) {break;}
$cod=$datarecord[0];
echo "
".stripslashes($datarecord[2])." ".stripslashes($datarecord[3])." |
|
\n"; } }
?>
|
|
|
|
|
|
|
|
|
|
|