<!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.lblAdmin} : {$language.lblLocalizationSettings}:{$language.lblCountries}</title>
{include file='CommonStyles.tpl'}
{include file='CommonJavaScript.tpl'}
<link rel="stylesheet" type="text/css" href="{$view_styles}/grid_listing.css" />
<link rel="stylesheet" type="text/css" href="{$view_styles}/right-menu.css" />
<link rel="stylesheet" type="text/css" href="{$view_styles}/colorbox.css" />
{include file='CommonCustomStyles.tpl'}
</head>
<body>
<div class="outer_container">
  {include file='CommonTop.tpl'}
<!--End:Header Container-->
<!--*****************************************************START CONTAINER SECTION***************************-->
<div class="content_container2">
  <div class="clear"></div>
  <div class="right-sidebar localization">
    <div class="side_wrapper">
     {include file='localizationRighLinks.tpl'}
     </div>
     </div>
  <!--End: Right Block-->
  <div class="left_wrapper">
    <div class="content_wrapper">
      <h2>{$language.lblCountries}</h2>

      
          <div class="search_container">
            <div class="inner clearfix">
				<div class="alphabets_pagination fixing_left"> {foreach from=$resListCountryAlphabets item="resCountryAlphabets"}
          {if $resCountryAlphabets.countryName|lower eq $keyword}
          {assign var="classAlphabet" value="active"}
          {else}
          {assign var="classAlphabet" value=""}
          {/if} 
            {html->anchor class="{$classAlphabet}" href="country/index/keyword/{$resCountryAlphabets.countryName|lower}/" caption=$resCountryAlphabets.countryName}&nbsp;|
            {/foreach} </div>  
				<div class="submit-block  fixing_right">
           {html->anchor href="/country/index/" class="button-link01" content={$language.lblListAll2}}
		  </div>
          </div></div>
           
          <div class="sort_links clearfix">{include file='ContentLanguageOptions.tpl'}
          {html->anchor priv_href="country/priority/" href="/country/priority/"  id="setPrior" title={$language.lblSetPrioritisedCountries} class="button-link01 fixing_right setpriority" content={$language.lblSetPriority}}
          
          </div>
		   {if $resListCountries|count > 0}
         <div id="common_message" ></div>
         	
        <div class="grid_table00" >
             
            {form->start name="formCountry" action="" method="post" error_class="message_inline_validation"}
            {form->errors form="formCountry"}
            {form->hidden name="hidCountryID"  class="textbox02" value=0}
          
           
          <table width="100%" border="0" cellspacing="0" cellpadding="0"  id="table_inline_edit"  >
            <tr>{if $editPrivilege}
              <th width="41" align="left" valign="middle"  class="checkbox_column" > 
                <div class="chekingdiv">
                    <ul>
                      <li> {form->checkbox  id="ListStatusLinkCheckbox" name="countryStatusAll" options="" class="fixing_left"} 
                      {html->anchor href="" id="ListStatusLink" class="status-arw fixing_left"}
                        <ul id="ListStatusSelection"  class="check_status">
                          <li> {html->anchor href="" rel="ListActive" content=$language.lblActive}</li>
                          <li> {html->anchor href="" rel="ListInactive" content=$language.lblInactive}</li>
                          <li> {html->anchor href="" rel="ListAll" content=$language.lblSelectAll}</li>
                        </ul>
                      </li>
                    </ul>
                </div></th>{/if}
              <th align="left"   valign="middle"   width="20%">{$language.lblCountryName}</th>
              <th align="left"   valign="middle" >{$language.lblStates}</th>
              <th align="left"   valign="middle"   width="30%" >{$language.lblAddresFormat} </th>
              <th align="left"   valign="middle" >{$language.lblISOAlph2} </th>
              <th align="left"   valign="middle">{$language.lblISOAlph3} </th>
              <th align="left"   valign="middle">{$language.lblISONumber} </th>
              <th align="left"   valign="middle">{$language.lblCountryCode} </th>
			  {if $editPrivilege}
              <th align="left" valign="middle" width="40"></th>
			  {/if}
            </tr>
            {foreach from=$resListCountries item="resCountries"}
            {assign var="curr_countryID" value=$resCountries.countryID}
              {form->hidden id="editCountryID"  name="editCountryID" value=$curr_countryID}
            <tr {if $resCountries@iteration  is even by 1}  class="shade01" {/if}>
              {if $editPrivilege}<td align="left" valign="top" class="checkbox_column"> 
				  {form->checkbox id="countryIDS" class="countryBulkStatus checkbox01 ListAll 
                  {if $resCountries.countryAvailable eq "Yes"} ListActive{else}ListInactive{/if}" name="countryBulkStatus[]"  options="" value=$curr_countryID} 
               </td>{/if}
              <td align="left" valign="top">{$resCountries.countryName}</td>
              <td align="left" valign="top">{if $stateprivilage}{html->anchor  href="/state/index/country/{$curr_countryID}/"  title="" class=""  caption=$resCountries.stateCount}<br />{else}{$resCountries.stateCount}{/if}</td>
              <td align="left" valign="top">{$resCountries.addressFormat}</td>
              <td align="left" valign="top">{$resCountries.countryIsoA2} </td>
              <td align="left" valign="top">{$resCountries.countryIsoA3} </td>
              <td align="left" valign="top">{$resCountries.countryIsoNumber}</td>
              <td align="left" valign="top">{$resCountries.countryCode}</td>
			  {if $editPrivilege}
              <td align="left" valign="top">
              {if  $resCountries.countryAvailable eq "Yes"}
                  {assign var="newstatus" value="No"}
                  {assign var="changeStatus" value="status-active"}
                  {assign var="statusCountry" value="Active"}
                  {else}
                  {assign var="newstatus" value="Yes"}
                  {assign var="changeStatus" value="status-inactive"}
                  {assign var="statusCountry" value="Inactive"}
                  {/if}
                {html->anchor history="yes" id="{$curr_countryID}" title="{$statusCountry}"  class="{$changeStatus} icon-set" task='status-change' rel="{$newstatus}"}
				{html->anchor href="country/edit/id/{$curr_countryID}/" title=$language.lblEditCountry class="edit02 icon-set"}              
			</td>
			{/if}
           
            </tr>
            {/foreach}
          </table>
       
          </div>
			{if $editPrivilege}<div class="action_box">
            	{form->select name="countryStatus"  class="select-box width-auto" options="->{$language.lblDonotchange}~*Yes->{$language.lblActivate}~*No->{$language.lblInactivate}"}
                {form->submit name="submitBulkStatus" id="submitBulkStatus" class="update_btn_table submitBulkStatus button04"  value="{$language.lblUpdate}"}
                  </div>{/if}
                <div class="fixing_right pagination_outer" > {paginate->layout  key="page" label_record="{$language.lblRecorsFound}" label_pages="{$language.lblPages}"} </div>
                <div class="clear"></div>
              {form->close}      
			{else}
			<div class="message_info">{$language.lblNoCountries}</div>
          {/if}
          <!--End:Table  Listing-->
        </div>
        <!--End:Border 3-->
      </div>
      <!--End:Border 2-->
    </div>
    <!--End: left Block-->
    <div class="clear"></div>
  </div>
  <!--*****************************************END CONTAINER SECTION**********************************************-->
  <!--End:Content Container-->
  {include file='CommonBottom.tpl'} 
</div>
<!--End:Outer Container-->
{form->globalpath_script}
{include file='CommonJavaScriptBottom.tpl'}
<script type="text/javascript" src="{$view_javascript}/jquery.colorbox.js"></script> 
<script type="text/javascript" src="{$view_javascript}/jqueryui.js"></script>
<script type="text/javascript" src="{$view_javascript}/table.plugin.js"></script>
<script type="text/javascript">
var req="{$language.errRequired}";
var errInvalid="{$language.errInvalid}";
var errExist="{$language.errExist}";
var msgConfirmDelete			= '{$language.msgConfirmDelete}';
var lblSelectAction			= '{$language.lblSelectAction}';
var lblSelectItem				= '{$language.lblSelectItem}';
</script>
<div id="script"></div>
{html->messages_script id="common_message"}
<script type="text/javascript" src="{$view_javascript}/country.page.js"></script>
</body>
</html>