<?php /* Smarty version 2.6.28, created on 2016-10-11 05:30:15
         compiled from /home/vinhostm/public_html/order/templates/portal/bulkdomainmanagement.tpl */ ?>
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>
?action=bulkdomain">
<input type="hidden" name="update" value="<?php echo $this->_tpl_vars['update']; ?>
">
<input type="hidden" name="save" value="1">
<?php $_from = $this->_tpl_vars['domainids']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['domainid']):
?>
<input type="hidden" name="domids[]" value="<?php echo $this->_tpl_vars['domainid']; ?>
" />
<?php endforeach; endif; unset($_from); ?>

<?php if ($this->_tpl_vars['update'] == 'nameservers'): ?>

<h2><?php echo $this->_tpl_vars['LANG']['domainmanagens']; ?>
</h2>

<?php if ($this->_tpl_vars['save']): ?>
    <?php if ($this->_tpl_vars['errors']): ?>
        <div class="errorbox">
        <?php $_from = $this->_tpl_vars['errors']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['error']):
?>
            <?php echo $this->_tpl_vars['error']; ?>
<br />
        <?php endforeach; endif; unset($_from); ?>
        </div>
    <?php else: ?>
        <div class="successbox"><?php echo $this->_tpl_vars['LANG']['changessavedsuccessfully']; ?>
</div>
    <?php endif; ?>
<?php endif; ?>

<p><?php echo $this->_tpl_vars['LANG']['domainbulkmanagementchangesaffect']; ?>
</p>

<blockquote>
<?php $_from = $this->_tpl_vars['domains']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['domain']):
?>
&raquo; <?php echo $this->_tpl_vars['domain']; ?>
<br />
<?php endforeach; endif; unset($_from); ?>
</blockquote>

<?php echo '<script language="javascript">
function usedefaultns() {
    jQuery(".domnsinputs").attr("disabled", true);
}
function usecustomns() {
    jQuery(".domnsinputs").removeAttr("disabled");
}
</script>'; ?>


<p><input type="radio" name="nschoice" value="default" id="nschoicedefault" onclick="usedefaultns()" checked /> <label for="nschoicedefault"><?php echo $this->_tpl_vars['LANG']['nschoicedefault']; ?>
</label><br />
<input type="radio" name="nschoice" value="custom" id="nschoicecustom" onclick="usecustomns()" checked /> <label for="nschoicecustom"><?php echo $this->_tpl_vars['LANG']['nschoicecustom']; ?>
</label></p>

<table cellspacing="1" cellpadding="0" class="frame"><tr><td>
<table width="100%" cellpadding="2">
<tr><td class="fieldarea" width="150"><?php echo $this->_tpl_vars['LANG']['domainnameserver1']; ?>
:</td><td><input type="text" name="ns1" value="<?php echo $this->_tpl_vars['ns1']; ?>
" size="40" class="domnsinputs" /></td></tr>
<tr><td class="fieldarea"><?php echo $this->_tpl_vars['LANG']['domainnameserver2']; ?>
:</td><td><input type="text" name="ns2" value="<?php echo $this->_tpl_vars['ns2']; ?>
" size="40" class="domnsinputs" /></td></tr>
<tr><td class="fieldarea"><?php echo $this->_tpl_vars['LANG']['domainnameserver3']; ?>
:</td><td><input type="text" name="ns3" value="<?php echo $this->_tpl_vars['ns3']; ?>
" size="40" class="domnsinputs" /></td></tr>
<tr><td class="fieldarea"><?php echo $this->_tpl_vars['LANG']['domainnameserver4']; ?>
:</td><td><input type="text" name="ns4" value="<?php echo $this->_tpl_vars['ns4']; ?>
" size="40" class="domnsinputs" /></td></tr>
<tr><td class="fieldarea"><?php echo $this->_tpl_vars['LANG']['domainnameserver5']; ?>
:</td><td><input type="text" name="ns5" value="<?php echo $this->_tpl_vars['ns5']; ?>
" size="40" class="domnsinputs" /></td></tr>
</table>
</td></tr></table>

<p align="center"><input type="submit" value="<?php echo $this->_tpl_vars['LANG']['clientareasavechanges']; ?>
" class="buttongo" /></p>

<?php elseif ($this->_tpl_vars['update'] == 'autorenew'): ?>

<h2><?php echo $this->_tpl_vars['LANG']['domainautorenewstatus']; ?>
</h2>

<?php if ($this->_tpl_vars['save']): ?>
    <div class="successbox"><?php echo $this->_tpl_vars['LANG']['changessavedsuccessfully']; ?>
</div>
<?php endif; ?>

<p><?php echo $this->_tpl_vars['LANG']['domainautorenewinfo']; ?>
</p>
<p><?php echo $this->_tpl_vars['LANG']['domainautorenewrecommend']; ?>
</p>

<p><?php echo $this->_tpl_vars['LANG']['domainbulkmanagementaffect']; ?>
</p>

<blockquote>
<?php $_from = $this->_tpl_vars['domains']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['domain']):
?>
&raquo; <?php echo $this->_tpl_vars['domain']; ?>
<br />
<?php endforeach; endif; unset($_from); ?>
</blockquote>

