[ Index ] |
|
Code source de Dolibarr 2.0.1 |
1 <?php 2 /* Copyright (C) 2005 Matthieu Valleton <mv@seeschloss.org> 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 2 of the License, or 7 * (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 * 18 * $Id: delete.php,v 1.1 2005/04/13 12:12:43 rodolphe Exp $ 19 * $Source: /cvsroot/dolibarr/dolibarr/htdocs/categories/delete.php,v $ 20 */ 21 22 require "./pre.inc.php"; 23 24 if (!$user->rights->categorie->supprimer) accessforbidden(); 25 26 27 llxHeader("","",$langs->trans("Categories")); 28 29 print_titre($langs->trans("CategoriesArea")); 30 31 print '<table border="0" width="100%">'; 32 33 print '<tr><td valign="top" width="30%">'; 34 35 36 $cat = new Categorie ($db, $_REQUEST['id']); 37 38 if (!isset ($_REQUEST['valid'])) 39 { 40 print "<p>Veuillez valider la suppression de la catégorie ".$cat->label." : <a href='".$_SERVER['PHP_SELF']."?id=".$cat->id."&valid=true'>supprimer la catégorie ".$cat->label."</a></p>\n"; 41 } 42 else 43 { 44 if ($cat->remove () < 0) 45 { 46 print "<p>Impossible de supprimer la catégorie ".$cat->label.".</p>"; 47 } 48 else 49 { 50 print "<p>La catégorie ".$cat->label." a été supprimée.</p>"; 51 } 52 } 53 54 print '</td></tr></table>'; 55 56 $db->close(); 57 58 llxFooter("<em>Dernière modification $Date: 2005/04/13 12:12:43 $ révision $Revision: 1.1 $</em>"); 59 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 12:29:37 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |