131 lines
6.7 KiB
PHP
131 lines
6.7 KiB
PHP
<div id="div_menu_profil" class="container-fluid">
|
|
<div class="row">
|
|
|
|
<div id="div_utilisateur_profil_1" class="col-md-6">
|
|
<div class="panel panel-danger" style="box-shadow: 0 2px 5px rgba(0,0,0,0.1);">
|
|
<div class="panel-heading" style="padding: 10px 15px;">
|
|
<div class="row">
|
|
<div class="col-xs-9">
|
|
<strong style="text-transform: uppercase; font-size: 12px;">
|
|
<span class="glyphicon glyphicon-lock" style="margin-right: 8px;"></span>
|
|
<?= _("Menus non accessibles") ?>
|
|
</strong>
|
|
</div>
|
|
<div class="col-xs-3 text-right">
|
|
<span class="badge" style="background-color: #a94442;"><?= count($menus_non_accessibles) ?></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="panel-body" style="background-color: #fcf8f2; padding: 8px;">
|
|
<button type="button" class="btn btn-danger btn-sm btn-block"
|
|
style="font-weight: bold; text-transform: uppercase; font-size: 11px;"
|
|
onclick="javascript:ajouter_tous_menus_principal_profil_rh();">
|
|
<?= _("Tout ajouter") ?> <span class="glyphicon glyphicon-forward" style="margin-left: 5px;"></span>
|
|
</button>
|
|
</div>
|
|
|
|
<div class="table-responsive" style="max-height: 400px; overflow-y: auto; background: white;">
|
|
<table class="table table-hover table-condensed" style="margin-bottom: 0;">
|
|
<tbody style="font-size: 13px;">
|
|
<?php foreach ($menus_non_accessibles as $m):
|
|
$codeMenu = $m['codeMenu'];
|
|
$libeleMenu = est_anglophone() ? $m['libelleEng'] : $m['libeleMenu'];
|
|
?>
|
|
<tr>
|
|
<td style="padding-left: 15px; vertical-align: middle; border-top: 1px solid #f2f2f2;"><?= $libeleMenu ?></td>
|
|
<td class="text-right" style="padding-right: 15px; vertical-align: middle; width: 60px; border-top: 1px solid #f2f2f2;">
|
|
<button class="btn btn-info btn-xs"
|
|
style="border-radius: 50%; width: 26px; height: 26px; padding: 0;"
|
|
title="<?= _("Ajouter") ?>"
|
|
onClick="javascript:ajouter_un_menu_principal_profil_rh('<?=$codeMenu?>');">
|
|
<span class="glyphicon glyphicon-chevron-right"></span>
|
|
</button>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="div_utilisateur_profil_2" class="col-md-6">
|
|
<div class="panel panel-success" style="box-shadow: 0 2px 5px rgba(0,0,0,0.1);">
|
|
<div class="panel-heading" style="padding: 10px 15px;">
|
|
<div class="row">
|
|
<div class="col-xs-9">
|
|
<strong style="text-transform: uppercase; font-size: 12px;">
|
|
<span class="glyphicon glyphicon-ok" style="margin-right: 8px;"></span>
|
|
<?= _("Menus accessibles") ?>
|
|
</strong>
|
|
</div>
|
|
<div class="col-xs-3 text-right">
|
|
<span class="badge" style="background-color: #3c763d;"><?= count($menus_accessibles) ?></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="panel-body" style="background-color: #f2fcf2; padding: 8px;">
|
|
<button type="button" class="btn btn-success btn-sm btn-block"
|
|
style="font-weight: bold; text-transform: uppercase; font-size: 11px;"
|
|
onclick="javascript:retirer_tous_menus_principal_profil_rh();">
|
|
<span class="glyphicon glyphicon-backward" style="margin-right: 5px;"></span> <?= _("Tout retirer") ?>
|
|
</button>
|
|
</div>
|
|
|
|
<div class="table-responsive" style="max-height: 400px; overflow-y: auto; background: white;">
|
|
<table class="table table-hover table-condensed" style="margin-bottom: 0;">
|
|
<tbody style="font-size: 13px;">
|
|
<?php foreach ($menus_accessibles as $m):
|
|
$codeMenu = $m['codeMenu'];
|
|
$libeleMenu = est_anglophone() ? $m['libelleEng'] : $m['libeleMenu'];
|
|
?>
|
|
<tr>
|
|
<td class="text-left" style="padding-left: 15px; vertical-align: middle; width: 60px; border-top: 1px solid #f2f2f2;">
|
|
<button class="btn btn-warning btn-xs"
|
|
style="border-radius: 50%; width: 26px; height: 26px; padding: 0;"
|
|
title="<?= _("Retirer") ?>"
|
|
onClick="javascript:retirer_un_menu_principal_profil_rh('<?=$codeMenu?>');">
|
|
<span class="glyphicon glyphicon-chevron-left"></span>
|
|
</button>
|
|
</td>
|
|
<td style="vertical-align: middle; border-top: 1px solid #f2f2f2;"><?= $libeleMenu ?></td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<style>
|
|
/* Simulation de l'animation FadeIn */
|
|
#div_menu_profil {
|
|
animation: fadeIn 0.4s ease-in;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
/* Style du scrollbar pour les anciens navigateurs (optionnel) */
|
|
.table-responsive::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
.table-responsive::-webkit-scrollbar-thumb {
|
|
background: #ccc;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
/* Effet simple au survol des boutons circulaires */
|
|
.btn-xs:hover {
|
|
opacity: 0.8;
|
|
transform: scale(1.1);
|
|
transition: all 0.2s;
|
|
}
|
|
</style>
|