<!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.lblTaxClass}</title>
{include file='CommonStyles.tpl'}
{include file='CommonCustomStyles.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" />
</head><body>
<div class="outer_container">
  {include file='CommonTop.tpl'} 
  <!--End:Header Container-->
<div class="content_container2 clearfix">
    <div class="right-sidebar localization">
        <div class="side_wrapper"> 
            {html->anchor priv_href="taxclass/new/" href="taxclass/new/" class="custom-btnt" content="<strong><span class='add'></span>{$language.lblAddNewTaxClass}</strong>" title=$language.lblAddNewTaxClass}
            {include file='localizationRighLinks.tpl'} 
        </div>
    </div>
    <!--End: Right Block-->
    <div class="left_wrapper">
      <div class="content_wrapper">
      	<h2>{$language.lblTaxClass}</h2>
          <div id="common_message"></div>
          {if $rsTaxClasses}
          <div class="grid_table00"> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0"   >
              <tr>
               {if $editPrivilege || $deletePrivilege} <th align="left" valign="middle"  class="checkbox_column" width="41"> <div class="chekingdiv"> {form->start name="formTaxClassList"  method="post"}
                    <ul>
                      <li> {form->checkbox name="ListStatusLinkCheckbox" id="ListStatusLinkCheckbox" class="fixing_left" value=""}
                        {html->anchor href="" id="ListStatusLink" class="status-arw fixing_left" alt="down arrow"}
                        <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 width="249" align="left" valign="middle" >{$language.lblTaxClassTitle}</th>
                <th width="455" align="left" valign="middle">{$language.lblDescription} </th>
				{if $editPrivilege || $deletePrivilege}
                <th width="76" align="left" valign="middle" >&nbsp;</th>
				{/if}
              </tr>
              {foreach from=$rsTaxClasses item="rsTaxClass" key="key1"}
              
              {assign var="curr_taxClassID" value=$rsTaxClass.taxClassID}
              <tr {if $rsTaxClass@iteration is even by 1} class="shade01" {/if}>
                {if $editPrivilege || $deletePrivilege}<td align="left" valign="top" class="checkbox_column">{form->checkbox name="taxClassBulkStatus[]" class="taxClassBulkStatus checkbox01 ListAll {if $rsTaxClass.taxClassStatus  eq 'Active'}ListActive{else}ListInactive{/if}"  options="" value=$curr_taxClassID}</td>{/if}
                <td align="left" valign="top">{$rsTaxClass.taxClassName}</td>
                <td align="left" valign="top">{$rsTaxClass.taxClassDescription|truncate:200}</td>
                {if $editPrivilege || $deletePrivilege}
				<td align="left" valign="top">
                {if $editPrivilege}
					{if $rsTaxClass.productCount|default:'' gt 0}
						{html->anchor alert="{$language.lblTaxAlert}" alt="{$language.lblTaxAlt}" class="status-{$rsTaxClass.taxClassStatus|strtolower}"}
					{else} 
						{if  $rsTaxClass.taxClassStatus eq "Active"}
							{assign var="newstatus" value="Inactive"}
							{assign var="changeStatus" value="status-active"}
						{else}
							{assign var="newstatus" value="Active"}
							{assign var="changeStatus" value="status-inactive"}
						{/if}
						{html->anchor rel="{$newstatus}" id="{$curr_taxClassID}" title="{$rsTaxClass.taxClassStatus}" content=""   class="{$changeStatus} icon-set" task='status-change'}
					{/if}
					{html->anchor href="taxclass/edit/id/$curr_taxClassID/" caption="" class="edit02 icon-set" alt="Edit" history="yes"} 
				{/if}
				{if $deletePrivilege}
					{if $rsTaxClass.productCount|default:'' gt 0}
						{form->hidden  name="delid[]" value=$rsTaxClass.taxClassID}
					{/if}
					{html->anchor href="" onclick="delconfirm($curr_taxClassID);" rel="/taxclass/destroy/id/$curr_taxClassID/" alt="Delete" class="delete02 icon-set" id="taxClassImage_{$rsTaxClass.taxClassID}"}
				{/if}	
                </td>
				{/if}  
              </tr>
              {/foreach}
            </table>
            </div>
            {if $editPrivilege || $deletePrivilege}
            
            {if $deletePrivilege && $editPrivilege}
          	{assign var="statusoptions" value="->{$language.lblDonotchange}~*Active->{$language.lblActivate}~*Inactive->{$language.lblInactivate}~*Deleted->{$language.lblDelete}"}
          {else if $deletePrivilege && (!$editPrivilege)} 
          {assign var="statusoptions" value="->{$language.lblDonotchange}~*Deleted->{$language.lblDelete}"} 
          {else if (!$deletePrivilege) && $editPrivilege} 
          {assign var="statusoptions" value="->{$language.lblDonotchange}~*Active->{$language.lblActivate}~*Inactive->{$language.lblInactivate}"} 
          {/if} 
            <div class="action_box">
            	{form->select name="taxClassStatus" class="select-box width-auto" options=$statusoptions value=""}
            	{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>
            {else}
            <div class="message_info" id="common_message">{$language.lblNoTaxClassForListing}</div>
            {/if}
          <!--End:From Listing-->
        
      </div>
    </div>
    <div class="clear"></div>
  </div>
  <!--End: left Block-->
</div>
<!--End:Content Container-->
{include file='CommonBottom.tpl'}
</div>
<!--End:Outer Container-->
{include file='CommonJavaScriptBottom.tpl'}
<script type="text/javascript" src="{$view_javascript}/taxClass.page.js"></script>
<script type="text/javascript" src="{$view_javascript}/table.plugin.js"></script>
<script type="text/javascript">
var lblSelectAction			= '{$language.lblSelectAction}';
var lblSelectItem			= '{$language.lblSelectItem}';
var msgConfirmDeteteTaxClass= '{$language.msgConfirmDeteteTaxClass}';
var lblDeleteTaxClass		= '{$language.lblDeleteTaxClass}';
var okText	=	'{$language.lblOK}';
var AlertText= '{$language.lblAlert}';
var cancelText = '{$language.lblCancel}';
{literal}
$(document).ready(function(){
		$('.side_wrapper ul li a[rel=taxclass]').addClass('selected'); 
		setSideMenu();
});
{/literal}
</script>
{form->validate_script form="frmTaxClassList"}

{html->messages_script id="common_message"}
</body>
</html>
