<?php /* Smarty version 2.6.28, created on 2014-11-05 02:07:04
         compiled from /home/vinhostm/public_html/order/templates/portal/clientareadomaincontactinfo.tpl */ ?>
<?php echo '
<script language="javascript">
function usedefaultwhois(id) {
	jQuery("."+id.substr(0,id.length-1)+"customwhois").attr("disabled", true);
	jQuery("."+id.substr(0,id.length-1)+"defaultwhois").attr("disabled", false);
	jQuery(\'#\'+id.substr(0,id.length-1)+\'1\').attr("checked", "checked");
}
function usecustomwhois(id) {
	jQuery("."+id.substr(0,id.length-1)+"customwhois").attr("disabled", false);
	jQuery("."+id.substr(0,id.length-1)+"defaultwhois").attr("disabled", true);
	jQuery(\'#\'+id.substr(0,id.length-1)+\'2\').attr("checked", "checked");
}
</script>
'; ?>

<h2><?php echo $this->_tpl_vars['LANG']['domaincontactinfo']; ?>
</h2>
<p><?php echo $this->_tpl_vars['LANG']['domainname']; ?>
: <strong><?php echo $this->_tpl_vars['domain']; ?>
</strong> <?php $_from = $this->_tpl_vars['contactdetails']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['contacts'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['contacts']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['contactdetail'] => $this->_tpl_vars['values']):
        $this->_foreach['contacts']['iteration']++;
?> <?php if (! ($this->_foreach['contacts']['iteration'] <= 1)): ?> - <a href="clientarea.php?action=domaincontacts#<?php echo $this->_tpl_vars['contactdetail']; ?>
"><?php echo $this->_tpl_vars['LANG']['jumpto']; ?>
 <?php echo $this->_tpl_vars['contactdetail']; ?>
</a><?php endif; ?><?php endforeach; endif; unset($_from); ?>
</p>
<?php if ($this->_tpl_vars['successful']): ?>
<div class="successbox"><?php echo $this->_tpl_vars['LANG']['changessavedsuccessfully']; ?>
</div>
<br />
<?php endif; ?>
<?php if ($this->_tpl_vars['error']): ?>
<div class="errorbox"><?php echo $this->_tpl_vars['error']; ?>
</div>
<br />
<?php endif; ?>
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>
?action=domaincontacts">
  <input type="hidden" name="sub" value="save">
  <input type="hidden" name="domainid" value="<?php echo $this->_tpl_vars['domainid']; ?>
">
  <?php $_from = $this->_tpl_vars['contactdetails']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['contactdetails'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['contactdetails']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['contactdetail'] => $this->_tpl_vars['values']):
        $this->_foreach['contactdetails']['iteration']++;
?>
  <p><strong><a name="<?php echo $this->_tpl_vars['contactdetail']; ?>
"></a><?php echo $this->_tpl_vars['contactdetail']; ?>
</strong><?php if (! ($this->_foreach['contactdetails']['iteration'] <= 1)): ?> - <a href="clientarea.php?action=domaincontacts#"><?php echo $this->_tpl_vars['LANG']['top']; ?>
</a><?php endif; ?></p>
  
<p><input type="radio" name="wc[<?php echo $this->_tpl_vars['contactdetail']; ?>
]" id="<?php echo $this->_tpl_vars['contactdetail']; ?>
1" value="contact" onclick="usedefaultwhois(id)"<?php if ($this->_tpl_vars['defaultns']): ?> checked<?php endif; ?> /> <label for="<?php echo $this->_tpl_vars['contactdetail']; ?>
1"><?php echo $this->_tpl_vars['LANG']['domaincontactusexisting']; ?>
</label></p>
    <table id="<?php echo $this->_tpl_vars['contactdetail']; ?>
defaultwhois">
      <tr>
        <td width="150" align="right"><?php echo $this->_tpl_vars['LANG']['domaincontactchoose']; ?>
</td>
        <td><select name="sel[<?php echo $this->_tpl_vars['contactdetail']; ?>
]" id="<?php echo $this->_tpl_vars['contactdetail']; ?>
3" class="<?php echo $this->_tpl_vars['contactdetail']; ?>
defaultwhois" onclick="usedefaultwhois(id)">
            <option value="u<?php echo $this->_tpl_vars['clientsdetails']['userid']; ?>
"><?php echo $this->_tpl_vars['LANG']['domaincontactprimary']; ?>
</option>
            <?php $_from = $this->_tpl_vars['contacts']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['num'] => $this->_tpl_vars['contact']):
?>
            <option value="c<?php echo $this->_tpl_vars['contact']['id']; ?>
"><?php echo $this->_tpl_vars['contact']['name']; ?>
</option>
            <?php endforeach; endif; unset($_from); ?>
          </select></td>
      </tr>
  </table>
<p><input type="radio" name="wc[<?php echo $this->_tpl_vars['contactdetail']; ?>
]" id="<?php echo $this->_tpl_vars['contactdetail']; ?>
2" value="custom" onclick="usecustomwhois(id)"<?php if (! $this->_tpl_vars['defaultns']): ?> checked<?php endif; ?> /> <label for="<?php echo $this->_tpl_vars['contactdetail']; ?>
2"><?php echo $this->_tpl_vars['LANG']['domaincontactusecustom']; ?>
</label></p>
  <table width="100%" border="0" cellpadding="10" cellspacing="0" id="<?php echo $this->_tpl_vars['contactdetail']; ?>
customwhois">
    <?php $_from = $this->_tpl_vars['values']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['name'] => $this->_tpl_vars['value']):
?>
    <tr>
      <td width="150" align="right"><?php echo $this->_tpl_vars['name']; ?>
</td>
      <td><input type="text" name="contactdetails[<?php echo $this->_tpl_vars['contactdetail']; ?>
][<?php echo $this->_tpl_vars['name']; ?>
]" value="<?php echo $this->_tpl_vars['value']; ?>
" size="30" class="<?php echo $this->_tpl_vars['contactdetail']; ?>
customwhois" /></td>
    </tr>
    <?php endforeach; endif; unset($_from); ?>
  </table>
  <?php endforeach; endif; unset($_from); ?>
  <p align="center">
    <input type="submit" value="<?php echo $this->_tpl_vars['LANG']['clientareasavechanges']; ?>
">
  </p>
</form>
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>
?action=domaindetails">
  <input type="hidden" name="id" value="<?php echo $this->_tpl_vars['domainid']; ?>
" />
  <p align="center">
    <input type="submit" value="<?php echo $this->_tpl_vars['LANG']['clientareabacklink']; ?>
" />
  </p>
</form><br />