<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.18.25.4476 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.18.25.4477 | 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>
--- /dev/null
+<script>
+ function chLocation(newLocation) { document.location = newLocation; }
+</script>
+
+<table cellspacing="1" cellpadding="3" border="0" width="720">
+ <tr>
+ <td width="70%" class="tableHeader">{$i18n.label.thing_name}</td>
+ <td class="tableHeader">{$i18n.label.edit}</td>
+ <td class="tableHeader">{$i18n.label.delete}</td>
+ </tr>
+{if $groups}
+ {foreach $groups as $group}
+ <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
+ <td>{$group.name|escape}</td>
+ <td><a href="group_edit.php?id={$group.id}">{$i18n.label.edit}</a></td>
+ <td><a href="group_delete.php?id={$group.id}">{$i18n.label.delete}</a></td>
+ </tr>
+ {/foreach}
+{/if}
+</table>
+
+<table width="100%">
+ <tr>
+ <td align="center">
+ <br>
+ <form>
+ <input type="button" onclick="chLocation('group_add.php');" value="{$i18n.button.add}">
+ </form>
+ </td>
+ </tr>
+</table>
--- /dev/null
+<?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('ttUserHelper');
+import('ttRoleHelper');
+import('ttConfigHelper');
+
+// Access checks.
+if (!ttAccessAllowed('manage_subgroups')) {
+ header('Location: access_denied.php');
+ exit();
+}
+// End of access checks.
+
+$smarty->assign('groups', $user->getGroups());
+$smarty->assign('title', $i18n->get('title.groups'));
+$smarty->assign('content_page_name', 'groups.tpl');
+$smarty->display('index.tpl');