if( isset($_POST["systemid"]) )
$_GET["systemid"] = $_POST["systemid"];
if( isset($_POST["del"])) {
$ok = deleteAll();
if( $ok ) {
echo "";
die();
}
}
if( isset($_GET["systemid"]))
$nbMach = 1;
else
$nbMach = getCount($_SESSION["storedRequest"]);
PrintEnTete( $l->g(122)." ($nbMach ".$l->g(478).")");
echo "
<= ".$l->g(188)."";
echo "
";
function deleteAll( ) {
global $_GET;
if( isset($_GET["systemid"])) {
echo "del ".$_GET["systemid"]."
";
deleteDid( $_GET["systemid"] );
}
else {
$lareq = getPrelim( $_SESSION["storedRequest"] );
if( ! $res = @mysql_query( $lareq, $_SESSION["readServer"] ))
return false;
while( $val = @mysql_fetch_array($res)) {
echo "del ".$val["h.id"]."
";
deleteDid( $val["h.id"] );
}
}
return true;
}
?>