/[ludap]/ludap/templates/list.tpl
ViewVC logotype

Diff of /ludap/templates/list.tpl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by mose, Tue Sep 9 15:00:05 2003 UTC revision 1.7 by mose, Sat Sep 13 09:09:23 2003 UTC
# Line 1  Line 1 
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  &nbsp;<a href="index.php?rsort={$ti}{$mquery}" style="color:inherit;text-decoration:none;">{$schema_user.$ti.LABEL}  &nbsp;<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;">&gt;&gt;</span></a>  <span style="font-weight:bold;color:#429262;margin-left:7px;">&gt;&gt;</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  &nbsp;<a href="index.php?sort={$ti}{$mquery}" style="color:inherit;text-decoration:none;">{$schema_user.$ti.LABEL}  &nbsp;<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;">&lt;&lt;</span></a>  <span style="font-weight:bold;color:#429262;margin-left:7px;">&lt;&lt;</span></a>
44  </td>  </td>
45    
46  {else}  {else}
47  <td class="orderby">  <td class="orderby">
48  &nbsp;<a href="index.php?sort={$ti}{$mquery}" style="color:inherit;text-decoration:none;">{$schema_user.$ti.LABEL}  &nbsp;<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;">&gt;&gt;</span></a>  <span style="font-weight:bold;color:#999999;margin-left:7px;">&gt;&gt;</span></a>
50  </td>  </td>
51    
# Line 30  Line 57 
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&amp;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}" />&nbsp;
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}
# Line 48  Line 71 
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}&nbsp;</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:"&nbsp;"}</a>
77    {else}
78    {$udata.$ti|default:"&nbsp;"}
79    {/if}
80    </div></td>
81  {/foreach}  {/foreach}
82  {/if}  {/if}
83  </tr>  </tr>
84  {/foreach}  {/foreach}
85  <tr><td colspan="{$colspan}" class="lastline">&nbsp;  <tr><td colspan="{$colspan}" class="lastline">&nbsp;
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}

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26