<?php /* Smarty version 2.6.28, created on 2017-04-04 23:34:12
         compiled from /home/solusito/public_html/templates/eco-net-v3-5/clientareadomaindns.tpl */ ?>
		<div class="bigheader">
			<h2><?php echo $this->_tpl_vars['LANG']['domaindnsmanagement']; ?>
</h2>
		</div><!-- .bigheader --> 

<div class="table-responsive table-grey">
<table>

<tr>
	<td width="20%"><strong><?php echo $this->_tpl_vars['LANG']['domainname']; ?>
</strong></td>
	<td><?php echo $this->_tpl_vars['domain']; ?>
</td>
</tr>

</table>
</div>

<p><?php echo $this->_tpl_vars['LANG']['domaindnsmanagementdesc']; ?>
</p>


<?php if ($this->_tpl_vars['error']): ?>
	<div class="notice notice-error">
		<div class="inside">
			<p><?php echo $this->_tpl_vars['error']; ?>
</p>
		</div>
	</div>
<?php endif; ?>


<?php if ($this->_tpl_vars['external']): ?>
	<div class="notice notice-error">
		<div class="inside">
			<p><?php echo $this->_tpl_vars['code']; ?>
</p>
		</div>
	</div>
<?php else: ?>

<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>
?action=domaindns">
  <input type="hidden" name="sub" value="save" />
  <input type="hidden" name="domainid" value="<?php echo $this->_tpl_vars['domainid']; ?>
" />
  
  
  <div class="table-responsive table-grey">
  <table>
    <tr>
      <th><?php echo $this->_tpl_vars['LANG']['domaindnshostname']; ?>
</th>
      <th><?php echo $this->_tpl_vars['LANG']['domaindnsrecordtype']; ?>
</th>
      <th><?php echo $this->_tpl_vars['LANG']['domaindnsaddress']; ?>
</th>
      <th><?php echo $this->_tpl_vars['LANG']['domaindnspriority']; ?>
</th>
    </tr>
    <?php $_from = $this->_tpl_vars['dnsrecords']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['num'] => $this->_tpl_vars['dnsrecord']):
?>
    <tr>
      <td><input type="hidden" name="dnsrecid[]" value="<?php echo $this->_tpl_vars['dnsrecord']['recid']; ?>
" /><input type="text" name="dnsrecordhost[]" value="<?php echo $this->_tpl_vars['dnsrecord']['hostname']; ?>
" size="10" /></td>
      <td><select name="dnsrecordtype[]">
          <option value="A"<?php if ($this->_tpl_vars['dnsrecord']['type'] == 'A'): ?> selected="selected"<?php endif; ?>>A (Address)</option>
          <option value="AAAA"<?php if ($this->_tpl_vars['dnsrecord']['type'] == 'AAAA'): ?> selected="selected"<?php endif; ?>>AAAA (Address)</option>
          <option value="MXE"<?php if ($this->_tpl_vars['dnsrecord']['type'] == 'MXE'): ?> selected="selected"<?php endif; ?>>MXE (Mail Easy)</option>
          <option value="MX"<?php if ($this->_tpl_vars['dnsrecord']['type'] == 'MX'): ?> selected="selected"<?php endif; ?>>MX (Mail)</option>
          <option value="CNAME"<?php if ($this->_tpl_vars['dnsrecord']['type'] == 'CNAME'): ?> selected="selected"<?php endif; ?>>CNAME (Alias)</option>
          <option value="TXT"<?php if ($this->_tpl_vars['dnsrecord']['type'] == 'TXT'): ?> selected="selected"<?php endif; ?>>SPF (txt)</option>
          <option value="URL"<?php if ($this->_tpl_vars['dnsrecord']['type'] == 'URL'): ?> selected="selected"<?php endif; ?>>URL Redirect</option>
          <option value="FRAME"<?php if ($this->_tpl_vars['dnsrecord']['type'] == 'FRAME'): ?> selected="selected"<?php endif; ?>>URL Frame</option>
        </select></td>
      <td><input type="text" name="dnsrecordaddress[]" value="<?php echo $this->_tpl_vars['dnsrecord']['address']; ?>
" size="40" /></td>
      <td><?php if ($this->_tpl_vars['dnsrecord']['type'] == 'MX'): ?><input type="text" name="dnsrecordpriority[]" value="<?php echo $this->_tpl_vars['dnsrecord']['priority']; ?>
" size="2" />*<?php else: ?><input type="hidden" name="dnsrecordpriority[]" value="N/A" /><?php echo $this->_tpl_vars['LANG']['domainregnotavailable']; ?>
<?php endif; ?></td>
    </tr>
    <?php endforeach; endif; unset($_from); ?>
    <tr>
      <td><input type="text" name="dnsrecordhost[]" size="10" /></td>
      <td><select name="dnsrecordtype[]">
          <option value="A">A (Address)</option>
          <option value="AAAA">AAAA (Address)</option>
          <option value="MXE">MXE (Mail Easy)</option>
          <option value="MX">MX (Mail)</option>
          <option value="CNAME">CNAME (Alias)</option>
          <option value="TXT">SPF (txt)</option>
          <option value="URL">URL Redirect</option>
          <option value="FRAME">URL Frame</option>
        </select></td>
      <td><input type="text" name="dnsrecordaddress[]" size="40" /></td>
      <td><input type="text" name="dnsrecordpriority[]" size="2" />*</td>
    </tr>
  </table>
  </div>
  
  <p class="center">
    *<small><?php echo $this->_tpl_vars['LANG']['domaindnsmxonly']; ?>
</small><br />
    <input type="submit" value="<?php echo $this->_tpl_vars['LANG']['clientareasavechanges']; ?>
" class="button1 color2" />
  </p>
</form>
<?php endif; ?>

<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>
?action=domaindetails">
  <input type="hidden" name="id" value="<?php echo $this->_tpl_vars['domainid']; ?>
" />
  <div class="floatleft">
    <input type="submit" value="<?php echo $this->_tpl_vars['LANG']['clientareabacklink']; ?>
" class="button1 color1" />
  </div>
  <div class="clear">&nbsp;</div>
</form>