File size: 1.24Kb
{if $use_group_funcs}
<form action="{$smarty.server.PHP_SELF}" method="post" id="data_form">
{/if}
<table width="{$table_width}" border="0" cellspacing=1 cellpadding=2>
<!-- header -->
<tr bgcolor="#407BB7">
{foreach from=$table_headers item=value key=key}
{if $key neq 'group_funcs'}
<td class="rubr_head" {$value[1]}>{$value[0]}</td>
{else}
<td align=center width="35"><input type="checkbox" onClick="SwitchAll(this);" style="border:0;"></td>
{/if}
{/foreach}
</tr>
<!-- header -->
<!-- body -->
{foreach from=$table_items item=value key=key}
<tr class="{cycle values="even_row,odd_row"}">
{foreach from=$table_headers item=h_value key=h_key}
{if $h_key neq "group_funcs"}
<td class=small2 {$value.$h_key[1]}>{$value.$h_key[0]}</td>
{else}
<td align=center class=small2><input type="checkbox" style="border:0;" name="group_ids[]" value={$value.id[0]}></td>
{/if}
{/foreach}
</tr>
{/foreach}
<!-- body -->
<tr><td colspan={array_size arr=$table_headers} bgcolor="#407BB7"></td></tr>
<!-- group -->
{if $use_group_funcs}
<tr><td colspan={array_size arr=$table_headers} align="right">Действие : {$table_headers.group_funcs[0]}</td></tr>
{/if}
<!-- group -->
</table>
{if $use_group_funcs}
</form>
{/if}