|
|
@ -51,7 +51,8 @@
|
|
|
|
<td> </td>
|
|
|
|
<td> </td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
{foreach from=$items item=item}
|
|
|
|
{foreach from=$RAW_items item=RAW_item}
|
|
|
|
|
|
|
|
{assign "item" $items.{$RAW_item.$id_field|escape:"html"}} {* array keys in $items are html-escaped *}
|
|
|
|
{#tr_hilightoff#}
|
|
|
|
{#tr_hilightoff#}
|
|
|
|
|
|
|
|
|
|
|
|
{foreach key=key item=field from=$struct}
|
|
|
|
{foreach key=key item=field from=$struct}
|
|
|
@ -77,7 +78,7 @@
|
|
|
|
*}
|
|
|
|
*}
|
|
|
|
{elseif $key == 'active'}
|
|
|
|
{elseif $key == 'active'}
|
|
|
|
{if $item._can_edit}
|
|
|
|
{if $item._can_edit}
|
|
|
|
<a href="{#url_editactive#}{$table}&id={$item.$id_field|escape:"url"}&active={if ($item.active==0)}1{else}0{/if}&token={$smarty.session.PFA_token|escape:"url"}">{$item._active}</a>
|
|
|
|
<a href="{#url_editactive#}{$table}&id={$RAW_item.$id_field|escape:"url"}&active={if ($item.active==0)}1{else}0{/if}&token={$smarty.session.PFA_token|escape:"url"}">{$item._active}</a>
|
|
|
|
{else}
|
|
|
|
{else}
|
|
|
|
{$item._active}
|
|
|
|
{$item._active}
|
|
|
|
{/if}
|
|
|
|
{/if}
|
|
|
@ -109,7 +110,7 @@
|
|
|
|
{elseif $field.type == 'txtl'}
|
|
|
|
{elseif $field.type == 'txtl'}
|
|
|
|
{foreach key=key2 item=field2 from=$item.$key}{$field2}<br> {/foreach}
|
|
|
|
{foreach key=key2 item=field2 from=$item.$key}{$field2}<br> {/foreach}
|
|
|
|
{elseif $field.type == 'html'}
|
|
|
|
{elseif $field.type == 'html'}
|
|
|
|
{$RAW_items.{$item.{$msg.id_field}}.$key}
|
|
|
|
{$RAW_item.$key}
|
|
|
|
{else}
|
|
|
|
{else}
|
|
|
|
{$linktext}
|
|
|
|
{$linktext}
|
|
|
|
{/if}
|
|
|
|
{/if}
|
|
|
@ -118,8 +119,8 @@
|
|
|
|
{/if}
|
|
|
|
{/if}
|
|
|
|
{/foreach}
|
|
|
|
{/foreach}
|
|
|
|
|
|
|
|
|
|
|
|
<td>{if $item._can_edit}<a href="edit.php?table={$table|escape:"url"}&edit={$item.$id_field|escape:"url"}">{$PALANG.edit}</a>{else} {/if}</td>
|
|
|
|
<td>{if $item._can_edit}<a href="edit.php?table={$table|escape:"url"}&edit={$RAW_item.$id_field|escape:"url"}">{$PALANG.edit}</a>{else} {/if}</td>
|
|
|
|
<td>{if $item._can_delete}<a href="{#url_delete#}?table={$table}&delete={$item.$id_field|escape:"url"}&token={$smarty.session.PFA_token|escape:"url"}"
|
|
|
|
<td>{if $item._can_delete}<a href="{#url_delete#}?table={$table}&delete={$RAW_item.$id_field|escape:"url"}&token={$smarty.session.PFA_token|escape:"url"}"
|
|
|
|
onclick="return confirm ('{$PALANG.{$msg.confirm_delete}|replace:'%s':$item.$id_field}')">{$PALANG.del}</a>{else} {/if}</td>
|
|
|
|
onclick="return confirm ('{$PALANG.{$msg.confirm_delete}|replace:'%s':$item.$id_field}')">{$PALANG.del}</a>{else} {/if}</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
{/foreach}
|
|
|
|
{/foreach}
|
|
|
|