<script language="javascript">
function addBookmark() {ldelim}
    if (window.sidebar) {ldelim}
        window.sidebar.addPanel('{$kbarticle.title}', location.href,"");
    {rdelim} else if( document.all ) {ldelim}
        window.external.AddFavorite( location.href, '{$kbarticle.title}');
    {rdelim} else if( window.opera && window.print ) {ldelim}
        return true;
    {rdelim}
{rdelim}
</script>
<div class="wrapper purple-content">
    	<div class="container">
        	<div class="content-heading white whmcsportal">
    			<h2>{$pagetitle}</h2>
                <small>{$LANG.headertext}</small>
            </div>
            <div class="search-wiki">
            <form method="post" action="knowledgebase.php?action=search">
   				<input type="text" name="search"/> <input type="submit" value="{$LANG.knowledgebasesearch}" />
			</form>	
            </div>
		</div>
    </div>
 <div class="wrapper purple optionbar">
    	<div class="container">
                 <ul><li><a href="knowledgebase.php" data-toggle="section-knowledgebase"><i class="fa fa-ticket"></i>{$LANG.knowledgebasetitle}</a><span></span></li><li><a href="{if $seofriendlyurls}knowledgebase/{$kbarticle.categoryid}/{$kbarticle.categoryname}{else}knowledgebase.php?action=displaycat&amp;catid={$kbarticle.categoryid}{/if}" data-toggle="section-knowledgebase"><i class="fa fa-folder"></i>{$kbarticle.categoryname}</a><span></span></li></ul>
        </div>
    </div>
<div class="wrapper" id="maincontent">
<div class="container" id="knowledgebase">
<h2>{$kbarticle.title}</h2>

{$kbarticle.text} <br />
      <br />
      <div class="row">
      <div class="col-sm-6">
            <form method="post" action="knowledgebase.php?action=displayarticle&amp;id={$kbarticle.id}&amp;useful=vote">
        <p> {if $kbarticle.voted} <strong>{$LANG.knowledgebaserating}</strong> {$kbarticle.useful} {$LANG.knowledgebaseratingtext} ({$kbarticle.votes} {$LANG.knowledgebasevotes})
          {else} <strong>{$LANG.knowledgebasehelpful}</strong>
          <select name="vote">
            <option value="yes">{$LANG.knowledgebaseyes}</option>
            <option value="no">{$LANG.knowledgebaseno}</option>
          </select>
          <input type="submit" value="{$LANG.knowledgebasevote}" class="btn-sm btn-blue"/>
          {/if} </p>
      </form>
<p><i class="fa fa-star"></i> <a href="#" onclick="addBookmark();return false">{$LANG.knowledgebasefavorites}</a></p>
<p><i class="fa fa-print"></i> <a href="#" onclick="window.print();return false">{$LANG.knowledgebaseprint}</a></p>
</div>
 <div class="col-sm-6">
{if $kbarticles}
  <h4>{$LANG.knowledgebasealsoread}</h4>
  {foreach key=num item=kbarticle from=$kbarticles}
    <div class="kbarticle">
      <p><i class="fa fa-file"></i> <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> <span class="kbviews">({$LANG.knowledgebaseviews}: {$kbarticle.views})</span></p>
    </div>
  {/foreach}
{/if}
</div>
</div>
</div>
</div>