<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$language.lblBusiness}: {$language.lblDeliveryZones} </title>
{include file='CommonStyles.tpl'}
{include file='CommonJavaScript.tpl'}
<link rel="stylesheet" type="text/css" href="{$view_styles}/details.css" />
{include file='CommonCustomStyles.tpl'}
</head>
<body class="{$languageDirection}">
<div class="outer" id="main">{include file='CommonHeader.tpl'}
<!--***********************************************************************START CONTAINER SECTION******************************************************-->
 <div class="content-wrapper">
<div class="container-fluid">
         {html->anchor class="back-link pull-right" href="{if $previousURL}{$previousURL}{else}deliveryzone/index/{/if}" caption=$language.lblBack}
        <h2 class="rmv-margin">{if $deliveryZoneID}{$language.lblDeliveryZoneDet}{/if} </h2>
        <div class="inner_content_wrapper delivery-zone">
            {if $rsCountryState}
          <div class="form_listing clearfix ">
               
                <div class="clearfix container-section">
                <h3 class="reduce-topspace head-title">{$language.lblBasicInformation}</h3>
                <div class="left-pane">
          <div class="form_listing">
            <ul>
              <li class="clearfix">
                <div class="left col-md-3 col-sm-5 col-xs-6">{$language.lblDeliveryZoneName} :</div>
                <div class="right col-md-3 col-sm-5 col-xs-6">{$deliveryZoneName}</div>
              </li>
             
              <li class="clearfix">
                <div class="left col-md-3 col-sm-5 col-xs-6">{$language.lblZoneType}  : </div>
                <div class="right col-md-3 col-sm-5 col-xs-6">{if $deliveryZoneType == 'National'}
				{$language.lblNational}
			{elseif $deliveryZoneType == 'Region'}
				{$language.lblRegion}
			{elseif $deliveryZoneType == 'Location'}
				{$language.lblLocation}
			{/if}</div>
              </li>
              <li class="clearfix">
            	<div class="left col-md-3 col-sm-5 col-xs-6">{$language.lblStatus} :</div>	
                <div class="right col-md-3 col-sm-5 col-xs-6"><strong>{if $deliveryZoneStatus == 'Active'}
				{$language.lblActive}
			{elseif $deliveryZoneStatus == 'Inactive'}
				{$language.lblInactive}
			
			{/if}</strong></div>
            </li>
             <li class="clearfix">
                <div class="left col-md-3 col-sm-5 col-xs-6">{$language.lblDescription} : </div>
                <div class="right col-md-3 col-sm-5 col-xs-6">{$deliveryZoneDescription|nl2br}</div>
              </li>
            </ul>
          </div>
        </div>
        </div>
       
         <div class="geozone-table container-section clearfix">
          <h3 class="head-title">{$language.lblLocationDetails}</h3>
       <div class="grid_table01"> 
         <table width="100%" align="center" >
          <tr>
            <th width="30%" align="left" valign="top" id="country01" >{$language.lblCountry}</th>
            {if $zoneType neq 'National'}
            <th {if $zoneType eq 'Location'} width="30%" {else} width="70%" {/if} align="left" valign="top" id="state01">{$language.lblState}</th>
            {/if} 
            {if $zoneType eq 'Location'}
            <th  width="40%" align="left" valign="top"> {$language.lblZIP}</th>
           {/if}
           </tr>
          {if $rsCountryState}
          <tr>
            <td width="100%" colspan="3" align="left" valign="top" id="ajax_new_country"> 
            {foreach item=rsCountryStat from=$rsCountryState key="k"}
              <table width="100%" border="0" class="states_list" >
                <tr class="zone-list" >
                  <td width="30%" align="left" valign="top" class="geo-state"> {$rsCountryStat.countryName} </td>
                  {if $zoneType neq 'National'}
                  <td  width="70%" align="left" valign="top" class="no-padding"> 
                  {if isset($rsCountryStat.rsStates) && $rsCountryStat.rsStates|@count >0}    
                      <table class="left-border"   width="100%">  
                            {foreach from=$rsCountryStat.rsStates item="rsState" key=key1}                        
                                {assign var="ID" value=$rsState.stateID}
                               {if $zoneType eq 'Region'}
                                     <tr  >
                                    <td width="30%" align="left" valign="top"><span class="pp-rightpanel" > {$rsState.stateName}</span></td>
                                  </tr>
                               {else}  
                                   {assign var="countryZipArr" value=$rsCountryStat.$ID.zipCodes}
                                   {foreach from=$countryZipArr item="zips" key=zipkey}
                                       <tr  >
                                            <td width="30%" align="left" valign="top"><span class="pp-rightpanel" > {$rsState.stateName}</span></td>
                                            <td width="40%" align="left" valign="top" > {$zips} </td>
                                       </tr>
                                   {/foreach}
                                {/if} 
                            {/foreach}
                      </table>
                    {else}                      
                  
                    <table  class="left-border" width="100%">
                          {if $zoneType eq 'Region'}
                             <tr style="border-bottom: 0;" >
                            <td width="30%" align="left" valign="top"><span class="pp-rightpanel" > {$language.lblApplicabletoallstates}</span></td>
                            </tr>
                        {else}
                            {assign var="countryZipArr" value=$rsCountryStat.0.zipCodes}
                                   {foreach from=$countryZipArr item="zips" key=zipkey}
                                        <tr  >
                                          <td width="30%" align="left" valign="top"><span class="pp-rightpanel" > </span></td>
                                          <td width="40%" align="left" valign="top" > {$zips} </td>
                                        </tr>
                                   {/foreach}
                        {/if}
                    </table>
                      
                      
                    {/if} 
                  </td>                 
                  {/if} </tr>
              </table>
              {assign var="countryname" value=$rsCountryStat.countryName} 
              {/foreach}      
              
            </td>
          </tr>
          {/if}
        </table>
        </div>
      </div>
      </div>
</div>
{else}
   <div class="message_info" id="common_message"> {$language.msgNoDetails}</div>
    {/if}
</div>
<!--End:Outer Container--> 
    </div>
  </div>
 {include file='CommonFooter.tpl'}
  <!-- Footer ends-->
</div>
{include file='CommonJavaScriptBottom.tpl'}

</body>
</html>
