2 function chLocation(newLocation) { document.location = newLocation; }
5 <table cellspacing="0" cellpadding="7" border="0" width="720">
8 {if $user->canManageTeam()}
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>
16 <td class="tableHeader">{$i18n.label.edit}</td>
17 <td class="tableHeader">{$i18n.label.delete}</td>
20 {foreach $active_projects as $project}
21 <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
22 <td>{$project.name|escape}</td>
23 <td>{$project.description|escape}</td>
24 <td><a href="project_edit.php?id={$project.id}">{$i18n.label.edit}</a></td>
25 <td><a href="project_delete.php?id={$project.id}">{$i18n.label.delete}</a></td>
33 <td align="center"><br>
34 <form><input type="button" onclick="chLocation('project_add.php');" value="{$i18n.button.add}"></form>
39 {if $inactive_projects}
40 <table cellspacing="1" cellpadding="3" border="0" width="100%">
41 <tr><td class="sectionHeaderNoBorder">{$i18n.form.projects.inactive_projects}</td></tr>
43 <td width="35%" class="tableHeader">{$i18n.label.thing_name}</td>
44 <td width="35%" class="tableHeader">{$i18n.label.description}</td>
45 <td class="tableHeader">{$i18n.label.edit}</td>
46 <td class="tableHeader">{$i18n.label.delete}</td>
48 {foreach $inactive_projects as $project}
49 <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
50 <td>{$project.name|escape}</td>
51 <td>{$project.description|escape}</td>
52 <td><a href="project_edit.php?id={$project.id}">{$i18n.label.edit}</a></td>
53 <td><a href="project_delete.php?id={$project.id}">{$i18n.label.delete}</a></td>
60 <td align="center"><br>
61 <form><input type="button" onclick="chLocation('project_add.php');" value="{$i18n.button.add}"></form>
67 <table cellspacing="1" cellpadding="3" border="0" width="100%">
69 <td class="tableHeader">{$i18n.label.thing_name}</td>
70 <td class="tableHeader">{$i18n.label.description}</td>
73 {foreach $active_projects as $project}
74 <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
75 <td>{$project.name|escape}</td>
76 <td>{$project.description|escape}</td>