<script type="text/javascript" src="includes/jscript/pwstrength.js"></script>

		<div class="bigheader">
			<h2>{$groupname} - {$product}</h2>
		</div><!-- .bigheader -->

		<div class="table-responsive table-grey">
<table>
        <tr>
          <td width="20%">{$LANG.clientareahostingregdate}:</td>
          <td>{$regdate}</td>
        </tr>
        <tr>
          <td>{$LANG.orderproduct}:</td>
          <td>{$groupname} - {$product}</td>
        </tr>
        {if $domain}<tr>
          <td>{$LANG.clientareahostingdomain}/license:</td>
          <td>{$domain}</td>
        </tr>
        {/if}
        {if $dedicatedip}<tr>
          <td>{$LANG.domainregisternsip}:</td>
          <td>{$dedicatedip}</td>
        </tr>
        {/if}
        {foreach from=$configurableoptions item=configoption}<tr>
          <td>{$configoption.optionname}:</td>
          <td>{if $configoption.optiontype eq 3}{if $configoption.selectedqty}{$LANG.yes}{else}{$LANG.no}{/if}{elseif $configoption.optiontype eq 4}{$configoption.selectedqty} x {$configoption.selectedoption}{else}{$configoption.selectedoption}{/if}</td>
        </tr>
        {/foreach}
        {foreach from=$productcustomfields item=customfield}
        <tr>
          <td>{$customfield.name}:</td>
          <td>{$customfield.value}</td>
        </tr>
        {/foreach}
        {if $lastupdate}
        <tr>
          <td>{$LANG.clientareadiskusage}:</td>
          <td>{$diskusage}MB / {$disklimit}MB (<strong>{$diskpercent}</strong>)</td>
        </tr>
        <tr>
          <td>{$LANG.clientareabwusage}:</td>
          <td>{$bwusage}MB / {$bwlimit}MB (<strong>{$bwpercent}</strong>)</td>
        </tr>
        {/if}
        <tr>
          <td>{$LANG.orderpaymentmethod}:</td>
          <td>{$paymentmethod}</td>
        </tr>
        <tr>
          <td>{$LANG.firstpaymentamount}:</td>
          <td>{$firstpaymentamount}</td>
        </tr>
        <tr>
          <td>{$LANG.recurringamount}:</td>
          <td>{$recurringamount}</td>
        </tr>
        <tr>
          <td>{$LANG.clientareahostingnextduedate}:</td>
          <td>{$nextduedate}</td>
        </tr>
        <tr>
          <td>{$LANG.orderbillingcycle}:</td>
          <td>{$billingcycle}</td>
        </tr>
        <tr>
          <td>{$LANG.clientareastatus}:</td>
          <td>{$status}</td>
        </tr>
        {if $suspendreason}<tr>
          <td>{$LANG.suspendreason}:</td>
          <td>{$suspendreason}</td>
        </tr>{/if}
</table>
</div>


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

{if $username}

{if $modulechangepassword}
<form method="post" action="{$smarty.server.PHP_SELF}?action=productdetails">
  <input type="hidden" name="id" value="{$id}" />
  <input type="hidden" name="modulechangepassword" value="true" />
  {/if}
  
  <h3>{$LANG.serverlogindetails}</h3>
  
  {if $modulechangepwresult eq "success"}
  
			<div class="notice notice-success">
				<div class="inside">
					<p>{$LANG.serverchangepasswordsuccessful}</p>
				</div>
			</div>  
  
  {elseif $modulechangepwresult eq "error"}
  
			<div class="notice notice-error">
				<div class="inside">
					<p>{$modulechangepasswordmessage}</p>
				</div>
			</div>    
  {/if}
  
  		<div class="table-responsive table-grey">
  <table>
          <tr>
            <td width="20%">{$LANG.serverusername}/{$LANG.serverpassword}:</td>
            <td>{$username}{if $password} / {$password}{/if}</td>
          </tr>
          {if $modulechangepassword}
          <tr>
            <td>{$LANG.serverchangepasswordenter}:</td>
            <td><input type="password" name="newpw" id="newpw" placeholder="{$LANG.productdetails_password1}" /></td>
          </tr>
          <tr>
            <td>{$LANG.serverchangepasswordconfirm}:</td>
            <td><input type="password" name="confirmpw" placeholder="{$LANG.productdetails_password2}" /></td>
          </tr>
          {/if}
      </table>
  </div>
  
  {if $modulechangepassword}
  <p class="center">
    <input type="submit" value="{$LANG.serverchangepasswordupdate}" class="button1 orange2" />
  </p>
</form>
{/if}

{/if}

{if $downloads}

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

{foreach key=num item=download from=$downloads}
<div class="table-responsive table-grey">
<table>
        <tr>
          <td width="20%">{$LANG.downloadname}:</td>
          <td>{$download.type} <a href="{$download.link}">{$download.title}</a></td>
        </tr>
        <tr>
          <td>{$LANG.downloaddescription}:</td>
          <td>{$download.description}</td>
        </tr>
</table>
</div>        
{/foreach}

{/if}

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

{if $addonsavailable}<p><a href="cart.php?gid=addons&pid={$id}" class="button1 color2">{$LANG.orderavailableaddons}</a></p>{/if}

<div class="table-responsive table-grey">
<table>
  <tr>
    <th>{$LANG.clientareaaddon}</th>
    <th>{$LANG.clientareaaddonpricing}</th>
    <th>{$LANG.clientareahostingnextduedate}</th>
  </tr>
  {foreach key=num item=addon from=$addons}
  <tr class="{$addon.class}">
    <td>{$addon.name}</td>
    <td align="center">{$addon.pricing}</td>
    <td align="center">{$addon.nextduedate}</td>
  </tr>
  {foreachelse}
  <tr>
    <td colspan="3" align="center">{$LANG.clientareanoaddons}</td>
  </tr>
  {/foreach}
</table>
</div>

<div class="serviceblock clientareatableactive">{$LANG.clientareaactive}</div>
<div class="serviceblock clientareatablepending">{$LANG.clientareapending}</div>
<div class="serviceblock clientareatablesuspended">{$LANG.clientareasuspended}</div>
<div class="serviceblock clientareatableterminated">{$LANG.clientareaterminated}</div>
<div class="clear">&nbsp;</div>

<div style="height: 15px;"></div>
    
  <div class="domainmanagement">    
    
    {if $packagesupgrade}
      <form method="post" action="upgrade.php">
        <input type="hidden" name="id" value="{$id}" />
        <input type="hidden" name="type" value="package" />
          <input type="submit" value="{$LANG.upgradedowngradepackage}" class="button1 color2" />
      </form>
      {/if}
      
    {if $configoptionsupgrade}
      <form method="post" action="upgrade.php">
        <input type="hidden" name="id" value="{$id}" />
        <input type="hidden" name="type" value="configoptions" />
          <input type="submit" value="{$LANG.upgradedowngradeconfigoptions}" class="button1 color2" />
      </form>
      {/if}
      
    {if $showcancelbutton && ($status eq $LANG.clientareaactive OR $status eq $LANG.clientareasuspended)}
      <input type="button" value="{$LANG.clientareacancelrequestbutton}" onclick="window.location='clientarea.php?action=cancel&amp;id={$id}'" class="button1 color2" />
{/if}

	</div>
	
	<div class="clear">&nbsp;</div>


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