{foreach from=$filter key=name item=value}
{if is_array($value)}
{foreach from=$value key=key item=id}
          {insert_form type="hidden" name=$name|cat:'['|cat:$key|cat:']' value=$id}
{/foreach}
{else}
          {insert_form type="hidden" name=$name value=$value}
{/if}
{/foreach}
