3 <meta http-equiv="content-type" content="text/html; charset={$smarty.const.CHARSET}">
4 <link rel="icon" href="favicon.ico" type="image/x-icon">
5 <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
6 <link href="{$smarty.const.DEFAULT_CSS}" rel="stylesheet" type="text/css">
7 {if $i18n.language.rtl}
8 <link href="{$smarty.const.RTL_CSS}" rel="stylesheet" type="text/css">
10 <title>Time Tracker{if $title} - {$title}{/if}</title>
11 <script src="js/strftime.js"></script>
13 {* Setup locale for strftime *}
16 <script src="js/strptime.js"></script>
19 <body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" {$onload}>
21 {assign var="tab_width" value="700"}
23 <table height="100%" cellspacing="0" cellpadding="0" width="100%" border="0">
25 <td valign="top" align="center"> <!-- This is to centrally align all our content. -->
28 <table cellspacing="0" cellpadding="0" width="100%" border="0">
30 {if $user->custom_logo}
33 <td bgcolor="#a6ccf7" background="images/top_bg.gif" align="center">
35 <table cellspacing="0" cellpadding="0" width="{$tab_width}" border="0">
38 <table cellspacing="0" cellpadding="0" width="100%" border="0">
39 <tr><td height="6" colspan="2"><img width="1" height="6" src="images/1x1.gif" border="0"></td></tr>
41 {if $user->custom_logo}
42 <td height="55" align="center"><img alt="Time Tracker" width="300" height="43" src="{$custom_logo}" border="0"></a></td>
44 <td height="55" align="center"><a href="https://www.anuko.com/lp/tt_1.htm" target="_blank"><img alt="Anuko Time Tracker" width="300" height="43" src="images/tt_logo.png" border="0"></a></td>
54 <!-- end of top image -->
57 {if $user->can('administer_site')}
58 <!-- top menu for admin -->
59 <table cellspacing="0" cellpadding="3" width="100%" border="0">
61 <td class="systemMenu" height="17" align="center">
62 <a class="systemMenu" href="logout.php">{$i18n.menu.logout}</a> ·
63 <a class="systemMenu" href="{$smarty.const.FORUM_LINK}" target="_blank">{$i18n.menu.forum}</a> ·
64 <a class="systemMenu" href="{$smarty.const.HELP_LINK}" target="_blank">{$i18n.menu.help}</a>
68 <!-- end of top menu for admin -->
70 <!-- sub menu for admin -->
71 <table cellspacing="0" cellpadding="3" width="100%" border="0">
73 <td align="center" bgcolor="#d9d9d9" nowrap height="17" background="images/subm_bg.gif">
74 <a class="mainMenu" href="admin_groups.php">{$i18n.menu.groups}</a> ·
75 <a class="mainMenu" href="admin_options.php">{$i18n.menu.options}</a>
79 <!-- end of sub menu for admin -->
81 <!-- top menu for authorized user -->
82 <table cellspacing="0" cellpadding="3" width="100%" border="0">
84 <td class="systemMenu" height="17" align="center">
85 <a class="systemMenu" href="logout.php">{$i18n.menu.logout}</a> ·
86 {if $user->exists() && $user->can('manage_own_settings')}
87 <a class="systemMenu" href="profile_edit.php">{$i18n.menu.profile}</a> ·
89 {if $user->can('manage_basic_settings')}
90 <a class="systemMenu" href="group_edit.php">{$i18n.menu.group}</a> ·
92 {if $user->can('manage_subgroups')}
93 <a class="systemMenu" href="groups.php">{$i18n.menu.subgroups}</a> ·
95 {if $user->can('manage_features')}
96 <a class="systemMenu" href="plugins.php">{$i18n.menu.plugins}</a> ·
98 <a class="systemMenu" href="{$smarty.const.FORUM_LINK}" target="_blank">{$i18n.menu.forum}</a> ·
99 <a class="systemMenu" href="{$smarty.const.HELP_LINK}" target="_blank">{$i18n.menu.help}</a>
103 <!-- end of top menu for authorized user -->
105 <!-- sub menu for authorized user -->
106 <table cellspacing="0" cellpadding="3" width="100%" border="0">
108 <td align="center" bgcolor="#d9d9d9" nowrap height="17" background="images/subm_bg.gif">
109 {if $user->exists() && ($user->can('track_own_time') || $user->can('track_time'))}
110 <a class="mainMenu" href="time.php">{$i18n.menu.time}</a>
112 {if $user->exists() && $user->isPluginEnabled('ex') && ($user->can('track_own_expenses') || $user->can('track_expenses'))}
113 · <a class="mainMenu" href="expenses.php">{$i18n.menu.expenses}</a>
115 {if $user->exists() && ($user->can('view_own_reports') || $user->can('view_reports') || $user->can('view_all_reports') || $user->can('view_client_reports'))}
116 {if !$user->isClient()}·{/if} <a class="mainMenu" href="reports.php">{$i18n.menu.reports}</a>
118 {if $user->exists() && $user->isPluginEnabled('ts') && ($user->can('track_own_time') || $user->can('track_time'))}
119 · <a class="mainMenu" href="timesheets.php">{$i18n.menu.timesheets}</a>
121 {if $user->exists() && $user->isPluginEnabled('iv') && ($user->can('manage_invoices') || $user->can('view_client_invoices'))}
122 · <a class="mainMenu" href="invoices.php">{$i18n.title.invoices}</a>
124 {if ($user->exists() && $user->isPluginEnabled('ch') && ($user->can('view_own_charts') || $user->can('view_charts'))) &&
125 ($smarty.const.MODE_PROJECTS == $user->getTrackingMode() || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->getTrackingMode() ||
126 $user->isPluginEnabled('cl'))}
127 · <a class="mainMenu" href="charts.php">{$i18n.menu.charts}</a>
129 {if ($user->can('view_own_projects') || $user->can('manage_projects')) && ($smarty.const.MODE_PROJECTS == $user->getTrackingMode() || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->getTrackingMode())}
130 · <a class="mainMenu" href="projects.php">{$i18n.menu.projects}</a>
132 {if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->getTrackingMode() && ($user->can('view_own_tasks') || $user->can('manage_tasks')))}
133 · <a class="mainMenu" href="tasks.php">{$i18n.menu.tasks}</a>
135 {if $user->can('view_users') || $user->can('manage_users')}
136 · <a class="mainMenu" href="users.php">{$i18n.menu.users}</a>
138 {if $user->isPluginEnabled('cl') && ($user->can('view_own_clients') || $user->can('manage_clients'))}
139 · <a class="mainMenu" href="clients.php">{$i18n.menu.clients}</a>
141 {if $user->can('export_data')}
142 · <a class="mainMenu" href="export.php">{$i18n.menu.export}</a>
147 <!-- end of sub menu for authorized user -->
150 <!-- top menu for non authorized user -->
151 <table cellspacing="0" cellpadding="3" width="100%" border="0">
153 <td class="systemMenu" height="17" align="center">
154 <a class="systemMenu" href="login.php">{$i18n.menu.login}</a> ·
155 {if isTrue('MULTITEAM_MODE') && $smarty.const.AUTH_MODULE == 'db'}
156 <a class="systemMenu" href="register.php">{$i18n.menu.create_group}</a> ·
158 <a class="systemMenu" href="{$smarty.const.FORUM_LINK}" target="_blank">{$i18n.menu.forum}</a> ·
159 <a class="systemMenu" href="{$smarty.const.HELP_LINK}" target="_blank">{$i18n.menu.help}</a>
166 <!-- page title and user details -->
168 <table cellspacing="0" cellpadding="5" width="{$tab_width+20}" border="0">
169 <tr><td class="sectionHeader"><div class="pageTitle">{$title}{if $timestring}: {$timestring}{/if}</div></td></tr>
170 <tr><td>{$user->getUserPartForHeader()}</td></tr> {* No need to escape as it is done in the class. *}
173 <!-- end of page title and user details -->
175 <!-- output errors -->
177 <table cellspacing="4" cellpadding="7" width="{$tab_width}" border="0">
180 {foreach $err->getErrors() as $error}
181 {$error.message}<br> {* No need to escape as they are not coming from user and may contain a link. *}
187 <!-- end of output errors -->
189 <!-- output messages -->
191 <table cellspacing="4" cellpadding="7" width="{$tab_width}" border="0">
193 <td class="info_message">
194 {foreach $msg->getErrors() as $message}
195 {$message.message}<br> {* No need to escape. *}
201 <!-- end of output messages -->