manage_help.smarty 2.2 KB
{literal}
<style>
table.pretty {
    margin: 0;
    padding: 0;
    border: 0;
    border-top: 1px solid #cccccc;
    border-left: 1px solid #cccccc;
}

table.pretty > thead > tr {
    border: 0;
    margin: 0;
    padding: 0;
    background-color: #feeeee;
}

table.pretty > thead > tr > th {
    border-right: 1px solid #cccccc;
    border-bottom: 2px solid #000000;
    border-left: 0;
    border-right: 0;
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 2px;
    padding-bottom: 2px;
}

table.pretty > tbody > tr {
    border: 0;
    margin: 0;
    padding: 0;
    background-color: #eeeefe;
}

table.pretty > tbody > tr.odd {
    background-color: #eeeefe;
}
table.pretty > tbody > tr.odd {
    background-color: #fafafe;
}

table.pretty > tbody > tr > td {
    border: 0;
    border-right: 1px solid #cccccc;
    border-bottom: 1px solid #cccccc;
    margin: 0;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 3px;
    padding-right: 3px;
}


</style>
{/literal}

<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 }