Viewing file: promozioni.php (3.83 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<? include('include_dir.php'); include($percorsoLingua.'include/include.php');
$grafica=new Tgrafica(false,false); $grafica->titolo=''; $grafica->keywords=''; $grafica->description=''; $grafica->codicePagina=costantiP::CP_PROMOZIONI; $grafica->codiceBody='page1';
$pagina = isset($_GET['pagina'])?$_GET['pagina']:1;
$grafica->paint(); unset($grafica);
function corpo_pagina() {global $elencoConfigurazioniImmagini; $offerte = array(); $query = 'select * from news where news.pubblicato = 1 order by news.ordinamento asc, data_pubblicazione_inizio'; $result=mysql_query($query); while ($row=mysql_fetch_assoc($result)) { $offerta['id']=$row['id']; $offerta['titolo']=$row['titolo']; $offerta['img']=$row['img']; $offerta['testo']=$row['testo']; $offerta['didascalia']=$row['didascalia']; $offerta['data_pubblicazione_inizio']=$row['data_pubblicazione_inizio']; $offerte[]=$offerta; } ?> <!-- Content ============================================= --> <section id="content">
<div class="content-wrap"> <div class="container clearfix">
<!-- Posts ============================================= --> <div id="posts" class="small-thumbs">
<? foreach ($offerte as $off) { ?> <!-- offerta -->
<div class="entry clearfix"> <div class="entry-image"> <a href="<?echo imgPubb($elencoConfigurazioniImmagini[IMG_RESIZE_DETTAGLIO_PRODOTTO], $off['img'], $ritorno=Timg::RESTITUISCI_URL_IMG);?>" data-lightbox="image"> <img class="image_fade" src="<?echo imgPubb($elencoConfigurazioniImmagini[IMG_CROP_CATEGORIE_BOX], $off['img'], $ritorno=Timg::RESTITUISCI_URL_IMG);?>" alt="Standard Post with Image" /> </a> </div> <div class="entry-c"> <div class="entry-title"> <h2><a href="#"><?echo $off['titolo']?></a></h2> </div> <ul class="entry-meta clearfix"> <li><i class="icon-calendar3"></i>Promozione valida fino al: <?echo estraiDataNews($off['data_pubblicazione_inizio'],1)?></li> </ul> <div class="entry-content"> <?echo $off['testo']?> </div> </div> </div> <!-- /offerta --> <? } ?>
</div><!-- #posts end -->
</div>
</div>
</section><!-- #content end --> <? }
function HeaderAggiuntivi() { ?> <? } ?>
|