<br />

<p align="center"><input type="submit" name="enable" value="<?php echo $this->_tpl_vars['LANG']['domainsautorenewenable']; ?>
" class="buttongo" /> &nbsp;&nbsp;&nbsp;&nbsp; <input type="submit" name="disable" value="<?php echo $this->_tpl_vars['LANG']['domainsautorenewdisable']; ?>
" class="buttonwarn" /></p>

<?php elseif ($this->_tpl_vars['update'] == 'reglock'): ?>

<h2><?php echo $this->_tpl_vars['LANG']['domainreglockstatus']; ?>
</h2>

<?php if ($this->_tpl_vars['save']): ?>
    <?php if ($this->_tpl_vars['errors']): ?>
        <div class="errorbox">
        <?php $_from = $this->_tpl_vars['errors']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['error']):
?>
            <?php echo $this->_tpl_vars['error']; ?>
<br />
        <?php endforeach; endif; unset($_from); ?>
        </div>
    <?php else: ?>
        <div class="successbox"><?php echo $this->_tpl_vars['LANG']['changessavedsuccessfully']; ?>
</div>
    <?php endif; ?>
<?php endif; ?>

<p><?php echo $this->_tpl_vars['LANG']['domainreglockinfo']; ?>
</p>
<p><?php echo $this->_tpl_vars['LANG']['domainreglockrecommend']; ?>
</p>

<p><?php echo $this->_tpl_vars['LANG']['domainbulkmanagementaffect']; ?>
</p>

<blockquote>
<?php $_from = $this->_tpl_vars['domains']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['domain']):
?>
&raquo; <?php echo $this->_tpl_vars['domain']; ?>
<br />
<?php endforeach; endif; unset($_from); ?>
</blockquote>

<br />

<p align="center"><input type="submit" name="enable" value="<?php echo $this->_tpl_vars['LANG']['domainreglockenable']; ?>
" class="buttongo" /> &nbsp;&nbsp;&nbsp;&nbsp; <input type="submit" name="disable" value="<?php echo $this->_tpl_vars['LANG']['domainreglockdisable']; ?>
" class="buttonwarn" /></p>

<?php elseif ($this->_tpl_vars['update'] == 'contactinfo'): ?>

<h2><?php echo $this->_tpl_vars['LANG']['domaincontactinfoedit']; ?>
</h2>

<?php if ($this->_tpl_vars['save']): ?>
    <?php if ($this->_tpl_vars['errors']): ?>
        <div class="errorbox">
        <?php $_from = $this->_tpl_vars['errors']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['error']):
?>
            <?php echo $this->_tpl_vars['error']; ?>
<br />
        <?php endforeach; endif; unset($_from); ?>
        </div>
    <?php else: ?>
        <div class="successbox"><?php echo $this->_tpl_vars['LANG']['changessavedsuccessfully']; ?>
</div>
    <?php endif; ?>
<?php endif; ?>

<?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>
'; ?>


<p><?php echo $this->_tpl_vars['LANG']['domainbulkmanagementchangesaffect']; ?>
</p>

<blockquote>
<?php $_from = $this->_tpl_vars['domains']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['domain']):
?>
&raquo; <?php echo $this->_tpl_vars['domain']; ?>
<br />
<?php endforeach; endif; unset($_from); ?>
</blockquote>

<?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)): ?><?php $_from = $this->_tpl_vars['contactdetails']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['contactsx'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['contactsx']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['contactdetailx'] => $this->_tpl_vars['valuesx']):
        $this->_foreach['contactsx']['iteration']++;
?><?php if (! ($this->_foreach['contactsx']['iteration'] <= 1)): ?> - <a href="clientarea.php?action=bulkdomain#<?php echo $this->_tpl_vars['contactdetailx']; ?>
"><?php echo $this->_tpl_vars['LANG']['jumpto']; ?>
 <?php echo $this->_tpl_vars['contactdetailx']; ?>
</a><?php endif; ?><?php endforeach; endif; unset($_from); ?><?php else: ?> - <a href="clientarea.php?action=bulkdomain#"><?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)" /> <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 class="<?php echo $this->_tpl_vars['contactdetail']; ?>
defaultwhois" name="sel[<?php echo $this->_tpl_vars['contactdetail']; ?>
]" id="<?php echo $this->_tpl_vars['contactdetail']; ?>
3" 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)" checked /> <label for="<?php echo $this->_tpl_vars['contactdetail']; ?>
2"><?php echo $this->_tpl_vars['LANG']['domaincontactusecustom']; ?>
</label></p>

<table width="100%">
<?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; else: ?>

<div class="errorbox">
    <?php echo $this->_tpl_vars['LANG']['domainbulkmanagementnotpossible']; ?>

</div>

<?php endif; unset($_from); ?>

<p align="center"><input type="submit" value="<?php echo $this->_tpl_vars['LANG']['clientareasavechanges']; ?>
" class="buttongo" /></p>

<?php endif; ?>

<br /><br />

</form>