<?php /* Smarty version Smarty-3.1.8, created on 2019-10-30 10:03:42
         compiled from "/home/stg70/public_html/agmc-v2/application/core/views/manage/standard/Country.tpl" */ ?>
<?php /*%%SmartyHeaderCode:492993155db927bec3ff21-90405493%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '5d4c9f6cc385fb717c07b7c2407d019b6f513a07' => 
    array (
      0 => '/home/stg70/public_html/agmc-v2/application/core/views/manage/standard/Country.tpl',
      1 => 1572414193,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '492993155db927bec3ff21-90405493',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'language' => 0,
    'view_styles' => 0,
    'resListCountryAlphabets' => 0,
    'resCountryAlphabets' => 0,
    'keyword' => 0,
    'classAlphabet' => 0,
    'resListCountries' => 0,
    'editPrivilege' => 0,
    'resCountries' => 0,
    'curr_countryID' => 0,
    'stateprivilage' => 0,
    'statusCountry' => 0,
    'changeStatus' => 0,
    'newstatus' => 0,
    'view_javascript' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5db927bed2b356_46938408',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5db927bed2b356_46938408')) {function content_5db927bed2b356_46938408($_smarty_tpl) {?><!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><?php echo $_smarty_tpl->tpl_vars['language']->value['lblAdmin'];?>
 : <?php echo $_smarty_tpl->tpl_vars['language']->value['lblLocalizationSettings'];?>
:<?php echo $_smarty_tpl->tpl_vars['language']->value['lblCountries'];?>
</title>
<?php echo $_smarty_tpl->getSubTemplate ('CommonStyles.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

<?php echo $_smarty_tpl->getSubTemplate ('CommonJavaScript.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/grid_listing.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/right-menu.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/colorbox.css" />
<?php echo $_smarty_tpl->getSubTemplate ('CommonCustomStyles.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

</head>
<body>
<div class="outer_container">
  <?php echo $_smarty_tpl->getSubTemplate ('CommonTop.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

<!--End:Header Container-->
<!--*****************************************************START CONTAINER SECTION***************************-->
<div class="content_container2">
  <div class="clear"></div>
  <div class="right-sidebar localization">
    <div class="side_wrapper">
     <?php echo $_smarty_tpl->getSubTemplate ('localizationRighLinks.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

     </div>
     </div>
  <!--End: Right Block-->
  <div class="left_wrapper">
    <div class="content_wrapper">
      <h2><?php echo $_smarty_tpl->tpl_vars['language']->value['lblCountries'];?>
</h2>

      
          <div class="search_container">
            <div class="inner clearfix">
				<div class="alphabets_pagination fixing_left"> <?php  $_smarty_tpl->tpl_vars["resCountryAlphabets"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["resCountryAlphabets"]->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['resListCountryAlphabets']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["resCountryAlphabets"]->key => $_smarty_tpl->tpl_vars["resCountryAlphabets"]->value){
$_smarty_tpl->tpl_vars["resCountryAlphabets"]->_loop = true;
?>
          <?php if (mb_strtolower($_smarty_tpl->tpl_vars['resCountryAlphabets']->value['countryName'], 'UTF-8')==$_smarty_tpl->tpl_vars['keyword']->value){?>
          <?php $_smarty_tpl->tpl_vars["classAlphabet"] = new Smarty_variable("active", null, 0);?>
          <?php }else{ ?>
          <?php $_smarty_tpl->tpl_vars["classAlphabet"] = new Smarty_variable('', null, 0);?>
          <?php }?> 
            <?php ob_start();?><?php echo mb_strtolower($_smarty_tpl->tpl_vars['resCountryAlphabets']->value['countryName'], 'UTF-8');?>
<?php $_tmp1=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('class'=>($_smarty_tpl->tpl_vars['classAlphabet']->value),'href'=>"country/index/keyword/".$_tmp1."/",'caption'=>$_smarty_tpl->tpl_vars['resCountryAlphabets']->value['countryName']),$_smarty_tpl);?>
&nbsp;|
            <?php } ?> </div>  
				<div class="submit-block  fixing_right">
           <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['language']->value['lblListAll2'];?>
<?php $_tmp2=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"/country/index/",'class'=>"button-link01",'content'=>$_tmp2),$_smarty_tpl);?>

		  </div>
          </div></div>
           
          <div class="sort_links clearfix"><?php echo $_smarty_tpl->getSubTemplate ('ContentLanguageOptions.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

          <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['language']->value['lblSetPrioritisedCountries'];?>
<?php $_tmp3=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['language']->value['lblSetPriority'];?>
<?php $_tmp4=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('priv_href'=>"country/priority/",'href'=>"/country/priority/",'id'=>"setPrior",'title'=>$_tmp3,'class'=>"button-link01 fixing_right setpriority",'content'=>$_tmp4),$_smarty_tpl);?>

          
          </div>
		   <?php if (count($_smarty_tpl->tpl_vars['resListCountries']->value)>0){?>
         <div id="common_message" ></div>
         	
        <div class="grid_table00" >
             
            <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->start(array('name'=>"formCountry",'action'=>'','method'=>"post",'error_class'=>"message_inline_validation"),$_smarty_tpl);?>

            <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->errors(array('form'=>"formCountry"),$_smarty_tpl);?>

            <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"hidCountryID",'class'=>"textbox02",'value'=>0),$_smarty_tpl);?>

          
           
          <table width="100%" border="0" cellspacing="0" cellpadding="0"  id="table_inline_edit"  >
            <tr><?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value){?>
              <th width="41" align="left" valign="middle"  class="checkbox_column" > 
                <div class="chekingdiv">
                    <ul>
                      <li> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('id'=>"ListStatusLinkCheckbox",'name'=>"countryStatusAll",'options'=>'','class'=>"fixing_left"),$_smarty_tpl);?>
 
                      <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>'','id'=>"ListStatusLink",'class'=>"status-arw fixing_left"),$_smarty_tpl);?>

                        <ul id="ListStatusSelection"  class="check_status">
                          <li> <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>'','rel'=>"ListActive",'content'=>$_smarty_tpl->tpl_vars['language']->value['lblActive']),$_smarty_tpl);?>
</li>
                          <li> <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>'','rel'=>"ListInactive",'content'=>$_smarty_tpl->tpl_vars['language']->value['lblInactive']),$_smarty_tpl);?>
</li>
                          <li> <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>'','rel'=>"ListAll",'content'=>$_smarty_tpl->tpl_vars['language']->value['lblSelectAll']),$_smarty_tpl);?>
</li>
                        </ul>
                      </li>
                    </ul>
                </div></th><?php }?>
              <th align="left"   valign="middle"   width="20%"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblCountryName'];?>
</th>
              <th align="left"   valign="middle" ><?php echo $_smarty_tpl->tpl_vars['language']->value['lblStates'];?>
</th>
              <th align="left"   valign="middle"   width="30%" ><?php echo $_smarty_tpl->tpl_vars['language']->value['lblAddresFormat'];?>
 </th>
              <th align="left"   valign="middle" ><?php echo $_smarty_tpl->tpl_vars['language']->value['lblISOAlph2'];?>
 </th>
              <th align="left"   valign="middle"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblISOAlph3'];?>
 </th>
              <th align="left"   valign="middle"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblISONumber'];?>
 </th>
              <th align="left"   valign="middle"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblCountryCode'];?>
 </th>
			  <?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value){?>
              <th align="left" valign="middle" width="40"></th>
			  <?php }?>
            </tr>
            <?php  $_smarty_tpl->tpl_vars["resCountries"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["resCountries"]->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['resListCountries']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars["resCountries"]->iteration=0;
foreach ($_from as $_smarty_tpl->tpl_vars["resCountries"]->key => $_smarty_tpl->tpl_vars["resCountries"]->value){
$_smarty_tpl->tpl_vars["resCountries"]->_loop = true;
 $_smarty_tpl->tpl_vars["resCountries"]->iteration++;
?>
            <?php $_smarty_tpl->tpl_vars["curr_countryID"] = new Smarty_variable($_smarty_tpl->tpl_vars['resCountries']->value['countryID'], null, 0);?>
              <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('id'=>"editCountryID",'name'=>"editCountryID",'value'=>$_smarty_tpl->tpl_vars['curr_countryID']->value),$_smarty_tpl);?>

            <tr <?php if (!(1 & $_smarty_tpl->tpl_vars['resCountries']->iteration / 1)){?>  class="shade01" <?php }?>>
              <?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value){?><td align="left" valign="top" class="checkbox_column"> 
				  <?php ob_start();?><?php if ($_smarty_tpl->tpl_vars['resCountries']->value['countryAvailable']=="Yes"){?><?php echo " ListActive";?><?php }else{ ?><?php echo "ListInactive";?><?php }?><?php $_tmp5=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('id'=>"countryIDS",'class'=>"countryBulkStatus checkbox01 ListAll 
                  ".$_tmp5,'name'=>"countryBulkStatus[]",'options'=>'','value'=>$_smarty_tpl->tpl_vars['curr_countryID']->value),$_smarty_tpl);?>
 
               </td><?php }?>
              <td align="left" valign="top"><?php echo $_smarty_tpl->tpl_vars['resCountries']->value['countryName'];?>
</td>
              <td align="left" valign="top"><?php if ($_smarty_tpl->tpl_vars['stateprivilage']->value){?><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"/state/index/country/".($_smarty_tpl->tpl_vars['curr_countryID']->value)."/",'title'=>'','class'=>'','caption'=>$_smarty_tpl->tpl_vars['resCountries']->value['stateCount']),$_smarty_tpl);?>
<br /><?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['resCountries']->value['stateCount'];?>
<?php }?></td>
              <td align="left" valign="top"><?php echo $_smarty_tpl->tpl_vars['resCountries']->value['addressFormat'];?>
</td>
              <td align="left" valign="top"><?php echo $_smarty_tpl->tpl_vars['resCountries']->value['countryIsoA2'];?>
 </td>
              <td align="left" valign="top"><?php echo $_smarty_tpl->tpl_vars['resCountries']->value['countryIsoA3'];?>
 </td>
              <td align="left" valign="top"><?php echo $_smarty_tpl->tpl_vars['resCountries']->value['countryIsoNumber'];?>
</td>
              <td align="left" valign="top"><?php echo $_smarty_tpl->tpl_vars['resCountries']->value['countryCode'];?>
</td>
			  <?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value){?>
              <td align="left" valign="top">
              <?php if ($_smarty_tpl->tpl_vars['resCountries']->value['countryAvailable']=="Yes"){?>
                  <?php $_smarty_tpl->tpl_vars["newstatus"] = new Smarty_variable("No", null, 0);?>
                  <?php $_smarty_tpl->tpl_vars["changeStatus"] = new Smarty_variable("status-active", null, 0);?>
                  <?php $_smarty_tpl->tpl_vars["statusCountry"] = new Smarty_variable("Active", null, 0);?>
                  <?php }else{ ?>
                  <?php $_smarty_tpl->tpl_vars["newstatus"] = new Smarty_variable("Yes", null, 0);?>
                  <?php $_smarty_tpl->tpl_vars["changeStatus"] = new Smarty_variable("status-inactive", null, 0);?>
                  <?php $_smarty_tpl->tpl_vars["statusCountry"] = new Smarty_variable("Inactive", null, 0);?>
                  <?php }?>
                <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('history'=>"yes",'id'=>($_smarty_tpl->tpl_vars['curr_countryID']->value),'title'=>($_smarty_tpl->tpl_vars['statusCountry']->value),'class'=>($_smarty_tpl->tpl_vars['changeStatus']->value)." icon-set",'task'=>'status-change','rel'=>($_smarty_tpl->tpl_vars['newstatus']->value)),$_smarty_tpl);?>

				<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"country/edit/id/".($_smarty_tpl->tpl_vars['curr_countryID']->value)."/",'title'=>$_smarty_tpl->tpl_vars['language']->value['lblEditCountry'],'class'=>"edit02 icon-set"),$_smarty_tpl);?>
              
			</td>
			<?php }?>
           
            </tr>
            <?php } ?>
          </table>
       
          </div>
			<?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value){?><div class="action_box">
            	<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('name'=>"countryStatus",'class'=>"select-box width-auto",'options'=>"->".($_smarty_tpl->tpl_vars['language']->value['lblDonotchange'])."~*Yes->".($_smarty_tpl->tpl_vars['language']->value['lblActivate'])."~*No->".($_smarty_tpl->tpl_vars['language']->value['lblInactivate'])),$_smarty_tpl);?>

                <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->submit(array('name'=>"submitBulkStatus",'id'=>"submitBulkStatus",'class'=>"update_btn_table submitBulkStatus button04",'value'=>($_smarty_tpl->tpl_vars['language']->value['lblUpdate'])),$_smarty_tpl);?>

                  </div><?php }?>
                <div class="fixing_right pagination_outer" > <?php echo $_smarty_tpl->smarty->registered_objects['paginate'][0]->layout(array('key'=>"page",'label_record'=>($_smarty_tpl->tpl_vars['language']->value['lblRecorsFound']),'label_pages'=>($_smarty_tpl->tpl_vars['language']->value['lblPages'])),$_smarty_tpl);?>
 </div>
                <div class="clear"></div>
              <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->close(array(),$_smarty_tpl);?>
      
			<?php }else{ ?>
			<div class="message_info"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblNoCountries'];?>
</div>
          <?php }?>
          <!--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-->
  <?php echo $_smarty_tpl->getSubTemplate ('CommonBottom.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
 
</div>
<!--End:Outer Container-->
<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->globalpath_script(array(),$_smarty_tpl);?>

<?php echo $_smarty_tpl->getSubTemplate ('CommonJavaScriptBottom.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/jquery.colorbox.js"></script> 
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/jqueryui.js"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/table.plugin.js"></script>
<script type="text/javascript">
var req="<?php echo $_smarty_tpl->tpl_vars['language']->value['errRequired'];?>
";
var errInvalid="<?php echo $_smarty_tpl->tpl_vars['language']->value['errInvalid'];?>
";
var errExist="<?php echo $_smarty_tpl->tpl_vars['language']->value['errExist'];?>
";
var msgConfirmDelete			= '<?php echo $_smarty_tpl->tpl_vars['language']->value['msgConfirmDelete'];?>
';
var lblSelectAction			= '<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectAction'];?>
';
var lblSelectItem				= '<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectItem'];?>
';
</script>
<div id="script"></div>
<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->messages_script(array('id'=>"common_message"),$_smarty_tpl);?>

<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/country.page.js"></script>
</body>
</html><?php }} ?>