select_data('pagini_anunturi', array('id', 'titlu', 'url', 'meta_title', 'meta_description', 'meta_keywords'), "`url` = '$url_pag' ", 'id ASC'); if(count($select_pag_anunt) == '0'){ require_once "404.php"; die(); } foreach($select_pag_anunt as $key=>$select_row_pag_anunt){ $id_pagina = $select_row_pag_anunt['id']; $title = $select_row_pag_anunt['titlu']; $meta_title = $select_row_pag_anunt['meta_title']; $meta_description = $select_row_pag_anunt['meta_description']; $meta_keywords = $select_row_pag_anunt['meta_keywords']; } $conditie_anunt_url = "`id` > 0 and `delete` = '0' and `activ` = '1' "; $ids_anunt = '0,'; $select_pag_anunturi = $conn -> select_data('anunturi_pag', array('id_anunt'), "`id_pagina` = '$id_pagina' "); foreach($select_pag_anunturi as $key=>$select_row_pag_anunturi){ $ids_anunt .= $select_row_pag_anunturi['id_anunt'].','; } $ids_anunt = substr_replace($ids_anunt ,"",-1); $conditie_anunt_url .= " and `id` IN ($ids_anunt) "; include_once("before-new.php"); $_pagi_sql = "SELECT * FROM `anunturi` WHERE $conditie_anunt_url ORDER BY special DESC, id DESC " ; $_pagi_cuantos = '100'; include("assets/includes/classes/paginator.inc2.php"); $result = mysql_num_rows($_pagi_result); ?>
FirstFotoAnunt($id_anunt); $categorieanunt = $Anunt->CategorieAnunt($id_categorie_anunt); $subcategorieanunt = $Anunt->CategorieAnunt($id_subcategorie_anunt); $detaliiclientanunt = $Anunt->DetaliiClient($id_client_anunt); $localitate_anunt = $Anunt->Localitati($id_localitate_anunt); $page_categ = $Anunt->PageCateg($id_categorie_anunt); $page_categ_subcateg = $Anunt->PageCategSubcateg($id_categorie_anunt, $id_subcategorie_anunt); $ext_judet_anunt = $Anunt->Judet($judet_anunt); $adultsubcategorieanunt = $Anunt->AdultCategorieAnunt($id_subcategorie_anunt); $url_anunt = $SITE_URL.''.$page_categ_subcateg.'/'.$url_anunt_1.'&'.$cod_anunt; $descriere_anunt = ''.$judet_anunt.''; $descriere_anunt .= ', '.$localitate_anunt.''; if($firstfotoanunt["file"] == '') { $foto_anunt = 'no-image.jpg'; } else { $filename = 'images/anunturi/'.$firstfotoanunt["file"]; if (file_exists($filename)) $foto_anunt = $firstfotoanunt["file"]; else $foto_anunt = 'no-image.jpg'; } $select_anunt_salvate = $conn -> select_data('anunturi_salvate', array('url'), "`session_id` = '$session_id' and `id_anunt` = '$id_anunt' ", 'id ASC'); $nr_anunt_salvate = count($select_anunt_salvate); $aDate = explode("-", $data_anunt); $day = $aDate[2]; $month = $aDate[1]; $year = $aDate[0]; $utime = mktime(0, 0, 0, $month, $day, $year); $roMonthNames = array('ianuarie', 'februarie', 'martie', 'aprilie', 'mai', 'iunie', 'iulie', 'august', 'septembrie', 'octombrie', 'noiembrie', 'decembrie'); $data_anunt1 = date('d', $utime) . ' ' . ucfirst($roMonthNames[date('n', $utime)-1]) . ' ' . date('Y', $utime); $nr_anunt++; if($nr_anunt %2) $class_listare_anunt = 'listare_anunt'; else $class_listare_anunt = 'listare_anunt_1'; if($special_anunt == '1') $class_listare_anunt = 'listare_anunt_2'; ?>
/
'0') echo $pret_anunt.' '.ucfirst(strtolower($moneda_anunt)); else echo ' '; ?>

'; $BannerAnunturi = new BannerAnunturi; $BannerAnunturi->DisplayBannerAnunturi(3); echo '
'; } ?>
Pagini: '.$_pagi_navegacion.'
'; } ?>
Nu s-a gasit nici un anunt.