define('INTERVAL_ALL_TIME', 5);
define('INTERVAL_LAST_WEEK', 6);
define('INTERVAL_LAST_MONTH', 7);
+define('INTERVAL_LAST_DAY', 8);
class Period {
var $startDate;
switch ($period_type) {
case INTERVAL_THIS_DAY:
- $date_begin->setTimestamp($date_point->getTimestamp());
- $date_end->setTimestamp($date_point->getTimestamp());
- break;
+ $date_begin->setTimestamp($date_point->getTimestamp());
+ $date_end->setTimestamp($date_point->getTimestamp());
+ break;
+
+ case INTERVAL_LAST_DAY:
+ $date_begin->setTimestamp(mktime(0,0,0,$t_arr[4]+1,$t_arr[3]-1,$t_arr[5]));
+ $date_end->setTimestamp(mktime(0,0,0,$t_arr[4]+1,$t_arr[3]-1,$t_arr[5]));
+ break;
+
case INTERVAL_THIS_WEEK:
$date_begin->setTimestamp(mktime(0,0,0,$t_arr[4]+1,$t_arr[3]-$t_arr[6]+$startWeekBias,$t_arr[5]));
$date_end->setTimestamp(mktime(0,0,0,$t_arr[4]+1,$t_arr[3]-$t_arr[6]+6+$startWeekBias,$t_arr[5]));
// 'dropdown.no' => '--- no ---',
// NOTE TO TRANSLATORS: dropdown.this_day does not necessarily means "today". It means a specific ("this") day selected on calendar. See Charts.
// 'dropdown.this_day' => 'this day',
+// 'dropdown.last_day' => 'last day',
// 'dropdown.this_week' => 'this week',
// 'dropdown.last_week' => 'last week',
// 'dropdown.this_month' => 'this month',
'dropdown.no' => '--- Ingen ---',
// NOTE TO TRANSLATORS: dropdown.this_day does not necessarily means "today". It means a specific ("this") day selected on calendar. See Charts.
'dropdown.this_day' => 'Denne dag',
+// TODO: translate the following.
+// 'dropdown.last_day' => 'last day',
'dropdown.this_week' => 'Denne uge',
'dropdown.last_week' => 'Sidste uge',
'dropdown.this_month' => 'Denne måned',
'dropdown.no' => '--- no ---',
// NOTE TO TRANSLATORS: dropdown.this_day does not necessarily means "today". It means a specific ("this") day selected on calendar. See Charts.
'dropdown.this_day' => 'this day',
+'dropdown.last_day' => 'last day',
'dropdown.this_week' => 'this week',
'dropdown.last_week' => 'last week',
'dropdown.this_month' => 'this month',
'dropdown.all' => '--- все ---',
'dropdown.no' => '--- нет ---',
'dropdown.this_day' => 'этот день',
+'dropdown.last_day' => 'прошлый день',
'dropdown.this_week' => 'эта неделя',
'dropdown.last_week' => 'прошлая неделя',
'dropdown.this_month' => 'этот месяц',
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.12.1.3668 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.12.2.3669 | Copyright © <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>
'data'=>array(INTERVAL_THIS_MONTH=>$i18n->getKey('dropdown.this_month'),
INTERVAL_LAST_MONTH=>$i18n->getKey('dropdown.last_month'),
INTERVAL_THIS_WEEK=>$i18n->getKey('dropdown.this_week'),
- INTERVAL_LAST_WEEK=>$i18n->getKey('dropdown.last_week')),
+ INTERVAL_LAST_WEEK=>$i18n->getKey('dropdown.last_week'),
+ INTERVAL_THIS_DAY=>$i18n->getKey('dropdown.this_day'),
+ INTERVAL_LAST_DAY=>$i18n->getKey('dropdown.last_day')),
'empty'=>array(''=>$i18n->getKey('dropdown.select'))));
// Add controls for start and end dates.
$form->addInput(array('type'=>'datefield','maxlength'=>'20','name'=>'start_date'));