1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| $composant = array();
$resultat = mysql_query("SELECT id, type, acces, niveau, tniveau, etat, nom, accueil, place, page, config FROM me_plugin WHERE type='composant' AND niveau>='".$s_niveau."' AND niveau!='1' AND etat='1' AND place!='page'") or die('<div id="msg-r">Un problème est survenu. Veuillez réesayer</div>');
$i = 0;
if($i!=0 && $i%3==0) { echo "</tr> \n"; }
if($i!=0 && $i%3==0) { echo "<tr> \n"; }
while($temp = mysql_fetch_array($resultat))
{
$composant[$i++] = array(
'ID' => $temp[0],
'TYPE' => $temp[1],
'ACCES' => $temp[2],
'NIVEAU' => $temp[3],
'TNIVEAU' => $temp[4],
'ETAT' => $temp[5],
'NOM' => $temp[6],
'ACCUEIL' => $temp[7],
'PLACE' => $temp[8],
'PAGE' => $temp[9],
'CONFIG' => $temp[10]
);
}
$smarty->assign('COMPOSANT', $composant);
$smarty->display("$theme/compte.tpl"); |
Partager