2 function chLocation(newLocation) { document.location = newLocation; }
5 <table cellspacing="0" cellpadding="7" border="0" width="720">
8 {if $user->can('manage_projects')}
9 <table cellspacing="1" cellpadding="3" border="0" width="100%">
10 {if $inactive_projects}
11 <tr><td class="sectionHeaderNoBorder">{$i18n.form.projects.active_projects}</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_projects as $project}
24 <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
25 <td>{$project.name|escape}</td>
26 <td>{$project.description|escape}</td>
28 {if $project.has_files}
29 <td><a href="project_files.php?id={$project.id}"><img class="table_icon" alt="{$i18n.label.files}" src="images/icon_files.png"></a></td>
31 <td><a href="project_files.php?id={$project.id}"><img class="table_icon" alt="{$i18n.label.files}" src="images/icon_file.png"></a></td>
34 <td><a href="project_edit.php?id={$project.id}"><img class="table_icon" alt="{$i18n.label.edit}" src="images/icon_edit.png"></a></td>
35 <td><a href="project_delete.php?id={$project.id}"><img class="table_icon" alt="{$i18n.label.delete}" src="images/icon_delete.png"></a></td>
43 <td align="center"><br>
44 <form><input type="button" onclick="chLocation('project_add.php');" value="{$i18n.button.add}"></form>
49 {if $inactive_projects}
50 <table cellspacing="1" cellpadding="3" border="0" width="100%">
51 <tr><td class="sectionHeaderNoBorder">{$i18n.form.projects.inactive_projects}</td></tr>
53 <td width="35%" class="tableHeader">{$i18n.label.thing_name}</td>
54 <td width="35%" class="tableHeader">{$i18n.label.description}</td>
61 {foreach $inactive_projects as $project}
62 <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
63 <td>{$project.name|escape}</td>
64 <td>{$project.description|escape}</td>
66 {if $project.has_files}
67 <td><a href="project_files.php?id={$project.id}"><img class="table_icon" alt="{$i18n.label.files}" src="images/icon_files.png"></a></td>
69 <td><a href="project_files.php?id={$project.id}"><img class="table_icon" alt="{$i18n.label.files}" src="images/icon_file.png"></a></td>
72 <td><a href="project_edit.php?id={$project.id}"><img class="table_icon" alt="{$i18n.label.edit}" src="images/icon_edit.png"></a></td>
73 <td><a href="project_delete.php?id={$project.id}"><img class="table_icon" alt="{$i18n.label.delete}" src="images/icon_delete.png"></a></td>
80 <td align="center"><br>
81 <form><input type="button" onclick="chLocation('project_add.php');" value="{$i18n.button.add}"></form>
87 <table cellspacing="1" cellpadding="3" border="0" width="100%">
89 <td class="tableHeader">{$i18n.label.thing_name}</td>
90 <td class="tableHeader">{$i18n.label.description}</td>
96 {foreach $active_projects as $project}
97 <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
98 <td>{$project.name|escape}</td>
99 <td>{$project.description|escape}</td>
100 {if $show_files && $project.has_files}
101 <td><a href="project_files.php?id={$project.id}"><img class="table_icon" alt="{$i18n.label.files}" src="images/icon_files.png"></a></td>