]> wagnertech.de Git - timetracker.git/commitdiff
Work in progress on project attachments.
authorNik Okuntseff <support@anuko.com>
Fri, 15 Mar 2019 21:28:37 +0000 (21:28 +0000)
committerNik Okuntseff <support@anuko.com>
Fri, 15 Mar 2019 21:28:37 +0000 (21:28 +0000)
32 files changed:
WEB-INF/resources/ca.lang.php
WEB-INF/resources/cs.lang.php
WEB-INF/resources/da.lang.php
WEB-INF/resources/de.lang.php
WEB-INF/resources/en.lang.php
WEB-INF/resources/es.lang.php
WEB-INF/resources/et.lang.php
WEB-INF/resources/fa.lang.php
WEB-INF/resources/fi.lang.php
WEB-INF/resources/fr.lang.php
WEB-INF/resources/gr.lang.php
WEB-INF/resources/he.lang.php
WEB-INF/resources/hu.lang.php
WEB-INF/resources/it.lang.php
WEB-INF/resources/ja.lang.php
WEB-INF/resources/ko.lang.php
WEB-INF/resources/nl.lang.php
WEB-INF/resources/no.lang.php
WEB-INF/resources/pl.lang.php
WEB-INF/resources/pt-br.lang.php
WEB-INF/resources/pt.lang.php
WEB-INF/resources/ro.lang.php
WEB-INF/resources/ru.lang.php
WEB-INF/resources/sk.lang.php
WEB-INF/resources/sl.lang.php
WEB-INF/resources/sr.lang.php
WEB-INF/resources/sv.lang.php
WEB-INF/resources/tr.lang.php
WEB-INF/resources/zh-cn.lang.php
WEB-INF/resources/zh-tw.lang.php
WEB-INF/templates/footer.tpl
project_files.php [new file with mode: 0644]

