afficher tt item si vu item only
This commit is contained in:
parent
4a941665dc
commit
39c469fd45
Binary file not shown.
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
Binary file not shown.
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
|
@ -6,7 +6,7 @@
|
||||||
{% if mode=="datauser" %}
|
{% if mode=="datauser" %}
|
||||||
Paramétrage de la Fiche Utilisateur
|
Paramétrage de la Fiche Utilisateur
|
||||||
{% else %}
|
{% else %}
|
||||||
Paramétrage de la Listes des Utilisateurs
|
Paramétrage de la Liste des Utilisateurs
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ td { font-size: 10px; }
|
||||||
<th class="no-sort">Action</th>
|
<th class="no-sort">Action</th>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<th class="no-sort {% if fields["avatar"] is defined and fields["avatar"].perm==0 %}no-visible{% endif %}">Avatar</th>
|
<th class="no-sort {% if fields["avatar"] is defined and fields["avatar"].perm==0 %}no-visible{% endif %}">Avatar</th>
|
||||||
<th class=="{% if fields["login"] is defined and fields["login"].perm==0 %}no-visible{% endif %}">Login</th>
|
<th class="{% if fields["login"] is defined and fields["login"].perm==0 and access!="config"%}no-visible{% endif %}">Login</th>
|
||||||
<th class="{% if fields["lastname"] is defined and fields["lastname"].perm==0 %}no-visible{% endif %}">Nom</th>
|
<th class="{% if fields["lastname"] is defined and fields["lastname"].perm==0 %}no-visible{% endif %}">Nom</th>
|
||||||
<th class="{% if fields["firstname"] is defined and fields["firstname"].perm==0 %}no-visible{% endif %}">Prénom</th>
|
<th class="{% if fields["firstname"] is defined and fields["firstname"].perm==0 %}no-visible{% endif %}">Prénom</th>
|
||||||
<th class="{% if fields["email"] is defined and fields["email"].perm==0 %}no-visible{% endif %}">Email</th>
|
<th class="{% if fields["email"] is defined and fields["email"].perm==0 %}no-visible{% endif %}">Email</th>
|
||||||
|
|
|
@ -523,9 +523,14 @@ class PagewidgetController extends Controller
|
||||||
}
|
}
|
||||||
$itemsroles=$qb->getQuery()->getResult();
|
$itemsroles=$qb->getQuery()->getResult();
|
||||||
foreach($itemsroles as $itemrole) {
|
foreach($itemsroles as $itemrole) {
|
||||||
|
if($withbookmark==1) {
|
||||||
|
if(!$items->contains($itemrole)) $items->add($itemrole);
|
||||||
|
}
|
||||||
|
else {
|
||||||
if(!$bookmarksitems->contains($itemrole) && !$items->contains($itemrole)) $items->add($itemrole);
|
if(!$bookmarksitems->contains($itemrole) && !$items->contains($itemrole)) $items->add($itemrole);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Récupération des items par group
|
// Récupération des items par group
|
||||||
foreach($groups as $group) {
|
foreach($groups as $group) {
|
||||||
|
@ -541,9 +546,14 @@ class PagewidgetController extends Controller
|
||||||
}
|
}
|
||||||
$itemsgroups=$qb->getQuery()->getResult();
|
$itemsgroups=$qb->getQuery()->getResult();
|
||||||
foreach($itemsgroups as $itemgroup) {
|
foreach($itemsgroups as $itemgroup) {
|
||||||
|
if($withbookmark==1) {
|
||||||
|
if(!$items->contains($itemgroup)) $items->add($itemgroup);
|
||||||
|
}
|
||||||
|
else {
|
||||||
if(!$bookmarksitems->contains($itemgroup) && !$items->contains($itemgroup)) $items->add($itemgroup);
|
if(!$bookmarksitems->contains($itemgroup) && !$items->contains($itemgroup)) $items->add($itemgroup);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Récupération des items par niveau01
|
// Récupération des items par niveau01
|
||||||
if($niveau01) {
|
if($niveau01) {
|
||||||
|
@ -559,9 +569,14 @@ class PagewidgetController extends Controller
|
||||||
}
|
}
|
||||||
$itemsniveau01s=$qb->getQuery()->getResult();
|
$itemsniveau01s=$qb->getQuery()->getResult();
|
||||||
foreach($itemsniveau01s as $itemniveau01) {
|
foreach($itemsniveau01s as $itemniveau01) {
|
||||||
|
if($withbookmark==1) {
|
||||||
|
if(!$items->contains($itemniveau01)) $items->add($itemniveau01);
|
||||||
|
}
|
||||||
|
else {
|
||||||
if(!$bookmarksitems->contains($itemniveau01) && !$items->contains($itemniveau01)) $items->add($itemniveau01);
|
if(!$bookmarksitems->contains($itemniveau01) && !$items->contains($itemniveau01)) $items->add($itemniveau01);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Trie des items
|
// Trie des items
|
||||||
$itemsordered = $items->getIterator();
|
$itemsordered = $items->getIterator();
|
||||||
|
|
Loading…
Reference in New Issue