<script src="<?=$pathAdmin?>js/table_index.js"></script>
<script>
//fonction appelée lors de lappui sur débloquer
function submitLink(nameForm)
{ if(!checkMinOneCheckBox(nameForm.Id))
{ msg="Veuillez sélectionner un enregistrement S.V.P";
alert(msg);
}
else
{ alert(document.forms[1].name);
document.forms[1].submit();
}
}
</script>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2"><? require $pathAdmin."require/title&path.php";?></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2"><form name="table_form" action="" method="post">
<input type="hidden" name="lg" value="<?=$lg?>">
<input type="hidden" name="lang" value="<?=$lang?>">
<input type="hidden" name="submit" value="1">
<table width="100%" border="0" cellpadding="0" cellspacing="1">
<tr height="20">
<td align="center" width="1"><input title="Tout sélectionner/Tout désélectionner" onClick="AllSelection(document.table_form.checkbox,document.table_form.Id);" name="checkbox" type="checkbox" id="checkbox" value="all"></td>
<td align="left" class="titre_tab"><?=$language["debloc_account_login"]?></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="1">
<?
$i=0;
while ($Rst=mysql_fetch_object($req))
{ if (($i % 2) ==0) $Row=2; //pour différencier une ligne par rapport a lautre
else $Row=1;
?>
<tr>
<td width="1"><input name="Id[]" type="checkbox" id="Id" value="<?=$Rst->users_Id?>" onClick="StyleClickRow('<?=$Rst->users_Id?>','<?=$Row?>');"></td>
<td class="tab<?=$Row?>" id="<?=$Rst->users_Id?>" style="cursor:hand;" onClick="CheckLine(document.table_form,'<?=$i?>');StyleClickRow('<?=$Rst->users_Id?>','<?=$Row?>');" onMouseOver="StyleOverRow('<?=$Rst->users_Id?>');" onMouseOut="StyleOutRow('<?=$Rst->users_Id?>','<?=$Row?>','<?=$styleOff?>');"><?=$Rst->users_login?></td>
</tr>
<?
$i++;
} ?>
<tr height="25">
<td><a class="link" href="javascript
:submitLink(document.table_form);">débloquer</a> - <a class="link">voir profil</a></td>
<td align="right" class="paginate_off"><?=$navigate?></td>
</tr>
</table>
</form></td>
</tr>
</table>
Partager