Fixed My Account link in userprint printing object #112

This commit is contained in:
Rooty 2024-04-01 09:55:42 +02:00
parent 4072e92467
commit 8edb96fe81
3 changed files with 6 additions and 3 deletions

View File

@ -40,6 +40,7 @@ UserPrintForgotPassword = "Rappel de Mot de Passe"
UserPrintEnter = "Connexion"
tipUserPrintEnter = "Cliquez ici pour vous connecter"
UserPrintDecon = "Déconnexion"
UserPrintMyAccount = "Mon Compte"
AltUserPrintDecon = "Pour vous déconnecter, cliquez ici"
NavigationPrintName = "Mes espaces"
ObjectPrintName = "Mes outils"
@ -125,6 +126,7 @@ TxtTabeAdmin = "Administrer"
TxtTabeAdd = "Ajouter"
TxtDetail = "Pour affecter des droits spécifiques cliquer ici"
TextListSubject = "Agenda"
TxtMyAccount = "Mon Compte"
TxtTabeWrite = "Rédiger"
TxtTabeArchive = "Archives"
TxtTemplateAdmin = "(*) Template"

View File

@ -5,7 +5,7 @@
<ul class="dropdown-menu dropdown-menu-lg-end" aria-labelledby="loggedForm">
<mx:bloc id="blocUrlAccount">
<li><a class="nav-link" mXattribut="href:urlAccount"><span class="fa fa-lg fa-user"></span>Mon Compte</a></li>
<li><a class="nav-link" mXattribut="href:urlAccount"><span class="fa fa-lg fa-user"></span><mx:text id="txtmyaccount"/></a></li>
</mx:bloc id="blocUrlAccount">
<li><a class="nav-link" mXattribut="href:disconnectURL"><span class="fa fa-lg fa-sign-out"></span><mx:text id="decon"/></a></li>
</ul>

View File

@ -164,13 +164,14 @@ class UserPrint extends Printing
$MaTemplate->MxText("TxtWelcome", getMessage("TxtWelcome"));
/* création de l'url de l'outil de gestion du compte utilisateur */
$tabObjectNode =$this->getObjectSon(eid());
$tabObjectNode = $this->getObjectSon(nid());
$hasUserModif = false;
for ($j=0; $j<count($tabObjectNode);$j++)
{
if ($tabObjectNode[$j][0]->getClassName()=="UserModif")
{
$MaTemplate->MxAttribut("blocUrlAccount".".urlAccount", formatUrl($tabObjectNode[$j][1]->getId(), $tabObjectNode[$j][0]->getClassName(), $tabObjectNode[$j][0]->getMethodName(), "", ""));
$MaTemplate->MxAttribut("blocUrlAccount".".urlAccount", Navigation::formatUrl($tabObjectNode[$j][1]->getId(), $tabObjectNode[$j][0]->getClassName(), $tabObjectNode[$j][0]->getMethodName()));
$MaTemplate->MxText("blocUrlAccount".".txtmyaccount", getMessage("UserPrintMyAccount"));
$hasUserModif = true;
}
}