// 'dropdown.previous_year' => 'previous year',
// 'dropdown.selected_year' => 'year',
// 'dropdown.all_time' => 'all time',
+// 'dropdown.time' => 'time',
'dropdown.projects' => 'projectes',
// TODO: translate the following.
// 'dropdown.tasks' => 'tasks',
'dropdown.previous_year' => 'minulý rok',
'dropdown.selected_year' => 'rok',
'dropdown.all_time' => 'od počátku',
+// TODO: translate the following.
+// 'dropdown.time' => 'time',
'dropdown.projects' => 'projekty',
// TODO: translate the following.
// 'dropdown.tasks' => 'tasks',
// 'dropdown.previous_year' => 'previous year',
'dropdown.selected_year' => 'år',
'dropdown.all_time' => 'Alt',
+// TODO: translate the following.
+// 'dropdown.time' => 'time',
'dropdown.projects' => 'Projekter',
'dropdown.tasks' => 'Opgaver',
'dropdown.clients' => 'Klienter',
'dropdown.previous_year' => 'vorheriges Jahr',
'dropdown.selected_year' => 'Jahr',
'dropdown.all_time' => 'Gesamtzeitraum',
+// TODO: translate the following.
+// 'dropdown.time' => 'time',
'dropdown.projects' => 'Projekte',
'dropdown.tasks' => 'Aufgaben',
'dropdown.clients' => 'Kunden',
'dropdown.previous_year' => 'previous year',
'dropdown.selected_year' => 'year',
'dropdown.all_time' => 'all time',
+'dropdown.time' => 'time',
'dropdown.projects' => 'projects',
'dropdown.tasks' => 'tasks',
'dropdown.clients' => 'clients',
'dropdown.selected_year' => 'año',
// TODO: translate the following.
// 'dropdown.all_time' => 'all time',
+// 'dropdown.time' => 'time',
'dropdown.projects' => 'proyectos',
// TODO: translate the following.
// 'dropdown.tasks' => 'tasks',
'dropdown.previous_year' => 'eelmine aasta',
'dropdown.selected_year' => 'aasta',
'dropdown.all_time' => 'kõik ajavahemikud',
+// TODO: translate the following.
+// 'dropdown.time' => 'time',
'dropdown.projects' => 'projektid',
'dropdown.tasks' => 'tööülesanded',
'dropdown.clients' => 'kliendid',
// 'dropdown.previous_year' => 'previous year',
// 'dropdown.selected_year' => 'year',
'dropdown.all_time' => 'همه زمان ها',
+// TODO: translate the following.
+// 'dropdown.time' => 'time',
'dropdown.projects' => 'پروژه ها',
'dropdown.tasks' => 'وظایف',
'dropdown.clients' => 'مشتریان',
// 'dropdown.previous_year' => 'previous year',
'dropdown.selected_year' => 'vuosi',
'dropdown.all_time' => 'kaikki tunnit',
+// TODO: translate the following.
+// 'dropdown.time' => 'time',
'dropdown.projects' => 'projektit',
'dropdown.tasks' => 'tehtävät',
'dropdown.clients' => 'asiakkaat',
'dropdown.previous_year' => 'année dernière',
'dropdown.selected_year' => 'année',
'dropdown.all_time' => 'depuis toujours',
+// TODO: translate the following.
+// 'dropdown.time' => 'time',
'dropdown.projects' => 'Projets',
'dropdown.tasks' => 'Tâches',
'dropdown.clients' => 'Clients',
'dropdown.previous_year' => 'προηγούμενο έτος',
'dropdown.selected_year' => 'έτος',
'dropdown.all_time' => 'όλη την περίοδο',
+// TODO: translate the following.
+// 'dropdown.time' => 'time',
'dropdown.projects' => 'έργα',
'dropdown.tasks' => 'εργασίες',
'dropdown.clients' => 'πελάτες',
// 'dropdown.previous_year' => 'previous year',
'dropdown.selected_year' => 'שנה',
'dropdown.all_time' => 'הכל',
+// TODO: translate the following.
+// 'dropdown.time' => 'time',
'dropdown.projects' => 'פרוייקטים',
'dropdown.tasks' => 'משימות',
'dropdown.clients' => 'לקוחות',
// 'dropdown.previous_year' => 'previous year',
// 'dropdown.selected_year' => 'year',
// 'dropdown.all_time' => 'all time',
+// 'dropdown.time' => 'time',
'dropdown.projects' => 'projektek',
// TODO: translate the following.
// 'dropdown.tasks' => 'tasks',
'dropdown.previous_year' => 'anno precedente',
'dropdown.selected_year' => 'anno',
'dropdown.all_time' => 'tutto il tempo',
+// TODO: translate the following.
+// 'dropdown.time' => 'time',
'dropdown.projects' => 'progetti',
'dropdown.tasks' => 'compiti',
'dropdown.clients' => 'clienti',
'dropdown.previous_year' => '昨年',
'dropdown.selected_year' => '年',
'dropdown.all_time' => 'すべての時間',
+// TODO: translate the following.
+// 'dropdown.time' => 'time',
'dropdown.projects' => 'プロジェクト',
// TODO: translate the following.
// 'dropdown.tasks' => 'tasks',
// 'dropdown.previous_year' => 'previous year',
// 'dropdown.selected_year' => 'year',
'dropdown.all_time' => '전시간',
+// TODO: translate the following.
+// 'dropdown.time' => 'time',
'dropdown.projects' => '프로젝트',
// TODO: translate the following.
// 'dropdown.tasks' => 'tasks',
'dropdown.previous_year' => 'vorig jaar',
'dropdown.selected_year' => 'jaar',
'dropdown.all_time' => 'alles',
+// TODO: translate the following.
+// 'dropdown.time' => 'time',
'dropdown.projects' => 'projecten',
'dropdown.tasks' => 'taken',
'dropdown.clients' => 'klanten',
// 'dropdown.previous_year' => 'previous year',
// 'dropdown.selected_year' => 'year',
// 'dropdown.all_time' => 'all time',
+// TODO: translate the following.
+// 'dropdown.time' => 'time',
'dropdown.projects' => 'prosjekter',
// TODO: translate the following.
// 'dropdown.tasks' => 'tasks',
// 'dropdown.previous_year' => 'previous year',
'dropdown.selected_year' => 'rok',
'dropdown.all_time' => 'od początku',
+// TODO: translate the following.
+// 'dropdown.time' => 'time',
'dropdown.projects' => 'projekty',
'dropdown.tasks' => 'zadania',
'dropdown.clients' => 'klienci',
// 'dropdown.previous_year' => 'previous year',
'dropdown.selected_year' => 'ano',
'dropdown.all_time' => 'todas as datas',
+// TODO: translate the following.
+// 'dropdown.time' => 'time',
'dropdown.projects' => 'projetos',
'dropdown.tasks' => 'tarefas',
'dropdown.clients' => 'clientes',
// 'dropdown.previous_year' => 'previous year',
// 'dropdown.selected_year' => 'year',
// 'dropdown.all_time' => 'all time',
+// TODO: translate the following.
+// 'dropdown.time' => 'time',
'dropdown.projects' => 'projetos',
// TODO: translate the following.
// 'dropdown.tasks' => 'tasks',
// 'dropdown.previous_year' => 'previous year',
// 'dropdown.selected_year' => 'year',
// 'dropdown.all_time' => 'all time',
+// 'dropdown.time' => 'time',
'dropdown.projects' => 'proiecte',
// TODO: translate the following.
// 'dropdown.tasks' => 'tasks',
'dropdown.previous_year' => 'прошлый год',
'dropdown.selected_year' => 'год',
'dropdown.all_time' => 'всё время',
+'dropdown.time' => 'время',
'dropdown.projects' => 'проекты',
'dropdown.tasks' => 'задачи',
'dropdown.clients' => 'клиенты',
// 'dropdown.previous_year' => 'previous year',
'dropdown.selected_year' => 'rok',
'dropdown.all_time' => 'celý čas',
+// TODO: translate the following.
+// 'dropdown.time' => 'time',
'dropdown.projects' => 'projekty',
'dropdown.tasks' => 'úlohy',
// TODO: translate the following.
// 'dropdown.previous_year' => 'previous year',
// 'dropdown.selected_year' => 'year',
// 'dropdown.all_time' => 'all time',
+// 'dropdown.time' => 'time',
'dropdown.projects' => 'projekti',
// TODO: translate the following.
// 'dropdown.tasks' => 'tasks',
// 'dropdown.previous_year' => 'previous year',
'dropdown.selected_year' => 'godina',
'dropdown.all_time' => 'svi datumi',
+// TODO: translate the following.
+// 'dropdown.time' => 'time',
'dropdown.projects' => 'projekti',
'dropdown.tasks' => 'zadaci',
'dropdown.clients' => 'klijenti',
'dropdown.previous_year' => 'Föregående år',
'dropdown.selected_year' => 'År',
'dropdown.all_time' => 'Livstid',
+// TODO: translate the following.
+// 'dropdown.time' => 'time',
'dropdown.projects' => 'Projekt',
'dropdown.tasks' => 'Arbetsuppgifter',
'dropdown.clients' => 'Kunder',
// 'dropdown.previous_year' => 'previous year',
// 'dropdown.selected_year' => 'year',
'dropdown.all_time' => 'tüm zamanlar',
+// TODO: translate the following.
+// 'dropdown.time' => 'time',
'dropdown.projects' => 'projeler',
// TODO: translate the following.
// 'dropdown.tasks' => 'tasks',
// 'dropdown.previous_year' => 'previous year',
// 'dropdown.selected_year' => 'year',
'dropdown.all_time' => '全部时间',
+// TODO: translate the following.
+// 'dropdown.time' => 'time',
'dropdown.projects' => '项目',
// TODO: translate the following.
// 'dropdown.tasks' => 'tasks',
// 'dropdown.previous_year' => 'previous year',
'dropdown.selected_year' => '年',
'dropdown.all_time' => '全部時間',
+// TODO: translate the following.
+// 'dropdown.time' => 'time',
'dropdown.projects' => '項目',
// TODO: translate the following.
// 'dropdown.tasks' => 'tasks',
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.19.5.5016 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.19.5.5017 | 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>
if ($request->isPost()) {
$cl_field_name = trim($request->getParameter('name'));
+ $cl_field_entity = $request->getParameter('entity');
$cl_field_type = $request->getParameter('type');
$cl_required = $request->getParameter('required');
if (!$cl_required)
$form = new Form('fieldForm');
$form->addInput(array('type'=>'text','maxlength'=>'100','name'=>'name','value'=>''));
+$form->addInput(array('type'=>'combobox','name'=>'entity',
+ 'data'=>array(CustomFields::ENTITY_TIME=>$i18n->get('label.type_text'),
+ CustomFields::ENTITY_USER=>$i18n->get('label.user'))
+));
$form->addInput(array('type'=>'combobox','name'=>'type',
'data'=>array(CustomFields::TYPE_TEXT=>$i18n->get('label.type_text'),
CustomFields::TYPE_DROPDOWN=>$i18n->get('label.type_dropdown'))
class CustomFields {
// Definitions of custom field types.
-
+ const ENTITY_TIME = 1; // Field is associated with time entries.
+ const ENTITY_USER = 2; // Field is associated with users.
+ const ENTITY_PROJECT = 3; // Field is associated with projects.
+
const TYPE_TEXT = 1; // A text field.
const TYPE_DROPDOWN = 2; // A dropdown field with pre-defined values.