
  <TMPL_INCLUDE NAME=message.html>
  <BR>
  <FORM action="<TMPL_VAR NAME=cgi>" method="post">
  <INPUT value="<TMPL_VAR NAME=inventory_item_id>" name="inventory_item_id" type="hidden">
  <INPUT value="<TMPL_VAR NAME=version>" name="version" type="hidden">
  <INPUT value="dns_do_update_zone" name="action" type="hidden">
  <TABLE cellspacing="1" cellpadding="1" border="0" width="90%">
    <TR> 
      <TD colspan="3">
        <b class="header2">Hostnames (A Records)</b>
        <div style="border-top: solid 2px #A6C1E9; margin:3;"></div>
	    An A record specifies the numeric IP address for a hostname.
	    If you wish to create an A record for <TMPL_VAR NAME=zone_fqdn>,
	    simply enter the IP address. If you wish to create an A record
	    for a subdomain (e.g., www.<TMPL_VAR NAME=zone_fqdn>), enter the
	    subdomain and the IP address.
      </TD>
    </TR>
    <TR> 
      <TH align="left" width="55%" class="header3">
        Hostname 
      </TH>
      <TH align="left" width="25%" class="header3">
        IP Address 
      </TH>
      <TH align="left" width="20%" class="header3">
        Remove 
      </TH>
    </TR>

   <TMPL_LOOP NAME=a_records> 
    <TR> 
      <TD class="<TMPL_VAR NAME=class>">
        <TMPL_VAR NAME=rec_name>
      </TD>
      <TD class="<TMPL_VAR NAME=class>">
      <TMPL_IF error>
	<font color="red"><TMPL_VAR NAME=error></font>
	<br>
      </TMPL_IF>
       <TMPL_UNLESS read_only>
        <INPUT name="content_<TMPL_VAR NAME=id>" 
         type="text" value="<TMPL_VAR NAME=content>"> 
        <INPUT name="type_<TMPL_VAR NAME=id>"
         type="hidden" value="<TMPL_VAR NAME=type>">
        <INPUT name="content_<TMPL_VAR NAME=id>_orig" 
         type="hidden" value="<TMPL_VAR NAME=content>">       
     <TMPL_ELSE>
        <TMPL_VAR NAME=content>
     </TMPL_UNLESS>
      </TD>
      <TD class="<TMPL_VAR NAME=class>">
       <TMPL_UNLESS read_only>
        <INPUT value="<TMPL_VAR NAME=id>" name="delete_records"
         type="checkbox" <TMPL_VAR NAME=delete_checked>> 
       <TMPL_ELSE>
        <a href="<TMPL_VAR NAME=cgi>?action=dns_manage_domain_forwarding&inventory_item_id=<TMPL_VAR NAME=inventory_item_id>">Manage Domain Forwarding</a>
       </TMPL_UNLESS>
      </TD>
    </TR>
   </TMPL_LOOP>

    <TR>
      <TH align="left" colspan="3" class="header2">
        Add New Hostname 
      </TH>
    </TR>
    <TR> 
      <TH align="left" class="header3">
        Hostname 
      </TH>
      <TH align="left" colspan="2" class="header3">
        IP Address 
      </TH>
    </TR>

   <TMPL_LOOP NAME=a_records_add>
    <TMPL_IF error>
    <TR>
     <TD colspan="3" class="error" align="left">
      <TMPL_VAR NAME=error>
     </TD>
    </TR>
    </TMPL_IF>
    <TR> 
      <TD class="<TMPL_VAR NAME=class>">
        <INPUT type="hidden" name="suffix" value="<TMPL_VAR NAME=suffix>">
        <TMPL_IF is_input_hidden>
        <INPUT name="name_<TMPL_VAR NAME=suffix>" type="hidden" value="<TMPL_VAR NAME=name>">
        <TMPL_VAR NAME=zone_fqdn>
        <TMPL_ELSE>
        <INPUT name="name_<TMPL_VAR NAME=suffix>" type="text" value="<TMPL_VAR NAME=name>">
        .<TMPL_VAR NAME=zone_fqdn>
        </TMPL_IF>
      </TD>
      <TD colspan="2" class="<TMPL_VAR NAME=class>">
        <INPUT name="content_<TMPL_VAR NAME=suffix>" type="text" value="<TMPL_VAR NAME=content>"> 
      </TD>
    </TR>
   </TMPL_LOOP>
   
  </TABLE>
  <BR>
  <TABLE cellspacing="1" cellpadding="1" border="0" width="90%">
    <TR> 
      <TD colspan="3">
       <b class="header2">Aliases (CNAME Records)</b>
       <div style="border-top: solid 2px #A6C1E9; margin:3;"></div>
       A CNAME record is used to create an alias for <TMPL_VAR NAME=zone_fqdn>.
       This record points a hostname for this domain to another hostname.
      </TD>
    </TR>
    <TR> 
      <TH align="left" width="55%" class="header3">
        Alias 
      </TH>
      <TH align="left" width="25%" class="header3">
        Hostname 
      </TH>
      <TH align="left" width="20%" class="header3">
        Remove 
      </TH>
    </TR>

   <TMPL_LOOP NAME=cname_records>
    <TMPL_IF error>
    <TR>
     <TD colspan="3" class="error" align="center">
      <TMPL_VAR NAME=error>
     </TD>
    </TR>
    </TMPL_IF>
    <TR>
      <TD class="<TMPL_VAR NAME=class>">
        <TMPL_VAR NAME=rec_name>
      </TD>
      <TD class="<TMPL_VAR NAME=class>">
       <TMPL_UNLESS read_only>
        <INPUT name="content_<TMPL_VAR NAME=id>"
         type="text" value="<TMPL_VAR NAME=content>">
        <INPUT name="content_<TMPL_VAR NAME=id>_orig"
         type="hidden" value="<TMPL_VAR NAME=content>">
       <TMPL_ELSE>
        <TMPL_VAR NAME=content>
       </TMPL_UNLESS>
      </TD>
      <TD class="<TMPL_VAR NAME=class>">
       <TMPL_UNLESS read_only>
        <INPUT value="<TMPL_VAR NAME=id>" name="delete_records"
         type="checkbox" <TMPL_VAR NAME=delete_checked>>
       <TMPL_ELSE>
         &nbsp;
       </TMPL_UNLESS>
      </TD>
    </TR>
   </TMPL_LOOP>

    <TR> 
      <TH align="left" colspan="3" class="header2">
        Add New Alias 
      </TH>
    </TR>
    <TR> 
      <TH align="left" class="header3">
        Alias 
      </TH>
      <TH align="left" colspan="2" class="header3">
        Hostname 
      </TH>
    </TR>

   <TMPL_LOOP NAME=cname_records_add>
    <TMPL_IF error>
    <TR>
     <TD colspan="3" class="error" align="center">
      <TMPL_VAR NAME=error>
     </TD>
    </TR>
    </TMPL_IF>
    <TR>
      <TD class="<TMPL_VAR NAME=class>">
        <INPUT type="hidden" name="suffix" value="<TMPL_VAR NAME=suffix>">
        <INPUT name="name_<TMPL_VAR NAME=suffix>" type="text" value="<TMPL_VAR NAME=name>">
        .<TMPL_VAR NAME=zone_fqdn>
      </TD>
      <TD colspan="2" class="<TMPL_VAR NAME=class>">
        <INPUT name="content_<TMPL_VAR NAME=suffix>" type="text" value="<TMPL_VAR NAME=content>">
      </TD>
    </TR>
   </TMPL_LOOP>
  </TABLE>
  <BR>
  <TABLE cellspacing="1" cellpadding="1" border="0" width="90%">
    <TR> 
      <TD colspan="4">
        <b class="header2">Mail Exchanges (MX Records)</b>
        <div style="border-top: solid 2px #A6C1E9; margin:3;"></div>
	    An MX record specifies where mail is delivered for <TMPL_VAR NAME=zone_fqdn>
	    or a subdomain. The mail server that mail is delivered to is referred to as
	    the mail exchange. If you wish to create an MX record for mail sent to
	    <TMPL_VAR NAME=zone_fqdn>, enter the mail exchange and preference.
	    If you wish to create an MX record for mail sent to a subdomain (e.g.,
	    office2.<TMPL_VAR NAME=zone_fqdn>), enter the subdomain (e.g., office2), mail
	    exchange and preference.
      </TD>
    </TR>
    <TR> 
      <TH align="left" width="55%" class="header3">
        Hostname 
      </TH>
      <TH align="left" width="20%" class="header3">
        Mail Exchange 
      </TH>
      <TH align="left" width="15%" class="header3">
        Preference 
      </TH>
      <TH align="left" width="10%" class="header3">
        Remove 
      </TH>
    </TR>

   <TMPL_LOOP NAME=mx_records>
    <TMPL_IF error>
    <TR>
     <TD colspan="4" class="error" align="center">
      <TMPL_VAR NAME=error>
     </TD>
    </TR>
    </TMPL_IF>
    <TR>
      <TMPL_IF rec_name>
       <TD class="<TMPL_VAR NAME=class>" <TMPL_VAR NAME=rowspan>>
         <TMPL_VAR NAME=rec_name>
       </TD>
      </TMPL_IF>
      <TD class="<TMPL_VAR NAME=class>">
       <TMPL_UNLESS read_only>
        <INPUT name="content_<TMPL_VAR NAME=id>"
         type="text" value="<TMPL_VAR NAME=content>">
        <INPUT name="content_<TMPL_VAR NAME=id>_orig"
         type="hidden" value="<TMPL_VAR NAME=content>">
       <TMPL_ELSE>
         <TMPL_VAR NAME=content>
       </TMPL_UNLESS>
      </TD>
      <TD class="<TMPL_VAR NAME=class>">
       <TMPL_UNLESS read_only>
        <INPUT size="5" name="priority_<TMPL_VAR NAME=id>"
         type="text" value="<TMPL_VAR NAME=priority>">
        <INPUT name="priority_<TMPL_VAR NAME=id>_orig" 
         type="hidden" value="<TMPL_VAR NAME=priority>">
       <TMPL_ELSE>
        <TMPL_VAR NAME=priority>
       </TMPL_UNLESS>
      </TD>
      <TD class="<TMPL_VAR NAME=class>">
       <TMPL_UNLESS read_only>
        <INPUT value="<TMPL_VAR NAME=id>" name="delete_records"
         type="checkbox" <TMPL_VAR NAME=delete_checked>>
       <TMPL_ELSE>
         &nbsp;
       </TMPL_UNLESS>
      </TD>
    </TR>
   </TMPL_LOOP>

    <TR> 
      <TH align="left" colspan="4" class="header2">
        Add New Mail Exchange
      </TH>
    </TR>
    <TR> 
      <TH align="left" class="header3">
        Hostname 
      </TH>
      <TH align="left" class="header3">
        Mail Exchange
      </TH>
      <TH align="left" colspan="2" class="header3">
        Preference 
      </TH>
    </TR>

   <TMPL_LOOP NAME=mx_records_add>
    <TMPL_IF error>
    <TR>
     <TD colspan="4" class="error" align="center">
      <TMPL_VAR NAME=error>
     </TD>
    </TR>
    </TMPL_IF>
    <TR>
      <TD class="<TMPL_VAR NAME=class>">
        <INPUT type="hidden" name="suffix" value="<TMPL_VAR NAME=suffix>">
        <TMPL_IF is_input_hidden>
        <INPUT name="name_<TMPL_VAR NAME=suffix>" type="hidden" value="<TMPL_VAR NAME=name>">
        <TMPL_VAR name=zone_fqdn>
        <TMPL_ELSE>
        <INPUT name="name_<TMPL_VAR NAME=suffix>" type="text" value="<TMPL_VAR NAME=name>">
        .<TMPL_VAR NAME=zone_fqdn>
        </TMPL_IF>
      </TD>
      <TD class="<TMPL_VAR NAME=class>">
        <INPUT name="content_<TMPL_VAR NAME=suffix>" type="text" value="<TMPL_VAR NAME=content>">
      </TD>
      <TD colspan="2" class="<TMPL_VAR NAME=class>">
        <INPUT size="5" type="text" name="priority_<TMPL_VAR NAME=suffix>" value="<TMPL_VAR NAME=priority>">
      </TD>
    </TR>
   </TMPL_LOOP>
  </TABLE>
  <BR>
  
  
  
  
  
  
  
  <TABLE cellspacing="1" cellpadding="1" border="0" width="90%">
    <TR> 
      <TD colspan="3">
       <b class="header2">TXT Records</b>
       <div style="border-top: solid 2px #A6C1E9; margin:3;"></div>
       The purpose of a TXT record is to store general information about particular hostname or device. The fields
	for a TXT record are <B>hostname</B> and <B>comments</B>. The hostname is the host for which you are adding comments, and the comments field
	is the plain text that you wish to associate with this device      
      </TD>
    </TR>
    <TR> 
      <TH align="left" width="55%" class="header3">
        Hostname 
      </TH>
      <TH align="left" width="25%" class="header3">
        Comments
      </TH>
      <TH align="left" width="20%" class="header3">
        Remove 
      </TH>
    </TR>

   <TMPL_LOOP NAME=txt_records>
    <TMPL_IF error>
    <TR>
     <TD colspan="3" class="error" align="center">
      <TMPL_VAR NAME=error>
     </TD>
    </TR>
    </TMPL_IF>
    <TR>
      <TD class="<TMPL_VAR NAME=class>">
        <TMPL_VAR NAME=rec_name>
      </TD>
      <TD class="<TMPL_VAR NAME=class>">
       <TMPL_UNLESS read_only>
        <INPUT name="content_<TMPL_VAR NAME=id>"
         type="text" value="<TMPL_VAR ESCAPE=HTML NAME=content>">
        <INPUT name="content_<TMPL_VAR NAME=id>_orig"
         type="hidden" value="<TMPL_VAR ESCAPE=HTML NAME=content>">
       <TMPL_ELSE>
        <TMPL_VAR NAME=content>
       </TMPL_UNLESS>
      </TD>
      <TD class="<TMPL_VAR NAME=class>">
       <TMPL_UNLESS read_only>
        <INPUT value="<TMPL_VAR NAME=id>" name="delete_records"
         type="checkbox" <TMPL_VAR NAME=delete_checked>>
       <TMPL_ELSE>
         &nbsp;
       </TMPL_UNLESS>
      </TD>
    </TR>
   </TMPL_LOOP>

    <TR> 
      <TH align="left" colspan="3" class="header2">
        Add New TXT Record 
      </TH>
    </TR>
    <TR> 
      <TH align="left" class="header3">
        Hostname 
      </TH>
      <TH align="left" colspan="2" class="header3">
        Comments 
      </TH>
    </TR>

   <TMPL_LOOP NAME=txt_records_add>
    <TMPL_IF error>
    <TR>
     <TD colspan="3" class="error" align="center">
      <TMPL_VAR NAME=error>
     </TD>
    </TR>
    </TMPL_IF>
    <TR>
      <TD class="<TMPL_VAR NAME=class>">
        <INPUT type="hidden" name="suffix" value="<TMPL_VAR NAME=suffix>">
        <INPUT name="name_<TMPL_VAR NAME=suffix>" type="text" value="<TMPL_VAR NAME=name>">
        .<TMPL_VAR NAME=zone_fqdn>
      </TD>
      <TD colspan="2" class="<TMPL_VAR NAME=class>">
        <INPUT name="content_<TMPL_VAR NAME=suffix>" type="text" value="<TMPL_VAR NAME=content>">
      </TD>
    </TR>
   </TMPL_LOOP>
  </TABLE>
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  <BR>
  <TABLE cellspacing="1" cellpadding="1" border="0" width="90%">
    <TR> 
      <TD colspan="3">
        <b class="header2">Subdomain Delegation (NS Records)</b>
        <div style="border-top: solid 2px #A6C1E9; margin:3;"></div>
        To delegate subdomains specify the subdomain and Fully Qualified Domain 
        Name (FQDN) of the nameserver(s) that will act for the subdomain. 
      </TD>
    </TR>
    <TR> 
      <TH align="left" width="55%" class="header3">
        Subdomain 
      </TH>
      <TH align="left" width="25%" class="header3">
        Nameserver Hostname 
      </TH ALIGN="LEFT">
      <TH align="left" width="20%" class="header3">
        Remove 
      </TH>
    </TR>

   <TMPL_LOOP NAME=ns_records>
    <TMPL_IF error>
    <TR>
     <TD colspan="3" class="error" align="center">
      <TMPL_VAR NAME=error>
     </TD>
    </TR>
    </TMPL_IF>
    <TR>
      <TD class="<TMPL_VAR NAME=class>">
        <TMPL_VAR NAME=rec_name>
      </TD>
      <TD class="<TMPL_VAR NAME=class>">
       <TMPL_UNLESS read_only>
        <INPUT name="content_<TMPL_VAR NAME=id>"
         type="text" value="<TMPL_VAR NAME=content>">
        <INPUT name="content_<TMPL_VAR NAME=id>_orig"
         type="hidden" value="<TMPL_VAR NAME=content>">
       <TMPL_ELSE>
        <TMPL_VAR NAME=content>
       </TMPL_UNLESS>
      </TD>
      <TD class="<TMPL_VAR NAME=class>">
       <TMPL_UNLESS read_only>
        <INPUT value="<TMPL_VAR NAME=id>" name="delete_records"
         type="checkbox" <TMPL_VAR NAME=delete_checked>>
       <TMPL_ELSE>
        &nbsp;
       </TMPL_UNLESS>
      </TD>
    </TR>
   </TMPL_LOOP>

    <TR> 
      <TH align="left" colspan="3" class="header2">
        Add New Subdomain 
      </TH>
    </TR>
    <TR> 
      <TH align="left" class="header3">
        Subdomain 
      </TH>
      <TH align="left" colspan="2" class="header3">
        Nameserver Hostname 
      </TH>
    </TR>

   <TMPL_LOOP NAME=ns_records_add>
    <TMPL_IF error>
    <TR>
     <TD colspan="3" class="error" align="center">
      <TMPL_VAR NAME=error>
     </TD>
    </TR>
    </TMPL_IF>
    <TR>
      <TD class="<TMPL_VAR NAME=class>">
        <INPUT type="hidden" name="suffix" value="<TMPL_VAR NAME=suffix>">
        <INPUT name="name_<TMPL_VAR NAME=suffix>" type="text" value="<TMPL_VAR NAME=name>">
        .<TMPL_VAR NAME=zone_fqdn>
        <TMPL_VAR NAME=error>
      </TD>
      <TD colspan="2" class="<TMPL_VAR NAME=class>">
        <INPUT name="content_<TMPL_VAR NAME=suffix>" type="text" value="<TMPL_VAR NAME=content>">
      </TD>
    </TR>
   </TMPL_LOOP>
  </TABLE>

  <BR>

  <TABLE cellpadding="1" cellspacing="0" border="0" width="90%">
   <TR>
      <TD align="center" colspan="3" class="accent">
        <INPUT value="Update Zone Settings" id="btnSubmit" type="submit" name="btnSubmit" class="soft">
        <INPUT value=" Cancel " id="btnCancel" type="reset" name="btnCancel" class="soft">
      </TD>
   </TR>
  </TABLE>