index e63a616a8e6bd77db0b37d0dbd70de2137396d3a..e524613aabffd317387e32a468a5a0d3f8f1dd0a 100644 (file)
@@ -315,6 +315,8 @@ $i18n_key_words = array(
 // 'title.send_invoice' => 'Sending Invoice',
 // 'title.charts' => 'Charts',
 'title.projects' => 'Projectes',
+// TODO: translate the following.
+// 'title.project_files' => 'Project Files',
 'title.add_project' => 'Agregant projecte',
 'title.edit_project' => 'Modificant projecte',
 'title.delete_project' => 'Eliminant projecte',
index 6c5b0f755db6d4f03198b5f9fc0fc701198d75bd..2d7b36ff97b13c570e6bc23445e55155695b84a1 100644 (file)
@@ -325,6 +325,8 @@ $i18n_key_words = array(
 // 'title.send_invoice' => 'Sending Invoice',
 // 'title.charts' => 'Charts',
 'title.projects' => 'Projekty',
+// TODO: translate the following.
+// 'title.project_files' => 'Project Files',
 'title.add_project' => 'Pridat projekt',
 'title.edit_project' => 'Upravit projekt',
 'title.delete_project' => 'Smazat projekt',
index 7a978b7027b774c112729136e45e0f1fe362ea0d..662b21bd5e6a43bfe14fb16b98935d4e36f7d9a6 100644 (file)
@@ -296,6 +296,8 @@ $i18n_key_words = array(
 'title.send_invoice' => 'Sender Faktura',
 'title.charts' => 'Diagrammer',
 'title.projects' => 'Projekter',
+// TODO: translate the following.
+// 'title.project_files' => 'Project Files',
 'title.add_project' => 'Tilføj Projekt',
 'title.edit_project' => 'Redigér Projekt',
 'title.delete_project' => 'Slet Projekt',
index ec3a5337e36a5afa33ebfc615d97608eeba6f6c6..7d0dda0463f9180e564c539ed14a5e4400cbd009 100644 (file)
@@ -280,6 +280,8 @@ $i18n_key_words = array(
 'title.send_invoice' => 'Rechnung senden',
 'title.charts' => 'Diagramme',
 'title.projects' => 'Projekte',
+// TODO: translate the following.
+// 'title.project_files' => 'Project Files',
 'title.add_project' => 'Projekt anlegen',
 'title.edit_project' => 'Projekt bearbeiten',
 'title.delete_project' => 'Projekt löschen',
index 65227741987d015f9ef1f4dc6aa5d8fbfdfd0f21..3e855d053a06b190179add7906d3014df6784923 100644 (file)
@@ -271,6 +271,7 @@ $i18n_key_words = array(
 'title.send_invoice' => 'Sending Invoice',
 'title.charts' => 'Charts',
 'title.projects' => 'Projects',
+'title.project_files' => 'Project Files',
 'title.add_project' => 'Adding Project',
 'title.edit_project' => 'Editing Project',
 'title.delete_project' => 'Deleting Project',
index cf23a1339057362c7e5125f2ed8d40448238e49a..b314181e7c4cb6d5efaa9a981a7ebf8a81ff09d1 100644 (file)
@@ -314,6 +314,8 @@ $i18n_key_words = array(
 // 'title.send_invoice' => 'Sending Invoice',
 // 'title.charts' => 'Charts',
 'title.projects' => 'Proyectos',
+// TODO: translate the following.
+// 'title.project_files' => 'Project Files',
 'title.add_project' => 'Agregando proyecto',
 'title.edit_project' => 'Modificando proyecto',
 'title.delete_project' => 'Eliminando proyecto',
index c8ba34da9f83b964d2a556f65e56be47d1c74309..7ffb16569732779e27f1970cba07764048670c64 100644 (file)
@@ -301,6 +301,8 @@ $i18n_key_words = array(
 'title.send_invoice' => 'Saada arve',
 'title.charts' => 'Diagrammid',
 'title.projects' => 'Projektid',
+// TODO: translate the following.
+// 'title.project_files' => 'Project Files',
 'title.add_project' => 'Projekti lisamine',
 'title.edit_project' => 'Projekti muutmine',
 'title.delete_project' => 'Projekti kustutamine',
index 8991802c40f2ae952736605d07c478b6725e1be5..e404d79c97dc53f4087102073f72d5093a26803b 100644 (file)
@@ -302,6 +302,8 @@ $i18n_key_words = array(
 'title.send_invoice' => 'ارسال فاکتور',
 'title.charts' => 'نمودارها',
 'title.projects' => 'پروژه ها',
+// TODO: translate the following.
+// 'title.project_files' => 'Project Files',
 'title.add_project' => 'درج پروژه',
 'title.edit_project' => 'ویرایش پروژه',
 'title.delete_project' => 'حذف پروژه',
index 3dd804c85b5a8c8a1a1f9291518b66c358ad3e50..ac6e438f8e765513b747882c0be43529281de76d 100644 (file)
@@ -296,6 +296,8 @@ $i18n_key_words = array(
 'title.send_invoice' => 'Laskun lähetys',
 'title.charts' => 'Kaaviot',
 'title.projects' => 'Projektit',
+// TODO: translate the following.
+// 'title.project_files' => 'Project Files',
 'title.add_project' => 'Projektin lisäys',
 'title.edit_project' => 'Projektin muokkaus',
 'title.delete_project' => 'Projektin poisto',
index 051cc75b8c9dfb8a57e36d51a4fe305245f3d38d..5a38ee3fe1567cbed776dcb7737ec7fa4fb1afe4 100644 (file)
@@ -290,6 +290,8 @@ $i18n_key_words = array(
 'title.send_invoice' => 'Envoi de la facture',
 'title.charts' => 'Graphiques',
 'title.projects' => 'Projets',
+// TODO: translate the following.
+// 'title.project_files' => 'Project Files',
 'title.add_project' => 'Ajout d\\\'un projet',
 'title.edit_project' => 'Modification d\\\'un projet',
 'title.delete_project' => 'Suppression d\\\'un projet',
index 0de289b675aadcb9dbdcc6bac0291be4e10dbd00..608b38783443502a857bbc861812e4146d4fb868 100644 (file)
@@ -287,6 +287,8 @@ $i18n_key_words = array(
 'title.send_invoice' => 'Αποστολή τιμολόγιου',
 'title.charts' => 'Γραφήματα',
 'title.projects' => 'Έργο',
+// TODO: translate the following.
+// 'title.project_files' => 'Project Files',
 'title.add_project' => 'Προσθήκη έργου',
 'title.edit_project' => 'Επεξεργασία έργου',
 'title.delete_project' => 'Διαγραφή έργου',
index 7df92de1ecf554737b1bc9201aa2a53e97bd0efc..f0a31aa2be31094ceb2d762789dfaac030203e14 100644 (file)
@@ -314,6 +314,8 @@ $i18n_key_words = array(
 'title.send_invoice' => 'שליחת חשבונית',
 'title.charts' => 'תרשימים',
 'title.projects' => 'פרוייקטים',
+// TODO: translate the following.
+// 'title.project_files' => 'Project Files',
 'title.add_project' => 'הוסף פרוייקט',
 'title.edit_project' => 'עריכת פרוייקט',
 'title.delete_project' => 'מחיקת פרוייקט',
index 7f299b7dafae87961e1e6681b28361bbf3900587..0bc245f6f5c6c09ceb2c051ca3f35d9b68c5a244 100644 (file)
@@ -315,6 +315,8 @@ $i18n_key_words = array(
 // 'title.send_invoice' => 'Sending Invoice',
 // 'title.charts' => 'Charts',
 'title.projects' => 'Projektek',
+// TODO: translate the following.
+// 'title.project_files' => 'Project Files',
 'title.add_project' => 'Projekt hozzáadása',
 'title.edit_project' => 'Projekt szerkesztése',
 'title.delete_project' => 'Projekt törlése',
index a009aca42a18e6d44f79bc0821e02e4e629d60ee..54cf7e734332e6d95eae59a61673dd4086a5e771 100644 (file)
@@ -295,6 +295,8 @@ $i18n_key_words = array(
 'title.send_invoice' => 'Invia fattura',
 'title.charts' => 'Grafici',
 'title.projects' => 'Progetti',
+// TODO: translate the following.
+// 'title.project_files' => 'Project Files',
 'title.add_project' => 'Aggiungi progetto',
 'title.edit_project' => 'Modifica progetto',
 'title.delete_project' => 'Elimina progetto',
index dd780dc8ca3e5c6aff6b7d34aae8e850fa715108..0a443f956b9c9d72ac2f91290043ee3f1c52144c 100644 (file)
@@ -321,6 +321,8 @@ $i18n_key_words = array(
 // 'title.send_invoice' => 'Sending Invoice',
 // 'title.charts' => 'Charts',
 'title.projects' => 'プロジェクト',
+// TODO: translate the following.
+// 'title.project_files' => 'Project Files',
 'title.add_project' => 'プロジェクトの追加',
 'title.edit_project' => 'プロジェクトの編集',
 'title.delete_project' => 'プロジェクトの削除',
index 15057c29b5870e6471cd621fe3f3614b95a7e61e..c4988fa35ef2eda978c12da76cb1129f2e9c8d18 100644 (file)
@@ -321,6 +321,8 @@ $i18n_key_words = array(
 // 'title.send_invoice' => 'Sending Invoice',
 // 'title.charts' => 'Charts',
 'title.projects' => '프로젝트',
+// TODO: translate the following.
+// 'title.project_files' => 'Project Files',
 'title.add_project' => '프로젝트를 추가하기',
 'title.edit_project' => '프로젝트를 편집하기',
 'title.delete_project' => '프로젝트를 편집하기',
index cdd48526e863c53da126ec6b67830ef5176cc6ed..c5a3b509b6fdd1ab9543b6314b504a133c81d68a 100644 (file)
@@ -274,6 +274,8 @@ $i18n_key_words = array(
 'title.send_invoice' => 'Factuur verzenden',
 'title.charts' => 'Grafieken',
 'title.projects' => 'Projecten',
+// TODO: translate the following.
+// 'title.project_files' => 'Project Files',
 'title.add_project' => 'Project toevoegen',
 'title.edit_project' => 'Project wijzigen',
 'title.delete_project' => 'Project verwijderen',
index b734bbb9c8d9f8dec04b946c5e40367789a2e625..55cb9d86d35a755e693787ec5b60e1b3ab62a259 100644 (file)
@@ -318,6 +318,8 @@ $i18n_key_words = array(
 // 'title.send_invoice' => 'Sending Invoice',
 // 'title.charts' => 'Charts',
 'title.projects' => 'Prosjekter',
+// TODO: translate the following.
+// 'title.project_files' => 'Project Files',
 'title.add_project' => 'Legg til prosjekt',
 'title.edit_project' => 'Endre prosjekt',
 'title.delete_project' => 'Slett prosjekt',
index 8c5533c3b462158c35d4629cc7add814f11273bb..5a6ea8a9aaf687b1a4b53d0a04549025731c059d 100644 (file)
@@ -297,6 +297,8 @@ $i18n_key_words = array(
 'title.send_invoice' => 'Wysyłanie faktury',
 'title.charts' => 'Statystyki',
 'title.projects' => 'Projekty',
+// TODO: translate the following.
+// 'title.project_files' => 'Project Files',
 'title.add_project' => 'dodawanie projektu',
 'title.edit_project' => 'Edytowanie projektu',
 'title.delete_project' => 'Usuwanie projektu',
index 55346d9e706c53105e254a3426cc58e1e475e27b..843258fbe8590fed1eff2a81b07e7dc065100a35 100644 (file)
@@ -294,6 +294,8 @@ $i18n_key_words = array(
 'title.send_invoice' => 'Enviando fatura',
 'title.charts' => 'Gráficos',
 'title.projects' => 'Projetos',
+// TODO: translate the following.
+// 'title.project_files' => 'Project Files',
 'title.add_project' => 'Adicionando projeto',
 'title.edit_project' => 'Editando projeto',
 'title.delete_project' => 'Apagando projeto',
index 0b85a5b5266618cea64b462094bea32051f23613..538ec9887131c222a3ccf7bb1d1924200002ad3e 100644 (file)
@@ -303,6 +303,8 @@ $i18n_key_words = array(
 // 'title.send_invoice' => 'Sending Invoice',
 // 'title.charts' => 'Charts',
 'title.projects' => 'Projetos',
+// TODO: translate the following.
+// 'title.project_files' => 'Project Files',
 'title.add_project' => 'Adicionando projeto',
 'title.edit_project' => 'Editando projeto',
 'title.delete_project' => 'Apagando projeto',
index a66de4d18fef92dcd0dc93a27dcd91d5694f896b..10803e21ffeacae99a73c809e36d2cbdb6a08816 100644 (file)
@@ -321,6 +321,8 @@ $i18n_key_words = array(
 // 'title.send_invoice' => 'Sending Invoice',
 // 'title.charts' => 'Charts',
 'title.projects' => 'Proiecte',
+// TODO: translate the following.
+// 'title.project_files' => 'Project Files',
 'title.add_project' => 'Adaugare proiect',
 'title.edit_project' => 'Editare proiect',
 'title.delete_project' => 'Stergere proiect',
index 0f866d08cef27bfdd26299d4091a709167cfd915..751d3a75cf1fa16803d1effe381d5b82cef671b7 100644 (file)
@@ -270,6 +270,7 @@ $i18n_key_words = array(
 'title.send_invoice' => 'Отсылка счёта',
 'title.charts' => 'Диаграммы',
 'title.projects' => 'Проекты',
+'title.project_files' => 'Файлы проекта',
 'title.add_project' => 'Добавление проекта',
 'title.edit_project' => 'Редактирование проекта',
 'title.delete_project' => 'Удаление проекта',
index e0ac297929e2364d6eb9d7812ed23f853139cef9..81409771bc95d73ab8f9f2cb098b7a1c515dd9d0 100644 (file)
@@ -303,6 +303,8 @@ $i18n_key_words = array(
 'title.send_invoice' => 'Odosielanie faktúry',
 'title.charts' => 'Grafy',
 'title.projects' => 'Projekty',
+// TODO: translate the following.
+// 'title.project_files' => 'Project Files',
 'title.add_project' => 'Pridávanie projektu',
 'title.edit_project' => 'Upravovanie projektu',
 'title.delete_project' => 'Vymazávanie projektu',
index d1e4848750c246c2d14125d4864260b0d51987e7..712b3ee5c797304541d32c767a82568d959fca6b 100644 (file)
@@ -298,6 +298,8 @@ $i18n_key_words = array(
 // 'title.send_invoice' => 'Sending Invoice',
 // 'title.charts' => 'Charts',
 'title.projects' => 'Projekti',
+// TODO: translate the following.
+// 'title.project_files' => 'Project Files',
 'title.add_project' => 'Dodajanje projekta',
 'title.edit_project' => 'Urejanje projekta',
 'title.delete_project' => 'Brisanje projekta',
index 32267f8cb5eb8d8d5caf5149987169cd4b0a5e3e..a454145492169bd10a81fb520b2f03a5f42693c6 100644 (file)
@@ -295,6 +295,8 @@ $i18n_key_words = array(
 'title.send_invoice' => 'Slanje računa',
 'title.charts' => 'Grafikoni',
 'title.projects' => 'Projekti',
+// TODO: translate the following.
+// 'title.project_files' => 'Project Files',
 'title.add_project' => 'Dodavanje projekta',
 'title.edit_project' => 'Izmena projekta',
 'title.delete_project' => 'Brisanje projekta',
index d4c902c4731aef94c6c1d8ac5cef1275d80550fc..105b25f002861fb7de2e397c1e1ef84826c2e626 100644 (file)
@@ -295,6 +295,8 @@ $i18n_key_words = array(
 'title.send_invoice' => 'Skicka faktura',
 'title.charts' => 'Diagram',
 'title.projects' => 'Projekt',
+// TODO: translate the following.
+// 'title.project_files' => 'Project Files',
 'title.add_project' => 'Lägg till projekt',
 'title.edit_project' => 'Redigera projekt',
 'title.delete_project' => 'Ta bort projekt',
index c618c4ed9ab4f9041f63d8b873ce35242fabbdc2..a02ed68ae9d8333ca2d1d37461f07121a7786dca 100644 (file)
@@ -330,6 +330,8 @@ $i18n_key_words = array(
 // 'title.send_invoice' => 'Sending Invoice',
 // 'title.charts' => 'Charts',
 'title.projects' => 'Projeler',
+// TODO: translate the following.
+// 'title.project_files' => 'Project Files',
 'title.add_project' => 'Proje ekleniyor',
 'title.edit_project' => 'Proje düzenleniyor',
 'title.delete_project' => 'Proje siliniyor',
index de9d3165b5f8d9fe0ca39066220bbfaa2ed2e918..33cd0898d2e9efc33d66ac1f4b957d569ad43cb0 100644 (file)
@@ -309,6 +309,8 @@ $i18n_key_words = array(
 // 'title.send_invoice' => 'Sending Invoice',
 // 'title.charts' => 'Charts',
 'title.projects' => '项目',
+// TODO: translate the following.
+// 'title.project_files' => 'Project Files',
 'title.add_project' => '添加项目',
 'title.edit_project' => '编辑项目',
 'title.delete_project' => '删除项目',
index 3b02371a3ddc086576b01280807e03e15e36dc29..12a328e20abd4773f811b2ef21f69ee1ecd51218 100644 (file)
@@ -316,6 +316,8 @@ $i18n_key_words = array(
 // 'title.send_invoice' => 'Sending Invoice',
 // 'title.charts' => 'Charts',
 'title.projects' => '項目',
+// TODO: translate the following.
+// 'title.project_files' => 'Project Files',
 'title.add_project' => '添加項目',
 'title.edit_project' => '編輯專案', // TODO: is this correct? I do not see 項目 here.
 'title.delete_project' => '刪除項目',
index a476e8057617c6f3d9f31e3aa700a0be9cda5416..22eeb9bb6e02cd2992ba32674f1284a102166912 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.18.58.4870 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+          <td align="center">&nbsp;Anuko Time Tracker 1.18.58.4871 | 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>
diff --git a/project_files.php b/project_files.php
new file mode 100644 (file)
index 0000000..baec9aa
--- /dev/null
@@ -0,0 +1,55 @@
+<?php
+// +----------------------------------------------------------------------+
+// | Anuko Time Tracker
+// +----------------------------------------------------------------------+
+// | Copyright (c) Anuko International Ltd. (https://www.anuko.com)
+// +----------------------------------------------------------------------+
+// | LIBERAL FREEWARE LICENSE: This source code document may be used
+// | by anyone for any purpose, and freely redistributed alone or in
+// | combination with other software, provided that the license is obeyed.
+// |
+// | There are only two ways to violate the license:
+// |
+// | 1. To redistribute this code in source form, with the copyright
+// |    notice or license removed or altered. (Distributing in compiled
+// |    forms without embedded copyright notices is permitted).
+// |
+// | 2. To redistribute modified versions of this code in *any* form
+// |    that bears insufficient indications that the modifications are
+// |    not the work of the original author(s).
+// |
+// | This license applies to this document only, not any other software
+// | that it may be combined with.
+// |
+// +----------------------------------------------------------------------+
+// | Contributors:
+// | https://www.anuko.com/time_tracker/credits.htm
+// +----------------------------------------------------------------------+
+
+require_once('initialize.php');
+import('form.Form');
+import('ttGroupHelper');
+
+// Access checks.
+if (!(ttAccessAllowed('view_own_projects') || ttAccessAllowed('manage_projects'))) {
+  header('Location: access_denied.php');
+  exit();
+}
+if (MODE_PROJECTS != $user->getTrackingMode() && MODE_PROJECTS_AND_TASKS != $user->getTrackingMode()) {
+  header('Location: feature_disabled.php');
+  exit();
+}
+// End of access checks.
+
+if($user->can('manage_projects')) {
+  $active_projects = ttGroupHelper::getActiveProjects();
+  $inactive_projects = ttGroupHelper::getInactiveProjects();
+} else
+  $active_projects = $user->getAssignedProjects();
+
+$smarty->assign('active_projects', $active_projects);
+$smarty->assign('inactive_projects', $inactive_projects);
+$smarty->assign('show_files', $user->isPluginEnabled('at'));
+$smarty->assign('title', $i18n->get('title.project_files'));
+$smarty->assign('content_page_name', 'projects.tpl');
+$smarty->display('index.tpl');