Execute($req); while ($obj = $BD->RecordSet($rs)) { switch ($obj->objettype_id) { case 1 : $titrepubli = $obj->objet_data; break; case 2 : $imagerub = "../medias/".$obj->objet_data; break; case 3 : $accrochepubli = $obj->objet_data; break; case 4 : $auteurpubli = $obj->objet_data; break; case 5 : $lienpubli = $obj->objet_data; break; case 6 : $contenudroite = $obj->objet_data; break; case 7 : $pres = $obj->objet_data; break; case 27 : $soustitrepubli = $obj->objet_data; break; } } $nom_page_modif = xtTraiter($page_nom); $contenudroite = str_replace("
\"".$altrub."\"
".$pres."
"; if ($imagerub != "") { $temp_html .= "";} if ($titrepubli != "") { $temp_html .= "".$titrepubli."

";} if ($auteurpubli != "") { $temp_html .= "".$auteurpubli."
";} if ($soustitrepubli != "") { $temp_html .= "".$soustitrepubli."
";} if ($accrochepubli != "") { $temp_html .= "
".$accrochepubli."
";} if ($contenupubli != "") { $temp_html .= "
".$contenupubli."
";} if ($lienpubli != "") { $temp_html .=" en savoir plus";} $temp_html .= "
"; //Récupération des publications par thème $outil = new utiles(); $str_modeleid = "$ID_MODELE_RAPPORT,$ID_MODELE_NOTES,$ID_MODELE_AMICUS"; $publi_rub1_html = $outil->HtmlListePublication($ID_RUB1,$str_modeleid); $publi_rub2_html = $outil->HtmlListePublication($ID_RUB2,$str_modeleid); $publi_rub3_html = $outil->HtmlListePublication($ID_RUB3,$str_modeleid); if ($publi_rub1_html != "") { $temp_html_1 = "\n"; $temp_html_1.= $publi_rub1_html; $temp_html .= $temp_html_1;} if ($publi_rub2_html != "") { $temp_html_2 = "\n"; $temp_html_2.= $publi_rub2_html; $temp_html .= $temp_html_2;} if ($publi_rub3_html != "") { $temp_html_3 = "\n"; $temp_html_3.= $publi_rub3_html; $temp_html .= $temp_html_3;} $temp_html .= "
"; if ($contenudroite != "") { $temp_html .="
".$contenudroite."
";} $temp_html .= ""; print ($temp_html); ?>