mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 18:09:06 +01:00
- LSsearch :
-> Affichage du nombre de résultat des recherches -> Possibilité d'activer par défaut le mode récursif d'une recherche. - Documentation : Mise à jour en conséquence
This commit is contained in:
parent
f37cdb731f
commit
c1e7664313
8 changed files with 35 additions and 4 deletions
|
@ -52,6 +52,11 @@
|
||||||
// Configuration des formulaires de l'objet
|
// Configuration des formulaires de l'objet
|
||||||
), // fin LSform
|
), // fin LSform
|
||||||
|
|
||||||
|
// LSsearch
|
||||||
|
'LSsearch' => array (
|
||||||
|
// Configuration des recherches de l'objet
|
||||||
|
), // fin LSsearch
|
||||||
|
|
||||||
// Attributs
|
// Attributs
|
||||||
'attrs' => array (
|
'attrs' => array (
|
||||||
// Configuration des attributs du type d'LSobjet
|
// Configuration des attributs du type d'LSobjet
|
||||||
|
|
|
@ -14,7 +14,7 @@ configuration des &LSobjects;, dans la variable <varname>LSsearch</varname>
|
||||||
'attr2',
|
'attr2',
|
||||||
...
|
...
|
||||||
),
|
),
|
||||||
...
|
'recursive' => [booléen]
|
||||||
);]]>
|
);]]>
|
||||||
</programlisting>
|
</programlisting>
|
||||||
|
|
||||||
|
@ -41,6 +41,14 @@ configuration des &LSobjects;, dans la variable <varname>LSsearch</varname>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>recursive</term>
|
||||||
|
<listitem>
|
||||||
|
<para>Booléen déterminant si la recherche récursive est activée ou non par
|
||||||
|
défaut pour ce type d'LSobject.</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
</variablelist>
|
</variablelist>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
|
|
@ -114,7 +114,8 @@ $GLOBALS['LSobjects']['LSeepeople'] = array (
|
||||||
'cn',
|
'cn',
|
||||||
'uid',
|
'uid',
|
||||||
'mail'
|
'mail'
|
||||||
)
|
),
|
||||||
|
'recursive' => true
|
||||||
),
|
),
|
||||||
|
|
||||||
// Attributes
|
// Attributes
|
||||||
|
|
|
@ -228,6 +228,14 @@ strong.LSobject-list-page {
|
||||||
color: #433f3a;
|
color: #433f3a;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#LSobject_list_nbresult {
|
||||||
|
float: right;
|
||||||
|
color: #333;
|
||||||
|
font-style: italic;
|
||||||
|
margin-right: 20px;
|
||||||
|
text-transform: lowercase;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*******************
|
*******************
|
||||||
* LSview-actions
|
* LSview-actions
|
||||||
|
|
|
@ -226,6 +226,14 @@ strong.LSobject-list-page {
|
||||||
color: #0072b8;
|
color: #0072b8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#LSobject_list_nbresult {
|
||||||
|
float: right;
|
||||||
|
color: #333;
|
||||||
|
font-style: italic;
|
||||||
|
margin-right: 20px;
|
||||||
|
text-transform: lowercase;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*******************
|
*******************
|
||||||
* LSview-actions
|
* LSview-actions
|
||||||
|
|
|
@ -61,7 +61,7 @@ if(LSsession :: startLSsession()) {
|
||||||
$topDn = $object -> config['container_dn'].','.LSsession :: getTopDn();
|
$topDn = $object -> config['container_dn'].','.LSsession :: getTopDn();
|
||||||
$params = array('scope' => 'one');
|
$params = array('scope' => 'one');
|
||||||
$pattern = false;
|
$pattern = false;
|
||||||
$recur = false;
|
$recur = LSconfig :: get("LSobjects.$LSobject.LSsearch.recursive");
|
||||||
$approx = false;
|
$approx = false;
|
||||||
$selectedTopDn = LSsession :: getTopDn();
|
$selectedTopDn = LSsession :: getTopDn();
|
||||||
$orderby = false;
|
$orderby = false;
|
||||||
|
|
|
@ -49,6 +49,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</table>
|
</table>
|
||||||
|
<span id='LSobject_list_nbresult'>{$LSobject_list_nbresult} {$pagetitle}</span>
|
||||||
{if $LSobject_list_nbpage}
|
{if $LSobject_list_nbpage}
|
||||||
<p class='LSobject-list-page'>
|
<p class='LSobject-list-page'>
|
||||||
{section name=listpage loop=$LSobject_list_nbpage step=1}
|
{section name=listpage loop=$LSobject_list_nbpage step=1}
|
||||||
|
|
|
@ -116,7 +116,7 @@ if(LSsession :: startLSsession()) {
|
||||||
$topDn = $object -> config['container_dn'].','.LSsession :: getTopDn();
|
$topDn = $object -> config['container_dn'].','.LSsession :: getTopDn();
|
||||||
$params = array('scope' => 'one');
|
$params = array('scope' => 'one');
|
||||||
$pattern = false;
|
$pattern = false;
|
||||||
$recur = false;
|
$recur = LSconfig :: get("LSobjects.$LSobject.LSsearch.recursive");
|
||||||
$approx = false;
|
$approx = false;
|
||||||
$orderby = false;
|
$orderby = false;
|
||||||
$_REQUEST['orderby']=LSconfig :: get("LSobjects.$LSobject.orderby");
|
$_REQUEST['orderby']=LSconfig :: get("LSobjects.$LSobject.orderby");
|
||||||
|
|
Loading…
Reference in a new issue