Reduceri de grup'.$txt_localitate.''; //echo '
'; echo ''; echo ''; echo ''; echo ''; echo '
 
'; echo ''; echo ''; echo ''; echo ''; echo ''; /* echo ''; */ //echo '
Alege orasul'; echo '
'; echo '
Cauta
'; echo '
'; echo ''; echo '
'; echo '
 
'; if(isset($_GET["cauta_reduceri"]) && $_GET["cauta_reduceri"]<>"") { $cond=" 1=1 and (descriere_scurta like '%".$_GET["cauta_reduceri"]."%' or descriere like '%".$_GET["cauta_reduceri"]."%' or sursa like '%".$_GET["cauta_reduceri"]."%') and "; } else {$cond="1=1 and ";} if(!isset($_GET["oras"]) || $_GET["oras"]=="0") { $query="select date_added, sursa_id,link_comerciant, sursa, id, imagine, descriere_scurta, descriere, pret, pret_initial, economisiti, discount, localitate, firma, DATE_FORMAT(sfarsit_oferta,'%y') as an, DATE_FORMAT(sfarsit_oferta,'%m') as luna, DATE_FORMAT(sfarsit_oferta,'%d') as ziua, DATE_FORMAT(sfarsit_oferta,'%k') as ora, DATE_FORMAT(sfarsit_oferta,'%i') as minute from reduceri where ".$cond." localitate=0 and descriere_scurta<>'' and sfarsit_oferta>=now() group by descriere_scurta order by date_added desc"; } else { $query="select beneficii, date_added, sursa_id,link_comerciant, sursa, id, imagine, descriere_scurta, descriere, pret, pret_initial, economisiti, discount, localitate, firma, DATE_FORMAT(sfarsit_oferta,'%y') as an, DATE_FORMAT(sfarsit_oferta,'%m') as luna, DATE_FORMAT(sfarsit_oferta,'%d') as ziua, DATE_FORMAT(sfarsit_oferta,'%k') as ora, DATE_FORMAT(sfarsit_oferta,'%i') as minute from reduceri where ".$cond." (localitate=0 or localitate=".$id_localitate.") and sfarsit_oferta>now() group by descriere_scurta order by date_added desc"; } //echo $query; $pagination->createPaging($query,20); echo ''; echo ''; echo '
'; $pagination->displayPaging(); echo '
'; //require_once('import_xmluri/class.html2text.php'); while($row=mysql_fetch_array($pagination->resultpage)) { echo '
'; $localitate="National"; $q="select * from orase where id=".$row["localitate"].""; $result1 = mysql_query ($q); while ($row1 = mysql_fetch_array ($result1)) { $localitate=$row1["localitate"]; } if($row["localitate"]==0){$localitate="National";} if(substr($row["imagine"],0,4)!="http"){$row["imagine"]="images/".$row["imagine"];} $descriere=str_replace("
","",$row["descriere"]); $descriere=str_replace("
","",$descriere); $descriere=str_replace("&nbsp;"," ",$descriere); if($row["id"]==21857){$descriere="";} //$h2t =& new html2text($descriere); //$descriere = $h2t->get_text(); if($row["sursa"]=="Zumzi"){$descriere=$row["beneficii"];} if($row["sursa"]=="LocalDeals"){$descriere='';} if($row["sursa"]=="e-redus.ro"){$descriere='';} $descriere_scurta=str_replace("&nbsp;"," ",$row["descriere_scurta"]); echo '
'; echo ''; $economisiti=$row["pret_initial"]-$row["pret"]; if($economisiti>0){$txt_economisiti="Economisiti"; $economisiti=$economisiti." RON";}else{$txt_economisiti="";$economisiti="";} $redim=' width="100" '; $link='reduceri/detalii/'.prepare_url($row["descriere_scurta"]).'-r-'.$row["id"].'.html'; $link='redirect_link.php?action=url&goto='.$row["id"]; //$row["link_comerciant"]; echo ''; echo ''; echo ''; echo ''; echo ''; //echo ''; echo '
'; echo ''; echo '

'.$descriere_scurta.'

'.cutText($descriere,300).' ...  

'; echo ''; echo ''; echo ''; echo '
Pret: '.$row["pret"].' RON
Discount '.$txt_economisiti.'
'.$row["discount"].'% '.$economisiti.'

Detalii
'.ucwords(strtolower($localitate)).'
'; echo '
Timp ramas:
Oferta de la: '.$row["sursa"].'
'; echo '
 
'; } echo ''; echo ''; echo '
'; $pagination->displayPaging(); echo '
'; echo '
'; ?>

 
 
 
 

Reduceri recomandate