{literal}<script language="javascript">
function usedefaultns() {
    jQuery(".domnsinputs").attr("disabled", true);
}
function usecustomns() {
    jQuery(".domnsinputs").removeAttr("disabled");
}
jQuery(document).ready(function(){
{/literal}{if $defaultns}usedefaultns();
{/if}
{literal}});
</script>{/literal}

		<div class="bigheader">
			<h2>{$LANG.clientareanavdomains}</h2>
		</div><!-- .bigheader -->  


<div class="table-responsive table-grey">
<table>
        <tr>
          <td class="fieldarea" width="150">{$LANG.clientareahostingregdate}:</td>
          <td>{$registrationdate}</td>
        </tr>
        <tr>
          <td class="fieldarea">{$LANG.clientareahostingdomain}:</td>
          <td><a href="http://{$domain}" target="_blank">{$domain}</a></td>
        </tr>
        <tr>
          <td class="fieldarea">{$LANG.orderpaymentmethod}:</td>
          <td>{$paymentmethod}</td>
        </tr>
        <tr>
          <td class="fieldarea">{$LANG.firstpaymentamount}:</td>
          <td>{$firstpaymentamount}</td>
        </tr>
        <tr>
          <td class="fieldarea">{$LANG.recurringamount}:</td>
          <td>{$recurringamount}</td>
        </tr>
        {if $recreatesubscriptionbutton}
        <tr>
          <td></td>
          <td>{$recreatesubscriptionbutton}</td>
        </tr>
        {/if}
        <tr>
          <td class="fieldarea">{$LANG.clientareahostingnextduedate}:</td>
          <td>{$nextduedate}</td>
        </tr>
        <tr>
          <td class="fieldarea">{$LANG.clientarearegistrationperiod}:</td>
          <td>{$registrationperiod} {$LANG.orderyears}</td>
        </tr>
        <tr>
          <td class="fieldarea">{$LANG.clientareastatus}:</td>
          <td>{$status}</td>
        </tr>
    </table>
</div>



<div class="center">{$moduleclientarea}</div>

{if $status eq $LANG.clientareaactive}
<form method="post" action="{$smarty.server.PHP_SELF}?action=domaindetails">
  <input type="hidden" name="id" value="{$domainid}">
  
  <h3>{$LANG.domainsautorenew}</h3>
  
  {if $donotrenew}
			<div class="notice notice-error">
				<div class="inside">
					<p>{$LANG.domainsautorenewdisabledwarning}</p>
				</div>
			</div>  
  {/if}
  
  <p>{$LANG.domainsautorenewstatus}: {if $donotrenew}{$LANG.domainsautorenewdisabled}
    <input type="hidden" name="autorenew" value="enable">
    
    <input type="submit" value="{$LANG.domainsautorenewenable}" class="button1 color2">
    
    {else}{$LANG.domainsautorenewenabled} &nbsp;&nbsp;&nbsp;
    
    <input type="hidden" name="autorenew" value="disable">
    <input type="submit" value="{$LANG.domainsautorenewdisable}" class="button1 color2">
    
    {/if}</p>
</form>

{if $managens}

		<div class="bigheader">
			<h2>{$LANG.domainnameservers}</h2>
		</div><!-- .bigheader -->  

{if $error}

			<div class="notice notice-error">
				<div class="inside">
					<p>{$error}</p>
				</div>
			</div> 

{/if}

<form method="post" action="{$smarty.server.PHP_SELF}?action=domaindetails">
  <input type="hidden" name="sub" value="savens">
  <input type="hidden" name="id" value="{$domainid}">
  
  
 	<div class="feildset">
		
			<div class="col1"> 
  
				<div>
					<input type="radio" name="nschoice" value="default" id="nschoicedefault" onclick="usedefaultns()"{if $defaultns} checked{/if} /> <label for="nschoicedefault">{$LANG.nschoicedefault}</label>
					<input type="radio" name="nschoice" value="custom" id="nschoicecustom" onclick="usecustomns()"{if !$defaultns} checked{/if} /> <label for="nschoicecustom">{$LANG.nschoicecustom}</label>
				</div>  
  
				<div>
					<label>
						<span>{$LANG.domainnameserver1}:</span>
						<input type="text" name="ns1" value="{$ns1}" class="domnsinputs" placeholder="{$LANG.domains_nameserver1}" />
					</label>
				</div>
				
				<div>
					<label>
						<span>{$LANG.domainnameserver2}:</span>
						<input type="text" name="ns2" value="{$ns2}" class="domnsinputs" placeholder="{$LANG.domains_nameserver1}" />
					</label>
				</div>				
  
  
				<div>
					<label>
						<span>{$LANG.domainnameserver3}:</span>
						<input type="text" name="ns3" value="{$ns3}" class="domnsinputs" placeholder="{$LANG.domains_nameserver1}" />
					</label>
				</div>  
				
				<div>
					<label>
						<span>{$LANG.domainnameserver4}:</span>
						<input type="text" name="ns4" value="{$ns4}" class="domnsinputs" placeholder="{$LANG.domains_nameserver1}" />
					</label>
				</div>				
				
				
				<div>
					<label>
						<span>{$LANG.domainnameserver5}:</span>
						<input type="text" name="ns5" value="{$ns5}" class="domnsinputs" placeholder="{$LANG.domains_nameserver1}" />
					</label>
				</div>				

  <p class="center">
    <input type="submit" value="{$LANG.clientareasavechanges}" class="button1 color2">
  </p>
  
  </div>
  </div>
  
