{literal} {/literal} {if $sm.res}
Config Settings
{capture name=links}
Add new
Check All
Delete
{/capture} {$smarty.capture.links}
{section name=setting loop=$sm.res} {assign var=x value=$sm.res[setting]} {if $sm.res[setting.index_prev].name != $x.name}
+
{$x.name}
{literal} {/literal}
Add new
{/if}
{$x.ckey}
{assign var=f_key value=","|explode:$x.f_key} {assign var=f_value value=","|explode:$x.f_value} {assign var=name_field value=$x.name|cat:'['|cat:$x.id_config|cat:']'|cat:'['|cat:$x.id_config|cat:']'} {if $x.f_type=='radio'} {html_radios name=$name_field values=$f_key output=$f_value selected=$x.value} {elseif $x.f_type=='checkbox'} {assign var=x_value value=","|explode:$x.value} {html_checkboxes name=$name_field values=$f_key output=$f_value selected=$x_value} {elseif $x.f_type=='dropdown'}
{html_options values=$f_key output=$f_value selected=$x.value}
{else}
{/if}
{$x.comment}
{if $sm.res[setting.index_next].name != $x.name}
{/if} {/section}
{$smarty.capture.links}
{else}
No records found
{/if} {literal} {/literal}