- 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:
Benjamin Renard 2009-04-10 17:13:38 +00:00
parent f37cdb731f
commit c1e7664313
8 changed files with 35 additions and 4 deletions

View file

@ -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

View file

@ -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>

View file

@ -114,7 +114,8 @@ $GLOBALS['LSobjects']['LSeepeople'] = array (
'cn', 'cn',
'uid', 'uid',
'mail' 'mail'
) ),
'recursive' => true
), ),
// Attributes // Attributes

View file

@ -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

View file

@ -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

View file

@ -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;

View file

@ -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}

View file

@ -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");