URLREESCRITA}"); } $Texto = $oBD->QueryFetchOne("SELECT * FROM cms WHERE cms_id = 5"); $idCategoria = $oBD->stripQuotes($_REQUEST['id'])==""?false:$oBD->stripQuotes($_REQUEST['id']); $sBusca = $oBD->stripQuotes($_REQUEST['busca']); $sBusca = str_replace(' ','%',$sBusca); if($idCategoria){ // por categoria $sWhere = "and bc.bcat_url = '".$idCategoria."'"; $aCategoria = $oBD->QueryFetchOne("SELECT * FROM blog_categoria bcp WHERE bcp.bcat_id = '".$idCategoria."'"); } if($sBusca){ // busca por palavras $sWhere = "and (bpos_titulo like '%".$sBusca."%' or bpos_texto like '%".$sBusca."%' or bpos_titulo like '%".htmlspecialchars($sBusca)."%' or bpos_texto like '%".htmlspecialchars($sBusca)."%')"; } $aMeses = array( '01'=>"Jan", '02'=>"Fev", '03'=>"Mar", '04'=>"Abr", '05'=>"Mai", '06'=>"Jun", '07'=>"Jul", '08'=>"Ago", '09'=>"Set", '10'=>"Out", '11'=>"Nov", '12'=>"Dez" ); ####### LISTA POSTS $sPosts = " SELECT distinct bp.*, date_format(bpos_data, '%d') as dia, date_format(bpos_data, '%m') as mes, date_format(bpos_data, '%Y') as ano FROM blog_post bp LEFT JOIN blog_categoria_post bcp ON bp.bpos_id = bcp.bpos_id LEFT JOIN blog_categoria bc ON bcp.bcat_id = bc.bcat_id WHERE bpos_status = 'A' ".$sWhere. ' ' .$sWhere." AND bpos_idioma = '".$oBD->stripQuotes($_SESSION['cli_idioma'])."' ORDER BY bpos_data desc, bp.bpos_id desc"; $aPosts = $oBD->QueryFetchAll($sPosts); $sMetaTitulo = $Texto['cms_titulo']; $sMetaDescricao = $Texto['cms_meta_descricao']; $sMetaKeywords = $Texto['cms_meta_palavras']; ?> newClass('Class_MOD_Categoria'); $aCategorias = $oCategoria->getArray(array("and"=>array("cat_status = "=>"A"))); $marginCategorias = -((count($aCategorias)/2)*138-30); $oMarcas = $oLib->newClass('Class_MOD_Marca'); $aMarcas = $oMarcas->getArray(array("and"=>array("mar_status = "=>"A")),0,array('mar_ordem')); $aConfiguracao = $oBD->QueryFetchOne("SELECT * FROM configuracao"); ?>

Tangleica

Blog

$value) { ?>


PATHABSOLUTO.'upload/blog/post/'.$value['bpos_id'].'.jpg')) {?>
QueryFetchOne("SELECT * FROM configuracao LIMIT 1"); ?>

Contato


Fone:

Entre em Contato