Forum » » Questions » » Mettre en surbrillance un item d'une liste
Posté : 26-05-2015 14:53 
#en-cours {
text-decoration: none;
background-color: #EEE;
font-weight: bold;
color: #277dd4;
}
function Indexpages() {
global $numpage;
$numeropage= substr(substr($numpage,5),0,-1);
If ($numeropage!="") {
$textpage="<div class=\"rightbloc\"><h3>Wa konai</h3><div class=\"bloc\"><ul>";
if ($numeropage==0) {
$textpage.="<li><a href=\"s ections.php?op=viewarticle&artid=3&page=[page0]\" id=\"en-cours\"& gt;Introduction</a></li>";
} else {
$textpage.="<li><a href=\"s ections.php?op=viewarticle&artid=3&page=[page0]\">Introduction</a ></li>";
}
for ($i = 1; $i <= 12; $i++) {
if ($numeropage==$ i) {
$text page.="<li><a href=\"sections.php?op=viewarticle&artid=3& page=[page";
$text page.="$i]\" id=\"en-cours\">Page $i</a></li>";
}&nbs p;else {
$text page.="<li><a href=\"sections.php?op=viewarticle&artid=3& page=[page";
$text page.="$i]\">Page $i</a></li>";
}
}
$textpage.="</ul></div></div>";
echo "$textpage";
}
}
uri#sections.php?op=viewarticle&artid=3 sections.php?*&op=viewar ticle&artid=3
!include!#modules/mesmodules/Pages_liste.php
function#Indexpages
Cet article provient de NPDS REvolution 16
https://lab.grottes-et-karsts-de-chine.org/viewtopic.php?topic=26307&forum=9