<script type="text/javascript">
<!--
function Oct(r,w,x) {
i=0;
if (r) { i+=4 };
if (w) { i+=2 };
if (x) { i+=1 };
return i;
}
function Letters(r,w,x) {
s="";
if (r) { s+="r" } else { s+="-" };
if (w) { s+="w" } else { s+="-" };
if (x) { s+="x" } else { s+="-" };
return s;
}
function droits()
{
document.chmod.rwx.value=
Letters(document.chmod.or.checked, document.chmod.ow.checked, document.chmod.ox.checked)+
Letters(document.chmod.gr.checked, document.chmod.gw.checked, document.chmod.gx.checked)+
Letters(document.chmod.ar.checked, document.chmod.aw.checked, document.chmod.ax.checked);
document.chmod.oct.value=""+
Oct(document.chmod.or.checked, document.chmod.ow.checked, document.chmod.ox.checked)+
Oct(document.chmod.gr.checked, document.chmod.gw.checked, document.chmod.gx.checked)+
Oct(document.chmod.ar.checked, document.chmod.aw.checked, document.chmod.ax.checked);
}
//-->
</script>
<table width="30%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<form name="chmod" action="?mavariable=mavar" style="margin-top: 0px;">
<table bgcolor="#eeeeee" border="0" cellpadding="3" cellspacing="0" width="100%">
<tbody><tr>
<td width="33%" align="center" valign="middle"><b>Propriétaire<br>(owner)</b></td>
<td width="33%" align="center" valign="middle"><b>Groupe<br>(group)</b></td>
<td width="34%" align="center" valign="middle"><b>monde<br>(all)</b></td>
</tr>
<tr><td colspan="3"></td></tr>
<tr>
<td align="left" valign="middle"><input name="or" onClick="droits()" type="checkbox"> lecture</td>
<td align="left" valign="middle"><input name="gr" onClick="droits()" type="checkbox"> lecture</td>
<td align="left" valign="middle"><input name="ar" onClick="droits()" type="checkbox"> lecture</td>
</tr>
<tr>
<td align="left" valign="middle"><input name="ow" onClick="droits()" type="checkbox"> écriture</td>
<td align="left" valign="middle"><input name="gw" onClick="droits()" type="checkbox"> écriture</td>
<td align="left" valign="middle"><input name="aw" onClick="droits()" type="checkbox"> écriture</td>
</tr>
<tr>
<td align="left" valign="middle"><input name="ox" onClick="droits()" type="checkbox"> exécution</td>
<td align="left" valign="middle"><input name="gx" onClick="droits()" type="checkbox"> exécution</td>
<td align="left" valign="middle"><input name="ax" onClick="droits()" type="checkbox"> exécution</td>
</tr>
<tr><td colspan="3" align="left" valign="middle"></td>
</tr>
<tr>
<td align="left" valign="middle"><input name="rwx" size="10" value="---------" style="font-family: Courier New,Courier;" type="text" disabled="disabled"></td>
<td colspan="2" align="left" valign="middle">Affiche les droits sous la forme "rwx"</td>
</tr><tr>
<td align="left" valign="middle"><input name="oct" size="10" value="000" style="font-family: Courier New,Courier;" type="text"></td>
<td colspan="2" align="left" valign="middle">Affiche les droits sous la forme octale</td>
</tr>
<tr>
<td align="left" valign="middle"> </td>
<td colspan="2" align="left" valign="middle"><label>
<input type="submit" name="Submit" value="Envoyer">
</label></td>
</tr>
</tbody></table>
</form>
</td>
</tr>
</table>