include ('inc_head.php'); ?>
/*
if ($_GET['sottosezione']) {
$sottosezione = (int) $_GET['sottosezione'];
if ($_GET['sezione']) $sezione = (int) $_GET['sezione'];
echo get_boxes_interna('rel_contenuti_guida', $sottosezione, $sezione);
} else header ("location: index.htm");
*/
// TITOLO CATEGORIA
$id_sez = (int) $_GET['sezione'];
if ($id_sez!='' && $id_sez!='0'){
$query_cat="SELECT * FROM ".$tbl_prefix."rel_sottoguida WHERE attivo='1' and id = '".$_GET['sottosezione']."' ORDER BY posizione";
$res_cat=mysql_query($query_cat) or die(mysql_error());
$dati_cat=mysql_fetch_assoc($res_cat);
$nome_cat=$dati_cat['nome'];
//echo "
$nome_cat
";
}
?>
include ('inc_box_sx.php'); ?>
$id = (int) $_GET['sottosezione'];
//$res = safe_query("SELECT * FROM ".$tbl_prefix."rel_sottoguida WHERE id_rel = '$id' LIMIT 1");
$res = safe_query("SELECT * FROM ".$tbl_prefix."rel_contenuti_guida WHERE attivo='1' and id_rel = '$id' ORDER BY posizione");
// recupera dati
$immagine="";
$cc=1;
$num_art=mysql_num_rows($res);
/*if($num_art=='1'){
header ("location: index.htm");
}*/
while($db_data = mysql_fetch_array($res)){
$titolo = $db_data['nome'];
$id = $db_data['id'];
$testo = $db_data['testo'];
$abstract = $db_data['abstract'];
// 18/08/06 Corretto il campo da immagine a img
if ($db_data['img'] >0)
{$immagine = "
";}
else{$immagine = "";}
//Ruggero 05/04/2011
$link="sezione-{$_GET['sezione']}-sottosezione-{$_GET['sottosezione']}-id-{$db_data['id']}-{$db_data['nome']}.htm";
echo <<
BBOX;
/*
if ($cc==1 || $cc==3 || $cc==5) {
echo "
";
}
$cc++;
* */
}
?>
include ('inc_bottom.php'); ?>