<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" placeholder="Search Knowledgebase"/> <input type="submit" value="{$LANG.knowledgebasesearch}" />
			</form>	
            </div>
		</div>
    </div>
     <div class="wrapper purple optionbar">
    	<div class="container">
                 <ul><li><a href="serverstatus.php"><i class="fa fa-info-circle"></i>{$LANG.serverstatustitle}</a><span></span></li><li class="active"><a href="clientarea.php"><i class="fa fa-home"></i>{$LANG.clientareatitle}</a><span></span></li><li><a href="knowledgebase.php"><i class="fa fa-info-circle"></i>{$LANG.knowledgebasetitle}</a><span></span></li></ul>
        </div>
    </div>
    <div class="wrapper" id="maincontent">
	<div class="container">
			
            <div id="knowledgebase">
<div class="row">
<div class="col-sm-6">
<div class="searchbox">
    <form method="post" action="downloads.php?action=search">
        <div class="input-append">
            <input type="text"  class="textbox" style="width:250px" name="search" value="{$LANG.downloadssearch}" class="input-medium appendedInputButton" onfocus="if(this.value=='{$LANG.downloadssearch}')this.value=''" /><button type="submit" class="btn btn-blue btn-md">{$LANG.search}</button>
        </div>
    </form>
</div>
</div>
<div class="col-sm-6">
<p>{$LANG.downloadsintrotext}</p>
</div>
</div>
<br />
<br />

{include file="$template/subheader.tpl" title=$LANG.downloadscategories}

<div class="row">
<div class="control-group">
{foreach from=$dlcats item=dlcat}
    <div class="col-sm-6">
        <div class="internalpadding">
            <h3><i class="fa fa-folder"></i> <a href="{if $seofriendlyurls}downloads/{$dlcat.id}/{$dlcat.urlfriendlyname}{else}downloads.php?action=displaycat&amp;catid={$dlcat.id}{/if}" class="fontsize2"><strong>{$dlcat.name}</strong></a> ({$dlcat.numarticles})</h3>
            {$dlcat.description}
        </div>
    </div>
{/foreach}
</div>
</div>
<br /><br /><br />
{include file="$template/subheader.tpl" title=$LANG.downloadspopular}
<div class="row">
{foreach from=$mostdownloads item=download}
	<div class="col-sm-4">
    <h4>{$download.type} <a href="{$download.link}" class="fontsize2">{$download.title}{if $download.clientsonly} <i class="fa fa-lock"></i> {/if}</a></h4>
    <p>{$download.description}</p>
    <small>{$LANG.downloadsfilesize}: {$download.filesize}</small>
	</div>
{/foreach}
</div>
</div>
</div>
</div>
