--- /dev/null
+<table cellspacing="0" cellpadding="7" border="0" width="720">
+ <tr>
+ <td valign="top">
+ <table cellspacing="1" cellpadding="3" border="0" width="100%">
+ <tr>
+ <td width="35%" class="tableHeader">{$i18n.label.thing_name}</td>
+ <td width="35%" class="tableHeader">{$i18n.label.description}</td>
+{if $can_edit}
+ <td class="tableHeader">{$i18n.label.edit}</td>
+ <td class="tableHeader">{$i18n.label.delete}</td>
+{/if}
+ </tr>
+{if $files}
+ {foreach $files as $file}
+ <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
+ <td><a href="file_download.php?id={$file.id}">{$file.name|escape}</a></td>
+ <td>{$file.description|escape}</td>
+ {if $can_edit}
+ <td><a href="file_edit.php?id={$file.id}">{$i18n.label.edit}</a></td>
+ <td><a href="file_delete.php?id={$file.id}">{$i18n.label.delete}</a></td>
+ {/if}
+ </tr>
+ {/foreach}
+{/if}
+ </table>
+ </td>
+ </tr>
+</table>
+
+{if $can_edit}
+{$forms.fileUploadForm.open}
+<table cellspacing="0" cellpadding="7" border="0" width="720">
+ <tr>
+ <td align="center">
+ <table border="0" width="60%">
+ <tr>
+ <td align="right">{$i18n.label.description}:</td>
+ <td>{$forms.fileUploadForm.description.control}</td>
+ <td align="left">{$forms.fileUploadForm.newfile.control}</td>
+ </tr>
+ <tr><td height="50" align="center" colspan="3">{$forms.fileUploadForm.btn_submit.control}</td></tr>
+ </table>
+ </td>
+ </tr>
+</table>
+{$forms.fileUploadForm.close}
+{/if}
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.18.63.4910 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.18.63.4911 | 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
-<table cellspacing="0" cellpadding="7" border="0" width="720">
- <tr>
- <td valign="top">
- <table cellspacing="1" cellpadding="3" border="0" width="100%">
- <tr>
- <td width="35%" class="tableHeader">{$i18n.label.thing_name}</td>
- <td width="35%" class="tableHeader">{$i18n.label.description}</td>
-{if $can_manage}
- <td class="tableHeader">{$i18n.label.edit}</td>
- <td class="tableHeader">{$i18n.label.delete}</td>
-{/if}
- </tr>
-{if $files}
- {foreach $files as $file}
- <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
- <td><a href="file_download.php?id={$file.id}">{$file.name|escape}</a></td>
- <td>{$file.description|escape}</td>
- {if $can_manage}
- <td><a href="file_edit.php?id={$file.id}">{$i18n.label.edit}</a></td>
- <td><a href="file_delete.php?id={$file.id}">{$i18n.label.delete}</a></td>
- {/if}
- </tr>
- {/foreach}
-{/if}
- </table>
- </td>
- </tr>
-</table>
-
-{if $can_manage}
-{$forms.fileUploadForm.open}
-<table cellspacing="0" cellpadding="7" border="0" width="720">
- <tr>
- <td align="center">
- <table border="0" width="60%">
- <tr>
- <td align="right">{$i18n.label.description}:</td>
- <td>{$forms.fileUploadForm.description.control}</td>
- <td align="left">{$forms.fileUploadForm.newfile.control}</td>
- </tr>
- <tr><td height="50" align="center" colspan="3">{$forms.fileUploadForm.btn_submit.control}</td></tr>
- </table>
- </td>
- </tr>
-</table>
-{$forms.fileUploadForm.close}
-{/if}
+++ /dev/null
-<table cellspacing="0" cellpadding="7" border="0" width="720">
- <tr>
- <td valign="top">
- <table cellspacing="1" cellpadding="3" border="0" width="100%">
- <tr>
- <td width="35%" class="tableHeader">{$i18n.label.thing_name}</td>
- <td width="35%" class="tableHeader">{$i18n.label.description}</td>
-{if $can_edit}
- <td class="tableHeader">{$i18n.label.edit}</td>
- <td class="tableHeader">{$i18n.label.delete}</td>
-{/if}
- </tr>
-{if $files}
- {foreach $files as $file}
- <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
- <td><a href="file_download.php?id={$file.id}">{$file.name|escape}</a></td>
- <td>{$file.description|escape}</td>
- {if $can_edit}
- <td><a href="file_edit.php?id={$file.id}">{$i18n.label.edit}</a></td>
- <td><a href="file_delete.php?id={$file.id}">{$i18n.label.delete}</a></td>
- {/if}
- </tr>
- {/foreach}
-{/if}
- </table>
- </td>
- </tr>
-</table>
-
-{if $can_edit}
-{$forms.fileUploadForm.open}
-<table cellspacing="0" cellpadding="7" border="0" width="720">
- <tr>
- <td align="center">
- <table border="0" width="60%">
- <tr>
- <td align="right">{$i18n.label.description}:</td>
- <td>{$forms.fileUploadForm.description.control}</td>
- <td align="left">{$forms.fileUploadForm.newfile.control}</td>
- </tr>
- <tr><td height="50" align="center" colspan="3">{$forms.fileUploadForm.btn_submit.control}</td></tr>
- </table>
- </td>
- </tr>
-</table>
-{$forms.fileUploadForm.close}
-{/if}
}
} // isPost
-$smarty->assign('can_manage', $user->can('manage_projects'));
+$smarty->assign('can_edit', $user->can('manage_projects'));
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('files', $files);
$smarty->assign('title', $i18n->get('title.project_files').': '.$project['name']);
-$smarty->assign('content_page_name', 'project_files.tpl');
+$smarty->assign('content_page_name', 'entity_files.tpl');
$smarty->display('index.tpl');
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('files', $files);
$smarty->assign('title', $i18n->get('title.time_files'));
-$smarty->assign('content_page_name', 'time_files.tpl');
+$smarty->assign('content_page_name', 'entity_files.tpl');
$smarty->display('index.tpl');