61 lines
2.1 KiB
Smarty
61 lines
2.1 KiB
Smarty
<table id="commencenter-table"class="table">
|
|
<thead id="commencenter-table-head">
|
|
<tr>
|
|
{if !$delete} <th style="width: 10%;">{$plang.select}</th>{/if}
|
|
<th class="main-cell">{$plang.criteria}</th>
|
|
<th style="width: 20%;">{$plang.behavoir}</th>
|
|
{if !$delete} <th style="width: 25%;">{$plang.options}</th>{/if}
|
|
</tr>
|
|
</thead>
|
|
<tbody id="commencenter-table-body">
|
|
{foreach name=policies from=$policies key=id item=policy}
|
|
<tr class="tr_policy{$id}">
|
|
{if !$delete} <td class="td_select"><input type="checkbox" class="form-check-input" name="select[{$id}]" /></td>{/if}
|
|
<td class="main-cell">
|
|
{if $delete}<input type="hidden" name="del_policy[]" value="{$id}" />
|
|
{/if}
|
|
{if $policy.is_all}
|
|
{$plang.all_entries}
|
|
{elseif is_array($policy.entry) && count($policy.entry)>0}
|
|
{$plang.fol_entries}
|
|
<ul>
|
|
{foreach from=$policy.entry item=entry}
|
|
<li><span title="{$entry}">{$entry|idToSubject}</span></li>
|
|
{/foreach}
|
|
</ul>
|
|
{elseif !empty($policy.entry)}
|
|
{$plang.fol_entries}
|
|
<ul>
|
|
<li><span title="{$policy.entry}">{$policy.entry|idToSubject}</span></li>
|
|
</ul>
|
|
{else}
|
|
{if count($policy.categories)>0}
|
|
<p>{$plang.fol_cats}
|
|
{$policy.categories|@filed}</p>
|
|
{/if}
|
|
{if !empty($policy.older)}
|
|
<p>{$plang.older|sprintf:"`$policy.older/86400`"}</p>
|
|
{/if}
|
|
{/if}
|
|
</td>
|
|
{if $policy.do==1}
|
|
<td>{$plang.allow}</td>
|
|
{elseif $policy.do==0}
|
|
<td>{$plang.approvation}</td>
|
|
{elseif $policy.do==-1}
|
|
<td>{$plang.block}</td>
|
|
{/if}
|
|
{if !$delete} <td>
|
|
<a href="{$action_url|cmd_link:polup:$id}" title="{$plang.up}" rel="polup[{$id}]"><img src="{$plugin_url}imgs/up.png" alt="{$plang.up}" /></a>
|
|
<a href="{$action_url|cmd_link:poldown:$id}" title="{$plang.down}" rel="poldown[{$id}]"><img src="{$plugin_url}imgs/down.png" alt="{$plang.down}" /></a>
|
|
<a href="{$action_url|cmd_link:poledit:$id}" title="{$plang.edit}"><img src="{$plugin_url}imgs/edit.png" alt="{$plang.edit}" /></a>
|
|
<a href="{$action_url|cmd_link:poldelete:$id}" title="{$plang.delete}"><img src="{$plugin_url}imgs/delete.png" alt="{$plang.delete}" /></a>
|
|
</td>{/if}
|
|
</tr>
|
|
{foreachelse}
|
|
<tr>
|
|
<td colspan="{if $delete}2{else}4{/if}">{$plang.nopolicies}</td>
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
</table> |