2 function chLocation(newLocation) { document.location = newLocation; }
5 <table cellspacing="0" cellpadding="7" border="0" width="720">
8 {if $user->can('manage_work')}
9 <table cellspacing="1" cellpadding="3" border="0" width="100%">
11 <tr><td class="sectionHeaderNoBorder">{$i18n.title.active_work}</td></tr>
15 <td width="35%" class="tableHeader">{$i18n.label.thing_name}</td>
16 <td width="35%" class="tableHeader">{$i18n.label.description}</td>
23 {foreach $active_work as $work_item}
24 <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
25 <td>{$work_item.name|escape}</td>
27 {if $project.has_files}
28 <td><a href="project_files.php?id={$project.id}"><img class="table_icon" alt="{$i18n.label.files}" src="images/icon_files.png"></a></td>
30 <td><a href="project_files.php?id={$project.id}"><img class="table_icon" alt="{$i18n.label.files}" src="images/icon_file.png"></a></td>
33 <td><a href="project_edit.php?id={$project.id}"><img class="table_icon" alt="{$i18n.label.edit}" src="images/icon_edit.png"></a></td>
34 <td><a href="project_delete.php?id={$project.id}"><img class="table_icon" alt="{$i18n.label.delete}" src="images/icon_delete.png"></a></td>
42 <td align="center"><br>
43 <form><input type="button" onclick="chLocation('work_add.php');" value="{$i18n.button.add}"></form>
48 {if $inactive_projects}
49 <table cellspacing="1" cellpadding="3" border="0" width="100%">
50 <tr><td class="sectionHeaderNoBorder">{$i18n.form.projects.inactive_projects}</td></tr>
52 <td width="35%" class="tableHeader">{$i18n.label.thing_name}</td>
53 <td width="35%" class="tableHeader">{$i18n.label.description}</td>
60 {foreach $inactive_projects as $project}
61 <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
62 <td>{$project.name|escape}</td>
63 <td>{$project.description|escape}</td>
65 {if $project.has_files}
66 <td><a href="project_files.php?id={$project.id}"><img class="table_icon" alt="{$i18n.label.files}" src="images/icon_files.png"></a></td>
68 <td><a href="project_files.php?id={$project.id}"><img class="table_icon" alt="{$i18n.label.files}" src="images/icon_file.png"></a></td>
71 <td><a href="project_edit.php?id={$project.id}"><img class="table_icon" alt="{$i18n.label.edit}" src="images/icon_edit.png"></a></td>
72 <td><a href="project_delete.php?id={$project.id}"><img class="table_icon" alt="{$i18n.label.delete}" src="images/icon_delete.png"></a></td>
79 <td align="center"><br>
80 <form><input type="button" onclick="chLocation('work_add.php');" value="{$i18n.button.add}"></form>
86 <table cellspacing="1" cellpadding="3" border="0" width="100%">
88 <td class="tableHeader">{$i18n.label.thing_name}</td>
89 <td class="tableHeader">{$i18n.label.description}</td>
95 {foreach $active_projects as $project}
96 <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
97 <td>{$project.name|escape}</td>
98 <td>{$project.description|escape}</td>
99 {if $show_files && $project.has_files}
100 <td><a href="project_files.php?id={$project.id}"><img class="table_icon" alt="{$i18n.label.files}" src="images/icon_files.png"></a></td>