<!-- BEGIN DYNAMIC BLOCK: noDomainsModule -->
<div class="notice notice-red">
  [l]Sorry, you must have the domains module installed to use this tool.[/l]
</div>
<!-- END DYNAMIC BLOCK: noDomainsModule -->

<!-- BEGIN DYNAMIC BLOCK: hasDomainsModule -->
<script type="text/javascript" src="../javascript/modules/domains.js?version={CE_VERSION}"></script>
<script type="text/javascript" src="../plugins/import/domains_registrar/PluginDomainsregistrar.js?version={CE_VERSION}"></script>
<!-- BEGIN DYNAMIC BLOCK: registrarDropdown -->

<div id="domains_results"></div>

<div class="blue-box" style="padding:4px !important;">
    <table class="automation">
        <tbody>
            <tr>
                <td>
                    <form id="fetchDomains" action="index.php" method="post">
                        <div>[l]Select Registrar[/l]:&nbsp;
                            <select id="selectRegistrar" name="selectRegistrar" onchange="gridstore.setBaseParam('registrar', this.options[this.selectedIndex].value); gridstore.load();">
                              <option value="--">----&nbsp;&nbsp;</option>
                              <!-- BEGIN DYNAMIC BLOCK: registrar -->
                              <option value="{REGISTRAR}">[l]{REGISTRAR}[/l]&nbsp;&nbsp;</option>
                              <!-- END DYNAMIC BLOCK: registrar -->
                            </select>
                        </div>
                     </form> 
                </td>
            </tr>
        </tbody>
    </table>
</div>

<div>
  <div id="domains-grid">
  </div>
</div>

<!-- END DYNAMIC BLOCK: registrarDropdown -->
<div class="table-summary" style="margin-bottom: 10px; margin-top: 10px;">
<h2>[l]Note[/l]:</h2>
    [l]Select a registrar from the drop-down field above to fetch a list of the domains you have registered that are not already part of ClientExec. [/l]<br /><br />
    [l]You will then be able to import any domain into ClientExec, which will be visible in the Domains List section of the Clients module.[/l]<br />
    [l]Once a domain is imported, you can edit from within ClientExec its contact info, name servers, initiate a domain transfer, etc.[/l]<br />
    [l]Note that when a domain is imported, if the registrant doesn't have an account in ClientExec then a new account will be created, except if the registrant's personal information is marked as private.[/l]
</div>
<!-- BEGIN DYNAMIC BLOCK: noRegistrars -->
<div class="notice notice-red">
  {noRegistrarsText}
</div>
<!-- END DYNAMIC BLOCK: noRegistrars -->
<!-- END DYNAMIC BLOCK: hasDomainsModule -->