1 {include file='top.tpl'}
2 <form action='{$searchForm.action}' method='post' class='LSview_search' id='LSsearch_form'>
4 <div class='LSview_search'>
5 {foreach from=$searchForm.hiddenFields item=value key=name}
6 <input type='hidden' name='{$name}' value='{$value}' />
9 <input type='text' name='pattern' class='LSview_search' value="{$searchForm.values.pattern}"/>
10 <input type='submit' value='{$searchForm.labels.submit}' name='{$searchForm.names.submit}' class='LSview_search' />
11 <p id='LSview_search_param'>
12 <label class='LSview_search'>{$searchForm.labels.approx} : <input type='checkbox' name='approx' class='LSview_search' {if $searchForm.values.approx!=''}checked="true"{/if} /></label>
13 {if $searchForm.recursive}<label class='LSview_search'>{$searchForm.labels.recursive} : <input type='checkbox' name='recursive' class='LSview_search' {if $searchForm.values.recursive!=''}checked="true"{/if}/></label>{/if}
21 {if $LSview_actions != ''}
22 <ul class='LSview-actions'>
23 {foreach from=$LSview_actions item=item}
25 <li class='LSview-actions'><a href='{$item.url}' class='LSview-actions'><img src='{$LS_IMAGES_DIR}/{$item.action}.png' alt='{php}tr('label');{/php}' title='{php}tr('label');{/php}' /> {php}tr('item','label');{/php}</a></li>
31 {if count($LSsearch->predefinedFilters) != 0}
32 <select id='LSview_search_predefinedFilter' name='predefinedFilter'>
33 <option value=''>--</option>
34 {html_options options=$LSsearch->predefinedFilters selected=$searchForm.predefinedFilter}
41 <table class='LSobject-list'>
42 <tr class='LSobject-list'>
43 <th class='LSobject-list'>
45 <a href='view.php?LSobject={$LSsearch->LSobject}&sortBy=displayName&nocache={$smarty.now}'>
46 {if $LSsearch->sortBy == 'displayName'}
47 <strong>{$LSsearch->label_objectName}</strong>
48 <img src='{$LS_IMAGES_DIR}/{$LSsearch->sortDirection}.png' class='LSobject-list-ordersense' alt='{$LSsearch->sortDirection}'/>
50 {$LSsearch->label_objectName}
54 {$LSsearch->label_objectName}
57 {if $LSsearch->displaySubDn}
58 <th class='LSobject-list LSobject-list-subdn'>
60 <a href='view.php?LSobject={$LSsearch->LSobject}&sortBy=subDn&nocache={$smarty.now}'>
61 {if $LSsearch->sortBy == 'subDn'}
62 <strong>{$LSsearch->label_level}</strong>
63 <img src='{$LS_IMAGES_DIR}/{$LSsearch->sortDirection}.png' class='LSobject-list-ordersense' alt='{$LSsearch->sortDirection}'/>
65 {$LSsearch->label_level}
69 {$LSsearch->label_level}
73 <th class='LSobject-list'>{$LSsearch->label_actions}</th>
75 {foreach from=$page.list item=object}
76 <tr class='{cycle values="LSobject-list,LSobject-list LSobject-list-bis"}'>
77 <td class='LSobject-list LSobject-list-names'><a href='view.php?LSobject={$LSsearch->LSobject}&dn={$object->dn}' class='LSobject-list'>{$object->displayName}</a> </td>
78 {if $LSsearch->displaySubDn}<td class='LSobject-list'>{$object->subDn}</td>{/if}
79 <td class='LSobject-list LSobject-list-actions'>
80 {foreach from=$object->actions item=item}
81 <a href='{$item.url}' class='LSobject-list-actions'><img src='{$LS_IMAGES_DIR}/{$item.action}.png' alt='{$item.label}' title='{$item.label}'/></a>
86 <tr class='LSobject-list'>
87 <td colspan='3' class='LSobject-list-without-result'>{$LSsearch->label_no_result}</td>
91 <span id='LSobject_list_nbresult'>{$LSsearch->label_total}</span>
92 {if $page.nbPages > 1}
93 <p class='LSobject-list-page'>
95 {if $page.nbPages > 10}
96 {php}$this->assign('range', range(0,10));{/php}
98 {if $page.nb > $page.nbPages-6}
99 {assign var=start value=$page.nbPages-12}
101 {assign var=start value=$page.nb-6}
104 {assign var=start value=0}
106 <a href='view.php?LSobject={$LSsearch->LSobject}&page=0' class='LSobject-list-page'><</a>
107 {foreach from=$range item=i}
108 {if $page.nb==$start+$i}
109 <strong class='LSobject-list-page'>{$page.nb+1}</strong>
111 <a href='view.php?LSobject={$LSsearch->LSobject}&page={$i+$start}' class='LSobject-list-page'>{$i+$start+1}</a>
114 <a href='view.php?LSobject={$LSsearch->LSobject}&page={$page.nbPages-1}' class='LSobject-list-page'>></a>
116 {section name=listpage loop=$page.nbPages step=1}
117 {if $page.nb == $smarty.section.listpage.index}
118 <strong class='LSobject-list-page'>{$page.nb+1}</strong>
120 <a href='view.php?LSobject={$LSsearch->LSobject}&page={$smarty.section.listpage.index}' class='LSobject-list-page'>{$smarty.section.listpage.index+1}</a>
126 {include file='bottom.tpl'}