Migration
This commit is contained in:
66
0.9.0/panel/module/mysql/suppressionbdd.php
Executable file
66
0.9.0/panel/module/mysql/suppressionbdd.php
Executable file
@@ -0,0 +1,66 @@
|
||||
<?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 ("*", "basededonnee", "Utilisateur='".$_SESSION['Utilisateur']."' AND Status='2'", "", "", "", "");
|
||||
|
||||
?>
|
||||
<h3>Supprimer une base de données</h3>
|
||||
<p>
|
||||
Attention, une fois votre base de données supprimée, vous ne pourrez plus revenir sur votre choix.<br />
|
||||
Pensez à faire une sauvegarde avant de la mettre en attente de suppression.
|
||||
<br /> Seules les bases de données ayant leur statut "activé" peuvent être supprimées. Si ce n'est pas le cas, veuillez attendre que leur statut passe à "activé"<br />
|
||||
Afin d'éviter toute erreur, vous devrez entrer le mot de passe de celle-ci. (vous pouvez le voir sur la page "Récapitulatif").
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<form action="execution-3.html" method="post">
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<th>Base à supprimer</th>
|
||||
<td>
|
||||
<select name="Base">
|
||||
<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]["Nom"]."'>".$ListTable[$i]["Nom"]."</option>\n";
|
||||
}
|
||||
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Mot de passe</th>
|
||||
<td><input type="text" name="MotDePasse" maxlength="9"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<input type="submit" name="Submit" value="Supprimer la base de données" />
|
||||
|
||||
</form>
|
||||
</div>
|
||||
Reference in New Issue
Block a user