Introduced tile.display_options in translation files.
[timetracker.git] / WEB-INF / templates / mobile / header.tpl
1 <html>
2 <head>
3   <meta http-equiv="content-type" content="text/html; charset={$smarty.const.CHARSET}">
4   <meta name="viewport" content="width=device-width, initial-scale=1.0">
5   <link rel="icon" href="../favicon.ico" type="image/x-icon">
6   <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon">
7   <link href="../{$smarty.const.DEFAULT_CSS}" rel="stylesheet" type="text/css">
8 {if $i18n.language.rtl}
9   <link href="../{$smarty.const.RTL_CSS}" rel="stylesheet" type="text/css">
10 {/if}
11   <title>Time Tracker{if $title} - {$title}{/if}</title>
12   <script src="../js/strftime.js"></script>
13   <script>
14     {* Setup locale for strftime *}
15     {$js_date_locale}
16   </script>
17   <script src="../js/strptime.js"></script>
18 </head>
19
20 <body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" {$onload}>
21
22 {assign var="tab_width" value="300"}
23
24 <table height="100%" cellspacing="0" cellpadding="0" border="0" style="margin-left: auto; margin-right: auto;">
25   <tr>
26     <td valign="top" align="center"> <!-- This is to centrally align all our content. -->
27
28       <!-- top image -->
29       <table cellspacing="0" cellpadding="0" width="100%" border="0">
30         <tr>
31 {if $user->custom_logo}
32           <td align="center">
33 {else}
34           <td bgcolor="#a6ccf7" background="../images/top_bg.gif" align="center">
35 {/if}
36             <table cellspacing="0" cellpadding="0" width="{$tab_width}" border="0">
37               <tr>
38                 <td valign="top">
39                   <table id="page_logo" cellspacing="0" cellpadding="0" width="100%" border="0">
40                     <tr><td height="6" colspan="2"><img width="1" height="6" src="../images/1x1.gif" border="0"></td></tr>
41                     <tr valign="top">
42 {if $user->custom_logo}
43                       <td height="55" align="center"><img alt="Time Tracker" width="300" height="43" src="{$mobile_custom_logo}" border="0"></td>
44 {else}
45                       <td height="55" align="center"><img alt="Anuko Time Tracker" width="300" height="43" src="../images/tt_logo.png" border="0"></td>
46 {/if}
47                     </tr>
48                   </table>
49                 </td>
50               </tr>
51             </table>
52           </td>
53         </tr>
54       </table>
55       <!-- end of top image -->
56       
57 {if $authenticated}
58   {if $user->can('administer_site')}
59   
60       <!-- sub menu for admin -->
61       <table id="sub_menu_admin" cellspacing="0" cellpadding="3" width="100%" border="0">
62         <tr>
63           <td align="center" bgcolor="#d9d9d9" height="17" style="background-repeat: repeat-x;" background="../images/subm_bg.gif">&nbsp;
64             <a class="mainMenu" href="admin_groups.php">{$i18n.menu.groups}</a> &middot;
65             <a class="mainMenu" href="admin_options.php">{$i18n.menu.options}</a>
66           </td>
67         </tr>
68       </table>
69       <!-- end of sub menu for admin -->
70   {else}
71
72       <!-- sub menu for authorized user -->
73       <table id="sub_menu_authorized_user" cellspacing="0" cellpadding="3" width="100%" border="0">
74         <tr>
75           <td align="center" bgcolor="#d9d9d9" height="17" style="background-repeat: repeat-x;" background="../images/subm_bg.gif">&nbsp;
76     {if $user->exists() && ($user->can('track_own_time') || $user->can('track_time'))}
77            <a class="mainMenu" href="time.php">{$i18n.menu.time}</a>
78     {/if}
79     {if $user->exists() && $user->isPluginEnabled('ex') && ($user->can('track_own_expenses') || $user->can('track_expenses'))}
80             &middot; <a class="mainMenu" href="expenses.php">{$i18n.menu.expenses}</a>
81     {/if}
82     {if ($user->can('view_own_projects') || $user->can('manage_projects')) && ($smarty.const.MODE_PROJECTS == $user->getTrackingMode() || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->getTrackingMode())}
83             &middot; <a class="mainMenu" href="projects.php">{$i18n.menu.projects}</a>
84     {/if}
85     {if ($user->can('view_own_tasks') || $user->can('manage_tasks')) && $smarty.const.MODE_PROJECTS_AND_TASKS == $user->getTrackingMode()}
86             &middot; <a class="mainMenu" href="tasks.php">{$i18n.menu.tasks}</a>
87     {/if}
88     {if $user->can('view_users') || $user->can('manage_users')}
89             &middot; <a class="mainMenu" href="users.php">{$i18n.menu.users}</a>
90     {/if}
91     {if $user->isPluginEnabled('cl') && ($user->can('view_own_clients') || $user->can('manage_clients'))}
92             &middot; <a class="mainMenu" href="clients.php">{$i18n.menu.clients}</a>
93     {/if}
94           </td>
95         </tr>
96       </table>
97       <!-- end of sub menu for authorized user -->
98   {/if}
99 {/if}
100       
101       <!-- output errors -->
102 {if $err->yes()}
103       <table id="page_errors" cellspacing="4" cellpadding="7" width="{$tab_width}" border="0">
104         <tr>
105           <td class="error">
106   {foreach $err->getErrors() as $error}
107             {$error.message}<br> {* No need to escape as they are not coming from user and may contain a link. *}
108   {/foreach}
109           </td>
110         </tr>
111       </table>
112 {/if}
113       <!-- end of output errors -->
114
115       <!-- output messages -->
116 {if $msg->yes()}
117       <table id="page_messages" cellspacing="4" cellpadding="7" width="{$tab_width}" border="0">
118         <tr>
119           <td class="info_message">
120   {foreach $msg->getErrors() as $message}
121             {$message.message}<br> {* No need to escape. *}
122   {/foreach}
123           </td>
124         </tr>
125       </table>
126 {/if}
127       <!-- end of output messages -->