#set( $layout = "gateadmin_admin_layout.vm" )
#set( $page_title = "License Information" ) 

#set($license = $request.getAttribute("license"))

<table width="70%" border=0 cellpadding=5 style="text-align: left;">
  #if($license)
    <tr align=center>
      <td>License Code</td>
      <td>$html.format($license.Key.DisplayKey)</td>

    </tr>
    <tr align=center>
      <td>Number of Registered Accounts</td>
      <td>$license.count</td>
    </tr>
    <tr align=center>
      <td>Maximum Number of Accounts</td>
      <td>
        #if($license.Key.isUnlimited())
          Unlimited
        #else
      	  $!license.Key.MaxAccountCount
        #end
      </td>
    </tr>
  #else
    <tr align=center>
      <td colspan="2"><font color="RED">License loading failed.</font></td>
    </tr>
  #end
</table>

<div style="padding: 1em;">
<form NAME="form" ACTION="$link.setRelative("/GateAdmin")" METHOD="POST">
  <input type="hidden" name="cmd" value="TOP">
  <input type="button" value="Close" onClick="document.form.submit()">
</form>
</div>