</form>
{/if}

{if $lockstatus}
{if $tld neq "co.uk" && $tld neq "org.uk" && $tld neq "ltd.uk" && $tld neq "plc.uk" && $tld neq "me.uk"}
<form method="post" action="{$smarty.server.PHP_SELF}?action=domaindetails">
  <input type="hidden" name="sub" value="savereglock">
  <input type="hidden" name="id" value="{$domainid}">
  
		<div class="bigheader">
			<h2>{$LANG.domainregistrarlock}</h2>
		</div><!-- .bigheader -->    
  
  
 	<div class="feildset">
		
			<div class="col1">  
			
				<div>
						<span>{$LANG.domainregistrarlock}:</span>
						<input type="checkbox" name="reglock"{if $lockstatus=="locked"} checked{/if}>
              {$LANG.domainregistrarlockdesc}
				</div>	
  
  <p class="center">
    <input type="submit" value="{$LANG.clientareasavechanges}" class="button1 color2">
  </p>
  
  </div>
  
  </div>
  
</form>
{/if}
{/if}

{if $releasedomain}

		<div class="bigheader">
			<h2>{$LANG.domainrelease}</h2>
		</div><!-- .bigheader --> 

<form method="post" action="{$smarty.server.PHP_SELF}?action=domaindetails">
  <input type="hidden" name="sub" value="releasedomain">
  <input type="hidden" name="id" value="{$domainid}">
  
  
   	<div class="feildset">
		
			<div class="col1">  
			
				<div>
						<span>{$LANG.domainreleasetag}:</span>
             			<input type="text" name="transtag" size="20" /> {$LANG.domainreleasedescription}
				</div>	
  
  <p class="center">
    <input type="submit" value="{$LANG.domainrelease}" class="buttonwarn button1 color2">
  </p>
  
  </div></div>
  
</form>
{/if}

{/if}

		<div class="bigheader">
			<h2>{$LANG.domainmanagementtools}</h2>
		</div><!-- .bigheader --> 
  
  <div class="domainmanagement">
  
  {if $renew}
    <form method="post" action="{$smarty.server.PHP_SELF}?action=domainrenew">
        <input type="hidden" name="domainid" value="{$domainid}">
          <input type="submit" value="{$LANG.domainrenew}" class="button1 color2">
          </form>
    {/if}
    {if $managecontacts}
    <form method="post" action="{$smarty.server.PHP_SELF}?action=domaincontacts">
        <input type="hidden" name="domainid" value="{$domainid}">
          <input type="submit" value="{$LANG.domaincontactinfo}" class="button1 color2">
          </form>
    {/if}
    {if $emailforwarding}
		<form method="post" action="{$smarty.server.PHP_SELF}?action=domainemailforwarding">
        <input type="hidden" name="domainid" value="{$domainid}">
          <input type="submit" value="{$LANG.domainemailforwarding}" class="button1 color2">
          </form>
    {/if}
    {if $dnsmanagement}
    <form method="post" action="{$smarty.server.PHP_SELF}?action=domaindns">
        <input type="hidden" name="domainid" value="{$domainid}">
          <input type="submit" value="{$LANG.domaindnsmanagement}" class="button1 color2">
          </form>
    {/if}
    {if $getepp}
    <form method="post" action="{$smarty.server.PHP_SELF}?action=domaingetepp">
        <input type="hidden" name="domainid" value="{$domainid}">
          <input type="submit" value="{$LANG.domaingeteppcode}" class="button1 color2">
          </form>
    {/if}
    {if $registerns}
    <form method="post" action="{$smarty.server.PHP_SELF}?action=domainregisterns">
        <input type="hidden" name="domainid" value="{$domainid}">
          <input type="submit" value="{$LANG.domainregisterns}" class="button1 color2">
          </form>
    {/if} 
    
    </div>
    
    <div class="clear">&nbsp;</div>

<p><input type="button" value="{$LANG.clientareabacklink}" onclick="window.location='clientarea.php?action=domains'" class="button1 color1" /></p>