
 <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="dns_update_domain_forwarding" name="action" type="hidden">

  <input value="<TMPL_VAR NAME=domain_zone_service_id>" type="hidden"
         name="domain_zone_service_id">
  <input value="<TMPL_VAR NAME=domain_setting>" type="hidden"
         name="orig_domain_setting">
 
<TMPL_IF show_forwarding>
	Domain forwarding provides you
	with the option of forwarding visitors to your web site to
	another website if you prefer. If you don't have a website
	to forward your domain name to, you have been provided
	alternative options including an "Under Construction" page,
	a "Domain For Sale" page and the option to not display
	anything. Only one domain forwarding option may be selected.
	After making your changes, select the "Update Domain
	Forwarding" button at the bottom of the page.
	<br>
	<br>

<TMPL_IF create_www>
    <input type="checkbox" name="create_www"
	value="<TMPL_VAR NAME=zone_fqdn>" checked>
    Apply the same to <b>www.<TMPL_VAR NAME=zone_fqdn></b> domain.
    <br>
    <br>
</TMPL_IF>

  <table cellspacing="1" cellpadding="1" border="0" width="90%">
    <tr>
      <td class="soft" valign="top" align="center" rowspan="3" width="2%">
       <input type="radio" name="domain_setting" value="fwd" <TMPL_VAR NAME=chk_fwd>>
      </td>
      <td colspan="3">
        <b class="header2">Domain Forwarding</b>
        <div style="border-top: solid 2px #A6C1E9; margin:3;"></div>
	Please enter the URL for the website you would
	like your visitors to be forwarded to when they type your domain
	name in the browser address window. The "URL frame" option provides you
	with the ability to maintain your domain name
	(e.g., http://www.yourdomain.com) in the browser address window no
	matter what link a person clicks on within your Website, instead of
	the actual address
	(e.g., http://www.somehostingprovider.com/~mysite/123).
	<br>
	<br>
      </td>
    </tr>
    <tr>
      <th align="left" width="40%" class="header3">
        Forward
      </th>
      <th align="left" width="40%" class="header3">
        To
      </th>
      <th align="left" width="18%" class="header3">
        URL Frame
      </th>
    </tr>
    <tr>
      <td class="accent">
        <TMPL_VAR NAME=zone_fqdn>
      </td>
      <td class="accent">
        <input name="domain_url"
          type="text" value="<TMPL_VAR NAME=domain_url>" size=30>
        <input name="orig_domain_url"
         type="hidden" value="<TMPL_VAR NAME=domain_url>">
      </td>
      <td class="accent">
        <input name="domain_cloak" value="1" type="checkbox" 
          <TMPL_IF domain_cloak>
            "checked"
          </TMPL_IF>
        >
        <input type="hidden" name="orig_domain_cloak"
         value="<TMPL_VAR NAME=domain_cloak>">
      </td>
    </tr>
  </table>
  <br>
</TMPL_IF>

<TMPL_IF show_templates>
  <table cellspacing="1" cellpadding="1" border="0" width="90%">
    <tr>
     <TMPL_IF chk_fs>
      <td class="soft" valign="top" align="center" rowspan="4" width="2%">
     <TMPL_ELSE>
      <td class="soft" valign="top" align="center" rowspan="3" width="2%">
     </TMPL_IF>
       <input type="radio" name="domain_setting" value="fs" <TMPL_VAR NAME=chk_fs>>
      </td>
      <td colspan="3">
        <b class="header2">Domain for Sale Template</b>
        <div style="border-top: solid 2px #A6C1E9; margin:3;"></div>
	You may use this option to make visitors to your web site aware that your
	domain is for sale. You have the option of using the generic text provided
	or you may customize the text by selecting the Domain For Sale option,
	selecting the "Update Domain Forwarding" button and selecting the "Edit"
	link. Please note that if you have the Domain For Sale option selected and
	you select and save another Domain Forwarding option, your Domain For Sale
	Template customizations will be deleted.
       <TMPL_IF chk_fs>
        &nbsp;&nbsp;
        <a href="<TMPL_VAR NAME=cgi>?action=edit_for_sale_template&inventory_item_id=<TMPL_VAR NAME=inventory_item_id>"
         target="_blank">Edit</a>
       </TMPL_IF> 
     </td>
    </tr>    
  </table>
  <br>
  <table cellspacing="1" cellpadding="1" border="0" width="90%">
    <tr>
      <td class="soft" valign="top" align="center" rowspan="3" width="2%">
       <input type="radio" name="domain_setting" value="uc" <TMPL_VAR NAME=chk_uc>>
      </td>
      <td colspan="3">
        <b class="header2">Domain Under Construction Template</b>
        <div style="border-top: solid 2px #A6C1E9; margin:3;"></div>
	You may use this option to make visitors aware
	that your web site is under construction. A generic "Under Contruction"
	page will be displayed.
      </td>
    </tr>
  </table>
  <br>
</TMPL_IF>

  <table cellspacing="1" cellpadding="1" border="0" width="90%">
    <tr>
      <td class="soft" valign="top" align="center" rowspan="3" width="2%">
       <input type="radio" name="domain_setting" value="none" <TMPL_VAR NAME=chk_none>>
      </td>
      <td colspan="3">
        <b class="header2">Display Nothing</b>
        <div style="border-top: solid 2px #A6C1E9; margin:3;"></div>
      </td>
    </tr>
  </table>
 
  <br>
  <br>

<TMPL_IF show_forwarding>
  <table cellspacing="1" cellpadding="1" border="0" width="90%">
    <tr>
      <td colspan="4">
        <b class="header2">Subdomain Forwarding</b>
        <div style="border-top: solid 2px #A6C1E9; margin:3;"></div>
	Subdomains are like having extra domain
	forwarding addresses.  With subdomains you can setup
	"anything.yourdomain.com" to go to any web site you wish.
	For example, you may wish to setup a help center for your
	customers and have "help.yourdomain.com" forwarded there.
	The "URL frame" option provides you with the ability to maintain
	your domain name (e.g., help.yourdomain.com) in the browser
	address window no matter what link a person clicks on within
	your Website, instead of the actual address
	(e.g., http://www.somehostingprovider.com/~mysite/123).
      </td>
    </tr>

    <tr>
      <th align="left" width="40%" class="header3">
        Forward
      </th>
      <th align="left" width="40%" class="header3">
        To
      </th>
      <th align="left" width="10%" class="header3">
        URL Frame
      </th>
      <th align="left" width="10%" class="header3">
        Remove
      </th>
    </tr>

  <TMPL_UNLESS subdomain_forward_records>
    <tr>
     <td class="soft" colspan="4" align="center">
       There are no subdomain forwardings defined.
     </td>
    </tr>
  </TMPL_UNLESS>

   <TMPL_LOOP NAME=subdomain_forward_records>
    <tr>
      <td class="<TMPL_VAR NAME=class>">
        <TMPL_VAR NAME=subdomain>
	<TMPL_VAR NAME=prefix>.<TMPL_VAR NAME=name>
	<input type=hidden name="prefix_<TMPL_VAR NAME=id>" value="<TMPL_VAR NAME=prefix>">
      </td>
      <td class="<TMPL_VAR NAME=class>">
        <input name="url_<TMPL_VAR NAME=id>"
                type="text" value="<TMPL_VAR NAME=content>" size=30>
        <input type="hidden" name="orig_url_<TMPL_VAR NAME=id>"
                value="<TMPL_VAR NAME=content>">
      </td>
      <td class="<TMPL_VAR NAME=class>">
	<input type="checkbox" name="subdomain_cloak_<TMPL_VAR NAME=id>" value="1" <TMPL_IF url_cloak>"checked"</TMPL_IF>>
    	<input type="hidden" name="orig_subdomain_cloak_<TMPL_VAR NAME=id>" value="<TMPL_VAR NAME=url_cloak>">
      </td>
      <td class="<TMPL_VAR NAME=class>">
        <input value="1" name="delete_<TMPL_VAR NAME=id>"
         type="checkbox">
      </td>
    </tr>
   </TMPL_LOOP>

    <tr>
      <th align="left" colspan="4" class="header2">
        Add New Subdomain Forwarding
      </th>
    </tr>

    <tr>
      <th align="left" width="40%" class="header3">
        Forward
      </th>
      <th align="left" width="40%" class="header3">
        To
      </th>
      <th align="left" width="20%" class="header3" colspan="2">
        URL Frame
      </th>
    </tr>
   
   <TMPL_LOOP subdomain_forward_add_records>
    <tr>
      <td class="<TMPL_VAR NAME=class>">
        <input name="new_subdomain" type="text" value="<TMPL_VAR NAME=new_subdomain>">
        .<TMPL_VAR NAME=zone_fqdn>
      </td>
      <td class="<TMPL_VAR NAME=class>">
        <input name="new_url" type="text" value="<TMPL_VAR NAME=new_url>" size=30>
      </td>
      <td class="<TMPL_VAR NAME=class>" colspan="2">
        <input value="1" name="new_cloaked" type="checkbox" <TMPL_VAR NAME=new_cloaked>>
      </td>
    </tr>
   </TMPL_LOOP>

  </table>
  <br>
</TMPL_IF>
  <table cellpadding="1" cellspacing="0" border="0" width="90%">
   <tr>
      <td align="center" colspan="3" class="accent">
        <input value="Update Domain Forwarding" id="btnSubmit" type="submit" name="btnSubmit" class="soft">
        <input value=" Cancel " id="btnCancel" type="reset" name="btnCancel" class="soft">
      </td>
   </tr>
  </table>
 </form>

 <br>
 <br>
