<?php /* Smarty version 2.6.28, created on 2016-11-27 08:08:05
         compiled from /home/solusito/public_html/templates/eco-net-v3-5/knowledgebasecat.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'truncate', '/home/solusito/public_html/templates/eco-net-v3-5/knowledgebasecat.tpl', 47, false),)), $this); ?>
    <div class="imgright">
    <form method="post" action="knowledgebase.php?action=search">
    <input type="text" name="catid" class="searchinput" placeholder="<?php echo $this->_tpl_vars['LANG']['knowledgebase_search']; ?>
" />
    <input type="submit" value="<?php echo $this->_tpl_vars['LANG']['knowledgebasesearch']; ?>
" class="searchinput button1 color1" />
    </form>
    </div>

<p><?php echo $this->_tpl_vars['LANG']['knowledgebaseintrotext']; ?>
</p>


<?php if ($this->_tpl_vars['kbcats']): ?>

		<div class="bigheader">
			<h2><?php echo $this->_tpl_vars['LANG']['knowledgebasecategories']; ?>
</h2>
		</div><!-- .bigheader -->

<div class="paddinggrid">

<?php $_from = $this->_tpl_vars['kbcats']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['num'] => $this->_tpl_vars['kbcat']):
?>
	<div class="box box<?php echo $this->_tpl_vars['num']; ?>
">

    <img src="images/folder.gif" border="0" class="absmiddle" alt="Folder" /> <strong><a href="<?php if ($this->_tpl_vars['seofriendlyurls']): ?>knowledgebase/<?php echo $this->_tpl_vars['kbcat']['id']; ?>
/<?php echo $this->_tpl_vars['kbcat']['urlfriendlyname']; ?>
<?php else: ?>knowledgebase.php?action=displaycat&amp;catid=<?php echo $this->_tpl_vars['kbcat']['id']; ?>
<?php endif; ?>"><?php echo $this->_tpl_vars['kbcat']['name']; ?>
</a></strong> (<?php echo $this->_tpl_vars['kbcat']['numarticles']; ?>
)<br />
      <?php echo $this->_tpl_vars['kbcat']['description']; ?>

      
      </div>
    <?php endforeach; endif; unset($_from); ?>
    
 </div>  
 
 <div class="clear">&nbsp;</div> 


<?php endif; ?>

		<div class="bigheader">
			<h2><?php echo $this->_tpl_vars['LANG']['knowledgebasearticles']; ?>
</h2>
		</div><!-- .bigheader -->

<?php if ($this->_tpl_vars['kbarticles']): ?>

<div class="paddinggrid">

  <?php $_from = $this->_tpl_vars['kbarticles']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['num'] => $this->_tpl_vars['kbarticle']):
?>
  <div class="box box<?php echo $this->_tpl_vars['num']; ?>
">
  
  <img src="images/article.gif" class="absmiddle" border="0" alt="Article" /> <strong><a href="<?php if ($this->_tpl_vars['seofriendlyurls']): ?>knowledgebase/<?php echo $this->_tpl_vars['kbarticle']['id']; ?>
/<?php echo $this->_tpl_vars['kbarticle']['urlfriendlytitle']; ?>
.html<?php else: ?>knowledgebase.php?action=displayarticle&amp;id=<?php echo $this->_tpl_vars['kbarticle']['id']; ?>
<?php endif; ?>"><?php echo $this->_tpl_vars['kbarticle']['title']; ?>
</a></strong><br />
      <?php echo ((is_array($_tmp=$this->_tpl_vars['kbarticle']['article'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 100, "...") : smarty_modifier_truncate($_tmp, 100, "...")); ?>
<br />
      <span><?php echo $this->_tpl_vars['LANG']['knowledgebaseviews']; ?>
: <?php echo $this->_tpl_vars['kbarticle']['views']; ?>
</span>
      </div>
  <?php endforeach; endif; unset($_from); ?>
  
  </div>
  
  <div class="clear">&nbsp;</div>
  
<?php else: ?>

	<div class="notice notice-error">
		<div class="inside">
			<p><?php echo $this->_tpl_vars['LANG']['knowledgebasenoarticles']; ?>
</p>
		</div>
	</div>

<?php endif; ?>