<{foreach from=$options item=item key=key}>
<{$item.label}> | <{if $item.type=="radio"}> <{input type=$item.type options=$item.options name="config[{$key}]" value=$item.value onclick="methodchange(this.value);"}> <{elseif $item.type=="password"}> <{input type=$item.type options=$item.options name="config[{$key}]" value=$item.value onKeyup="setHidden(this.value);"}> <{else}> <{input type=$item.type options=$item.options name="config[{$key}]" value=$item.value }> <{/if}>
<{/foreach}>

<{button id="config" label=$___desktop="保存"|t:'desktop' type="button"}> <{button label=$___desktop="测试配置"|t:'desktop' onclick="new Dialog('index.php?app=desktop&ctl=email&act=testEmail&'+$('messengerconfig').toQueryString(),{width:590,ajaksable:false})"}>