47 lines
1.1 KiB
Smarty
Executable File
47 lines
1.1 KiB
Smarty
Executable File
{if $fields.history.value==""}
|
|
Brak historii
|
|
{else}
|
|
<table class="list view">
|
|
{foreach from=$fields.history.value key=k item=record}
|
|
<tr>
|
|
<td style="width:115px">
|
|
{$k}
|
|
</td>
|
|
<td>
|
|
<table class="list view" cellspacing="0" cellpadding="0">
|
|
<thead>
|
|
<tr>
|
|
<th nowrap="nowrap" scope="col" style="width:20%">Zmienione pole</th>
|
|
<th nowrap="nowrap" scope="col" style="width:40%">Było</th>
|
|
<th nowrap="nowrap" scope="col" style="width:40%">Jest</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{foreach from=$record key=indeks item=pozycja}
|
|
<tr class="evenListRowS1">
|
|
<td>
|
|
{$pozycja.field_name}
|
|
</td>
|
|
<td>
|
|
{if $pozycja.data_type == 'enum' || $pozycja.data_type == 'varchar'}
|
|
{$pozycja.before_value_string}<br>
|
|
{else}
|
|
{$pozycja.before_value_text}
|
|
{/if}
|
|
</td>
|
|
<td>
|
|
{if $pozycja.data_type == 'enum' || $pozycja.data_type == 'varchar'}
|
|
{$pozycja.after_value_string}
|
|
{else}
|
|
{$pozycja.after_value_text}
|
|
{/if}
|
|
</td>
|
|
<tr>
|
|
{/foreach}
|
|
</tbody>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
{/foreach}
|
|
</table>
|
|
{/if} |