69 lines
2.3 KiB
PHP
Executable File
69 lines
2.3 KiB
PHP
Executable File
<?php
|
|
/*
|
|
Copyright (C) 2007 Mercier Benjamin
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License along
|
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
*/
|
|
$ListTable = $MySql->Select ("*", "domainedns", "Utilisateur='".$_SESSION['Utilisateur']."' AND Status='2'", "", "", "", "");
|
|
?>
|
|
|
|
<h3>Supprimer un (sous) domaine</h3>
|
|
<p>
|
|
En cas d'erreur, vous devrez attendre que le (sous) domaine soit totalement supprimé du serveur pour pouvoir le recréer.<br />
|
|
</p>
|
|
|
|
<div>
|
|
<form action="execution-12.html" method="post">
|
|
<table cellpadding="5">
|
|
<tr>
|
|
<th>(Sous) domaine à supprimer :</th>
|
|
<td>
|
|
<select name="Domaine">
|
|
<option selected="selected" value="">Sélectionnez</option>
|
|
<?php
|
|
if ( $ListTable == FALSE)
|
|
{
|
|
$TotalEnregistement = 0;
|
|
}
|
|
else
|
|
{
|
|
$TotalEnregistement = count ($ListTable);
|
|
for ($i=0; $i < $TotalEnregistement; $i++)
|
|
{
|
|
echo "<option value='".$ListTable[$i]["Domaine"]."'>".$ListTable[$i]["Domaine"]."</option>\n";
|
|
|
|
$ListSousZones = $MySql->Select ("*", "sousdomainedns", "Utilisateur='{$_SESSION['Utilisateur']}' AND Domaine='{$ListTable[$i]["Domaine"]}' AND Status='2'", "", "", "", "");
|
|
$CountSousZones = count ($ListSousZones);
|
|
if ( $ListSousZones == FALSE ) { $CountSousZones = 0; }
|
|
|
|
for($j = 0; $j < $CountSousZones; $j++)
|
|
{
|
|
echo "<option value=' {$ListSousZones[$j]["Donnee"]}'> ".$ListSousZones[$j]["Donnee"]."</option>\n";
|
|
}
|
|
}
|
|
}
|
|
?>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Tapez "oui"</th>
|
|
<td><input name="Confirmation" type="text" maxlength="3" /></td>
|
|
</tr>
|
|
</table>
|
|
<input type="submit" name="Submit" value="Supprimer le (sous) domaine" />
|
|
</form>
|
|
</div>
|