{if !empty($statesList)}
{foreach from=$statesList item="state"}
{assign var="ID" value=$state.stateID|default:''}
<option value={$ID} {if $ID eq $stateID} selected="selected"{/if} {if $state.stateStatus eq "Inactive"}class="inactive-state"{/if}>{$state.stateName}</option>
{/foreach}
{/if}