{if ($admin_list|count > 1)} {html_options name='username' output=$admin_list values=$admin_list selected=$admin_selected onchange="this.form.submit();"} {/if}
{if $msg.show_simple_search} {#form_search#} {/if}
{if $msg.show_simple_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} {/if}
{if $msg.list_header} {assign var="colcount" value=2} {foreach key=key item=field from=$struct} {if $field.display_in_list == 1 && $field.label}{* don't show fields without a label *} {assign var="colcount" value=$colcount+1} {/if} {/foreach} {/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 key=itemkey from=$RAW_items item=RAW_item} {assign "item" $items.{htmlentities($itemkey, $smarty.const.ENT_QUOTES, 'UTF-8', false)}} {* array keys in $items are escaped using htmlentities(), see smarty.inc.php *} {#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}
{$PALANG.{$msg.list_header}}
{$field.label}   
Special handling (complete table row) for {$table} / {$key} {if $table == 'foo' && $key == 'bar'} Special handling (td content) for {$table} / {$key} {elseif $table == 'aliasdomain' && $key == 'target_domain' && $struct.target_domain.linkto == 'target'} {$item.target_domain} {* {elseif $table == 'domain' && $key == 'domain'} {$item.domain} *} {elseif $key == 'active'} {if $item._can_edit} {$item._active} {else} {$item._active} {/if} {elseif $field.type == 'bool'} {assign "tmpkey" "_{$key}"}{$item.{$tmpkey}} {elseif $field.type == 'list'} {foreach key=key2 item=field2 from=$item.$key}{$field2}
{/foreach} {elseif $field.type == 'pass'} (hidden) {elseif $field.type == 'quot'} {assign "tmpkey" "_{$key}_percent"} {if $item[$tmpkey] > $CONF.quota_level_high_pct} {assign var="quota_level" value="high"} {elseif $item[$tmpkey] > $CONF.quota_level_med_pct} {assign var="quota_level" value="mid"} {else} {assign var="quota_level" value="low"} {/if} {if $item[$tmpkey] > -1}
{$linktext}
{else}
{$linktext}
{/if} {elseif $field.type == 'txtl'} {foreach key=key2 item=field2 from=$item.$key}{$field2}
{/foreach} {elseif $field.type == 'html'} {$RAW_item.$key} {else} {$linktext} {/if}
{if $item._can_edit}{$PALANG.edit}{else} {/if} {if $item._can_delete}{$PALANG.del}{else} {/if}
{if $msg.can_create}
{$PALANG.{$formconf.create_button}}

{/if}
{$PALANG.download_csv}