2009-10-30 01:03:17 +01:00
|
|
|
<table class='LSobject-list' id='LSselect-object' caption='{$LSsearch->LSobject}'>
|
2008-02-26 18:40:05 +01:00
|
|
|
<tr class='LSobject-list'>
|
|
|
|
<th class='LSobject-list LSobject-select-check'></th>
|
2009-10-30 01:03:17 +01:00
|
|
|
<th class='LSobject-list{if $LSsearch->sort} sortBy_displayName{/if}'>
|
|
|
|
{if $LSsearch->sortBy == 'displayName'}
|
|
|
|
<strong>{$LSsearch->label_objectName}</strong>
|
2013-06-19 00:53:26 +02:00
|
|
|
<img src='{img name=$LSsearch->sortDirection}' class='LSobject-list-ordersense' alt='{$LSsearch->sortDirection}'/>
|
2009-10-30 01:03:17 +01:00
|
|
|
{else}
|
|
|
|
{$LSsearch->label_objectName}
|
|
|
|
{/if}
|
|
|
|
</th>
|
|
|
|
{if $LSsearch->displaySubDn}
|
|
|
|
<th class='LSobject-list LSobject-list-subdn{if $LSsearch->sort} sortBy_subDn{/if}'>
|
|
|
|
{if $LSsearch->sort}
|
|
|
|
{if $LSsearch->sortBy == 'subDn'}
|
|
|
|
<strong>{$LSsearch->label_level}</strong>
|
2013-06-19 00:53:26 +02:00
|
|
|
<img src='{img name=$LSsearch->sortDirection}' class='LSobject-list-ordersense' alt='{$LSsearch->sortDirection}'/>
|
2009-10-30 01:03:17 +01:00
|
|
|
{else}
|
|
|
|
{$LSsearch->label_level}
|
|
|
|
{/if}
|
|
|
|
{else}
|
|
|
|
{$LSsearch->label_level}
|
|
|
|
{/if}
|
|
|
|
</th>
|
|
|
|
{/if}
|
2008-02-26 18:40:05 +01:00
|
|
|
</tr>
|
2009-10-30 01:03:17 +01:00
|
|
|
{foreach from=$page.list item=object}
|
|
|
|
<tr class='{cycle values="LSobject-list,LSobject-list LSobject-list-bis"}'>
|
2010-11-16 19:53:18 +01:00
|
|
|
<td class='LSobject-list LSobject-select-check'><input type='{if $searchForm.multiple}checkbox{else}radio{/if}' name='LSobjects_selected[]' value='{$object->dn}' {if $object->LSselect}checked="true"{/if}{if $searchForm.selectablly}{if !$object->selectablly} disabled="disabled"{/if}{/if} class='LSobject-select' /></td>
|
2009-10-30 01:03:17 +01:00
|
|
|
<td class='LSobject-list LSobject-select-names'>{$object->displayName}</td>
|
|
|
|
{if $LSsearch->displaySubDn}
|
|
|
|
<td class='LSobject-list LSobject-select-level'>{$object->subDn}</td>
|
|
|
|
{/if}
|
2008-02-26 18:40:05 +01:00
|
|
|
</tr>
|
2008-06-18 14:27:35 +02:00
|
|
|
{foreachelse}
|
|
|
|
<tr class='LSobject-list'>
|
2009-10-30 01:03:17 +01:00
|
|
|
<td colspan='3' class='LSobject-list-without-result'>{$LSsearch->label_no_result}</td>
|
2008-06-18 14:27:35 +02:00
|
|
|
</tr>
|
2008-02-26 18:40:05 +01:00
|
|
|
{/foreach}
|
|
|
|
</table>
|
2009-10-30 01:03:17 +01:00
|
|
|
|
|
|
|
|
|
|
|
{if $page.nbPages > 1}
|
2008-02-26 18:40:05 +01:00
|
|
|
<p class='LSobject-list-page'>
|
2009-10-30 01:03:17 +01:00
|
|
|
{if $page.nbPages > 10}
|
|
|
|
{if $page.nb > 5}
|
|
|
|
{if $page.nb > $page.nbPages-6}
|
|
|
|
{assign var=start value=$page.nbPages-12}
|
|
|
|
{else}
|
|
|
|
{assign var=start value=$page.nb-6}
|
|
|
|
{/if}
|
2008-02-26 18:40:05 +01:00
|
|
|
{else}
|
2009-10-30 01:03:17 +01:00
|
|
|
{assign var=start value=0}
|
2008-02-26 18:40:05 +01:00
|
|
|
{/if}
|
2009-10-30 01:03:17 +01:00
|
|
|
<a href='select.php?LSobject={$LSsearch->LSobject}&page=0&multiple={$searchForm.multiple}' class='LSobject-list-page'><</a>
|
2012-09-02 20:08:41 +02:00
|
|
|
{foreach from=0|range:10 item=i}
|
2009-10-30 01:03:17 +01:00
|
|
|
{if $page.nb==$start+$i}
|
|
|
|
<strong class='LSobject-list-page'>{$page.nb+1}</strong>
|
|
|
|
{else}
|
|
|
|
<a href='select.php?LSobject={$LSsearch->LSobject}&page={$i+$start}&multiple={$searchForm.multiple}' class='LSobject-list-page'>{$i+$start+1}</a>
|
|
|
|
{/if}
|
|
|
|
{/foreach}
|
|
|
|
<a href='select.php?LSobject={$LSsearch->LSobject}&page={$page.nbPages-1}&multiple={$searchForm.multiple}' class='LSobject-list-page'>></a>
|
|
|
|
{else}
|
|
|
|
{section name=listpage loop=$page.nbPages step=1}
|
|
|
|
{if $page.nb == $smarty.section.listpage.index}
|
|
|
|
<strong class='LSobject-list-page'>{$page.nb+1}</strong>
|
|
|
|
{else}
|
|
|
|
<a href='select.php?LSobject={$LSsearch->LSobject}&page={$smarty.section.listpage.index}&multiple={$searchForm.multiple}' class='LSobject-list-page'>{$smarty.section.listpage.index+1}</a>
|
|
|
|
{/if}
|
|
|
|
{/section}
|
|
|
|
{/if}
|
2008-02-26 18:40:05 +01:00
|
|
|
</p>
|
|
|
|
{/if}
|
2009-10-30 01:03:17 +01:00
|
|
|
|
|
|
|
<div id='LSdebug_txt_ajax' style='display: none'>{$LSdebug_txt}</div>
|
|
|
|
<div id='LSerror_txt_ajax' style='display: none'>{$LSerror_txt}</div>
|