From: Nik Okuntseff Date: Fri, 8 Mar 2019 22:09:00 +0000 (+0000) Subject: Added a template selector on time.php. X-Git-Tag: timetracker_1.19-1~195 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=3d2723cd9a817f59b26a40f5b34281e0586ba1ca;p=timetracker.git Added a template selector on time.php. --- diff --git a/WEB-INF/lib/ttGroupHelper.class.php b/WEB-INF/lib/ttGroupHelper.class.php index 251fb9e7..b77edf21 100644 --- a/WEB-INF/lib/ttGroupHelper.class.php +++ b/WEB-INF/lib/ttGroupHelper.class.php @@ -527,7 +527,7 @@ class ttGroupHelper { $group_id = $user->getGroup(); $org_id = $user->org_id; - $sql = "select id, name, description from tt_templates". + $sql = "select id, name, description, content from tt_templates". " where group_id = $group_id and org_id = $org_id and status = 1 order by upper(name)"; $res = $mdb2->query($sql); $result = array(); diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 8b3fb051..26443eea 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.18.55.4846 | Copyright © Anuko | +  Anuko Time Tracker 1.18.55.4847 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/WEB-INF/templates/time.tpl b/WEB-INF/templates/time.tpl index a181b912..fe9c294d 100644 --- a/WEB-INF/templates/time.tpl +++ b/WEB-INF/templates/time.tpl @@ -1,5 +1,22 @@ {include file="time_script.tpl"} +{if $template_dropdown} + +{/if} +