Add button to permit user to refresh his access rights
[ldapsaisie.git] / public_html / templates / default / top.tpl
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2  "http://www.w3.org/TR/html4/loose.dtd">
3 <html>
4   <head>
5     <meta http-equiv="content-type" content="text/html; charset={$LSencoding}">
6     <title>LdapSaisie{if $pagetitle != ''} - {$pagetitle}{/if}</title>
7     <link rel="icon" type="image/png" href="images/default/favicon.png" />
8     <link rel="stylesheet" type="text/css" href="{css name='base.css'}" title="Normal" />
9     <link rel="stylesheet" type="text/css" href="{css name='base_print.css'}" media='print' title="Normal" />
10     {$LSsession_css}
11   </head>
12 <body>
13
14 {include file='ls:LSdefault.tpl'}
15
16 <table id='main'>
17   <tr>
18     <td rowspan=2 id='left'>
19       <a href='index.php'><img src='{img name='logo'}' alt='Logo' id='logo'/></a>
20       
21       {if $LSsession_subDn!=""}
22         <form action="index.php" method='post' id='LSsession_topDn_form'>
23           <label>{$label_level}
24             <a href="index.php?LSsession_refresh"><img src='{img name='refresh'}' alt='{$_refresh}' title='{$_refresh}' /></a>
25             <select name='LSsession_topDn' id='LSsession_topDn'>
26               {html_options values=$LSsession_subDn_indexes output=$LSsession_subDn_names selected=$LSsession_subDn}
27             </select>
28           </label>
29         </form>
30       {/if}
31       <ul class='menu'>
32       {foreach from=$LSaccess item=label key=LSobject_type}
33         <li class='menu'><a href='view.php?LSobject={$LSobject_type}' class='menu'>{tr msg=$label}</a></li>
34       {/foreach}
35       {foreach from=$LSaddonsViewsAccess item=access}
36         {if $access.showInMenu}
37         <li class='menu'><a href='addon_view.php?LSaddon={$access.LSaddon}&view={$access.id}' class='menu'>{tr msg=$access.label}</a></li>
38         {/if}
39       {/foreach}
40       </ul>
41     </td>
42     <td id='status'>
43     <span>{$lang_label} : <img id='LSlang' src='{img name=$LSlang}' alt='{$LSlang}' title='{$LSlang}'/></span>
44     <form action='' methode='post' style='display: none' class='LSlang_hidden'>
45       <select name='lang'>
46       {foreach from=$LSlanguages item=lang}
47         <option value='{$lang}'>{$lang}</option>
48       {/foreach}
49       </select>
50       <input type='submit' value='->'/>
51     </form>
52     {if $displaySelfAccess}{$connected_as} <span id='user_name'>{$LSsession_username}</span>{/if}
53     <a href='index.php?LSsession_refresh=1'><img src='{img name='refresh'}' alt="{tr msg="Refresh my access rights"}" title="{tr msg="Refresh my access rights"}" /></a>
54     {if $displayLogoutBtn} <a href='index.php?LSsession_logout'><img src='{img name='logout'}' alt='Logout' title='Logout' /></a>{/if}
55     </td>
56   </tr>
57   <tr>
58     <td id='right'>
59     
60     
61
62