</FORM>
<BR>
<FORM action="<TMPL_VAR NAME=cgi>" method="post">
  <INPUT value="<TMPL_VAR NAME=inventory_item_id>" name="inventory_item_id" type="hidden">
  <INPUT value="<TMPL_VAR NAME=version>" name="version" type="hidden">
  <INPUT value="dns_retrieve_zone" name="action" type="hidden">
  <TABLE cellspacing="1" cellpadding="1" border="0" width="90%">
    <TR> 
      <TH align="left" colspan="3" width="280%">
        <b class="header2">Retrieve Zone Information</b>
        <div style="border-top: solid 2px #A6C1E9; margin:3;"></div>        
      </TH>
    </TR>
    <TR> 
      <TD colspan="3" height="25">
        This allows you to retrieve the zone records for the zone if it is currently
	active with another DNS provider. This retrieve option will attempt to
	retrieve all records in the zone, but may not successfully retrieve all
	records. Retrieved zone records will be added to existing records by
	default. If you wish to overwrite and delete your current zone record
	entries so that they are replaced with the retrieved entries, then check the
	<b>Delete All Current Zone Records</b> checkbox and click the <b>Retrieve</b> button.
      </TD>
    </TR>
    <TR> 
      <TD align="center" colspan="3" height="25" class="accent">
        <INPUT type="checkbox" name="replace" value="1">
        Delete All Current Zone Records&nbsp;&nbsp;&nbsp;
	<INPUT value="Retrieve" id="btnSubmit" type="submit" name="btnSubmit" class="soft">
      </TD>
    </TR>
  </TABLE>
