New: Ajoute la notion de version aux modules.
This commit is contained in:
parent
1cf0885f3b
commit
01dfca7bfb
@ -146,6 +146,7 @@ print "<tr class=\"liste_titre\">\n";
|
||||
print " <td>".$langs->trans("Family")."</td>\n";
|
||||
print " <td>".$langs->trans("Module")."</td>\n";
|
||||
print " <td>".$langs->trans("Description")."</td>\n";
|
||||
print " <td align=\"center\">".$langs->trans("Version")."</td>\n";
|
||||
print " <td align=\"center\">".$langs->trans("Activated")."</td>\n";
|
||||
print " <td align=\"center\">".$langs->trans("Action")."</td>\n";
|
||||
print " <td> </td>\n";
|
||||
@ -214,7 +215,7 @@ foreach ($orders as $key => $value)
|
||||
$const_value = $objMod->const_config;
|
||||
|
||||
if ($oldfamily && $family!=$oldfamily && $atleastoneforfamily) {
|
||||
print "<tr class=\"liste_titre\">\n <td colspan=\"6\"></td>\n</tr>\n";
|
||||
print "<tr class=\"liste_titre\">\n <td colspan=\"7\"></td>\n</tr>\n";
|
||||
$atleastoneforfamily=0;
|
||||
}
|
||||
|
||||
@ -241,6 +242,8 @@ foreach ($orders as $key => $value)
|
||||
print "</td>\n <td>";
|
||||
print $objMod->getDesc();
|
||||
print "</td>\n <td align=\"center\">";
|
||||
print $objMod->getVersion();
|
||||
print "</td>\n <td align=\"center\">";
|
||||
|
||||
if ($const_value == 1)
|
||||
{
|
||||
|
||||
@ -314,5 +314,21 @@ class DolibarrModules
|
||||
}
|
||||
}
|
||||
|
||||
/** \brief Retourne la version du module.
|
||||
* Pour les modules à l'état 'experimental', retourne la traduction de 'experimental'
|
||||
* Pour les modules 'dolibarr', retourne la version de Dolibarr
|
||||
* Pour les autres modules, retourne la version du module
|
||||
* \return string Nom du module traduit
|
||||
*/
|
||||
function getVersion()
|
||||
{
|
||||
global $langs;
|
||||
$langs->load("admin");
|
||||
|
||||
if ($this->version == 'experimental') return $langs->trans("Experimental");
|
||||
elseif ($this->version == 'dolibarr') return DOL_VERSION;
|
||||
elseif ($this->version) return $this->version;
|
||||
else return $langs->trans("Unknown");
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
@ -55,6 +55,7 @@ class modAdherent extends DolibarrModules
|
||||
$this->family = "hr";
|
||||
$this->name = "Adhérents";
|
||||
$this->description = "Gestion des adhérents d'une association";
|
||||
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
|
||||
$this->const_name = "MAIN_MODULE_ADHERENT";
|
||||
$this->const_config = MAIN_MODULE_ADHERENT;
|
||||
$this->special = 0;
|
||||
|
||||
@ -23,11 +23,11 @@
|
||||
*
|
||||
*/
|
||||
|
||||
/*! \defgroup banque Module banque
|
||||
/** \defgroup banque Module banque
|
||||
\brief Module pour gérer la tenue d'un compte bancaire et rapprochements
|
||||
*/
|
||||
|
||||
/*!
|
||||
/**
|
||||
\file htdocs/includes/modules/modBanque.class.php
|
||||
\ingroup banque
|
||||
\brief Fichier de description et activation du module Banque
|
||||
@ -35,7 +35,7 @@
|
||||
|
||||
include_once "DolibarrModules.class.php";
|
||||
|
||||
/*! \class modBanque
|
||||
/** \class modBanque
|
||||
\brief Classe de description et activation du module Banque
|
||||
*/
|
||||
|
||||
@ -54,6 +54,7 @@ class modBanque extends DolibarrModules
|
||||
$this->family = "financial";
|
||||
$this->name = "Banque";
|
||||
$this->description = "Gestion des comptes financiers de type Comptes bancaires ou postaux";
|
||||
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
|
||||
$this->const_name = "MAIN_MODULE_BANQUE";
|
||||
$this->const_config = MAIN_MODULE_BANQUE;
|
||||
|
||||
|
||||
@ -54,6 +54,7 @@ class modBoutique extends DolibarrModules
|
||||
$this->family = "products";
|
||||
$this->name = "Boutique";
|
||||
$this->description = "Gestion des boutiques";
|
||||
$this->version = 'experimental'; // 'experimental' or 'dolibarr' or version
|
||||
$this->const_name = "MAIN_MODULE_BOUTIQUE";
|
||||
$this->const_config = MAIN_MODULE_BOUTIQUE;
|
||||
$this->special = 0;
|
||||
|
||||
@ -51,7 +51,8 @@ class modClickToDial extends DolibarrModules
|
||||
|
||||
$this->family = "technic";
|
||||
$this->name = "ClickToDial";
|
||||
$this->description = "Gestion du click to dial (experimental)";
|
||||
$this->description = "Gestion du Click To Dial";
|
||||
$this->version = 'experimental'; // 'experimental' or 'dolibarr' or version
|
||||
$this->const_name = "MAIN_MODULE_CLICKTODIAL";
|
||||
$this->const_config = MAIN_MODULE_CLICKTODIAL;
|
||||
$this->special = 1;
|
||||
|
||||
@ -55,6 +55,7 @@ class modCommande extends DolibarrModules
|
||||
$this->family = "crm";
|
||||
$this->name = "Commande";
|
||||
$this->description = "Gestion des commandes";
|
||||
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
|
||||
$this->const_name = "MAIN_MODULE_COMMANDE";
|
||||
$this->const_config = MAIN_MODULE_COMMANDE;
|
||||
$this->special = 0;
|
||||
|
||||
@ -54,6 +54,7 @@ class modCommercial extends DolibarrModules
|
||||
$this->family = "crm";
|
||||
$this->name = "Commercial";
|
||||
$this->description = "Gestion commercial";
|
||||
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
|
||||
$this->const_name = "MAIN_MODULE_COMMERCIAL";
|
||||
$this->const_config = MAIN_MODULE_COMMERCIAL;
|
||||
$this->special = 0;
|
||||
|
||||
@ -54,6 +54,7 @@ class modComptabilite extends DolibarrModules
|
||||
$this->family = "financial";
|
||||
$this->name = "Comptabilite";
|
||||
$this->description = "Gestion sommaire de comptabilité";
|
||||
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
|
||||
$this->const_name = "MAIN_MODULE_COMPTABILITE";
|
||||
$this->const_config = MAIN_MODULE_COMPTABILITE;
|
||||
|
||||
|
||||
@ -51,6 +51,7 @@ class modContrat extends DolibarrModules
|
||||
$this->family = "crm";
|
||||
$this->name = "Contrats";
|
||||
$this->description = "Gestion des contrats de services";
|
||||
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
|
||||
$this->const_name = "MAIN_MODULE_CONTRAT";
|
||||
$this->const_config = MAIN_MODULE_CONTRAT;
|
||||
$this->special = 0;
|
||||
|
||||
@ -48,8 +48,9 @@ class modDeplacement extends DolibarrModules
|
||||
$this->numero = 75 ;
|
||||
|
||||
$this->family = "crm";
|
||||
$this->name = "Déplacement"; // Si traduction Module80Name non trouvée
|
||||
$this->description = "Gestion des déplacements"; // Si traduction Module80Desc non trouvée
|
||||
$this->name = "Déplacement"; // Si traduction Module75Name non trouvée
|
||||
$this->description = "Gestion des déplacements"; // Si traduction Module75Desc non trouvée
|
||||
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
|
||||
$this->const_name = "MAIN_MODULE_DEPLACEMENT";
|
||||
$this->const_config = MAIN_MODULE_DEPLACEMENT;
|
||||
$this->special = 0;
|
||||
|
||||
@ -51,7 +51,8 @@ class modDon extends DolibarrModules
|
||||
|
||||
$this->family = "financial";
|
||||
$this->name = "Don";
|
||||
$this->description = "Gestion des dons (expérimental)";
|
||||
$this->description = "Gestion des dons";
|
||||
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
|
||||
$this->const_name = "MAIN_MODULE_DON";
|
||||
$this->const_config = MAIN_MODULE_DON;
|
||||
$this->special = 0;
|
||||
|
||||
@ -52,6 +52,7 @@ class modExpedition extends DolibarrModules
|
||||
$this->family = "crm";
|
||||
$this->name = "Expedition";
|
||||
$this->description = "Gestion des expéditions";
|
||||
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
|
||||
$this->const_name = "MAIN_MODULE_EXPEDITION";
|
||||
$this->const_config = MAIN_MODULE_EXPEDITION;
|
||||
$this->special = 0;
|
||||
|
||||
@ -52,6 +52,7 @@ class modExternalRss extends DolibarrModules
|
||||
$this->family = "technic";
|
||||
$this->name = "Syndication RSS";
|
||||
$this->description = "Ajout de files d'informations RSS dans les écrans Dolibarr";
|
||||
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
|
||||
$this->const_name = "MAIN_MODULE_EXTERNALRSS";
|
||||
$this->const_config = MAIN_MODULE_EXTERNALRSS;
|
||||
$this->special = 0;
|
||||
|
||||
@ -55,6 +55,7 @@ class modFacture extends DolibarrModules
|
||||
$this->family = "financial";
|
||||
$this->name = "Factures";
|
||||
$this->description = "Gestion des factures";
|
||||
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
|
||||
$this->const_name = "MAIN_MODULE_FACTURE";
|
||||
$this->const_config = MAIN_MODULE_FACTURE;
|
||||
$this->special = 0;
|
||||
|
||||
@ -54,6 +54,7 @@ class modFicheinter extends DolibarrModules
|
||||
$this->family = "crm";
|
||||
$this->name = "Fiche d'intervention";
|
||||
$this->description = "Gestion des fiches d'intervention";
|
||||
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
|
||||
$this->const_name = "MAIN_MODULE_FICHEINTER";
|
||||
$this->const_config = MAIN_MODULE_FICHEINTER;
|
||||
$this->special = 0;
|
||||
|
||||
@ -53,6 +53,7 @@ class modFournisseur extends DolibarrModules
|
||||
$this->family = "products";
|
||||
$this->name = "Fournisseur";
|
||||
$this->description = "Gestion des fournisseurs";
|
||||
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
|
||||
$this->const_name = "MAIN_MODULE_FOURNISSEUR";
|
||||
$this->const_config = MAIN_MODULE_FOURNISSEUR;
|
||||
$this->special = 0;
|
||||
|
||||
@ -51,6 +51,7 @@ class modLdap extends DolibarrModules
|
||||
$this->name = "Ldap";
|
||||
$this->family = "technic";
|
||||
$this->description = "Synchronisation Ldap";
|
||||
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
|
||||
$this->const_name = "MAIN_MODULE_LDAP";
|
||||
$this->const_config = MAIN_MODULE_LDAP;
|
||||
$this->special = 1;
|
||||
|
||||
@ -51,7 +51,8 @@ class modPostnuke extends DolibarrModules
|
||||
|
||||
$this->family = "technic";
|
||||
$this->name = "Postnuke";
|
||||
$this->description = "Gestion de l'outil Postnuke";
|
||||
$this->description = "Gestion de l'outil PostNuke";
|
||||
$this->version = 'experimental'; // 'experimental' or 'dolibarr' or version
|
||||
$this->const_name = "MAIN_MODULE_POSTNUKE";
|
||||
$this->const_config = MAIN_MODULE_POSTNUKE;
|
||||
$this->special = 1;
|
||||
|
||||
@ -52,7 +52,8 @@ class modPrelevement extends DolibarrModules
|
||||
|
||||
$this->family = "technic";
|
||||
$this->name = "Prelevement";
|
||||
$this->description = "Gestion des Prélèvements (experimental)";
|
||||
$this->description = "Gestion des Prélèvements";
|
||||
$this->version = 'experimental'; // 'experimental' or 'dolibarr' or version
|
||||
$this->const_name = "MAIN_MODULE_PRELEVEMENT";
|
||||
$this->const_config = MAIN_MODULE_PRELEVEMENT;
|
||||
$this->special = 0;
|
||||
|
||||
@ -54,6 +54,7 @@ class modProduit extends DolibarrModules
|
||||
$this->family = "products";
|
||||
$this->name = "Produit";
|
||||
$this->description = "Gestion des produits";
|
||||
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
|
||||
$this->const_name = "MAIN_MODULE_PRODUIT";
|
||||
$this->const_config = MAIN_MODULE_PRODUIT;
|
||||
$this->special = 0;
|
||||
|
||||
@ -54,6 +54,7 @@ class modProjet extends DolibarrModules
|
||||
$this->family = "projects";
|
||||
$this->name = "Projets";
|
||||
$this->description = "Gestion des projets";
|
||||
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
|
||||
$this->const_name = "MAIN_MODULE_PROJET";
|
||||
$this->const_config = MAIN_MODULE_PROJET;
|
||||
|
||||
|
||||
@ -54,6 +54,7 @@ class modPropale extends DolibarrModules
|
||||
$this->family = "crm";
|
||||
$this->name = "Propositions commerciales";
|
||||
$this->description = "Gestion des propositions commerciales";
|
||||
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
|
||||
$this->const_name = "MAIN_MODULE_PROPALE";
|
||||
$this->const_config = MAIN_MODULE_PROPALE;
|
||||
$this->special = 0;
|
||||
|
||||
@ -54,6 +54,7 @@ class modService extends DolibarrModules
|
||||
$this->family = "products";
|
||||
$this->name = "Service";
|
||||
$this->description = "Gestion des services";
|
||||
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
|
||||
$this->const_name = "MAIN_MODULE_SERVICE";
|
||||
$this->const_config = MAIN_MODULE_SERVICE;
|
||||
|
||||
|
||||
@ -54,6 +54,7 @@ class modSociete extends DolibarrModules
|
||||
$this->family = "crm";
|
||||
$this->name = "Module societe";
|
||||
$this->description = "Gestion des sociétés et contacts";
|
||||
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
|
||||
$this->const_name = "MAIN_MODULE_SOCIETE";
|
||||
$this->const_config = MAIN_MODULE_SOCIETE;
|
||||
$this->special = 0;
|
||||
|
||||
@ -52,6 +52,7 @@ class modStock extends DolibarrModules
|
||||
$this->family = "products";
|
||||
$this->name = "Stock produits";
|
||||
$this->description = "Gestion des stocks";
|
||||
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
|
||||
$this->const_name = "MAIN_MODULE_STOCK";
|
||||
$this->const_config = MAIN_MODULE_STOCK;
|
||||
$this->special = 0;
|
||||
|
||||
@ -50,7 +50,8 @@ class modTelephonie extends DolibarrModules
|
||||
|
||||
$this->family = "technic";
|
||||
$this->name = "Telephonie";
|
||||
$this->description = "Gestion de la Telephonie (experimental)";
|
||||
$this->description = "Gestion de la Telephonie";
|
||||
$this->version = 'experimental'; // 'experimental' or 'dolibarr' or version
|
||||
$this->const_name = "MAIN_MODULE_TELEPHONIE";
|
||||
$this->const_config = MAIN_MODULE_TELEPHONIE;
|
||||
$this->special = 1;
|
||||
|
||||
@ -53,6 +53,7 @@ class modWebcalendar extends DolibarrModules
|
||||
$this->family = "projects";
|
||||
$this->name = "Webcalendar";
|
||||
$this->description = "Interfaçage avec le calendrier Webcalendar";
|
||||
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
|
||||
$this->const_name = "MAIN_MODULE_WEBCALENDAR";
|
||||
$this->const_config = MAIN_MODULE_WEBCALENDAR;
|
||||
$this->special = 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user