Refactoring - white space
[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" width="320" border="0">
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 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       <!-- Output errors -->
58 {if !$errors->isEmpty()}
59       <table cellspacing="4" cellpadding="7" width="{$tab_width}" border="0">
60         <tr>
61           <td class="error">
62   {foreach $errors->getErrors() as $error}
63             {$error.message}<br> {* No need to escape as they are not coming from user and may contain a link. *}
64   {/foreach}
65           </td>
66         </tr>
67       </table>
68 {/if}
69       <!-- End of output errors -->
70
71       <!-- Output messages -->
72 {if !$messages->isEmpty()}
73       <table cellspacing="4" cellpadding="7" width="{$tab_width}" border="0">
74         <tr>
75           <td class="info_message">
76   {foreach $messages->getErrors() as $message}
77             {$message.message}<br> {* No need to escape. *}
78   {/foreach}
79           </td>
80         </tr>
81       </table>
82 {/if}
83       <!-- End of output messages -->