</FORM>
<BR>
<FORM action="<TMPL_VAR NAME=cgi>" method="post">
  <INPUT value="<TMPL_VAR NAME=version>" name="version" type="hidden">
  <INPUT value="<TMPL_VAR NAME=inventory_item_id>" name="inventory_item_id" type="hidden">
  <INPUT value="<TMPL_VAR NAME=ids>" name="ids" type="hidden">
  <INPUT value="dns_restore_zone_defaults" name="action" type="hidden">
  <TABLE cellspacing="1" cellpadding="1" border="0" width="90%">
    <TR> 
      <TH align="left" colspan="3" width="280%">
        <b class="header2">Restore Current Default Zone Settings</b>
        <div style="border-top: solid 2px #A6C1E9; margin:3;"></div>
      </TH>
    </TR>
    <TR> 
      <TD colspan="3" height="25">
	If at any time you'd like to restore ALL of the zone records to the current
	default settings, click the <b>Reset (all) Zone Defaults</b> button below.
	As an important note, this will overwrite and delete your current zone entries
	and replace them with the default entries.
      </TD>
    </TR>
    <TR> 
      <TD align="center" colspan="3" height="25" class="accent">
        <INPUT value="Reset (all) Zone Defaults" id="btnSubmit" type="submit" name="btnSubmit" class="soft"> 
      </TD>
    </TR>
  </TABLE>
</FORM>
<BR>
<BR>
