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>
14 <td width="35%" class="tableHeader">{$i18n.label.thing_name}</td>
15 <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 <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_edit.php?id={$project.id}"><img class="table_icon" alt="{$i18n.label.edit}" src="images/icon_edit.png"></a></td>
31 <td><a href="project_delete.php?id={$project.id}"><img class="table_icon" alt="{$i18n.label.delete}" src="images/icon_delete.png"></a></td>
39 <td align="center"><br>
40 <form><input type="button" onclick="chLocation('project_add.php');" value="{$i18n.button.add}"></form>
45 {if $inactive_projects}
46 <table cellspacing="1" cellpadding="3" border="0" width="100%">
47 <tr><td class="sectionHeaderNoBorder">{$i18n.form.projects.inactive_projects}</td></tr>
49 <td width="35%" class="tableHeader">{$i18n.label.thing_name}</td>
50 <td width="35%" class="tableHeader">{$i18n.label.description}</td>
57 {foreach $inactive_projects as $project}
58 <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
59 <td>{$project.name|escape}</td>
60 <td>{$project.description|escape}</td>
62 <td><a href="project_files.php?id={$project.id}"><img class="table_icon" alt="{$i18n.label.files}" src="images/icon_files.png"></a></td>
64 <td><a href="project_edit.php?id={$project.id}"><img class="table_icon" alt="{$i18n.label.edit}" src="images/icon_edit.png"></a></td>
65 <td><a href="project_delete.php?id={$project.id}"><img class="table_icon" alt="{$i18n.label.delete}" src="images/icon_delete.png"></a></td>
72 <td align="center"><br>
73 <form><input type="button" onclick="chLocation('project_add.php');" value="{$i18n.button.add}"></form>
79 <table cellspacing="1" cellpadding="3" border="0" width="100%">
81 <td class="tableHeader">{$i18n.label.thing_name}</td>
82 <td class="tableHeader">{$i18n.label.description}</td>
88 {foreach $active_projects as $project}
89 <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
90 <td>{$project.name|escape}</td>
91 <td>{$project.description|escape}</td>
93 <td><a href="project_files.php?id={$project.id}"><img class="table_icon" alt="{$i18n.label.files}" src="images/icon_files.png"></a></td>