<!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.lblMenuGlobalCatalogTags}</title>
{include file='CommonStyles.tpl'}
{include file='CommonJavaScript.tpl'}
<link rel="stylesheet" type="text/css" href="{$view_styles}/grid_listing.css" />
{include file='CommonCustomStyles.tpl'}
</head>
<body>
<div class="outer_container"> 
{include file='CommonTop.tpl'} 
  <div class="content_container2 clearfix">
  <div class="right-sidebar" >  
        <div class="side_wrapper ">
         <a href="javascript:void(0);"  class="custom-btnt add-tag"><strong><span class="add"></span>{$language.lblAddNewTag}</strong></a>
            <ul class="clearfix catelog_add" style="display:none">
				<li>
					{form->textbox name="tagName" class="text-box" value="{$language.lblAddNewTag}" onfocus="if(this.value==this.defaultValue) this.value='';" onblur="if(this.value=='') this.value=this.defaultValue;"}	                 	
                </li>
				<li>
                	 {form->button name="addTag" value="{$language.lblAdd}" class="button04 "} <strong>or</strong>  <a href="javascript:void(0);" class="cancel" >{$language.lblCancel}</a>
				</li>
		   </ul>
        </div>
	 </div>
     <div class="left_wrapper"> 
		 <div class="content_wrapper">
		 {include file='ContentLanguageOptions.tpl'}
		 <h2>{$language.lblMenuGlobalCatalogTags}</h2>
			<div id="common_message"></div>
			<div class="clearfix">
			<div class="search_container ">
			  <div class="inner single-box">
				<ul class="clearfix">
					{form->start name="formTag" method="post" enctype="multipart/form-data"}
					<li class="column">
						<p class="label-field01">{$language.lblCatalogTags}</p>
						<span class="form-field01">
							 {form->textbox name="searchTagName" class="text-box" value=$searchTagName}	                 
						</span>
					</li>
					<li class="column">
						{form->submit name="searchTag" value="{$language.lblSearch}" class="button01 margin-r-10"} 
					</li>
					<li class="column">
						{html->anchor href="/catalogtags/index/" class="action-link" caption="{$language.lblListAll}"}
					</li>																				
					{form->close}
				   </ul>															
			  </div>												
			</div>										
			</div>												
			<!--END:sEARCH cONTAINER--> 
			
			<div id="catalog-listing" class="catalog-listing">
				{if $listGlobalTags|@count>0}
					{include file='AjaxListCatalogTags.tpl'}
				{else}
					<div  class="message_info">{$language.msgNoRecords}</div>
				{/if} 
			</div>
			<div class="message_info" id="jsNoRecordMsg" style="display:none">{$language.msgNoRecords}</div>
		</div>
	</div>															
  </div>																	
  <!--End:Content Container--> 																
  {include file='CommonBottom.tpl'} </div>
<!--End:Outer Container--> 																	
{include file='CommonJavaScriptBottom.tpl'}
{form->rootpath_script}														
{form->basepath_script} 															
<script type="text/javascript" src="{$view_javascript}/catalogtags.page.js"></script> 
 {html->messages_script id="common_message"}
 <script type="text/javascript">
var errSearchTerm="{$language.errSearchTerm}";
var msgAlert="{$language.msgAlert}";
var deleteText="{$language.lblDelete}";
var msgDeleteItem="{$language.msgDeleteItem}";
var errName="{$language.errName}";
var errTagNameExts="{$language.errTagNameAlreadyExists}";
var tagNameUpdate = "{$language.msgTagNameUpdate}";
var tagNameAdded = "{$language.msgTagNameAdded}";
var tagNameDelete = "{$language.msgTagNameDelete}";
$(".add-tag").click(function(){
 $(".catelog_add").slideDown();
});
$(".cancel").click(function(){
 $(".catelog_add").slideUp();
});
 </script>
</body>
</html>