mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-23 08:53:47 +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
|
||||
), // fin LSform
|
||||
|
||||
// LSsearch
|
||||
'LSsearch' => array (
|
||||
// Configuration des recherches de l'objet
|
||||
), // fin LSsearch
|
||||
|
||||
// Attributs
|
||||
'attrs' => array (
|
||||
// Configuration des attributs du type d'LSobjet
|
||||
|
|
|
@ -14,7 +14,7 @@ configuration des &LSobjects;, dans la variable <varname>LSsearch</varname>
|
|||
'attr2',
|
||||
...
|
||||
),
|
||||
...
|
||||
'recursive' => [booléen]
|
||||
);]]>
|
||||
</programlisting>
|
||||
|
||||
|
@ -41,6 +41,14 @@ configuration des &LSobjects;, dans la variable <varname>LSsearch</varname>
|
|||
</listitem>
|
||||
</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>
|
||||
</para>
|
||||
|
||||
|
|
|
@ -114,7 +114,8 @@ $GLOBALS['LSobjects']['LSeepeople'] = array (
|
|||
'cn',
|
||||
'uid',
|
||||
'mail'
|
||||
)
|
||||
),
|
||||
'recursive' => true
|
||||
),
|
||||
|
||||
// Attributes
|
||||
|
|
|
@ -228,6 +228,14 @@ strong.LSobject-list-page {
|
|||
color: #433f3a;
|
||||
}
|
||||
|
||||
#LSobject_list_nbresult {
|
||||
float: right;
|
||||
color: #333;
|
||||
font-style: italic;
|
||||
margin-right: 20px;
|
||||
text-transform: lowercase;
|
||||
}
|
||||
|
||||
/*
|
||||
*******************
|
||||
* LSview-actions
|
||||
|
|
|
@ -226,6 +226,14 @@ strong.LSobject-list-page {
|
|||
color: #0072b8;
|
||||
}
|
||||
|
||||
#LSobject_list_nbresult {
|
||||
float: right;
|
||||
color: #333;
|
||||
font-style: italic;
|
||||
margin-right: 20px;
|
||||
text-transform: lowercase;
|
||||
}
|
||||
|
||||
/*
|
||||
*******************
|
||||
* LSview-actions
|
||||
|
|
|
@ -61,7 +61,7 @@ if(LSsession :: startLSsession()) {
|
|||
$topDn = $object -> config['container_dn'].','.LSsession :: getTopDn();
|
||||
$params = array('scope' => 'one');
|
||||
$pattern = false;
|
||||
$recur = false;
|
||||
$recur = LSconfig :: get("LSobjects.$LSobject.LSsearch.recursive");
|
||||
$approx = false;
|
||||
$selectedTopDn = LSsession :: getTopDn();
|
||||
$orderby = false;
|
||||
|
|
|
@ -49,6 +49,7 @@
|
|||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
<span id='LSobject_list_nbresult'>{$LSobject_list_nbresult} {$pagetitle}</span>
|
||||
{if $LSobject_list_nbpage}
|
||||
<p class='LSobject-list-page'>
|
||||
{section name=listpage loop=$LSobject_list_nbpage step=1}
|
||||
|
|
|
@ -116,7 +116,7 @@ if(LSsession :: startLSsession()) {
|
|||
$topDn = $object -> config['container_dn'].','.LSsession :: getTopDn();
|
||||
$params = array('scope' => 'one');
|
||||
$pattern = false;
|
||||
$recur = false;
|
||||
$recur = LSconfig :: get("LSobjects.$LSobject.LSsearch.recursive");
|
||||
$approx = false;
|
||||
$orderby = false;
|
||||
$_REQUEST['orderby']=LSconfig :: get("LSobjects.$LSobject.orderby");
|
||||
|
|
Loading…
Reference in a new issue