<table cellspacing="0" cellpadding="0" width="{$tab_width}" border="0">
<tr>
<td valign="top">
- <table cellspacing="0" cellpadding="0" width="100%" border="0">
+ <table id="page_logo" 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="{$custom_logo}" border="0"></a></td>
+ <td height="55" align="center"><img alt="Time Tracker" width="300" height="43" src="{$custom_logo}" border="0"></td>
{else}
<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>
{/if}
{if $authenticated}
{if $user->can('administer_site')}
<!-- top menu for admin -->
- <table cellspacing="0" cellpadding="3" width="100%" border="0">
+ <table id="top_menu_admin" cellspacing="0" cellpadding="3" width="100%" border="0">
<tr>
<td class="systemMenu" height="17" align="center">
- <a class="systemMenu" href="logout.php">{$i18n.menu.logout}</a> ·
- <a class="systemMenu" href="{$smarty.const.FORUM_LINK}" target="_blank">{$i18n.menu.forum}</a> ·
+ <a class="systemMenu" href="logout.php">{$i18n.menu.logout}</a>
+ <a class="systemMenu" href="{$smarty.const.FORUM_LINK}" target="_blank">{$i18n.menu.forum}</a>
<a class="systemMenu" href="{$smarty.const.HELP_LINK}" target="_blank">{$i18n.menu.help}</a>
</td>
</tr>
<!-- end of top menu for admin -->
<!-- sub menu for admin -->
- <table cellspacing="0" cellpadding="3" width="100%" border="0">
+ <table id="sub_menu_admin" cellspacing="0" cellpadding="3" width="100%" border="0">
<tr>
<td align="center" bgcolor="#d9d9d9" nowrap height="17" background="images/subm_bg.gif">
- <a class="mainMenu" href="admin_groups.php">{$i18n.menu.groups}</a> ·
+ <a class="mainMenu" href="admin_groups.php">{$i18n.menu.groups}</a>
<a class="mainMenu" href="admin_options.php">{$i18n.menu.options}</a>
</td>
</tr>
<!-- end of sub menu for admin -->
{else}
<!-- top menu for authorized user -->
- <table cellspacing="0" cellpadding="3" width="100%" border="0">
+ <table id="top_menu_authorized_user" cellspacing="0" cellpadding="3" width="100%" border="0">
<tr>
<td class="systemMenu" height="17" align="center">
- <a class="systemMenu" href="logout.php">{$i18n.menu.logout}</a> ·
+ <a class="systemMenu" href="logout.php">{$i18n.menu.logout}</a>
{if $user->exists() && $user->can('manage_own_settings')}
- <a class="systemMenu" href="profile_edit.php">{$i18n.menu.profile}</a> ·
+ <a class="systemMenu" href="profile_edit.php">{$i18n.menu.profile}</a>
{/if}
{if $user->can('manage_basic_settings')}
- <a class="systemMenu" href="group_edit.php">{$i18n.menu.group}</a> ·
+ <a class="systemMenu" href="group_edit.php">{$i18n.menu.group}</a>
{/if}
{if $user->can('manage_subgroups')}
- <a class="systemMenu" href="groups.php">{$i18n.menu.subgroups}</a> ·
+ <a class="systemMenu" href="groups.php">{$i18n.menu.subgroups}</a>
{/if}
{if $user->can('manage_features')}
- <a class="systemMenu" href="plugins.php">{$i18n.menu.plugins}</a> ·
+ <a class="systemMenu" href="plugins.php">{$i18n.menu.plugins}</a>
{/if}
- <a class="systemMenu" href="{$smarty.const.FORUM_LINK}" target="_blank">{$i18n.menu.forum}</a> ·
+ <a class="systemMenu" href="{$smarty.const.FORUM_LINK}" target="_blank">{$i18n.menu.forum}</a>
<a class="systemMenu" href="{$smarty.const.HELP_LINK}" target="_blank">{$i18n.menu.help}</a>
</td>
</tr>
<!-- end of top menu for authorized user -->
<!-- sub menu for authorized user -->
- <table cellspacing="0" cellpadding="3" width="100%" border="0">
+ <table id="sub_menu_authorized_user" cellspacing="0" cellpadding="3" width="100%" border="0">
<tr>
<td align="center" bgcolor="#d9d9d9" nowrap height="17" background="images/subm_bg.gif">
{if $user->exists() && ($user->can('track_own_time') || $user->can('track_time'))}
<a class="mainMenu" href="time.php">{$i18n.menu.time}</a>
{/if}
{if $user->exists() && $user->isPluginEnabled('ex') && ($user->can('track_own_expenses') || $user->can('track_expenses'))}
- · <a class="mainMenu" href="expenses.php">{$i18n.menu.expenses}</a>
+ <a class="mainMenu" href="expenses.php">{$i18n.menu.expenses}</a>
{/if}
{if $user->exists() && ($user->can('view_own_reports') || $user->can('view_reports') || $user->can('view_all_reports') || $user->can('view_client_reports'))}
- · <a class="mainMenu" href="reports.php">{$i18n.menu.reports}</a>
+ <a class="mainMenu" href="reports.php">{$i18n.menu.reports}</a>
{/if}
- {if $user->exists() && $user->isPluginEnabled('ts') && ($user->can('view_own_timesheets') || $user->can('view_timesheets') || $user->can('view_all_timesheets') || $user->can('view_client_timesheets'))}
- · <a class="mainMenu" href="timesheets.php">{$i18n.menu.timesheets}</a>
+ {if $user->exists() && $user->isPluginEnabled('ts') && ($user->can('track_own_time') || $user->can('track_time'))}
+ <a class="mainMenu" href="timesheets.php">{$i18n.menu.timesheets}</a>
{/if}
{if $user->exists() && $user->isPluginEnabled('iv') && ($user->can('manage_invoices') || $user->can('view_client_invoices'))}
- · <a class="mainMenu" href="invoices.php">{$i18n.title.invoices}</a>
+ <a class="mainMenu" href="invoices.php">{$i18n.title.invoices}</a>
{/if}
{if ($user->exists() && $user->isPluginEnabled('ch') && ($user->can('view_own_charts') || $user->can('view_charts'))) &&
($smarty.const.MODE_PROJECTS == $user->getTrackingMode() || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->getTrackingMode() ||
$user->isPluginEnabled('cl'))}
- · <a class="mainMenu" href="charts.php">{$i18n.menu.charts}</a>
+ <a class="mainMenu" href="charts.php">{$i18n.menu.charts}</a>
{/if}
{if ($user->can('view_own_projects') || $user->can('manage_projects')) && ($smarty.const.MODE_PROJECTS == $user->getTrackingMode() || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->getTrackingMode())}
- · <a class="mainMenu" href="projects.php">{$i18n.menu.projects}</a>
+ <a class="mainMenu" href="projects.php">{$i18n.menu.projects}</a>
{/if}
{if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->getTrackingMode() && ($user->can('view_own_tasks') || $user->can('manage_tasks')))}
- · <a class="mainMenu" href="tasks.php">{$i18n.menu.tasks}</a>
+ <a class="mainMenu" href="tasks.php">{$i18n.menu.tasks}</a>
{/if}
{if $user->can('view_users') || $user->can('manage_users')}
- · <a class="mainMenu" href="users.php">{$i18n.menu.users}</a>
+ <a class="mainMenu" href="users.php">{$i18n.menu.users}</a>
{/if}
{if $user->isPluginEnabled('cl') && ($user->can('view_own_clients') || $user->can('manage_clients'))}
- · <a class="mainMenu" href="clients.php">{$i18n.menu.clients}</a>
+ <a class="mainMenu" href="clients.php">{$i18n.menu.clients}</a>
+ {/if}
+ {if $user->isPluginEnabled('wk') && ($user->can('update_work') || $user->can('bid_on_work') || $user->can('manage_work')) && $user->exists()}
+ <a class="mainMenu" href="work.php">{$i18n.title.work}</a>
{/if}
{if $user->can('export_data')}
- · <a class="mainMenu" href="export.php">{$i18n.menu.export}</a>
+ <a class="mainMenu" href="export.php">{$i18n.menu.export}</a>
{/if}
</td>
</tr>
{/if}
{else}
<!-- top menu for non authorized user -->
- <table cellspacing="0" cellpadding="3" width="100%" border="0">
+ <table id="top_menu_non_authorized_user" cellspacing="0" cellpadding="3" width="100%" border="0">
<tr>
<td class="systemMenu" height="17" align="center">
- <a class="systemMenu" href="login.php">{$i18n.menu.login}</a> ·
+ <a class="systemMenu" href="login.php">{$i18n.menu.login}</a>
{if isTrue('MULTITEAM_MODE') && $smarty.const.AUTH_MODULE == 'db'}
- <a class="systemMenu" href="register.php">{$i18n.menu.create_group}</a> ·
+ <a class="systemMenu" href="register.php">{$i18n.menu.create_group}</a>
{/if}
- <a class="systemMenu" href="{$smarty.const.FORUM_LINK}" target="_blank">{$i18n.menu.forum}</a> ·
+ <a class="systemMenu" href="{$smarty.const.FORUM_LINK}" target="_blank">{$i18n.menu.forum}</a>
<a class="systemMenu" href="{$smarty.const.HELP_LINK}" target="_blank">{$i18n.menu.help}</a>
</td>
</tr>
<!-- page title and user details -->
{if $title}
- <table cellspacing="0" cellpadding="5" width="{$tab_width+20}" border="0">
+ <table id="page_title" cellspacing="0" cellpadding="5" width="{$tab_width+20}" border="0">
<tr><td class="sectionHeader"><div class="pageTitle">{$title}{if $timestring}: {$timestring}{/if}</div></td></tr>
<tr><td>{$user->getUserPartForHeader()}</td></tr> {* No need to escape as it is done in the class. *}
</table>
<!-- output errors -->
{if $err->yes()}
- <table cellspacing="4" cellpadding="7" width="{$tab_width}" border="0">
+ <table id="page_errors" cellspacing="4" cellpadding="7" width="{$tab_width}" border="0">
<tr>
<td class="error">
{foreach $err->getErrors() as $error}
<!-- output messages -->
{if $msg->yes()}
- <table cellspacing="4" cellpadding="7" width="{$tab_width}" border="0">
+ <table id="page_messages" cellspacing="4" cellpadding="7" width="{$tab_width}" border="0">
<tr>
<td class="info_message">
{foreach $msg->getErrors() as $message}