1 |
<div class="area"> |
{* Header: $ *} |
2 |
|
{if !$useframe}<div class="area">{/if} |
3 |
|
{if $info} |
4 |
|
{if $admin} |
5 |
|
<script language="javascript"> |
6 |
|
{literal} |
7 |
|
function switchCheckboxes(the_form, elements_name, switcher_name) { |
8 |
|
var elements = document.forms[the_form].elements[elements_name]; |
9 |
|
var elements_cnt = ( typeof (elements.length) != 'undefined') ? elements.length : 0; |
10 |
|
if (elements_cnt) { |
11 |
|
for (var i = 0; i < elements_cnt; i++) { |
12 |
|
elements[i].checked = document.forms[the_form].elements[switcher_name].checked; |
13 |
|
} |
14 |
|
} else { |
15 |
|
elements.checked = document.forms[the_form].elements[switcher_name].checked; |
16 |
|
} |
17 |
|
return true; |
18 |
|
} |
19 |
|
{/literal} |
20 |
|
</script> |
21 |
|
<form method="post" action="list.php" name="l">{/if} |
22 |
<table border="0" cellspacing="0" cellpadding="1" class="tabled"> |
<table border="0" cellspacing="0" cellpadding="1" class="tabled"> |
23 |
<tr><td class="bar">{$results} Résultats</td> |
<tr> |
24 |
|
{if $admin} |
25 |
|
<td class="firstline"> |
26 |
|
{if $searchx}<input type="hidden" name="searchx" value="{$searchx}">{/if} |
27 |
|
<input type="submit" name="action" value="X" class="act" style="float:right;"/> |
28 |
|
<input name="switch" id="switch" type="checkbox" onclick="switchCheckboxes('l','delall[]','switch');" value="on" /> |
29 |
|
</td> |
30 |
|
{/if} |
31 |
|
|
32 |
{foreach key=th item=ti from=$list name=titles} |
{foreach key=th item=ti from=$list name=titles} |
33 |
|
|
34 |
{if $sort and $sort eq $ti} |
{if $sort and $sort eq $ti} |
35 |
<td class="orderbysort"> |
<td class="orderbysort"> |
36 |
<a href="index.php?rsort={$ti}{$mquery}" style="color:inherit;text-decoration:none;">{$schema_user.$ti.LABEL} |
<a href="list.php?rsort={$ti}{$mquery}" style="color:inherit;text-decoration:none;">{$schema_user.$ti.LABEL} |
37 |
<span style="font-weight:bold;color:#429262;margin-left:7px;">>></span></a> |
<span style="font-weight:bold;color:#429262;margin-left:7px;">>></span></a> |
38 |
</td> |
</td> |
39 |
|
|
40 |
{elseif $rsort and $rsort eq $ti} |
{elseif $rsort and $rsort eq $ti} |
41 |
<td class="orderbysort"> |
<td class="orderbysort"> |
42 |
<a href="index.php?sort={$ti}{$mquery}" style="color:inherit;text-decoration:none;">{$schema_user.$ti.LABEL} |
<a href="list.php?sort={$ti}{$mquery}" style="color:inherit;text-decoration:none;">{$schema_user.$ti.LABEL} |
43 |
<span style="font-weight:bold;color:#429262;margin-left:7px;"><<</span></a> |
<span style="font-weight:bold;color:#429262;margin-left:7px;"><<</span></a> |
44 |
</td> |
</td> |
45 |
|
|
46 |
{else} |
{else} |
47 |
<td class="orderby"> |
<td class="orderby"> |
48 |
<a href="index.php?sort={$ti}{$mquery}" style="color:inherit;text-decoration:none;">{$schema_user.$ti.LABEL} |
<a href="list.php?sort={$ti}{$mquery}" style="color:inherit;text-decoration:none;">{$schema_user.$ti.LABEL} |
49 |
<span style="font-weight:bold;color:#999999;margin-left:7px;">>></span></a> |
<span style="font-weight:bold;color:#999999;margin-left:7px;">>></span></a> |
50 |
</td> |
</td> |
51 |
|
|
57 |
{cycle values="1,0" print=false} |
{cycle values="1,0" print=false} |
58 |
{foreach key=user item=udata from=$info name=items} |
{foreach key=user item=udata from=$info name=items} |
59 |
<tR> |
<tR> |
|
<td class="clabel0" style="font-size:80%;padding-top:1px;"> |
|
|
<div style="margin:2px;"> |
|
|
<a href="page.php?id={$udata.$baseattr|escape:"url"}{$mquery}" class="act">Afficher</a> |
|
60 |
{if $admin} |
{if $admin} |
61 |
<a href="index.php?action=del&id={$udata.$baseattr|escape:"url"}{$mquery}" class="act">Effacer</a> |
<td class="firstcol{cycle}" nowrap> |
62 |
{/if} |
<div> |
63 |
{if $admin or $ladmin} |
<input type="checkbox" name="delall[]" value="{$udata.$baseattr}" id="list_{$num}" /> |
64 |
<a href="form.php?id={$udata.$baseattr|escape:"url"}{$mquery}" class="act">Modifier</a> |
<a href="form.php?id={$udata.$baseattr|escape:"url"}{$mquery}" class="actlist"{if $useframe} target="page"{/if}>Modif</a> |
|
{/if} |
|
65 |
</div></td> |
</div></td> |
66 |
{cycle print=false} |
{/if} |
67 |
{if $udata.$baseattr eq $id} |
{if $udata.$baseattr eq $id} |
68 |
<td class="msgok" style="border-top: solid 1px #999999;border-left: solid 1px #999999;" colspan="{$cols}" align="right"> |
<td class="msgok" style="border-top: solid 1px #999999;border-left: solid 1px #999999;" colspan="{$cols}" align="right"> |
69 |
{$msg} |
{$msg} |
71 |
{else} |
{else} |
72 |
{foreach key=th item=ti from=$list name=titles} |
{foreach key=th item=ti from=$list name=titles} |
73 |
<td class="clabel{cycle advance=false}" style="border-left: solid 1px #999999;"> |
<td class="clabel{cycle advance=false}" style="border-left: solid 1px #999999;"> |
74 |
<div style="margin:2px;">{$udata.$ti} </div></td> |
<div style="margin:2px;"> |
75 |
|
{if $ti eq $baseattr} |
76 |
|
<a href="page.php?id={$udata.$baseattr|escape:"url"}{$mquery}"{if $useframe} target="page"{/if}>{$udata.$ti|default:" "}</a> |
77 |
|
{else} |
78 |
|
{$udata.$ti|default:" "} |
79 |
|
{/if} |
80 |
|
</div></td> |
81 |
{/foreach} |
{/foreach} |
82 |
{/if} |
{/if} |
83 |
</tr> |
</tr> |
84 |
{/foreach} |
{/foreach} |
85 |
<tr><td colspan="{$colspan}" class="lastline"> |
<tr><td colspan="{$colspan}" class="lastline"> |
86 |
{if $admin} |
{$results} Résultats |
|
<a href="form.php" class="act">NOUVEAU</a> |
|
|
{/if} |
|
87 |
</td></tr> |
</td></tr> |
88 |
</table> |
</table> |
89 |
</div> |
{if $admin}</form>{/if} |
90 |
|
{/if} |
91 |
|
{if !$useframe}</div>{/if} |