From 5f92fb5e9d8f4d474b3930b967ce7fce3b5078fa Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 29 Sep 2007 14:46:30 +0000 Subject: [PATCH] =?UTF-8?q?d=E9but=20ajout=20du=20module=20"=E9tiquettes"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/includes/modules/modLabel.class.php | 127 +++++++++++++++++++++ htdocs/theme/auguria/img/object_label.png | Bin 0 -> 822 bytes htdocs/theme/dev/img/object_label.png | Bin 0 -> 822 bytes htdocs/theme/dolibarr/img/object_label.png | Bin 0 -> 822 bytes htdocs/theme/eldy/img/object_label.png | Bin 0 -> 822 bytes htdocs/theme/freelug/img/object_label.png | Bin 0 -> 822 bytes htdocs/theme/yellow/img/object_label.png | Bin 0 -> 822 bytes 7 files changed, 127 insertions(+) create mode 100644 htdocs/includes/modules/modLabel.class.php create mode 100644 htdocs/theme/auguria/img/object_label.png create mode 100644 htdocs/theme/dev/img/object_label.png create mode 100644 htdocs/theme/dolibarr/img/object_label.png create mode 100644 htdocs/theme/eldy/img/object_label.png create mode 100644 htdocs/theme/freelug/img/object_label.png create mode 100644 htdocs/theme/yellow/img/object_label.png diff --git a/htdocs/includes/modules/modLabel.class.php b/htdocs/includes/modules/modLabel.class.php new file mode 100644 index 00000000000..b71f91535cf --- /dev/null +++ b/htdocs/includes/modules/modLabel.class.php @@ -0,0 +1,127 @@ + + * + * 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$ + */ + +/** + \defgroup label Module étiquettes + \brief Module pour gérer l'impression des étiquettes +*/ + +/** + \file htdocs/includes/modules/modLabel.class.php + \ingroup other + \brief Fichier de description et activation du module Label +*/ + +include_once "DolibarrModules.class.php"; + +/** + \class modLabel + \brief Classe de description et activation du module Label +*/ + +class modLabel extends DolibarrModules +{ + + /** + * \brief Constructeur. Definit les noms, constantes et boites + * \param DB handler d'accès base + */ + function modLabel($DB) + { + $this->db = $DB ; + $this->id = 'label'; // Same value xxx than in file modXxx.class.php file + $this->numero = 60 ; + + $this->family = "other"; + $this->name = "Etiquettes"; + $this->description = "Gestion des étiquettes"; + $this->version = 'development'; // 'development' or 'experimental' or 'dolibarr' or version + $this->const_name = 'MAIN_MODULE_LABEL'; + $this->special = 2; + $this->picto='label'; + + // Dir + $this->dirs = array(); + + // Dépendances + $this->depends = array(); + $this->requiredby = array(); + + // Config pages + $this->config_page_url = array("label.php"); + + // Constantes + $this->const = array(); + + // Boxes + $this->boxes = array(); + + // Permissions + $this->rights = array(); + $this->rights_class = 'label'; + + $this->rights[1][0] = 601; // id de la permission + $this->rights[1][1] = 'Lire les étiquettes'; // libelle de la permission + $this->rights[1][2] = 'r'; // type de la permission (déprécié à ce jour) + $this->rights[1][3] = 1; // La permission est-elle une permission par défaut + $this->rights[1][4] = 'lire'; + + $this->rights[2][0] = 602; // id de la permission + $this->rights[2][1] = 'Créer/modifier les étiquettes'; // libelle de la permission + $this->rights[2][2] = 'w'; // type de la permission (déprécié à ce jour) + $this->rights[2][3] = 0; // La permission est-elle une permission par défaut + $this->rights[2][4] = 'creer'; + + $this->rights[4][0] = 609; // id de la permission + $this->rights[4][1] = 'Supprimer les étiquettes'; // libelle de la permission + $this->rights[4][2] = 'd'; // type de la permission (déprécié à ce jour) + $this->rights[4][3] = 0; // La permission est-elle une permission par défaut + $this->rights[4][4] = 'supprimer'; + + } + + + /** + * \brief Fonction appelée lors de l'activation du module. Insère en base les constantes, boites, permissions du module. + * Définit également les répertoires de données à créer pour ce module. + */ + function init() + { + // Permissions + $this->remove(); + + $sql = array(); + + return $this->_init($sql); + } + + /** + * \brief Fonction appelée lors de la désactivation d'un module. + * Supprime de la base les constantes, boites et permissions du module. + */ + function remove() + { + $sql = array(); + + return $this->_remove($sql); + } +} +?> diff --git a/htdocs/theme/auguria/img/object_label.png b/htdocs/theme/auguria/img/object_label.png new file mode 100644 index 0000000000000000000000000000000000000000..75a363ec8d5ee3bf2a360517808ac441403db580 GIT binary patch literal 822 zcmV-61Ihe}P)j6L??(fezt%688rYFq0(WCL!z*{AVzUhQ)3e1}}A;jmk}2 z|Gh=d_RfLH?McT>L0>k9#au~I4Dq9^C7OW% z4>|8tbX|X^7~qKU_OC0eD~DItR>!{oT!3b)iKhe}!bgZ6SQn5|W^*pyq9>OWfV{*s z%%$;>(JR|=TtgP{YiSV@)lO+9(qt4Llz_S#jfR|`8-}s0Bt%g-@@?VA{gq1f^v1@z z;W!qQm&(9&9mWnEgjU#un&*M%t%L7xAp;7QJdxpp6o%wfcE)WAmOenB$FDkeQpGpITn4UZApNIt9zNl!0giSe6Nf zVWL+C7)U!oFKpZXFto3922D(WQEltwv7;9U3x&u2rVs6A8_i=-7$`tLGO&@p3_}=( z5a7EL1c8(i^`b0!Br=ZT#PK87EK^^e`8;yM}cQek5J!$7z zPeLrus=x>t8NB&-dGW@l*)Mk;$CifG`m*lF{(Npam(9I4EwjdDIfBcM`~#3AMD@K^ z_s(`Y9d~bk{tdn-TOea4Bpafj6L??(fezt%688rYFq0(WCL!z*{AVzUhQ)3e1}}A;jmk}2 z|Gh=d_RfLH?McT>L0>k9#au~I4Dq9^C7OW% z4>|8tbX|X^7~qKU_OC0eD~DItR>!{oT!3b)iKhe}!bgZ6SQn5|W^*pyq9>OWfV{*s z%%$;>(JR|=TtgP{YiSV@)lO+9(qt4Llz_S#jfR|`8-}s0Bt%g-@@?VA{gq1f^v1@z z;W!qQm&(9&9mWnEgjU#un&*M%t%L7xAp;7QJdxpp6o%wfcE)WAmOenB$FDkeQpGpITn4U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