From dd3975059c47565f29b70fcf531b13e328d199ab Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sun, 9 Mar 2003 18:05:38 +0000 Subject: [PATCH] =?UTF-8?q?D=E9but=20de=20script=20pour=20le=20chargement/?= =?UTF-8?q?suppression=20de=20tables=20sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/admin/sqltables.php | 72 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 htdocs/admin/sqltables.php diff --git a/htdocs/admin/sqltables.php b/htdocs/admin/sqltables.php new file mode 100644 index 00000000000..0dac1794de9 --- /dev/null +++ b/htdocs/admin/sqltables.php @@ -0,0 +1,72 @@ + + * + * 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + * $Id$ + * $Source$ + * + */ + +require("./pre.inc.php"); + +llxHeader(); + +$db = new Db(); + +print_barre_liste("Liste des tables", $page, $PHP_SELF); + +$sql = "SELECT name, loaded FROM llx_sqltables"; + +print "

"; +print ''; +print ""; +print ''; +print ''; + print "\n"; + +if ( $db->query($sql) ) { + $num = $db->num_rows(); + $i = 0; + + $var=True; + while ($i < $num) { + $objp = $db->fetch_object( $i); + $var=!$var; + print ""; + print "\n"; + print '\n"; + + if ($objp->loaded) + { + print ''; + } + else + { + print ''; + } + print "\n"; + $i++; + } + $db->free(); +} + +print "
NomChargéeAction
$objp->name'.$objp->loaded."SupprimerCréer
"; + + +$db->close(); + +llxFooter("Dernière modification $Date$ révision $Revision$"); +?>