Forum » » Questions » » Mettre en surbrillance un item d'une liste
Posté : 26 mai 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>Wakonai</h3><div class=\"bloc\"><ul>";
if ($numeropage==0) {
$textpage.="<li><a href=\"sections.php?op=viewarticle&artid=3&page=[page0]\" id=\"en-cours\">Introduction</a></li>";
} else {
$textpage.="<li><a href=\"sections.php?op=viewarticle&artid=3&page=[page0]\">Introduction</a></li>";
}
for ($i = 1; $i <= 12; $i++) {
if ($numeropage==$i) {
$textpage.="<li><a href=\"sections.php?op=viewarticle&artid=3&page=[page";
$textpage.="$i]\" id=\"en-cours\">Page $i</a></li>";
} else {
$textpage.="<li><a href=\"sections.php?op=viewarticle&artid=3&page=[page";
$textpage.="$i]\">Page $i</a></li>";
}
}
$textpage.="</ul></div></div>";
echo "$textpage";
}
}
uri#sections.php?op=viewarticle&artid=3 sections.php?*&op=viewarticle&artid=3
!include!#modules/mesmodules/Pages_liste.php
function#Indexpages
Cet article provient de NPDS
https://www.npds.org/viewtopic.php?topic=26307&forum=9