{if $rsCountryName.countryName} {assign var="countryID" value=$rsCountryName.countryID}       
          {foreach from=$rsStates item="rsState" key=key1} 
          {assign var="ID" value=$rsState.stateID}
          <tr id="right_state{$countryID}_{$ID}"  >
            <td title="{$rsState.stateName}" width="20%"  align="left" valign="top">  
                <span class="pp-rightpanel" >{$rsState.stateName}</span> &nbsp; 
                  {form->checkbox class="statearray_{$countryID}"  style="display:none" name="statearray[{$countryID}][]" id="check_{$ID}" checked="checked"  value="{$ID}"}
             </td>
              {if $zoneType eq 'Location'}
                  <td  align="left" valign="top"> 
                  {form->textbox value=$zip  name="zipCodes{$countryID}_{$ID}[]" class="textbox" style="width:100%;display:none"}
                 {$zip}{form->hidden name="isRange{$countryID}_{$ID}[]" value=$isRange}
                     </td>                 
                     <td align="left" valign="top"> 
                         {html->anchor href="" style="float:right;" class="editlink" onClick="editStateAjax('{$countryID}','{$ID}','zip',this)" title="{$language.lblEdit}" image="$view_images/edit_icon.png" width='11' height='11' alt="{$language.lblEdit}"} 
                         {html->anchor style="float:right;margin:5px;" onclick="delStateAjax('{$countryID}','{$ID}','zip',this)" content="<img src='$view_images/remove-icon.png' width='11' height='11' alt='{$language.lblRemoveState}' title='{$language.lblRemoveState}' />"} 

                  </td>
              {/if}
          </tr> 
          {foreachelse}
               <tr id="right_state{$countryID}_0"  >
             <td width="20%"  align="left" valign="top"> 
             </td><td colspan="2" align="left" valign="top"> 
			 {form->textbox value=$zip  name="zipCodes{$countryID}_0[]" class="textbox" style="width:100%;display:none"}
                 {$zip}{form->hidden name="isRange{$countryID}_0[]" value=$isRange}
             </td>
             <td>
                  {html->anchor href="" style="float:right;" class="editlink" onClick="editStateAjax('{$countryID}','0','zip',this)" title="{$language.lblEdit}" image="$view_images/edit_icon.png" width='11' height='11' alt="{$language.lblEdit}"} 
                  {html->anchor style="float:right;margin:5px;" onclick="delStateAjax('{$countryID}','0','zip',this)" content="<img src='$view_images/remove-icon.png' width='11' height='11' alt='{$language.lblRemoveState}' title='{$language.lblRemoveState}' />"} 
             </td>
               </tr>
          {/foreach} 
    {/if}       