Work in progress on week view. Fixed the links.
authoranuko <support@anuko.com>
Tue, 19 Dec 2017 16:04:13 +0000 (16:04 +0000)
committeranuko <support@anuko.com>
Tue, 19 Dec 2017 16:04:13 +0000 (16:04 +0000)
WEB-INF/templates/footer.tpl
WEB-INF/templates/time.tpl
time.php

index dd0b2dd..be7b43f 100644 (file)
@@ -12,7 +12,7 @@
       <br>
       <table cellspacing="0" cellpadding="4" width="100%" border="0">
         <tr>
-          <td align="center">&nbsp;Anuko Time Tracker 1.12.3.3686 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+          <td align="center">&nbsp;Anuko Time Tracker 1.12.3.3687 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
             <a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
             <a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
             <a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>
index 8f3629f..d5db36a 100644 (file)
@@ -11,7 +11,7 @@
 {if defined(WEEK_VIEW_DEBUG)}
   <tr>
     <td align="center" colspan=2">
-      <a href="week.php">{$i18n.label.day_view}</a>&nbsp;/&nbsp;<a href="time.php">{$i18n.label.week_view}</a>
+      <a href="time.php?date={$selected_date->toString()}">{$i18n.label.day_view}</a>&nbsp;/&nbsp;<a href="week.php?date={$selected_date->toString()}">{$i18n.label.week_view}</a>
     </td>
   </tr>
 {/if}
index b808aaf..fe3a8e3 100644 (file)
--- a/time.php
+++ b/time.php
@@ -357,6 +357,7 @@ if ($request->isPost()) {
 
 $week_total = ttTimeHelper::getTimeForWeek($user->getActiveUser(), $selected_date);
 
+$smarty->assign('selected_date', $selected_date);
 $smarty->assign('week_total', $week_total);
 $smarty->assign('day_total', ttTimeHelper::getTimeForDay($user->getActiveUser(), $cl_date));
 $smarty->assign('time_records', ttTimeHelper::getRecords($user->getActiveUser(), $cl_date));