<?php /* Smarty version Smarty-3.1.8, created on 2019-10-30 10:03:31
         compiled from "/home/stg70/public_html/agmc-v2/application/core/views/manage/standard/TaxClassList.tpl" */ ?>
<?php /*%%SmartyHeaderCode:17967411295db927b3cee450-69661449%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '1cdb2931923964888c4cf6fcc218aae129cbb19a' => 
    array (
      0 => '/home/stg70/public_html/agmc-v2/application/core/views/manage/standard/TaxClassList.tpl',
      1 => 1572414193,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '17967411295db927b3cee450-69661449',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'language' => 0,
    'view_styles' => 0,
    'rsTaxClasses' => 0,
    'editPrivilege' => 0,
    'deletePrivilege' => 0,
    'rsTaxClass' => 0,
    'curr_taxClassID' => 0,
    'newstatus' => 0,
    'changeStatus' => 0,
    'statusoptions' => 0,
    'view_javascript' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5db927b3dc6c32_56634244',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5db927b3dc6c32_56634244')) {function content_5db927b3dc6c32_56634244($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_truncate')) include '/home/stg70/public_html/agmc-v2/library/template/plugins/modifier.truncate.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['lblTaxClass'];?>
</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-->
<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'=>"taxclass/new/",'href'=>"taxclass/new/",'class'=>"custom-btnt",'content'=>"<strong><span class='add'></span>".($_smarty_tpl->tpl_vars['language']->value['lblAddNewTaxClass'])."</strong>",'title'=>$_smarty_tpl->tpl_vars['language']->value['lblAddNewTaxClass']),$_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['lblTaxClass'];?>
</h2>
          <div id="common_message"></div>
          <?php if ($_smarty_tpl->tpl_vars['rsTaxClasses']->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="41"> <div class="chekingdiv"> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->start(array('name'=>"formTaxClassList",'method'=>"post"),$_smarty_tpl);?>

                    <ul>
                      <li> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('name'=>"ListStatusLinkCheckbox",'id'=>"ListStatusLinkCheckbox",'class'=>"fixing_left",'value'=>''),$_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="249" align="left" valign="middle" ><?php echo $_smarty_tpl->tpl_vars['language']->value['lblTaxClassTitle'];?>
</th>
                <th width="455" 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="76" align="left" valign="middle" >&nbsp;</th>
				<?php }?>
              </tr>
              <?php  $_smarty_tpl->tpl_vars["rsTaxClass"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["rsTaxClass"]->_loop = false;
 $_smarty_tpl->tpl_vars["key1"] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['rsTaxClasses']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars["rsTaxClass"]->iteration=0;
foreach ($_from as $_smarty_tpl->tpl_vars["rsTaxClass"]->key => $_smarty_tpl->tpl_vars["rsTaxClass"]->value){
$_smarty_tpl->tpl_vars["rsTaxClass"]->_loop = true;
 $_smarty_tpl->tpl_vars["key1"]->value = $_smarty_tpl->tpl_vars["rsTaxClass"]->key;
 $_smarty_tpl->tpl_vars["rsTaxClass"]->iteration++;
?>
              
              <?php $_smarty_tpl->tpl_vars["curr_taxClassID"] = new Smarty_variable($_smarty_tpl->tpl_vars['rsTaxClass']->value['taxClassID'], null, 0);?>
              <tr <?php if (!(1 & $_smarty_tpl->tpl_vars['rsTaxClass']->iteration / 1)){?> class="shade01" <?php }?>>
                <?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value||$_smarty_tpl->tpl_vars['deletePrivilege']->value){?><td align="left" valign="top" class="checkbox_column"><?php ob_start();?><?php if ($_smarty_tpl->tpl_vars['rsTaxClass']->value['taxClassStatus']=='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'=>"taxClassBulkStatus[]",'class'=>"taxClassBulkStatus checkbox01 ListAll ".$_tmp1,'options'=>'','value'=>$_smarty_tpl->tpl_vars['curr_taxClassID']->value),$_smarty_tpl);?>
</td><?php }?>
                <td align="left" valign="top"><?php echo $_smarty_tpl->tpl_vars['rsTaxClass']->value['taxClassName'];?>
</td>
                <td align="left" valign="top"><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['rsTaxClass']->value['taxClassDescription'],200);?>
</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 ((($tmp = @$_smarty_tpl->tpl_vars['rsTaxClass']->value['productCount'])===null||$tmp==='' ? '' : $tmp)>0){?>
						<?php ob_start();?><?php echo strtolower($_smarty_tpl->tpl_vars['rsTaxClass']->value['taxClassStatus']);?>
<?php $_tmp2=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('alert'=>($_smarty_tpl->tpl_vars['language']->value['lblTaxAlert']),'alt'=>($_smarty_tpl->tpl_vars['language']->value['lblTaxAlt']),'class'=>"status-".$_tmp2),$_smarty_tpl);?>

					<?php }else{ ?> 
						<?php if ($_smarty_tpl->tpl_vars['rsTaxClass']->value['taxClassStatus']=="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('rel'=>($_smarty_tpl->tpl_vars['newstatus']->value),'id'=>($_smarty_tpl->tpl_vars['curr_taxClassID']->value),'title'=>($_smarty_tpl->tpl_vars['rsTaxClass']->value['taxClassStatus']),'content'=>'','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'=>"taxclass/edit/id/".($_smarty_tpl->tpl_vars['curr_taxClassID']->value)."/",'caption'=>'','class'=>"edit02 icon-set",'alt'=>"Edit",'history'=>"yes"),$_smarty_tpl);?>
 
				<?php }?>
				<?php if ($_smarty_tpl->tpl_vars['deletePrivilege']->value){?>
					<?php if ((($tmp = @$_smarty_tpl->tpl_vars['rsTaxClass']->value['productCount'])===null||$tmp==='' ? '' : $tmp)>0){?>
						<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"delid[]",'value'=>$_smarty_tpl->tpl_vars['rsTaxClass']->value['taxClassID']),$_smarty_tpl);?>

					<?php }?>
					<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>'','onclick'=>"delconfirm(".($_smarty_tpl->tpl_vars['curr_taxClassID']->value).");",'rel'=>"/taxclass/destroy/id/".($_smarty_tpl->tpl_vars['curr_taxClassID']->value)."/",'alt'=>"Delete",'class'=>"delete02 icon-set",'id'=>"taxClassImage_".($_smarty_tpl->tpl_vars['rsTaxClass']->value['taxClassID'])),$_smarty_tpl);?>

				<?php }?>	
                </td>
				<?php }?>  
              </tr>
              <?php } ?>
            </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'=>"taxClassStatus",'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['lblNoTaxClassForListing'];?>
</div>
            <?php }?>
          <!--End:From Listing-->
        
      </div>
    </div>
    <div class="clear"></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;?>
/taxClass.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 msgConfirmDeteteTaxClass= '<?php echo $_smarty_tpl->tpl_vars['language']->value['msgConfirmDeteteTaxClass'];?>
';
var lblDeleteTaxClass		= '<?php echo $_smarty_tpl->tpl_vars['language']->value['lblDeleteTaxClass'];?>
';
var okText	=	'<?php echo $_smarty_tpl->tpl_vars['language']->value['lblOK'];?>
';
var AlertText= '<?php echo $_smarty_tpl->tpl_vars['language']->value['lblAlert'];?>
';
var cancelText = '<?php echo $_smarty_tpl->tpl_vars['language']->value['lblCancel'];?>
';

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

</script>
<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->validate_script(array('form'=>"frmTaxClassList"),$_smarty_tpl);?>


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

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