Ajout Mdoules metiers
This commit is contained in:
parent
350b81d69e
commit
2b066a3bf8
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2003-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2003-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org>
|
* Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org>
|
||||||
* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2004 Éric Seigne <eric.seigne@ryxeo.com>
|
* Copyright (C) 2004 Éric Seigne <eric.seigne@ryxeo.com>
|
||||||
@ -59,8 +59,8 @@ if ($_GET["action"] == 'reset' && $user->admin)
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
/** \brief Active un module
|
\brief Active un module
|
||||||
\param value Nom du module a activer
|
\param value Nom du module a activer
|
||||||
\param withdeps Active/désactive aussi les dépendances
|
\param withdeps Active/désactive aussi les dépendances
|
||||||
*/
|
*/
|
||||||
@ -107,7 +107,8 @@ function Activate($value,$withdeps=1)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/** \brief Désactive un module
|
/**
|
||||||
|
\brief Désactive un module
|
||||||
\param value Nom du module a désactiver
|
\param value Nom du module a désactiver
|
||||||
\param requiredby 1=Desactive aussi modules dépendants
|
\param requiredby 1=Desactive aussi modules dépendants
|
||||||
*/
|
*/
|
||||||
@ -151,6 +152,7 @@ print_fiche_titre($langs->trans("ModulesSetup"),'','setup');
|
|||||||
if ($mode==0) print $langs->trans("ModulesDesc")."<br>\n";
|
if ($mode==0) print $langs->trans("ModulesDesc")."<br>\n";
|
||||||
if ($mode==1) print $langs->trans("ModulesInterfaceDesc")."<br>\n";
|
if ($mode==1) print $langs->trans("ModulesInterfaceDesc")."<br>\n";
|
||||||
if ($mode==2) print $langs->trans("ModulesSpecialDesc")."<br>\n";
|
if ($mode==2) print $langs->trans("ModulesSpecialDesc")."<br>\n";
|
||||||
|
if ($mode==3) print $langs->trans("ModulesJobDesc")."<br>\n";
|
||||||
print "<br>\n";
|
print "<br>\n";
|
||||||
|
|
||||||
|
|
||||||
@ -158,20 +160,21 @@ $h = 0;
|
|||||||
|
|
||||||
$head[$h][0] = DOL_URL_ROOT."/admin/modules.php?mode=0";
|
$head[$h][0] = DOL_URL_ROOT."/admin/modules.php?mode=0";
|
||||||
$head[$h][1] = $langs->trans("ModulesCommon");
|
$head[$h][1] = $langs->trans("ModulesCommon");
|
||||||
if ($mode==0) $hselected=$h;
|
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
$head[$h][0] = DOL_URL_ROOT."/admin/modules.php?mode=1";
|
$head[$h][0] = DOL_URL_ROOT."/admin/modules.php?mode=1";
|
||||||
$head[$h][1] = $langs->trans("ModulesInterfaces");
|
$head[$h][1] = $langs->trans("ModulesInterfaces");
|
||||||
if ($mode==1) $hselected=$h;
|
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
$head[$h][0] = DOL_URL_ROOT."/admin/modules.php?mode=2";
|
$head[$h][0] = DOL_URL_ROOT."/admin/modules.php?mode=2";
|
||||||
$head[$h][1] = $langs->trans("ModulesSpecial");
|
$head[$h][1] = $langs->trans("ModulesSpecial");
|
||||||
if ($mode==2) $hselected=$h;
|
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
dolibarr_fiche_head($head, $hselected, $langs->trans("Modules"));
|
$head[$h][0] = DOL_URL_ROOT."/admin/modules.php?mode=3";
|
||||||
|
$head[$h][1] = $langs->trans("ModulesJob");
|
||||||
|
|
||||||
|
|
||||||
|
dolibarr_fiche_head($head, $mode, $langs->trans("Modules"));
|
||||||
|
|
||||||
|
|
||||||
if ($mesg) print '<div class="error">'.$mesg.'</div>';
|
if ($mesg) print '<div class="error">'.$mesg.'</div>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user