 {if $countryID}
<div class="clearfix" id="AjaxCountry_{$countryID}">  
  <div class=""> 
      {if $rsStates}<div class="geo-stateinput pos-relative" >
<button type="button" class="multi-select-btn" id="GeoShowCountry">{$language.lblSelectState}<span class="arw-top arw-icon"></span><span class="arw-btm"></span></button>
    
    <div id="tags_left" class="alltags tags_left_{$countryID}">
        <div class="div-city" style="width:224px !important">
        <ul>
          <li  style="display: block;float:none;" title="{$language.lblSelectAll}" id="SelectAll_{$countryID}"> 
              {form->checkbox id="selectAllStates" name="{$countryID}" onclick="selectAllState('state','',this,'{$countryID}')" tabindex="5"}
            <span>{$language.lblSelectAll}</span>
          </li>
          {foreach from=$rsStates item="rsState" key=key1}
          {assign var="ID" value=$rsState.stateID}
          <li style="display: block;float:none;" class="stateCheckbox_{$countryID}" title="{$rsState.stateName}" id="left_state{$countryID}_{$ID}" > 
            
              {form->checkbox name="stateCheckbox[{$countryID}][]" id="check_{$ID}" checked=" {if in_array($ID,$selectedStates)}checked{/if}"  value="{$ID}" onclick="checkselectAll({$countryID})" class="statearray check_{$countryID}"}
            <label for ="check_{$ID}">{$rsState.stateName}</label>
          </li>
          {/foreach}
        </ul>
      </div>
    </div>  
          </div>
         {form->hidden name="AjaxAllStates_{$countryID}" value="0"}	
    {else}  
          {form->hidden name="AjaxAllStates_{$countryID}" value="1"}
    {$language.lblApplicabletoallstates}
    {/if} 
   </div>
</div>
{/if}