<?php /* Smarty version Smarty-3.1.8, created on 2019-10-30 10:03:20
         compiled from "/home/stg70/public_html/agmc-v2/application/core/views/manage/standard/GeozoneList.tpl" */ ?>
<?php /*%%SmartyHeaderCode:5891087525db927a81bddd0-21506421%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '4ca5794cad96fc4fedcf8d6d5ae133005c682416' => 
    array (
      0 => '/home/stg70/public_html/agmc-v2/application/core/views/manage/standard/GeozoneList.tpl',
      1 => 1572414193,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '5891087525db927a81bddd0-21506421',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'language' => 0,
    'view_styles' => 0,
    'rsGeozone' => 0,
    'editPrivilege' => 0,
    'deletePrivilege' => 0,
    'rsGeozoneList' => 0,
    'curr_geozoneID' => 0,
    'newstatus' => 0,
    'changeStatus' => 0,
    'statusoptions' => 0,
    'view_javascript' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5db927a82f6b52_46476394',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5db927a82f6b52_46476394')) {function content_5db927a82f6b52_46476394($_smarty_tpl) {?><?php if (!is_callable('smarty_mb_wordwrap')) include '/home/stg70/public_html/agmc-v2/library/template/plugins/shared.mb_wordwrap.php';
?><!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['lblGeoZones'];?>
</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 ('CommonCustomStyles.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" />
</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 clearfix">
  	<div class="right-sidebar localization">
        <div class="side_wrapper"> 
            <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('priv_href'=>"geozone/new/",'href'=>"geozone/new/",'class'=>"custom-btnt",'content'=>"<strong><span class='add'></span>".($_smarty_tpl->tpl_vars['language']->value['lblAddNewGeozone'])."</strong>",'title'=>$_smarty_tpl->tpl_vars['language']->value['lblAddNewGeozone']),$_smarty_tpl);?>

            <?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['lblGeoZones'];?>
 </h2>
          <div id="common_message"></div>
          <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->start(array('name'=>"formGeozoneList",'method'=>"post"),$_smarty_tpl);?>

           <?php if ($_smarty_tpl->tpl_vars['rsGeozone']->value){?>
          <div class="grid_table00"> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0"   >
              <tr><?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value||$_smarty_tpl->tpl_vars['deletePrivilege']->value){?>
                <th align="left" valign="middle"  class="checkbox_column" width="6%"> <div class="chekingdiv">
                    <ul>
                      <li> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('id'=>"ListStatusLinkCheckbox",'name'=>"geozoneStatusAll",'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",'alt'=>"down arrow"),$_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 width="32%" align="left" valign="middle" ><?php echo $_smarty_tpl->tpl_vars['language']->value['lblGeoZone'];?>
</th>
                <th  align="left" valign="middle"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblDescription'];?>
 </th>
                <?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value||$_smarty_tpl->tpl_vars['deletePrivilege']->value){?>
				<th width="60" align="left" valign="middle" >&nbsp;</th>
				<?php }?>
              </tr>
              <?php  $_smarty_tpl->tpl_vars["rsGeozoneList"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["rsGeozoneList"]->_loop = false;
 $_smarty_tpl->tpl_vars["key1"] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['rsGeozone']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["rsGeozoneList"]->key => $_smarty_tpl->tpl_vars["rsGeozoneList"]->value){
$_smarty_tpl->tpl_vars["rsGeozoneList"]->_loop = true;
 $_smarty_tpl->tpl_vars["key1"]->value = $_smarty_tpl->tpl_vars["rsGeozoneList"]->key;
?>
              <?php $_smarty_tpl->tpl_vars["curr_geozoneID"] = new Smarty_variable($_smarty_tpl->tpl_vars['rsGeozoneList']->value['geoZoneID'], null, 0);?>
              <tr>
                <?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value||$_smarty_tpl->tpl_vars['deletePrivilege']->value){?><td align="left" valign="top" class="checkbox_column"><span id="class_checkbox"><?php ob_start();?><?php if ($_smarty_tpl->tpl_vars['rsGeozoneList']->value['geoZoneStatus']=='Active'){?><?php echo "ListActive";?><?php }else{ ?><?php echo "ListInactive";?><?php }?><?php $_tmp1=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('name'=>"geozoneBulkStatus[]",'class'=>"geozoneBulkStatus ListAll ".$_tmp1,'options'=>'','value'=>$_smarty_tpl->tpl_vars['rsGeozoneList']->value['geoZoneID']),$_smarty_tpl);?>
 </span></td><?php }?>
                <td align="left" valign="top"><span  class="view_<?php echo $_smarty_tpl->tpl_vars['rsGeozoneList']->value['geoZoneID'];?>
"> <?php echo smarty_mb_wordwrap($_smarty_tpl->tpl_vars['rsGeozoneList']->value['geoZoneName'],25,"<br />
                  ",true);?>
</span></td>
                <td align="left" valign="top"><span  class="view_<?php echo $_smarty_tpl->tpl_vars['rsGeozoneList']->value['geoZoneID'];?>
"><?php echo smarty_mb_wordwrap($_smarty_tpl->tpl_vars['rsGeozoneList']->value['geoZoneDescription'],50,"<br />
                  ",true);?>
</span></td>
				<?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value||$_smarty_tpl->tpl_vars['deletePrivilege']->value){?>  
                <td align="left" valign="top">
					<?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value){?>
						<?php if ($_smarty_tpl->tpl_vars['rsGeozoneList']->value['taxClassCount']>0){?>
							<?php ob_start();?><?php echo strtolower($_smarty_tpl->tpl_vars['rsGeozoneList']->value['geoZoneStatus']);?>
<?php $_tmp2=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('alert'=>($_smarty_tpl->tpl_vars['language']->value['lblGeoAlert']),'alt'=>($_smarty_tpl->tpl_vars['language']->value['lblGeoAlt']),'class'=>"status-".$_tmp2." icon-set"),$_smarty_tpl);?>

						<?php }else{ ?> 
							<?php if ($_smarty_tpl->tpl_vars['rsGeozoneList']->value['geoZoneStatus']=="Active"){?>
								<?php $_smarty_tpl->tpl_vars["newstatus"] = new Smarty_variable("Inactive", null, 0);?>
								<?php $_smarty_tpl->tpl_vars["changeStatus"] = new Smarty_variable("status-active", null, 0);?>
							<?php }else{ ?>
								<?php $_smarty_tpl->tpl_vars["newstatus"] = new Smarty_variable("Active", null, 0);?>
								<?php $_smarty_tpl->tpl_vars["changeStatus"] = new Smarty_variable("status-inactive", null, 0);?>
							<?php }?>
							<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('id'=>($_smarty_tpl->tpl_vars['curr_geozoneID']->value),'rel'=>($_smarty_tpl->tpl_vars['newstatus']->value),'title'=>($_smarty_tpl->tpl_vars['rsGeozoneList']->value['geoZoneStatus']),'class'=>($_smarty_tpl->tpl_vars['changeStatus']->value)." icon-set",'task'=>'status-change'),$_smarty_tpl);?>

						<?php }?>
						<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"geozone/edit/id/".($_smarty_tpl->tpl_vars['curr_geozoneID']->value)."/",'history'=>"yes",'caption'=>'','class'=>"edit02 icon-set",'alt'=>"Edit"),$_smarty_tpl);?>

					<?php }?>
					<?php if ($_smarty_tpl->tpl_vars['deletePrivilege']->value){?>
						<?php if ($_smarty_tpl->tpl_vars['rsGeozoneList']->value['taxClassCount']>0){?>
							<?php ob_start();?><?php echo (($tmp = @$_smarty_tpl->tpl_vars['language']->value['lblGoeDeleteAlt'])===null||$tmp==='' ? '' : $tmp);?>
<?php $_tmp3=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('alert'=>($_smarty_tpl->tpl_vars['language']->value['lblGeoDeleteStatus']),'alt'=>$_tmp3,'class'=>"delete02-inactive icon-set",'id'=>"geoImage_".($_smarty_tpl->tpl_vars['rsGeozoneList']->value['geoZoneID'])),$_smarty_tpl);?>

							<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"delid[]",'value'=>$_smarty_tpl->tpl_vars['rsGeozoneList']->value['geoZoneID']),$_smarty_tpl);?>

						<?php }else{ ?>
							<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('confirm'=>($_smarty_tpl->tpl_vars['language']->value['lblGeoDeleteAlert']),'href'=>"geozone/destroy/id/".($_smarty_tpl->tpl_vars['curr_geozoneID']->value)."/",'alt'=>"Delete",'class'=>"delete02 icon-set",'confirm_head'=>$_smarty_tpl->tpl_vars['language']->value['lblDelete'],'id'=>"geoImage_".($_smarty_tpl->tpl_vars['rsGeozoneList']->value['geoZoneID'])),$_smarty_tpl);?>

						<?php }?>
					<?php }?>
				</td>
				<?php }?>
              </tr>
              <?php } ?>
              <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('id'=>"checkHidden",'name'=>"checkHidden",'value'=>count($_smarty_tpl->tpl_vars['rsGeozone']->value)),$_smarty_tpl);?>

            </table>
            </div>
            <?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value||$_smarty_tpl->tpl_vars['deletePrivilege']->value){?>
            
            <?php if ($_smarty_tpl->tpl_vars['deletePrivilege']->value&&$_smarty_tpl->tpl_vars['editPrivilege']->value){?>
          	<?php $_smarty_tpl->tpl_vars["statusoptions"] = new Smarty_variable("->".($_smarty_tpl->tpl_vars['language']->value['lblDonotchange'])."~*Active->".($_smarty_tpl->tpl_vars['language']->value['lblActivate'])."~*Inactive->".($_smarty_tpl->tpl_vars['language']->value['lblInactivate'])."~*Deleted->".($_smarty_tpl->tpl_vars['language']->value['lblDelete']), null, 0);?>
          <?php }elseif($_smarty_tpl->tpl_vars['deletePrivilege']->value&&(!$_smarty_tpl->tpl_vars['editPrivilege']->value)){?> 
          <?php $_smarty_tpl->tpl_vars["statusoptions"] = new Smarty_variable("->".($_smarty_tpl->tpl_vars['language']->value['lblDonotchange'])."~*Deleted->".($_smarty_tpl->tpl_vars['language']->value['lblDelete']), null, 0);?> 
          <?php }elseif((!$_smarty_tpl->tpl_vars['deletePrivilege']->value)&&$_smarty_tpl->tpl_vars['editPrivilege']->value){?> 
          <?php $_smarty_tpl->tpl_vars["statusoptions"] = new Smarty_variable("->".($_smarty_tpl->tpl_vars['language']->value['lblDonotchange'])."~*Active->".($_smarty_tpl->tpl_vars['language']->value['lblActivate'])."~*Inactive->".($_smarty_tpl->tpl_vars['language']->value['lblInactivate']), null, 0);?> 
          <?php }?> 
          <div class="action_box">
            	<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('name'=>"geoZoneStatus",'class'=>"select-box width-auto",'options'=>$_smarty_tpl->tpl_vars['statusoptions']->value,'value'=>''),$_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 }else{ ?>
            <div class="message_info" id="common_message"> <?php echo $_smarty_tpl->tpl_vars['language']->value['msgNoGeoZonesforlisting'];?>
</div>
            <?php }?>
          <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->close(array(),$_smarty_tpl);?>
 
        <!--End:From Listing-->
      </div>
    </div>
    <!--End: left Block-->
  </div>
<!--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->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;?>
/geozone.page.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 lblSelectAction				= '<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectAction'];?>
';
var lblSelectItem				= '<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectItem'];?>
';
var lblGeoDeleteAlert			= "<?php echo $_smarty_tpl->tpl_vars['language']->value['lblGeoDeleteAlert'];?>
";

$(document).ready(function(){
		$('.side_wrapper ul li a[rel=geozone]').addClass('selected'); 
		setSideMenu();
});

</script>
<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->messages_script(array('id'=>"common_message"),$_smarty_tpl);?>

</body>
</html><?php }} ?>