{if ($admin_list|count > 1)} {html_options name='username' output=$admin_list values=$admin_list selected=$admin_selected onchange="this.form.submit();"} {/if}
{#form_search#}
{if ($search|count > 0)}

{$PALANG.searchparams} {foreach key=key item=field from=$search} {if $struct.$key.label}{$struct.$key.label}{else}{$key}{/if} {if isset($searchmode.$key)}{$searchmode.$key}{else}={/if} {$field} {/foreach} [x]

{/if}
{foreach key=key item=field from=$struct} {if $field.display_in_list == 1 && $field.label}{* don't show fields without a label *} {/if} {/foreach} {foreach from=$items item=item} {#tr_hilightoff#} {foreach key=key item=field from=$struct} {if $field.display_in_list == 1 && $field.label} {if $field.linkto != '' && ($item.$id_field != '' || $item.$id_field > 0) } {assign "linkto" "{$field.linkto|replace:'%s':{$item.$id_field|escape:url}}"} {* TODO: use label field instead *} {assign "linktext" "{$item.{$key}}"} {else} {assign "linktext" $item.$key} {/if} {if $table == 'foo' && $key == 'bar'} {else} {/if} {/if} {/foreach} {/foreach}
{$field.label}   
Special handling (complete table row) for {$table} / {$key}
{if $table == 'foo' && $key == 'bar'} Special handling (td content) for {$table} / {$key} {* {elseif $table == 'domain' && $key == 'domain'} {$item.domain} *} {elseif $key == 'active'} {$item._active} {elseif $field.type == 'bool'} {assign "tmpkey" "_{$key}"}{$item.{$tmpkey}} {elseif $field.type == 'list'} {foreach key=key2 item=field2 from=$value_{$key}}

{$field2} {/foreach} {elseif $field.type == 'pass'} (hidden) {elseif $field.type == 'quot'} {assign "tmpkey" "_{$key}_percent"} {if $item[$tmpkey]>90} {assign var="quota_level" value="high"} {elseif $item[$tmpkey]>55} {assign var="quota_level" value="mid"} {else} {assign var="quota_level" value="low"} {/if} {if $item[$tmpkey] > -1}

{$linktext}
{else} {$item[$key]} {/if} {elseif $field.type == 'txtl'} {foreach key=key2 item=field2 from=$value_{$key}}

{$field2} {/foreach} {else} {$linktext} {/if}

{if $item._can_edit}{$PALANG.edit}{else} {/if} {if $item._can_delete}{$PALANG.del}{else} {/if}

{$PALANG.{$formconf.create_button}}


{$PALANG.download_csv}