    <div class="imgright">
    <form method="post" action="knowledgebase.php?action=search">
    <input type="text" name="catid" class="searchinput" placeholder="{$LANG.knowledgebase_search}" />
    <input type="submit" value="{$LANG.knowledgebasesearch}" class="searchinput button1 color1" />
    </form>
    </div>

<p>{$LANG.knowledgebaseintrotext}</p>


{if $kbcats}

		<div class="bigheader">
			<h2>{$LANG.knowledgebasecategories}</h2>
		</div><!-- .bigheader -->

<div class="paddinggrid">

{foreach key=num item=kbcat from=$kbcats}
	<div class="box box{$num}">

    <img src="images/folder.gif" border="0" class="absmiddle" alt="Folder" /> <strong><a href="{if $seofriendlyurls}knowledgebase/{$kbcat.id}/{$kbcat.urlfriendlyname}{else}knowledgebase.php?action=displaycat&amp;catid={$kbcat.id}{/if}">{$kbcat.name}</a></strong> ({$kbcat.numarticles})<br />
      {$kbcat.description}
      
      </div>
    {/foreach}
    
 </div>  
 
 <div class="clear">&nbsp;</div> 


{/if}

		<div class="bigheader">
			<h2>{$LANG.knowledgebasearticles}</h2>
		</div><!-- .bigheader -->

{if $kbarticles}

<div class="paddinggrid">

  {foreach key=num item=kbarticle from=$kbarticles}
  <div class="box box{$num}">
  
  <img src="images/article.gif" class="absmiddle" border="0" alt="Article" /> <strong><a href="{if $seofriendlyurls}knowledgebase/{$kbarticle.id}/{$kbarticle.urlfriendlytitle}.html{else}knowledgebase.php?action=displayarticle&amp;id={$kbarticle.id}{/if}">{$kbarticle.title}</a></strong><br />
      {$kbarticle.article|truncate:100:"..."}<br />
      <span>{$LANG.knowledgebaseviews}: {$kbarticle.views}</span>
      </div>
  {/foreach}
  
  </div>
  
  <div class="clear">&nbsp;</div>
  
{else}

	<div class="notice notice-error">
		<div class="inside">
			<p>{$LANG.knowledgebasenoarticles}</p>
		</div>
	</div>

{/if}