77 lines
2.6 KiB
PHP
Executable File
77 lines
2.6 KiB
PHP
Executable File
<div id="div_menu_profil">
|
|
|
|
<div class="row">
|
|
<div id="div_utilisateur_profil_1" class="col-6" >
|
|
<legend> <?= _("Menus non accessibles") ?> </legend>
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive tabspeciale compact" style="font-size:10pt;">
|
|
<thead>
|
|
<tr>
|
|
<th style='text-align:center'> Menu </th>
|
|
<th style='text-align:center'> => </th>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th colspan="2"> <button type="button" style="font-size:10pt;" class="form-control btn btn-primary" onclick="javascript:ajouter_tous_menus_principal_profil_ass();" > <?= _("Ajouter tous"). " ==>" ?> </button> </th>
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php foreach ($menus_non_accessibles as $menus_non_accessible):
|
|
$codeMenu = $menus_non_accessible['codeMenu'];
|
|
if (est_anglophone())
|
|
{
|
|
$libeleMenu = $menus_non_accessible['libelleEng'];
|
|
}
|
|
else
|
|
{
|
|
$libeleMenu = $menus_non_accessible['libeleMenu'];
|
|
}
|
|
?>
|
|
<tr valign="top">
|
|
<td align='center'><?= $libeleMenu ?></td>
|
|
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_un_meunu_principal_profil_ass('<?=$codeMenu?>');" ></td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div id="div_utilisateur_profil_2" class="col-6" >
|
|
<legend> <?= _("Menus accessibles") ?> </legend>
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive tabspeciale compact" style="font-size:10pt;">
|
|
<thead>
|
|
<tr>
|
|
<th style='text-align:center'> <= </th>
|
|
<th style='text-align:center'> Menu </th>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th colspan="2"> <button type="button" style="font-size:10pt;" class="form-control btn btn-primary" onclick="javascript:retirer_tous_menus_principal_profil_ass();" > <?= "<== " . _("Retirer tous") ?> </button> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php foreach ($menus_accessibles as $menus_accessible):
|
|
$codeMenu = $menus_accessible['codeMenu'];
|
|
if (est_anglophone())
|
|
{
|
|
$libeleMenu = $menus_accessible['libelleEng'];
|
|
}
|
|
else
|
|
{
|
|
$libeleMenu = $menus_accessible['libeleMenu'];
|
|
}
|
|
?>
|
|
<tr valign="top">
|
|
<td align='center'> <input type="button" value="<=" onClick="javascript:retirer_un_meunu_principal_profil_ass('<?=$codeMenu?>');" ></td>
|
|
<td align='center'><?= $libeleMenu ?></td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|