<html>
<head><title>Archiveur</title>
<Script Language="JavaScript">
alert('Choisissez l\'archive de destination');
</Script></head>
<body bgcolor="#777777">
<h2 align="center">Choisissez une archive</h2>
<form action="<?=$PHP_SELF?>" method="get" name="f">
<ul>
<?
$z=opendir($dir); $w=1;
while($d=readdir($z)){
if($d!="."&&$d!=".."){
if(substr($d,-4)==".zip"){
print("<li><input type=\"radio\" name=\"target_archive\" value=\"$dir$d\" id=\"arch$w\"> \n".
"<label for=\"arch$w\" style=\"cursor:hand;\"><b>$dir$d</b></label></li>\n");
$w++;
}
}
}
?>
<li><input type="radio" name="target_archive" value="new" checked id="newarch">
<label for="newarch" style="cursor:hand;"><b>Nouvelle archive : </b></label>
<input type="text" name="newarch" value="<?=$dir?>nouveau.zip">
</ul><input type=hidden name="dir" value="<?=$dir?>">
<center><input type="submit" value="Séléctionner" style="width:125;"></center>
</form>
</html>