2d84943aa574e26a25e08886aebabddfb41abca5
[ldapsaisie.git] / public_html / templates / default / LSform_view.tpl
1 <input type='hidden' name='LSform_objecttype' id='LSform_objecttype'  value='{$LSform_object.type}'/>
2 <input type='hidden' name='LSform_objectdn' id='LSform_objectdn'  value='{$LSform_object.dn}'/>
3 {if $LSform_layout}
4   <!-- Tabs - Start Title -->
5   <ul class='LSform_layout'>
6   {foreach from=$LSform_layout item=tab key=tab_key}
7     <li class='LSform_layout' id='LSform_layout_btn_{$tab_key}'><a href="#{$tab_key}">{php}tr('tab','label'){/php}</a></li>
8   {/foreach}
9   </ul>
10   <!-- Tabs - End Title -->
11
12   <!-- Tabs - Start Content -->
13   {foreach from=$LSform_layout item=tab key=tab_key}
14     <a name='{$tab_key}'></a>
15     <h2 class='LSform_layout'>{$tab.label}</h2>
16     <div class='LSform LSform_layout' id='LSform_layout_div_{$tab_key}'>
17     
18       {if $LSformElement_image!='' && $tab.img==1}
19         <div class='LSformElement_image'>
20           <a href='{$LSformElement_image.img}' rel='rien ici' title='comment' class='mb'><img src='{$LSformElement_image.img}' class='LSformElement_image LSsmoothbox' id='LSformElement_image_{$LSformElement_image.id}' /></a>
21         </div>
22       {/if}
23       
24       <dl class='LSform'>
25         {assign var='field' value='non'}
26         {foreach from=$tab.args item=arg}
27           {if $LSform_fields[$arg]}
28             {assign var='field' value='oui'}
29             <dt class='LSform'>{$LSform_fields[$arg].label}</dt>
30             <dd class='LSform'>{$LSform_fields[$arg].html}</dd>
31           {/if}
32         {/foreach}
33         {if $field=='non'}
34           <dd class='LSform'>{$LSform_layout_nofield_label}</dd>
35         {/if}
36       </dl>
37       
38     </div>
39   {/foreach}  
40   <!-- Tabs - End Content -->
41 {else}
42
43   {if $LSformElement_image!=''}
44   <div class='LSformElement_image'>
45     <a href='{$LSformElement_image.img}' rel='rien ici' title='comment' class='mb'><img src='{$LSformElement_image.img}' class='LSformElement_image LSsmoothbox' id='LSformElement_image_{$LSformElement_image.id}' /></a>
46   </div>
47   {/if}
48
49   <div class='LSform'>
50     <dl class='LSform'>
51       {foreach from=$LSform_fields item=field}
52       <dt class='LSform'>{$field.label}</dt>
53       <dd class='LSform'>{$field.html}</dd>
54       {/foreach}
55     </dl>
56   </div>
57    
58 {/if}