<link rel="stylesheet" type="text/css" href="templates/orderforms/web20cart/style.css" />
<h2>{if $domain eq "register"}{$LANG.registerdomainname}{else}{$LANG.transferdomainname}{/if}</h2>
<div class="cartmenu" align="center">{foreach key=num item=productgroup from=$productgroups}
  {if $gid eq $productgroup.gid}
  {$productgroup.name} | 
  {else} <a href="{$smarty.server.PHP_SELF}?gid={$productgroup.gid}">{$productgroup.name}</a> | 
  {/if}
  {/foreach}
  {if $loggedin}<a href="{$smarty.server.PHP_SELF}?gid=addons">{$LANG.cartproductaddons}</a> | {/if}
  {if $registerdomainenabled}{if $domain neq "register"}<a href="{$smarty.server.PHP_SELF}?a=add&domain=register">{$LANG.registerdomain}</a>{else}<strong>{$LANG.registerdomain}</strong>{/if} |{/if}
  {if $transferdomainenabled}{if $domain neq "transfer"}<a href="{$smarty.server.PHP_SELF}?a=add&domain=transfer">{$LANG.transferdomain}</a>{else}<strong>{$LANG.transferdomain}</strong>{/if} |{/if} <a href="{$smarty.server.PHP_SELF}?a=view">{$LANG.viewcart}</a></div>

<p>{if $domain eq "register"}{$LANG.registerdomaindesc}{else}{$LANG.transferdomaindesc}{/if}</p>

{if !$loggedin && $currencies}
<form method="post" action="cart.php?a=add&domain={$domain}">
<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="Go" /></p>
</form>
<br />
{/if}

{if $errormessage}
<div class="errorbox">{$errormessage}</div>
<br />
{/if}

<form method="post" action="{$smarty.server.PHP_SELF}?a=add&domain={$domain}">
  <div class="cartbox" align="center">www.
    <input type="text" name="sld" size="40" value="{$sld}" /> 
    <select name="tld">
      
{foreach key=num item=listtld from=$tlds}

      <option value="{$listtld}"{if $listtld eq $tld} selected="selected"{/if}>{$listtld}</option>
      
{/foreach}

    </select> 
    <input type="submit" value="{$LANG.checkavailability}" />
  </div>
  <p align="center"></p>
</form>
{if $availabilityresults}
<p class="cartsubheading">{$LANG.choosedomains}</p>
<form method="post" action="{$smarty.server.PHP_SELF}?a=add&domain={$domain}">
  <table width="100%" border="0" align="center" cellpadding="10" cellspacing="0" class="data">
    <tr>
      <th>{$LANG.domainname}</th>
      <th>{$LANG.domainstatus}</th>
      <th>{$LANG.domainmoreinfo}</th>
    </tr>
    {foreach key=num item=result from=$availabilityresults}
    <tr>
      <td>{$result.domain}</td>
      <td class="{if $result.status eq $searchvar}domaincheckeravailable{else}domaincheckerunavailable{/if}">{if $result.status eq $searchvar}
        <input type="checkbox" name="domains[]" value="{$result.domain}"{if $result.domain|in_array:$domains} checked{/if} />
        {$LANG.domainavailable}{else}{$LANG.domainunavailable}{/if}</td>
      <td>{if $result.regoptions}
        <select name="domainsregperiod[{$result.domain}]">
          {foreach key=period item=regoption from=$result.regoptions}
          {if $regoption.$domain}<option value="{$period}">
            {$period} {$LANG.orderyears} @ {$regoption.$domain}
          </option>{/if}
          {/foreach}
        </select>
      {/if}</td>
    </tr>
    {/foreach}
  </table>
  {if $domain eq "transfer" && $eppcode}
  <p align="center"><strong>{$LANG.domaineppcode}:</strong>
    <input type="text" name="eppcode" size="20" />
    [Required]*<br />
    {$LANG.domaineppcodedesc}</p>
  {/if}
  <p align="center">
    <input type="submit" value="{$LANG.addtocart}" />
  </p>
</form>
{/if}
<p align="center">
  <input type="button" value="{$LANG.viewcart}" onclick="window.location='cart.php?a=view'" />
</p>