1<select name="{$field.ins_id}" class="form-control"> 2 {if $field.isMandatory ne 'y' || empty($field.value)} 3 <option value=""{if $field.value eq '' or $field.value eq 'None'} selected="selected"{/if}> </option> 4 {/if} 5 {if empty($field.itemChoices)} 6 <option value="Other"{if $field.value eq 'None'} selected="selected"{/if}{if $field.options_array[0] ne '1'} style="background: url('img/flags/Other.png') no-repeat;padding-left:25px;padding-bottom:3px;"{/if}>{tr}Other{/tr}</option> 7 {/if} 8 9 {foreach key=flagicon item=flag from=$field.flags} 10 {if $flagicon ne 'None' and $flagicon ne 'Other' and ( ! isset($field.itemChoices) || $field.itemChoices|@count eq 0 || in_array($flagicon, $field.itemChoices) )} 11 <option value="{$flagicon|escape}" {if $field.value eq $flagicon}selected="selected"{elseif $flagicon eq $field.defaultvalue}selected="selected"{/if}{if $field.options_array[0] ne '1'} style="background: url('img/flags/{$flagicon}.png') no-repeat;padding-left:25px;padding-bottom:3px;"{/if}>{$flag|escape}</option> 12 {/if} 13 {/foreach} 14</select> 15