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%">
10 <tr><td class="sectionHeaderNoBorder">{$i18n.title.active_work}</td></tr>
12 <td width="35%" class="tableHeader">{$i18n.label.thing_name}</td>
13 <td width="35%" class="tableHeader">{$i18n.label.description}</td>
21 {foreach $active_work as $work_item}
22 <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
23 <td>{$work_item.name|escape}</td>
25 {if $project.has_files}
26 <td><a href="project_files.php?id={$project.id}"><img class="table_icon" alt="{$i18n.label.files}" src="images/icon_files.png"></a></td>
28 <td><a href="project_files.php?id={$project.id}"><img class="table_icon" alt="{$i18n.label.files}" src="images/icon_file.png"></a></td>
31 <td><a href="project_edit.php?id={$project.id}"><img class="table_icon" alt="{$i18n.label.edit}" src="images/icon_edit.png"></a></td>
32 <td><a href="project_delete.php?id={$project.id}"><img class="table_icon" alt="{$i18n.label.delete}" src="images/icon_delete.png"></a></td>
40 <td align="center"><br>
41 <form><input type="button" onclick="chLocation('work_add.php');" value="{$i18n.button.add}"></form>
46 {if $inactive_projects}
47 <table cellspacing="1" cellpadding="3" border="0" width="100%">
48 <tr><td class="sectionHeaderNoBorder">{$i18n.form.projects.inactive_projects}</td></tr>
50 <td width="35%" class="tableHeader">{$i18n.label.thing_name}</td>
51 <td width="35%" class="tableHeader">{$i18n.label.description}</td>
58 {foreach $inactive_projects as $project}
59 <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
60 <td>{$project.name|escape}</td>
61 <td>{$project.description|escape}</td>
63 {if $project.has_files}
64 <td><a href="project_files.php?id={$project.id}"><img class="table_icon" alt="{$i18n.label.files}" src="images/icon_files.png"></a></td>
66 <td><a href="project_files.php?id={$project.id}"><img class="table_icon" alt="{$i18n.label.files}" src="images/icon_file.png"></a></td>
69 <td><a href="project_edit.php?id={$project.id}"><img class="table_icon" alt="{$i18n.label.edit}" src="images/icon_edit.png"></a></td>
70 <td><a href="project_delete.php?id={$project.id}"><img class="table_icon" alt="{$i18n.label.delete}" src="images/icon_delete.png"></a></td>
77 <td align="center"><br>
78 <form><input type="button" onclick="chLocation('work_add.php');" value="{$i18n.button.add}"></form>
84 <table cellspacing="1" cellpadding="3" border="0" width="100%">
86 <td class="tableHeader">{$i18n.label.thing_name}</td>
87 <td class="tableHeader">{$i18n.label.description}</td>
93 {foreach $active_projects as $project}
94 <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
95 <td>{$project.name|escape}</td>
96 <td>{$project.description|escape}</td>
97 {if $show_files && $project.has_files}
98 <td><a href="project_files.php?id={$project.id}"><img class="table_icon" alt="{$i18n.label.files}" src="images/icon_files.png"></a></td>