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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
/*Liste ligne de vie*/
echo '<form method="post" action="'.$ThisFile.'">'
.'<table width="top" align="center" border="0" cellpadding="5" cellspacing="5">'
.'<tr>'
.'<td align="center" colspan="2" class="ldv_menu">'.ldvie_trad('Liste des lignes de vies').'</td>'
.'<td align="center" class="ldv_menu">'.ldvie_trad('Filtre').'</td>'
.'</tr>';
$res = sql_query("SELECT id_cat, nom, coul FROM ".$NPDS_Prefix."ldv_cat WHERE pseudo = '$pseudo' ORDER BY id_cat");
while(list($id_cat, $nom, $coul) = sql_fetch_row($res))
{
echo '<tr>'
.'<td align="center" class="ldv_trois">'
.'<div style="background-color:#'.$coul.';border: 1px solid #000;"></div>'
.'</td>'
.'<td class="ldv_deux">'
.'<div style="float:left;">'.$nom.'</div>'
.'<div style="float:right;" class="ldv_plien"><a href=\'javascript:void(0);\' onClick=\'window.open("modules.php?ModPath='.$ModPath.'&ModStart=categ&id_cat='.$id_cat.'","description","menubar=no,location=no,directories=no,status=no,copyhistory=no,height=600px,width=600px,top=0,left=0,toolbar=no,scrollbars=yes,resizable=yes");\' class="ldv_petitl">[+ '.ldvie_trad('d\'infos').']</a></div>'
.'</td>'
.'<td class="ldv_deux">';
if($filt != '')
{
if (in_array($id_cat, $filt))
{
echo '<input type="checkbox" name="filt[]" value="'.$id_cat.'" checked="checked" />';
}
else
{
echo '<input type="checkbox" name="filt[]" value="'.$id_cat.'" />';
}
}
else
{
echo '<input type="checkbox" name="filt[]" value="'.$id_cat.'" checked="checked" />';
}
echo '</td>'
.'</tr>';
}
echo '<tr>'
.'<td colspan=3" align="right" class="ldv_trois">'
.'<input type="hidden" name="zoom" value="'.$zoom.'" />'
.'<input type="hidden" name="uidpseudo" value="'.$ud.'" />'
.'<input class="ldv_bouton" type="submit" name="exple2" value="filtrer" />'
.'</td>'
.'</tr>'
.'</table>'
.'</form>'; |
Partager