]> wagnertech.de Git - timetracker.git/commitdiff
Work in progress on adding timesheets.
authorNik Okuntseff <support@anuko.com>
Sun, 17 Feb 2019 14:58:45 +0000 (14:58 +0000)
committerNik Okuntseff <support@anuko.com>
Sun, 17 Feb 2019 14:58:45 +0000 (14:58 +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/timesheet_add.tpl [new file with mode: 0644]
timesheet_add.php [new file with mode: 0644]

index 7526cdbaa742c8c48445f295714e1c8be91b95fa..f129c9b3b2cc3b82349101dde28cb2fdc35aaa10 100644 (file)
@@ -339,6 +339,9 @@ $i18n_key_words = array(
 // 'title.add_notification' => 'Adding Notification',
 // 'title.edit_notification' => 'Editing Notification',
 // 'title.delete_notification' => 'Deleting Notification',
+// 'title.add_timesheet' => 'Adding Timesheet',
+// 'title.edit_timesheet' => 'Editing Timesheet',
+// 'title.delete_timesheet' => 'Deleting Timesheet',
 // 'title.monthly_quotas' => 'Monthly Quotas',
 // 'title.export' => 'Exporting Group Data',
 // 'title.import' => 'Importing Group Data',
index e1dae902a3cc84a6b815300fd1da93f235c9917c..d722cb92af31873334e778ace34cb6cfa304d3ee 100644 (file)
@@ -350,6 +350,9 @@ $i18n_key_words = array(
 // 'title.add_notification' => 'Adding Notification',
 // 'title.edit_notification' => 'Editing Notification',
 // 'title.delete_notification' => 'Deleting Notification',
+// 'title.add_timesheet' => 'Adding Timesheet',
+// 'title.edit_timesheet' => 'Editing Timesheet',
+// 'title.delete_timesheet' => 'Deleting Timesheet',
 // 'title.monthly_quotas' => 'Monthly Quotas',
 // 'title.export' => 'Exporting Group Data',
 // 'title.import' => 'Importing Group Data',
index ba4068c9b4faede076eba0815b75f3285a6fb336..976d9f3fca8d573153da8ddb672e3c35a31c070f 100644 (file)
@@ -316,6 +316,10 @@ $i18n_key_words = array(
 'title.add_notification' => 'Tilføj Meddelelse',
 'title.edit_notification' => 'Redigér Meddelelse',
 'title.delete_notification' => 'Slet Meddelelse',
+// TODO: translate the following.
+// 'title.add_timesheet' => 'Adding Timesheet',
+// 'title.edit_timesheet' => 'Editing Timesheet',
+// 'title.delete_timesheet' => 'Deleting Timesheet',
 'title.monthly_quotas' => 'Månedlig Kvota',
 'title.export' => 'Eksporter Team Data', // TODO: replace "team" with "group".
 'title.import' => 'Importer Team Data', // TODO: replace "team" with "group".
index eead92b033f20f22b7972a058f34cab50ee47582..6ac1c0345ecd1d290961a8b62b31c979cbd843b1 100644 (file)
@@ -299,6 +299,10 @@ $i18n_key_words = array(
 'title.add_notification' => 'Benachrichtigung hinzufügen',
 'title.edit_notification' => 'Benachrichtigung bearbeiten',
 'title.delete_notification' => 'Benachrichtigung löschen',
+// TODO: translate the following.
+// 'title.add_timesheet' => 'Adding Timesheet',
+// 'title.edit_timesheet' => 'Editing Timesheet',
+// 'title.delete_timesheet' => 'Deleting Timesheet',
 'title.monthly_quotas' => 'Monatliche Quoten',
 'title.export' => 'Daten exportieren',
 'title.import' => 'Daten importieren',
index ef776cdf8713b01ddec928132013396b5ea1fc23..5da77cb2181a4b7b4d20164208a7b9db69172034 100644 (file)
@@ -291,6 +291,9 @@ $i18n_key_words = array(
 'title.add_notification' => 'Adding Notification',
 'title.edit_notification' => 'Editing Notification',
 'title.delete_notification' => 'Deleting Notification',
+'title.add_timesheet' => 'Adding Timesheet',
+'title.edit_timesheet' => 'Editing Timesheet',
+'title.delete_timesheet' => 'Deleting Timesheet',
 'title.monthly_quotas' => 'Monthly Quotas',
 'title.export' => 'Exporting Group Data',
 'title.import' => 'Importing Group Data',
index 74fc9036164cb7e0f1935f9e41968ffc7e8c81cb..124bfed7bb17d8949a8c76381b2ea752207d8c38 100644 (file)
@@ -338,6 +338,9 @@ $i18n_key_words = array(
 // 'title.add_notification' => 'Adding Notification',
 // 'title.edit_notification' => 'Editing Notification',
 // 'title.delete_notification' => 'Deleting Notification',
+// 'title.add_timesheet' => 'Adding Timesheet',
+// 'title.edit_timesheet' => 'Editing Timesheet',
+// 'title.delete_timesheet' => 'Deleting Timesheet',
 // 'title.monthly_quotas' => 'Monthly Quotas',
 'title.export' => 'Exportar datos', // TODO: Consider changing to exportando for consistency with other titles.
 'title.import' => 'Importar datos', // TODO: Consider changing to importando for consistency with other titles.
index 60cf19afb72612a99e815e63c97c617f28252c84..864fb91eb5d5f744d43db4c5c95dcd9a196c15be 100644 (file)
@@ -319,6 +319,10 @@ $i18n_key_words = array(
 'title.add_notification' => 'Teate lisamine',
 'title.edit_notification' => 'Teate muutmine',
 'title.delete_notification' => 'Teate kustutamine',
+// TODO: translate the following.
+// 'title.add_timesheet' => 'Adding Timesheet',
+// 'title.edit_timesheet' => 'Editing Timesheet',
+// 'title.delete_timesheet' => 'Deleting Timesheet',
 'title.monthly_quotas' => 'Kuu kvoot',
 'title.export' => 'Grupi andmete alla laadimine',
 'title.import' => 'Grupi andmete üles laadimine',
index e475382210a2d71a25a49d1c2af17bb3e1f16ea4..501d9572a1d496748acfd63e44685237b10aad28 100644 (file)
@@ -323,6 +323,9 @@ $i18n_key_words = array(
 // 'title.add_notification' => 'Adding Notification',
 // 'title.edit_notification' => 'Editing Notification',
 // 'title.delete_notification' => 'Deleting Notification',
+// 'title.add_timesheet' => 'Adding Timesheet',
+// 'title.edit_timesheet' => 'Editing Timesheet',
+// 'title.delete_timesheet' => 'Deleting Timesheet',
 // 'title.monthly_quotas' => 'Monthly Quotas',
 'title.export' => 'پشتیانی گرفتن از اطلاعات تیم', // TODO: replace "team" with "group".
 'title.import' => 'وارد کردن اطلاعات تیم', // TODO: replace "team" with "group".
index 2c1af6a568d61d51ea97381d2a54a721bf1fb657..e400a94187fbf817e41c46b727254714dec40f42 100644 (file)
@@ -317,6 +317,9 @@ $i18n_key_words = array(
 'title.edit_notification' => 'Ilmoituksen muokkaus',
 'title.delete_notification' => 'Ilmoituksen poisto',
 // TODO: translate the following.
+// 'title.add_timesheet' => 'Adding Timesheet',
+// 'title.edit_timesheet' => 'Editing Timesheet',
+// 'title.delete_timesheet' => 'Deleting Timesheet',
 // 'title.monthly_quotas' => 'Monthly Quotas',
 'title.export' => 'Tiimitietojen vienti', // TODO: replace "team" with "group".
 'title.import' => 'Tiimitietojen tunti', // TODO: replace "team" with "group".
index e02ccbe724dffaf0d43535f9b351c2d03c7b69e0..3f411e9fd7abb6d7c40235be753e8600c2892ba6 100644 (file)
@@ -310,6 +310,10 @@ $i18n_key_words = array(
 'title.add_notification' => 'Ajout d\\\'une notification',
 'title.edit_notification' => 'Modification d\\\'une notification',
 'title.delete_notification' => 'Suppression d\\\'une notification',
+// TODO: translate the following.
+// 'title.add_timesheet' => 'Adding Timesheet',
+// 'title.edit_timesheet' => 'Editing Timesheet',
+// 'title.delete_timesheet' => 'Deleting Timesheet',
 'title.monthly_quotas' => 'Quotas mensuels',
 'title.export' => 'Exportation des données',
 'title.import' => 'Importation des données',
index 12b31464dfe27b19c123f2d011a474bbb61d4791..60b312a027e16d0df6714ffa445dad414d03cde4 100644 (file)
@@ -306,6 +306,10 @@ $i18n_key_words = array(
 'title.add_notification' => 'Προσθήκη ειδοποίησης',
 'title.edit_notification' => 'Επεξεργασία ειδοποίησης',
 'title.delete_notification' => 'Διαγραφή ειδοποίησης',
+// TODO: translate the following.
+// 'title.add_timesheet' => 'Adding Timesheet',
+// 'title.edit_timesheet' => 'Editing Timesheet',
+// 'title.delete_timesheet' => 'Deleting Timesheet',
 'title.monthly_quotas' => 'Μηνιαίες ποσοστώσεις',
 'title.export' => 'Εξαγωγή δεδομένων ομάδας',
 'title.import' => 'Εισαγωγή δεδομένων ομάδας',
index 5dce3e0bcade9fb78616608dcf3cfd258db9746a..5cfe3f2022eac7d8f0284772f7f62d496ef6add0 100644 (file)
@@ -335,6 +335,9 @@ $i18n_key_words = array(
 // 'title.add_notification' => 'Adding Notification',
 // 'title.edit_notification' => 'Editing Notification',
 // 'title.delete_notification' => 'Deleting Notification',
+// 'title.add_timesheet' => 'Adding Timesheet',
+// 'title.edit_timesheet' => 'Editing Timesheet',
+// 'title.delete_timesheet' => 'Deleting Timesheet',
 // 'title.monthly_quotas' => 'Monthly Quotas',
 'title.export' => 'ייצוא נתוני צוות', // TODO: replace "team" with "group".
 'title.import' => 'ייבוא נתוני צוות', // TODO: replace "team" with "group".
index 3d29edce1b1c93d7fe11ce237a796782ee1693f0..46d0bd6c48895d36afe6bbb7857b5ff49ca904a6 100644 (file)
@@ -337,6 +337,9 @@ $i18n_key_words = array(
 // 'title.add_notification' => 'Adding Notification',
 // 'title.edit_notification' => 'Editing Notification',
 // 'title.delete_notification' => 'Deleting Notification',
+// 'title.add_timesheet' => 'Adding Timesheet',
+// 'title.edit_timesheet' => 'Editing Timesheet',
+// 'title.delete_timesheet' => 'Deleting Timesheet',
 // 'title.monthly_quotas' => 'Monthly Quotas',
 // 'title.export' => 'Exporting Group Data',
 // 'title.import' => 'Importing Group Data',
index 97c14e0c1cba60e58419c517e259e0b21aba3439..5215f7f6b621a4079e6b2d267f510cbfe30b2500 100644 (file)
@@ -315,6 +315,10 @@ $i18n_key_words = array(
 'title.add_notification' => 'Aggiunta notifica',
 'title.edit_notification' => 'Modifica notifica',
 'title.delete_notification' => 'Eliminazione notifica',
+// TODO: translate the following.
+// 'title.add_timesheet' => 'Adding Timesheet',
+// 'title.edit_timesheet' => 'Editing Timesheet',
+// 'title.delete_timesheet' => 'Deleting Timesheet',
 'title.monthly_quotas' => 'Quote mensili',
 'title.export' => 'Esporta i dati del gruppo',
 'title.import' => 'Importa i dati del gruppo',
index b7764ba333cb5642c7803d26e14175eb7408053b..9c01727b091334412861d50c43f745719026da86 100644 (file)
@@ -344,6 +344,9 @@ $i18n_key_words = array(
 // 'title.add_notification' => 'Adding Notification',
 // 'title.edit_notification' => 'Editing Notification',
 // 'title.delete_notification' => 'Deleting Notification',
+// 'title.add_timesheet' => 'Adding Timesheet',
+// 'title.edit_timesheet' => 'Editing Timesheet',
+// 'title.delete_timesheet' => 'Deleting Timesheet',
 // 'title.monthly_quotas' => 'Monthly Quotas',
 // 'title.export' => 'Exporting Group Data',
 // 'title.import' => 'Importing Group Data',
index f2efa455f7b2bb490258c2d7efb4582681dc839c..8d5aa443aabb5145f5fce43bd4a1988761f5aadf 100644 (file)
@@ -345,6 +345,9 @@ $i18n_key_words = array(
 // 'title.add_notification' => 'Adding Notification',
 // 'title.edit_notification' => 'Editing Notification',
 // 'title.delete_notification' => 'Deleting Notification',
+// 'title.add_timesheet' => 'Adding Timesheet',
+// 'title.edit_timesheet' => 'Editing Timesheet',
+// 'title.delete_timesheet' => 'Deleting Timesheet',
 // 'title.monthly_quotas' => 'Monthly Quotas',
 // 'title.export' => 'Exporting Group Data',
 // 'title.import' => 'Importing Group Data',
index 564b79a4c9e3b6933778b96c76634546744fe175..1e7146f6aea6f58f850cad463a0ba0f1a46104a7 100644 (file)
@@ -294,6 +294,10 @@ $i18n_key_words = array(
 'title.add_notification' => 'Notificatie toevoegen',
 'title.edit_notification' => 'Notificatie bewerken',
 'title.delete_notification' => 'Notificatie verwijderen',
+// TODO: translate the following.
+// 'title.add_timesheet' => 'Adding Timesheet',
+// 'title.edit_timesheet' => 'Editing Timesheet',
+// 'title.delete_timesheet' => 'Deleting Timesheet',
 'title.monthly_quotas' => 'Doelen per maand',
 'title.export' => 'Exporteer groepsgegevens',
 'title.import' => 'Importeer groepsgegevens',
index 35b9dc05c4125f125bce8b33d2cb495e44a096ef..6a38cb2a67623bcc4df833c55866df11e759b5c4 100644 (file)
@@ -342,6 +342,9 @@ $i18n_key_words = array(
 // 'title.add_notification' => 'Adding Notification',
 // 'title.edit_notification' => 'Editing Notification',
 // 'title.delete_notification' => 'Deleting Notification',
+// 'title.add_timesheet' => 'Adding Timesheet',
+// 'title.edit_timesheet' => 'Editing Timesheet',
+// 'title.delete_timesheet' => 'Deleting Timesheet',
 // 'title.monthly_quotas' => 'Monthly Quotas',
 // 'title.export' => 'Exporting Group Data',
 // 'title.import' => 'Importing Group Data',
index dedbd1fb8fe4b61bd51eb27b8a59220630258d30..40167912e4e2514f2b7dcd2a83b79ed56181ac8a 100644 (file)
@@ -317,6 +317,10 @@ $i18n_key_words = array(
 'title.add_notification' => 'Dodawanie powiadomienia',
 'title.edit_notification' => 'Edytowanie powiadomienia',
 'title.delete_notification' => 'Usuwanie powiadomienia',
+// TODO: translate the following.
+// 'title.add_timesheet' => 'Adding Timesheet',
+// 'title.edit_timesheet' => 'Editing Timesheet',
+// 'title.delete_timesheet' => 'Deleting Timesheet',
 // 'title.monthly_quotas' => 'Monthly Quotas',
 'title.export' => 'Eksport danych zespołu', // TODO: replace "team" with "group".
 'title.import' => 'Import danych zespołu', // TODO: replace "team" with "group".
index af3661403a1b1e2f17aaf621709658766dc38cd5..61f06f35afeae05a0dfd6e01ce7f815bf72ee3cb 100644 (file)
@@ -314,6 +314,10 @@ $i18n_key_words = array(
 'title.add_notification' => 'Adicionando notificação',
 'title.edit_notification' => 'Editando notificação',
 'title.delete_notification' => 'Apagando notificação',
+// TODO: translate the following.
+// 'title.add_timesheet' => 'Adding Timesheet',
+// 'title.edit_timesheet' => 'Editing Timesheet',
+// 'title.delete_timesheet' => 'Deleting Timesheet',
 // 'title.monthly_quotas' => 'Monthly Quotas',
 'title.export' => 'Exportando dados de equipe', // TODO: replace "team" with "group".
 'title.import' => 'Importando dados de equipe', // TODO: replace "team" with "group".
index f55e422633551853bc4b9f23dbeb6e5834e0f772..09aa8b52eba0d2fa7fccaf48b64fde558fe4f2d0 100644 (file)
@@ -325,6 +325,9 @@ $i18n_key_words = array(
 // 'title.add_notification' => 'Adding Notification',
 // 'title.edit_notification' => 'Editing Notification',
 // 'title.delete_notification' => 'Deleting Notification',
+// 'title.add_timesheet' => 'Adding Timesheet',
+// 'title.edit_timesheet' => 'Editing Timesheet',
+// 'title.delete_timesheet' => 'Deleting Timesheet',
 // 'title.monthly_quotas' => 'Monthly Quotas',
 // 'title.export' => 'Exporting Group Data',
 // 'title.import' => 'Importing Group Data',
index 9cc731f9545b3be20356b592815a8aaaa6d896d8..f8d711f3576daa305adde1ff8a1ea27366d95697 100644 (file)
@@ -345,6 +345,9 @@ $i18n_key_words = array(
 // 'title.add_notification' => 'Adding Notification',
 // 'title.edit_notification' => 'Editing Notification',
 // 'title.delete_notification' => 'Deleting Notification',
+// 'title.add_timesheet' => 'Adding Timesheet',
+// 'title.edit_timesheet' => 'Editing Timesheet',
+// 'title.delete_timesheet' => 'Deleting Timesheet',
 // 'title.monthly_quotas' => 'Monthly Quotas',
 // 'title.export' => 'Exporting Group Data',
 // 'title.import' => 'Importing Group Data',
index e184ed66a206838dc372abaaeaf060eee36195c5..6c172c3380b41528f18e8d3ace715322f25fa3d1 100644 (file)
@@ -290,6 +290,9 @@ $i18n_key_words = array(
 'title.add_notification' => 'Добавление уведомления',
 'title.edit_notification' => 'Редактирование уведомления',
 'title.delete_notification' => 'Удаление уведомления',
+'title.add_timesheet' => 'Добавление табеля',
+'title.edit_timesheet' => 'Редактирование табеля',
+'title.delete_timesheet' => 'Удаление табеля',
 'title.monthly_quotas' => 'Месячные квоты',
 'title.export' => 'Экспортирование данных группы',
 'title.import' => 'Импортирование данных группы',
index dac0f5cab4d3d9a4d0f036660fb704e29ca0facb..d79db8431f6d9cb4f804aa1696613a82eacad3c3 100644 (file)
@@ -325,6 +325,9 @@ $i18n_key_words = array(
 // 'title.add_notification' => 'Adding Notification',
 // 'title.edit_notification' => 'Editing Notification',
 // 'title.delete_notification' => 'Deleting Notification',
+// 'title.add_timesheet' => 'Adding Timesheet',
+// 'title.edit_timesheet' => 'Editing Timesheet',
+// 'title.delete_timesheet' => 'Deleting Timesheet',
 // 'title.monthly_quotas' => 'Monthly Quotas',
 'title.export' => 'Exportovanie údajov o tíme', // TODO: replace "team" with "group".
 'title.import' => 'Importovanie údajov o tíme', // TODO: replace "team" with "group".
index 4c3ba08b9cfcd6c64264f074606d6f0558c73d59..d720907db77c07cb7a7efeaa5c2a301d40057c11 100644 (file)
@@ -320,6 +320,9 @@ $i18n_key_words = array(
 // 'title.add_notification' => 'Adding Notification',
 // 'title.edit_notification' => 'Editing Notification',
 // 'title.delete_notification' => 'Deleting Notification',
+// 'title.add_timesheet' => 'Adding Timesheet',
+// 'title.edit_timesheet' => 'Editing Timesheet',
+// 'title.delete_timesheet' => 'Deleting Timesheet',
 // 'title.monthly_quotas' => 'Monthly Quotas',
 // 'title.export' => 'Exporting Group Data',
 // 'title.import' => 'Importing Group Data',
index a10d95df60e84daa945593a52ce85011bc79c0f2..e5be1d81604fe0437c817a08677c93433e477636 100644 (file)
@@ -315,6 +315,10 @@ $i18n_key_words = array(
 'title.add_notification' => 'Dodavanje napomene',
 'title.edit_notification' => 'Izmena napomene',
 'title.delete_notification' => 'Brisanje napomene',
+// TODO: translate the following.
+// 'title.add_timesheet' => 'Adding Timesheet',
+// 'title.edit_timesheet' => 'Editing Timesheet',
+// 'title.delete_timesheet' => 'Deleting Timesheet',
 // 'title.monthly_quotas' => 'Monthly Quotas',
 'title.export' => 'Izvoz podataka tim-a', // TODO: replace "team" with "group".
 'title.import' => 'Uvoz podataka tim-a', // TODO: replace "team" with "group".
index bfa5e8dd2ff4b314bd2c66ebe79631d7316e60d5..75a258dddb95dd764d63d6f1a0604929103c888d 100644 (file)
@@ -315,6 +315,10 @@ $i18n_key_words = array(
 'title.add_notification' => 'Lägg till avisering',
 'title.edit_notification' => 'Redigera avisering',
 'title.delete_notification' => 'Ta bort avisering',
+// TODO: translate the following.
+// 'title.add_timesheet' => 'Adding Timesheet',
+// 'title.edit_timesheet' => 'Editing Timesheet',
+// 'title.delete_timesheet' => 'Deleting Timesheet',
 'title.monthly_quotas' => 'Månadskvoter',
 'title.export' => 'Exportera grupp',
 'title.import' => 'Importera grupp',
index 73b8774a684083aa7cbc15cfcca3b018d4c23b3b..b6b3aeb6a497db77a0616fa3b75c4a2b03f468eb 100644 (file)
@@ -353,6 +353,9 @@ $i18n_key_words = array(
 // 'title.add_notification' => 'Adding Notification',
 // 'title.edit_notification' => 'Editing Notification',
 // 'title.delete_notification' => 'Deleting Notification',
+// 'title.add_timesheet' => 'Adding Timesheet',
+// 'title.edit_timesheet' => 'Editing Timesheet',
+// 'title.delete_timesheet' => 'Deleting Timesheet',
 // 'title.monthly_quotas' => 'Monthly Quotas',
 // 'title.export' => 'Exporting Group Data',
 // 'title.import' => 'Importing Group Data',
index b0e63cfe25757fca25ffd7b44d9645c65d08ddeb..5eb65a7fe4b3a9e9ba34127f25940c559f28ee17 100644 (file)
@@ -332,6 +332,9 @@ $i18n_key_words = array(
 // 'title.add_notification' => 'Adding Notification',
 // 'title.edit_notification' => 'Editing Notification',
 // 'title.delete_notification' => 'Deleting Notification',
+// 'title.add_timesheet' => 'Adding Timesheet',
+// 'title.edit_timesheet' => 'Editing Timesheet',
+// 'title.delete_timesheet' => 'Deleting Timesheet',
 // 'title.monthly_quotas' => 'Monthly Quotas',
 // 'title.export' => 'Exporting Group Data',
 // 'title.import' => 'Importing Group Data',
index 067b515fb2ef3171059fee5251e5fe69c0be22a1..68e505620696e746f285a3c1f6513671ed599252 100644 (file)
@@ -339,6 +339,9 @@ $i18n_key_words = array(
 // 'title.add_notification' => 'Adding Notification',
 // 'title.edit_notification' => 'Editing Notification',
 // 'title.delete_notification' => 'Deleting Notification',
+// 'title.add_timesheet' => 'Adding Timesheet',
+// 'title.edit_timesheet' => 'Editing Timesheet',
+// 'title.delete_timesheet' => 'Deleting Timesheet',
 // 'title.monthly_quotas' => 'Monthly Quotas',
 // 'title.export' => 'Exporting Group Data',
 // 'title.import' => 'Importing Group Data',
diff --git a/WEB-INF/templates/timesheet_add.tpl b/WEB-INF/templates/timesheet_add.tpl
new file mode 100644 (file)
index 0000000..b475af0
--- /dev/null
@@ -0,0 +1,29 @@
+{$forms.timesheetForm.open}
+<table cellspacing="4" cellpadding="7" border="0">
+  <tr>
+    <td>
+      <table cellspacing="1" cellpadding="2" border="0">
+        <tr>
+          <td align="right">{$i18n.label.thing_name} (*):</td>
+          <td>{$forms.timesheetForm.timesheet_name.control}</td>
+        </tr>
+        <tr>
+          <td align = "right">{$i18n.label.comment}:</td>
+          <td>{$forms.timesheetForm.submitter_comment.control}</td>
+        </tr>
+        <tr>
+          <td></td>
+          <td>{$i18n.label.required_fields}</td>
+        </tr>
+        <tr>
+          <td></td>
+          <td>&nbsp;</td>
+        </tr>
+        <tr>
+          <td colspan="2" align="center" height="50">{$forms.timesheetForm.btn_add.control}</td>
+        </tr>
+      </table>
+    </td>
+  </tr>
+</table>
+{$forms.timesheetForm.close}
diff --git a/timesheet_add.php b/timesheet_add.php
new file mode 100644 (file)
index 0000000..c52fea6
--- /dev/null
@@ -0,0 +1,80 @@
+<?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');
+
+// Access checks.
+if (!(ttAccessAllowed('manage_own_timesheets') || ttAccessAllowed('manage_timesheets'))) {
+  header('Location: access_denied.php');
+  exit();
+}
+if (!$user->isPluginEnabled('ts')) {
+  header('Location: feature_disabled.php');
+  exit();
+}
+// End of access checks.
+
+if ($request->isPost()) {
+  $cl_name = trim($request->getParameter('timesheet_name'));
+  $cl_comment = trim($request->getParameter('submitter_comment'));
+}
+
+$form = new Form('timesheetForm');
+$form->addInput(array('type'=>'text','maxlength'=>'100','name'=>'timesheet_name','style'=>'width: 250px;','value'=>$cl_name));
+$form->addInput(array('type'=>'textarea','name'=>'submitter_comment','style'=>'width: 250px; height: 40px;','value'=>$cl_comment));
+$form->addInput(array('type'=>'submit','name'=>'btn_add','value'=>$i18n->get('button.add')));
+
+if ($request->isPost()) {
+  // Validate user input.
+  if (!ttValidString($cl_name)) $err->add($i18n->get('error.field'), $i18n->get('label.thing_name'));
+  if (!ttValidString($cl_comment, true)) $err->add($i18n->get('error.field'), $i18n->get('label.comment'));
+
+  if ($err->no()) {
+    /*
+    if (!ttProjectHelper::getProjectByName($cl_name)) {
+      if (ttProjectHelper::insert(array('name' => $cl_name,
+        'description' => $cl_description,
+        'users' => $cl_users,
+        'tasks' => $cl_tasks,
+        'status' => ACTIVE))) {
+          header('Location: projects.php');
+          exit();
+        } else
+          $err->add($i18n->get('error.db'));
+    } else
+      $err->add($i18n->get('error.object_exists'));
+    */
+  }
+} // isPost
+
+$smarty->assign('forms', array($form->getName()=>$form->toArray()));
+$smarty->assign('onload', 'onLoad="document.timesheetForm.timmesheet_name.focus()"');
+$smarty->assign('title', $i18n->get('title.add_timesheet'));
+$smarty->assign('content_page_name', 'timesheet_add.tpl');
+$smarty->display('index.tpl');