Skip to content
Snippets Groups Projects
Verified Commit 58824694 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FIX #8636 fix css profile menu

parent 2c3651dd
No related branches found
No related tags found
No related merge requests found
...@@ -1406,7 +1406,6 @@ th.ref { ...@@ -1406,7 +1406,6 @@ th.ref {
width: 260px; width: 260px;
background: #F2F2F2; background: #F2F2F2;
position: absolute; position: absolute;
left: -12px;
padding: 0px; padding: 0px;
z-index: 10; z-index: 10;
margin: 0px; margin: 0px;
...@@ -2804,21 +2803,28 @@ font-size: 14px; ...@@ -2804,21 +2803,28 @@ font-size: 14px;
.footer_menu{ .footer_menu{
background-color: #135F7F; background-color: #135F7F;
height:15px;
width:100%; width:100%;
font-weight: bold; font-weight: bold;
font-size: 0.8em; font-size: 0.8em;
text-align: right; text-align: right;
padding-right:0px; padding: 5px;
padding-top:0px;
border-top: 2px solid #FFFFFF;
position:relative; position:relative;
bottom:0; bottom:0;
} }
.footer_menu span{ .footer_menu span{
padding-left: 10px; display: inline-block;
padding-top: 2px; min-width: 10px;
padding: 3px 7px;
font-size: 12px;
font-weight: 700;
line-height: 1;
color: #135f7f;
text-align: center;
white-space: nowrap;
vertical-align: middle;
background-color: white;
border-radius: 10px;
} }
.footer_menu a{ .footer_menu a{
......
...@@ -40,34 +40,34 @@ ...@@ -40,34 +40,34 @@
<?php <?php
$strUserInfos = '<i class="fa fa-user fa-2x" style="padding-right:5px;"></i> ' . $_SESSION['user']['FirstName'][0].". ".$_SESSION['user']['LastName']; $strUserInfos = '<i class="fa fa-user fa-2x" style="padding-right:5px;"></i> ' . $_SESSION['user']['FirstName'][0].". ".$_SESSION['user']['LastName'];
echo $strUserInfos; ?> echo $strUserInfos; ?>
<div id="profilenav" class="menunav" style="left: -135px;display:none;background: #135f7f;"> </span>
<canvas class="header-bg" width="250" height="70" style="width: 100%;background-image: url('static.php?filename=login-banner.jpg');background-size:cover;border-bottom: solid 1px white;"></canvas> <div id="profilenav" class="menunav" style="margin-top:10px;right: 5px;display:none;background: #135f7f;">
<i title="<?php echo _MY_INFO;?>" onclick="triggerAngular('#/profile')" style="cursor:pointer;z-index:1;color:white;position: absolute;left: 85px;top: 17px;background-image: url('static.php?filename=logo_only.svg');width: 70px;height: 70px;background-size: cover;background-position: top center;border-radius: 50%;border: solid white;background-color:white;"></i> <canvas class="header-bg" width="250" height="70" style="width: 100%;background-image: url('static.php?filename=login-banner.jpg');background-size:cover;border-bottom: solid 1px white;"></canvas>
<div class="content" style="padding-top:10px;color:#666;max-height:250px;overflow-y:auto;overflow-x:hidden;"> <i title="<?php echo _MY_INFO;?>" onclick="triggerAngular('#/profile')" style="cursor:pointer;z-index:1;color:white;position: absolute;left: 85px;top: 17px;background-image: url('static.php?filename=logo_only.svg');width: 70px;height: 70px;background-size: cover;background-position: top center;border-radius: 50%;border: solid white;background-color:white;"></i>
<p routerLink="/profile" class="text-center" style="margin-top:10px;cursor:pointer;color:white;"><?php echo $_SESSION['user']['FirstName'].". ".$_SESSION['user']['LastName'];?></p> <div class="content" style="padding-top:10px;color:#666;max-height:250px;overflow-y:auto;overflow-x:hidden;">
<h3 style="padding: 5px;margin-top:10px;color:white;text-align:left;">Groupes</h3> <p onclick="triggerAngular('#/profile')" style="text-align:center;margin-top:10px;cursor:pointer;color:white;"><?php echo $_SESSION['user']['FirstName'].". ".$_SESSION['user']['LastName'];?></p>
<ul style="color:white;padding: 10px;text-align:left;opacity: 0.5;"> <h3 style="padding: 5px;margin-top:10px;color:white;text-align:left;">Groupes</h3>
<?php <ul style="color:white;padding: 10px;text-align:left;opacity: 0.5;">
$userGroups = \User\models\UserModel::getGroupsByUserId(['userId'=> $_SESSION['user']['UserId']]); <?php
$userGroups = \User\models\UserModel::getGroupsByUserId(['userId'=> $_SESSION['user']['UserId']]);
if(!empty($userGroups)){
for($i=0;$i<count($userGroups);$i++){ if(!empty($userGroups)){
$strGrpInfos .= '<li style="padding-bottom:20px;">'.$userGroups[$i]['group_desc'].'</li>'; for($i=0;$i<count($userGroups);$i++){
} $strGrpInfos .= '<li style="padding-bottom:20px;">'.$userGroups[$i]['group_desc'].'</li>';
} }
echo $strGrpInfos; }
?> echo $strGrpInfos;
</ul> ?>
</div> </ul>
<div style="display:flex;"> </div>
<div class="footer_menu"> <div style="display:flex;">
<a onclick="triggerAngular('#/profile')" style="cursor: pointer;color:white;float:left;"><?php echo _MY_INFO;?></a> <div class="footer_menu">
<a href="index.php?display=true&page=logout&logout=true" style="cursor: pointer;color:white;float:right;"><?php echo _LOGOUT;?></a> <a onclick="triggerAngular('#/profile')" style="cursor: pointer;color:white;float:left;"><span><?php echo _MY_INFO;?></span></a>
<div style="clear:both;"></div> <a href="index.php?display=true&page=logout&logout=true" style="cursor: pointer;color:white;float:right;"><span><?php echo _LOGOUT;?></span></a>
</div> <div style="clear:both;"></div>
</div> </div>
</div> </div>
</span> </div>
</div> </div>
</div> </div>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment