execute(SQLRubriche::$LIST_SIMPLE.SQLRubriche::$LIST_ONE,array($id_sezione)); $sezione = $sel_sezione->next(); //estraggo gli eventuali testi collegati $sel_nw = $db -> execute(SQLTesti::$LIST_SIMPLE_ALLEGATO.SQLTesti::$LIST_VISIBILE.SQLTesti::$LIST_RUBRICA.SQLTesti::$LIST_DATA_BACHECA.SQLTesti::$LIST_ORDER_DATA_DESC,array($_allegatoTIPO_DOC,$id_sezione,$today_data_from,$today_data_to)); //Estraggo gli anni per l'archivio della bacheca $sel_anni = $db -> execute(SQLTesti::$LIST_ANNI_BACHECA.SQLTesti::$LIST_VISIBILE.SQLTesti::$LIST_RUBRICA.SQLTesti::$LIST_GROUP_ANNO.SQLTesti::$LIST_ORDER_DATA_ASC,array($_allegatoTIPO_DOC,$id_sezione)); $__titolo = Utils::FiltroARRAY($sezione, "titolo")." - ".$__titolo; include ("../_include/templateTop.php"); echo "
"; echo "

"; echo Utils::FiltroARRAY($sezione, "titolo")." ".$year; if($sel_anni -> rows()> 0){ while($anni = $sel_anni -> next()){ $anno = Utils::FiltroARRAY($anni, "anno"); if($anno != $year){ echo "".$anno.""; } } } echo "

"; if(Utils::FiltroARRAY($sezione, "abstract") != ""){ echo "
".Utils::FiltroARRAY($sezione, "abstract")."
"; } if($sel_nw -> rows() > 0 ){ echo "
"; $i =1; while($nw = $sel_nw -> next()){ $id_testo_n = Utils::FiltroARRAY($nw, "id_testo"); $titolo_n = Utils::FiltroARRAY($nw, "titolo"); $abstract_h = strip_tags(Utils::FiltroARRAY($nw, "abstract")); if(strlen($abstract_h) > 350){ $abstract_n = substr($abstract_h,0,350)."..."; }else{ $abstract_n = $abstract_h; } $anteprima_testo_n = Utils::FiltroARRAY($nw, "fs_file"); $link_testo_n = Utils::FiltroARRAY($nw, "link_testo"); if($link_testo_n == "")$link_testo_n = $_path_base."content/content.php?id=".$id_testo_n; $giorno_n = Utils::formatDate(Utils::FiltroARRAY($nw, "dt_data"),"%d"); $mese_n = Utils::formatDate(Utils::FiltroARRAY($nw, "dt_data"),"%m"); $download_link = $_path_testi.$anteprima_testo_n; echo ""; $i++; } echo "
"; echo "
"; }else{ echo "
"; echo "
"; echo "
".LANG::$_L_bacheca_noresult."
"; echo "
"; echo "
"; } echo "
"; include ("../_include/templateBottom.php"); ?>