<!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.lblLanguages}</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 clearfix">
    <div class="right-sidebar localization">
      <div class="side_wrapper"> 
      	{html->anchor priv_href="language/add/" href="language/add/" class="custom-btnt" content="<strong><span class='add'></span>{$language.lblAddLanguage}</strong>" title=$language.lblAddLanguage}
        {include file='localizationRighLinks.tpl'} </div>
    </div>
    <!--End: Right Block-->
    <div class="left_wrapper">
  		<div class="content_wrapper">
        <h2>{$language.lblLanguages}</h2>
        <div class="inner_content_wrapper">
          {form->start name="formLanguages" action="" method="post" enctype="multipart/form-data"}
          <div id="common_message" ></div>
          {if $rsLanguages}
          <div class="grid_table00"> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
				{if $editPrivilege}
					<th align="left" valign="middle" width="5%">{$language.lblDefault}</th>
				{/if}	
                <th align="left" valign="middle">{$language.lblLanguageName}</th>
                <th align="left" valign="middle"  width="10%">{$language.lblLanguageCode}</th>
                <th align="left" valign="middle"  width="10%">{$language.lblLanguageLCIDstring}</th>
                <th align="left" valign="middle"  width="20%">{$language.lblLanguageTemplateFile}</th>
                <th width="100" align="left" valign="middle">{$language.lblStatus}</th>
				{if $editPrivilege || $deletePrivilege}
                <th width="45" align="left" valign="middle"></th>
				{/if}
              </tr>
              {foreach from=$rsLanguages item="languages" key="key"}
              {if $languages.languageDefault eq 'Yes'}
              {assign var ="checked" value="checked"}
              {else}
              {assign var ="checked" value=""}
              {/if}
              
              {if $languages.languageStatus eq 'Inactive'}
              {assign var ="disabled" value="disabled"}
              {else}
              {assign var ="disabled" value=""}
              {/if}
              <tr >
                {if $editPrivilege}
				<td align="center" valign="top" class="checkbox_column">
					{form->radio disabled=$disabled name="languageDefault" value=$languages.languageID checked=$checked}
				</td>
				{/if} 
                <td align="left" valign="top">{if $languages.languageLogo}<img src="{$view_public_path}/uploads/languages/logo/{$languages.languageLogo|escape}" width="14" height="11" title="{$languages.languageName}"/>{/if}&nbsp;&nbsp;{$languages.languageName|escape}<br /></td>
                <td align="left" valign="top">{$languages.languageCode|escape}<br /></td>
                <td align="left" valign="top">{$languages.LanguageLCIDstring|escape}<br /></td>
                <td align="left" valign="top">{$languages.LanguageLCIDstring|escape|strtolower}.xml<br /></td>
                <td align="left" valign="top"><span class="status_{$languages.languageStatus}">{$languages.languageStatus}</span></td>
				{if $editPrivilege || $deletePrivilege}
                <td align="left" valign="top"> 
					{if $editPrivilege}
						{html->anchor href="language/edit/id/"|cat:$languages.languageID|cat:"/" class="edit02 icon-set" title="{$language.lblEditLanguage}"}
					{/if}
					{if $deletePrivilege}
						{if $languages.languageDefault eq 'No' && $languages.languageID neq '1'}
							{html->anchor confirm="{$language.lblDeleteLanguage}" href="/language/destroy/id/"|cat:$languages.languageID alt="delete" class="delete02 icon-set"  confirm_head=$language.lblDelete}
						{else} 
							{html->anchor class="delete02-inactive icon-set" title=$language.lblDelete}
					{/if}		
                  {/if}
				  </td>
				  {/if}
              </tr>
              {/foreach}
              
            </table>
            </div>
            {if $editPrivilege}<div class="action_box">
            	{form->submit name="submitLanguage" value={$language.lblSetAsDefault} class="button04"}
            </div>{/if}
            <!--Start: Pagination-->
            	{if $editPrivilege}
				<a href="#download-xml" title="{$language.lblGetSampleTemplate}" class="inline button-link01 fixing_right">
					<span class="download">{$language.lblGetSampleTemplate}</span>
				</a>
			{/if}
            <div style="display:none;">
                <div id="download-xml">
                <div class="clearfix"> <div class="info-message">{$language.lblClicktoButton}</div></div>
                <ul class="clearfix"><li>{html->anchor href="language/ajaxdownload/file/backend/id/1/" title="{$language.lblDownloadSampleTempFile} ({$language.lblBackEnd})" class="linkbtnt01 " content="{$language.lblBackEnd}"}
                </li>
                <li>{html->anchor href="language/ajaxdownload/file/frontend/id/1/" title="{$language.lblDownloadSampleTempFile} ({$language.lblFrontEnd})" class="linkbtnt01 " content="{$language.lblFrontEnd}"}</li> 
                <li>{html->anchor href="language/ajaxdownload/file/business/id/1/" title="{$language.lblDownloadSampleTempFile} ({$language.lblBusiness})" class="linkbtnt01 " content="{$language.lblBusiness}"}</li>
                <!-- Affiliate-->
               {* {if $affiliateExist}
		 <li>{html->anchor  href="language/ajaxdownload/file/affiliate/id/1/" title="{$language.lblDownloadSampleTempFile} ({$language.lblAffiliate})" class="linkbtnt01" content="{$language.lblAffiliate}"}</li> 
         {/if}*}
			<!-- Affiliate End-->	
                </ul></div>
             </div>
            <div class="clear"></div>
            {/if} 
          {form->close}
          <!--End:From Listing-->
          </div>
      </div>
      <!--End:Border 2-->
    </div>
    <!--End: left Block-->
    <div class="clear"></div>
  </div>
  <!--End:Content Container-->
  {include file='CommonBottom.tpl'}
</div>
<!--End:Outer Container-->
{include file='CommonJavaScriptBottom.tpl'}
{html->messages_script id="common_message"}
<script type="text/javascript" src="{$view_javascript}/jquery.colorbox.js"></script>
<script type="text/javascript">
{literal}
$(document).ready(function(){
		$(".custom-btnt,.edit02").colorbox({iframe:true, innerWidth:"80%", innerHeight:"80%"});
		$(".inline").colorbox({inline:true, innerWidth:"60%", innerHeight:"30%"});
		$('.side_wrapper ul li a[rel=language]').addClass('selected'); 
		setSideMenu();
});
{/literal}
</script>
</body>
</html>
