manage_help.smarty
1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<h2>Current help assignments</h2>
<table class="pretty" cellspacing="0" cellpadding="0" border="0">
<thead>
<tr>
<th>Section</th>
<th>Filename</th>
<th>Customise</th>
</tr>
</thead>
{foreach item=oHelpEntity from=$helps }
<tr class="{cycle values="odd,even"}">
<td> { $oHelpEntity->sSection } </td>
<td> { $oHelpEntity->sFilename } </td>
<td>
{ assign var="replacement" value=$oHelpEntity->checkReplacement() }
{ if $replacement }
<a href="{$smarty.server.PHP_SELF}?action=editReplacement&id={$replacement->getId()}">Edit</a>
{ else }
<a href="{$smarty.server.PHP_SELF}?action=customise&name={$oHelpEntity->getFilename()}">Customise</a>
{ /if }
</td>
</tr>
{ /foreach }
</table>
{ if $helpreplacements }
<h2>Existing customised help pages</h2>
<table class="pretty" cellspacing="0" cellpadding="0" border="0">
<thead>
<tr>
<th>Name</th>
<th>Actions</th>
</tr>
</thead>
{ foreach item=oHelpReplacement from=$helpreplacements }
<tr class="{cycle values="odd,even"}">
<td>
<a href="{$smarty.server.PHP_SELF}?action=editReplacement&id={$oHelpReplacement->iId}">{ $oHelpReplacement->sName }</a>
</td>
<td>
<a href="{$smarty.server.PHP_SELF}?action=deleteReplacement&id={$oHelpReplacement->iId}">Delete</a>
</td>
</tr>
{ /foreach }
</table>
{ /if }