Initial repo created
[timetracker.git] / WEB-INF / templates / mobile / header.tpl
diff --git a/WEB-INF/templates/mobile/header.tpl b/WEB-INF/templates/mobile/header.tpl
new file mode 100644 (file)
index 0000000..2a663c8
--- /dev/null
@@ -0,0 +1,83 @@
+<html>
+<head>
+  <meta http-equiv="content-type" content="text/html; charset={$smarty.const.CHARSET}">
+  <meta name="viewport" content="width=device-width, initial-scale=1.0">
+  <link rel="icon" href="../favicon.ico" type="image/x-icon">
+  <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon">
+  <link href="../{$smarty.const.DEFAULT_CSS}" rel="stylesheet" type="text/css">
+{if $i18n.language.rtl}
+  <link href="../{$smarty.const.RTL_CSS}" rel="stylesheet" type="text/css">
+{/if}
+  <title>Time Tracker{if $title} - {$title}{/if}</title>
+  <script src="../js/strftime.js"></script>
+  <script>
+    {* Setup locale for strftime *}
+    {$js_date_locale}
+  </script>
+  <script src="../js/strptime.js"></script>
+</head>
+
+<body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" {$onload}>
+
+{assign var="tab_width" value="300"}
+
+<table height="100%" cellspacing="0" cellpadding="0" width="320" border="0">
+  <tr>
+    <td valign="top" align="center"> <!-- This is to centrally align all our content. -->
+
+      <!-- Top image -->
+      <table cellspacing="0" cellpadding="0" width="100%" border="0">
+        <tr>
+{if $user->custom_logo}
+          <td align="center">
+{else}
+          <td bgcolor="#a6ccf7" background="../images/top_bg.gif" align="center">
+{/if}
+            <table cellspacing="0" cellpadding="0" width="{$tab_width}" border="0">
+              <tr>
+                <td valign="top">
+                  <table cellspacing="0" cellpadding="0" width="100%" border="0">
+                    <tr><td height="6" colspan="2"><img width="1" height="6" src="../images/1x1.gif" border="0"></td></tr>
+                    <tr valign="top">
+{if $user->custom_logo}
+                      <td height="55" align="center"><img alt="Time Tracker" width="300" height="43" src="{$mobile_custom_logo}" border="0"></td>
+{else}
+                      <td height="55" align="center"><img alt="Anuko Time Tracker" width="300" height="43" src="../images/tt_logo.png" border="0"></td>
+{/if}
+                    </tr>
+                  </table>
+                </td>
+              </tr>
+            </table>
+          </td>
+        </tr>
+      </table>
+      <!-- End of top image -->
+
+      <!-- Output errors -->
+{if !$errors->isEmpty()}
+      <table cellspacing="4" cellpadding="7" width="{$tab_width}" border="0">
+        <tr>
+          <td class="error">
+  {foreach $errors->getErrors() as $error}
+            {$error.message}<br> {* No need to escape as they are not coming from user and may contain a link. *}
+  {/foreach}
+          </td>
+        </tr>
+      </table>
+{/if}
+      <!-- End of output errors -->
+
+      <!-- Output messages -->
+{if !$messages->isEmpty()}
+      <table cellspacing="4" cellpadding="7" width="{$tab_width}" border="0">
+        <tr>
+          <td class="info_message">
+  {foreach $messages->getErrors() as $message}
+            {$message.message}<br> {* No need to escape. *}
+  {/foreach}
+          </td>
+        </tr>
+      </table>
+{/if}
+      <!-- End of output messages -->
\ No newline at end of file