Trad: Traduction des libells des permissions
This commit is contained in:
parent
6d368af834
commit
f57bad4aca
@ -110,7 +110,8 @@ if ($result)
|
||||
}
|
||||
|
||||
print '<tr '. $bc[$var].'>';
|
||||
print '<td>'.(($langs->trans("Permission".$obj->id)!=("Permission".$obj->id))?$langs->trans("Permission".$obj->id):$obj->libelle) . '</td>';
|
||||
$perm_libelle=(($langs->trans("Permission".$obj->id)!=("Permission".$obj->id))?$langs->trans("Permission".$obj->id):$obj->libelle);
|
||||
print '<td>'.$perm_libelle. '</td>';
|
||||
print '<td>'.$modules[$obj->module]->getName(). '</td><td align="center">';
|
||||
if ($obj->bydefault == 1)
|
||||
{
|
||||
|
||||
@ -135,8 +135,8 @@ if ($_GET["id"])
|
||||
include_once("../../includes/modules/$file");
|
||||
$objMod = new $modName($db);
|
||||
if ($objMod->rights_class) {
|
||||
$modules[$objMod->rights_class]=$modName;
|
||||
//print "modules[".$objMod->rights_class."]=$modName;";
|
||||
$modules[$objMod->rights_class]=$objMod;
|
||||
//print "modules[".$objMod->rights_class."]=$objMod;";
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -146,7 +146,6 @@ if ($_GET["id"])
|
||||
* Ecran ajout/suppression permission
|
||||
*/
|
||||
|
||||
|
||||
print '<table width="100%" class="noborder">';
|
||||
print '<tr class="liste_titre">';
|
||||
if ($user->admin) print '<td width="24"> </td>';
|
||||
@ -172,12 +171,8 @@ if ($_GET["id"])
|
||||
$var = !$var;
|
||||
print '<tr '. $bc[$var].'>';
|
||||
|
||||
// Recupère objet module
|
||||
$modName=$modules[$obj->module];
|
||||
$file = $modName.".class.php";
|
||||
include_once("../../includes/modules/$file");
|
||||
$objMod = new $modName($db);
|
||||
|
||||
// Recupère objMod
|
||||
$objMod = $modules[$obj->module];
|
||||
$picto=($objMod->picto?$objMod->picto:'generic');
|
||||
}
|
||||
else
|
||||
@ -206,7 +201,8 @@ if ($_GET["id"])
|
||||
print '<td> </td>';
|
||||
}
|
||||
|
||||
print '<td>'.$obj->libelle . '</td>';
|
||||
$perm_libelle=(($langs->trans("Permission".$obj->id)!=("Permission".$obj->id))?$langs->trans("Permission".$obj->id):$obj->libelle);
|
||||
print '<td>'.$perm_libelle. '</td>';
|
||||
|
||||
print '<td>'.img_object('',$picto).' '.$objMod->getName();
|
||||
print '</td>';
|
||||
|
||||
@ -171,8 +171,8 @@ if ($_GET["id"])
|
||||
include_once("../includes/modules/$file");
|
||||
$objMod = new $modName($db);
|
||||
if ($objMod->rights_class) {
|
||||
$modules[$objMod->rights_class]=$modName;
|
||||
//print "modules[".$objMod->rights_class."]=$modName;";
|
||||
$modules[$objMod->rights_class]=$objMod;
|
||||
//print "modules[".$objMod->rights_class."]=$objMod;";
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -207,12 +207,8 @@ if ($_GET["id"])
|
||||
$var = !$var;
|
||||
print '<tr '. $bc[$var].'>';
|
||||
|
||||
// Recupère objet module
|
||||
$modName=$modules[$obj->module];
|
||||
$file = $modName.".class.php";
|
||||
include_once("../includes/modules/$file");
|
||||
$objMod = new $modName($db);
|
||||
|
||||
// Récupère objMod
|
||||
$objMod=$modules[$obj->module];
|
||||
$picto=($objMod->picto?$objMod->picto:'generic');
|
||||
}
|
||||
else
|
||||
@ -251,7 +247,8 @@ if ($_GET["id"])
|
||||
print '<td> </td>';
|
||||
}
|
||||
|
||||
print '<td>'.$obj->libelle . '</td>';
|
||||
$perm_libelle=(($langs->trans("Permission".$obj->id)!=("Permission".$obj->id))?$langs->trans("Permission".$obj->id):$obj->libelle);
|
||||
print '<td>'.$perm_libelle. '</td>';
|
||||
|
||||
print '<td>'.img_object('',$picto).' '.$objMod->getName();
|
||||
print '</td>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user