From f725d917a80612701bf87b887b2d337bb03ed2fe Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 1 Apr 2006 02:37:23 +0000 Subject: [PATCH] Doc: Modif doc doxygen --- htdocs/categories/edit.php | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/htdocs/categories/edit.php b/htdocs/categories/edit.php index f51ddba2e87..c614c61a871 100644 --- a/htdocs/categories/edit.php +++ b/htdocs/categories/edit.php @@ -1,5 +1,6 @@ +/* Copyright (C) 2005 Matthieu Valleton + * Copyright (C) 2006 Laurent Destailleur * * 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 @@ -16,12 +17,25 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +/** + \file htdocs/categories/edit.php + \ingroup categories + \brief Page d'edition de categorie produit + \version $Revision$ +*/ + require "./pre.inc.php"; + $user->getrights(); if (!$user->rights->categorie->lire) accessforbidden(); - + + +/* + * Affichage fiche + */ + llxHeader("","",$langs->trans("Categories")); print_titre($langs->trans("ModifCat")); @@ -37,7 +51,6 @@ $html = new Form($db); // Action mise à jour d'une catégorie if ($_POST["action"] == 'update' && $user->rights->categorie->creer) { - $categorie->label = $_POST["nom"]; $categorie->description = $_POST["description"]; $categorie->visible = $_POST["visible"]; @@ -52,7 +65,7 @@ if ($_POST["action"] == 'update' && $user->rights->categorie->creer) $_GET["action"] = 'create'; $categorie->error = "Le libellé ou la description n'a pas été renseigné"; } - if ($categorie->error =="") + if (! $categorie->error) { if ($categorie->update() > 0) { @@ -61,13 +74,14 @@ if ($_POST["action"] == 'update' && $user->rights->categorie->creer) } } } -if($categorie->error != "") +if ($categorie->error) { - print '
'; - print $categorie->error; - print '
'; + print '
'; + print $categorie->error; + print '
'; } print ''; + ?>
@@ -99,7 +113,7 @@ print ''; - +