<div class="wrapper blue-content">
    	<div class="container"><form method="post" action="domainchecker.php" class="form-horizontal">
        	<div class="content-heading white whmcsportal">
    			<h2>{$LANG.domaintitle}</h2>
                <small>{$LANG.domaincheckerintro}</small>
                <span></span>
            </div>
            <div class="search-wiki">
            	<input type="text" value="" name="domain" placeholder="Enter Domain Here"><input type="submit" value="{$LANG.checkavailability}">
                {if $condlinks.domaintrans} <input type="submit" name="transfer" value="{$LANG.domainstransfer}" class="btn-transfer" />{/if}
            </div>
             <div class="domain-links">
            	<a href="#" class="dropdown-bottom dropdown-toggle btn btn-lg btn-blue" data-toggle="domainbulk">{$LANG.searchmultipletlds}</a> <a href="#" class="dropdown-bottom dropdown-toggle btn btn-lg btn-blue" data-toggle="domainprices">Price List</a> <a href="#" class="dropdown-bottom dropdown-toggle btn btn-lg btn-blue" data-toggle="domaintld">{$LANG.domainbulksearch}</a>
            </div>
            <div id="domainprices">
            <script language="javascript" src="feeds/domainpricing.php"></script>
    	</div>
    
    	<div id="domainbulk">
                  <div class="row">
                          {foreach from=$tldslist key=num item=listtld}
            <div class="col-xs-6 col-sm-4 col-lg-2 col-md-3 btn-group" data-toggle="buttons"><label class="btn btn-primary {if in_array($listtld,$tlds) || !$tlds && $num==1} active{/if}"><input type="checkbox" name="tlds[]" value="{$listtld}"{if in_array($listtld,$tlds) || !$tlds && $num==1} checked{/if}><span class="glyphicon glyphicon-remove"></span> {$listtld}</label></div>
        {/foreach}

                  </div></div>
		</div>
         </form>
        <div id="domaintld" class="container">
            <div class="btn-group showextensions" data-toggle="buttons">
                          <label class="btn btn-primary active extcheck">
                            <input type="radio"  name="extcheck" checked value="on"> {$LANG.checkavailability}
                          </label>
                          <label class="btn btn-primary extcheck">
                            <input type="radio"  name="extcheck" value="off"> {$LANG.domainstransfer}
                          </label>
                        </div>
        	
	<div class="row extensionslist shown">
	<form method="post" action="domainchecker.php?search=bulk">
    <div class="col-sm-4">
    <p>{$LANG.domainbulksearchintro}</p>
    </div>
    <div class="col-sm-8">
        <textarea name="bulkdomains" rows="8">{$bulkdomains}</textarea>
    </div>
        {if $capatacha}
        <div class="captchainput">
            <p>{$LANG.captchaverify}</p>
            {if $capatacha eq "recaptcha"}
            <p>{$recapatchahtml}</p>
            {else}
            <p><img src="includes/verifyimage.php" align="middle" /> <input type="text" name="code" class="input-small" maxlength="5" /></p>
            {/if}
        </div>
        {/if}
        <div><input type="submit" value="{$LANG.checkavailability}" class="btn btn-red btn-lg" /></div>
    </form>
</div>
<div class="row extensionsalt">
	<form method="post" action="domainchecker.php?search=bulktransfer">
    <div class="col-sm-4">
    <p>{$LANG.domainbulktransferdescription}</p>
    </div>
    <div class="col-sm-8">
        <textarea name="bulkdomains" rows="8">{$bulkdomains}</textarea>
    </div>
        {if $capatacha}
        <div class="captchainput">
            <p>{$LANG.captchaverify}</p>
            {if $capatacha eq "recaptcha"}
            <p>{$recapatchahtml}</p>
            {else}
            <p><img src="includes/verifyimage.php" align="middle" /> <input type="text" name="code" class="input-small" maxlength="5" /></p>
            {/if}
        </div>
        {/if}
        <div><input type="submit" value="{$LANG.domainstransfer}" class="btn btn-red btn-lg" /></div>
    </form>
</div>

        </div>
    </div>
<div class="wrapper" id="maincontent">
	<div class="container">
			
            <div class="dropdown-box active section-knowledgebase" id="knowledgebase">
{if $inccode}
<div class="alert alert-error textcenter">
    {$LANG.captchaverifyincorrect}
</div>
{/if}

{if $invalid}
    <p class="fontsize3 domcheckererror textcenter">{$LANG.domaincheckerbulkinvaliddomain}</p>
{/if}

{if $availabilityresults}

<br />

<form method="post" action="{$systemsslurl}cart.php?a=add&domain=register">

<table class="table table-striped table-framed">
    <thead>
        <tr>
            <th></th>
            <th>{$LANG.domainname}</th>
            <th class="textcenter">{$LANG.domainstatus}</th>
            <th class="textcenter">{$LANG.domainmoreinfo}</th>
        </tr>
    </thead>
    <tbody>
{foreach from=$availabilityresults key=num item=result}
        <tr>
            <td class="textcenter">{if $result.status eq "available"}<input type="checkbox" name="domains[]" value="{$result.domain}" {if $num eq "0" && $available}checked {/if}/><input type="hidden" name="domainsregperiod[{$result.domain}]" value="{$result.period}" />{else}<i class="fa fa-remove" style="color:#be424a"></i>{/if}</td>
            <td>{$result.domain}</td>
            <td class="textcenter {if $result.status eq "available"}domcheckersuccess{else}domcheckererror{/if}">{if $result.status eq "available"}{$LANG.domainavailable}{else}{$LANG.domainunavailable}{/if}</td>
            <td class="textcenter">{if $result.status eq "unavailable"}<a href="http://{$result.domain}" target="_blank">WWW</a> <a href="#" onclick="popupWindow('whois.php?domain={$result.domain}','whois',650,420);return false">WHOIS</a>{else}<select name="domainsregperiod[{$result.domain}]">{foreach key=period item=regoption from=$result.regoptions}<option value="{$period}">{$period} {$LANG.orderyears} @ {$regoption.register}</option>{/foreach}</select>{/if}</td>
        </tr>
{/foreach}
</table>

<p align="center"><input type="submit" value="{$LANG.ordernowbutton}" class="btn btn-lg btn-red" /></p>

</form>


{else}

{if !$loggedin && $currencies}
<form method="post" action="domainchecker.php">
<p align="right">{$LANG.choosecurrency}: <select name="currency" onchange="submit()">{foreach from=$currencies item=curr}
<option value="{$curr.id}"{if $curr.id eq $currency.id} selected{/if}>{$curr.code}</option>
{/foreach}</select> <input type="submit" value="{$LANG.go}" /></p>
</form>
{/if}


{/if}

</div>
</div>
</div>