<?php /* Smarty version 2.6.28, created on 2019-08-20 13:50:36
         compiled from /home/solusito/public_html/templates/eco-net-v3-5/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'): ?>

		<div class="bigheader">
			<h2><?php echo $this->_tpl_vars['LANG']['domainmanagens']; ?>
</h2>
		</div><!-- .bigheader -->

<?php if ($this->_tpl_vars['save']): ?>
    <?php if ($this->_tpl_vars['errors']): ?>
        <?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']):
?>
			<div class="notice notice-error">
				<div class="inside">
					<p><?php echo $this->_tpl_vars['error']; ?>
</p>
				</div>
			</div>
        <?php endforeach; endif; unset($_from); ?>
    <?php else: ?>
			<div class="notice notice-success">
				<div class="inside">
					<p><?php echo $this->_tpl_vars['LANG']['changessavedsuccessfully']; ?>
</p>
				</div>
			</div>
    <?php endif; ?>
<?php endif; ?>

<p><?php echo $this->_tpl_vars['LANG']['domainbulkmanagementchangesaffect']; ?>
</p>

<ul class="checklist">
<?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']):
?>
<li><?php echo $this->_tpl_vars['domain']; ?>
</li>
<?php endforeach; endif; unset($_from); ?>
</ul>

<?php echo '<script language="javascript">
function usedefaultns() {
    jQuery(".domnsinputs").attr("disabled", true);
}
function usecustomns() {
    jQuery(".domnsinputs").removeAttr("disabled");
}
</script>'; ?>


	<div class="feildset">
		
			<div class="col1">
			
				<div>
					<label>
						<input type="radio" name="nschoice" value="default" id="nschoicedefault" onclick="usedefaultns()" checked /> <label for="nschoicedefault"><?php echo $this->_tpl_vars['LANG']['nschoicedefault']; ?>
</label>
					</label>
				</div>
				
				<div>
					<label>
						<input type="radio" name="nschoice" value="custom" id="nschoicecustom" onclick="usecustomns()" checked /> <label for="nschoicecustom"><?php echo $this->_tpl_vars['LANG']['nschoicecustom']; ?>
</label>
					</label>
				</div>		
			
			</div>
			
	</div>


		<div class="feildset">
		
			<div class="col1">
		
				<div>
					<label>
						<span><?php echo $this->_tpl_vars['LANG']['domainnameserver1']; ?>
:</span>
						<input type="text" name="ns1" value="<?php echo $this->_tpl_vars['ns1']; ?>
" class="domnsinputs" placeholder="<?php echo $this->_tpl_vars['LANG']['domains_nameserver1']; ?>
" />
					</label>
				</div>
				
				<div>
					<label>
						<span><?php echo $this->_tpl_vars['LANG']['domainnameserver2']; ?>
:</span>
						<input type="text" name="ns2" value="<?php echo $this->_tpl_vars['ns2']; ?>
" class="domnsinputs" placeholder="<?php echo $this->_tpl_vars['LANG']['domains_nameserver2']; ?>
" />
					</label>
				</div>
				
				<div>
					<label>
						<span><?php echo $this->_tpl_vars['LANG']['domainnameserver3']; ?>
:</span>
						<input type="text" name="ns3" value="<?php echo $this->_tpl_vars['ns3']; ?>
" class="domnsinputs" placeholder="<?php echo $this->_tpl_vars['LANG']['domains_nameserver3']; ?>
" />
					</label>
				</div>								
				
				<div>
					<label>
						<span><?php echo $this->_tpl_vars['LANG']['domainnameserver4']; ?>
:</span>
						<input type="text" name="ns4" value="<?php echo $this->_tpl_vars['ns4']; ?>
" size="40" class="domnsinputs" placeholder="<?php echo $this->_tpl_vars['LANG']['domains_nameserver4']; ?>
" />
					</label>
				</div>
				
				
				<div>
					<label>
						<span><?php echo $this->_tpl_vars['LANG']['domainnameserver5']; ?>
:</span>
						<input type="text" name="ns5" value="<?php echo $this->_tpl_vars['ns5']; ?>
" size="40" class="domnsinputs" placeholder="<?php echo $this->_tpl_vars['LANG']['domains_nameserver5']; ?>
" />
					</label>
				</div>				
				
			  
			  </div>
		
		</div>

<p class="center"><input type="submit" value="<?php echo $this->_tpl_vars['LANG']['clientareasavechanges']; ?>
" class="button1 color1" /></p>

<?php elseif ($this->_tpl_vars['update'] == 'autorenew'): ?>

		<div class="bigheader">
			<h2><?php echo $this->_tpl_vars['LANG']['domainautorenewstatus']; ?>
</h2>
		</div><!-- .bigheader -->

<?php if ($this->_tpl_vars['save']): ?>
			<div class="notice notice-success">
				<div class="inside">
					<p><?php echo $this->_tpl_vars['LANG']['changessavedsuccessfully']; ?>
</p>
				</div>
			</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>

<ul class="checklist">
<?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']):
?>
<li><?php echo $this->_tpl_vars['domain']; ?>
</li>
<?php endforeach; endif; unset($_from); ?>
</ul>

<p class="center">
<input type="submit" name="enable" value="<?php echo $this->_tpl_vars['LANG']['domainsautorenewenable']; ?>
" class="buttongo button1 color2" />
<input type="submit" name="disable" value="<?php echo $this->_tpl_vars['LANG']['domainsautorenewdisable']; ?>
" class="buttonwarn button1 color1" />
</p>

<?php elseif ($this->_tpl_vars['update'] == 'reglock'): ?>

		<div class="bigheader">
			<h2><?php echo $this->_tpl_vars['LANG']['domainreglockstatus']; ?>
</h2>
		</div><!-- .bigheader -->

<?php if ($this->_tpl_vars['save']): ?>
    <?php if ($this->_tpl_vars['errors']): ?>   
    
        <?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']):
?>
        
        <div class="notice notice-error">
				<div class="inside">
           		 <?php echo $this->_tpl_vars['error']; ?>

            	</div>
        	</div>
        <?php endforeach; endif; unset($_from); ?>		
        
    <?php else: ?>
    
        <div class="notice notice-success">
				<div class="inside">
           		 <?php echo $this->_tpl_vars['LANG']['changessavedsuccessfully']; ?>

            	</div>
        	</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>

<ul class="checklist">
<?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']):
?>
<li><?php echo $this->_tpl_vars['domain']; ?>
</li>
<?php endforeach; endif; unset($_from); ?>
</ul>

<p class="center">
<input type="submit" name="enable" value="<?php echo $this->_tpl_vars['LANG']['domainreglockenable']; ?>
" class="buttongo button1 color1" /> <input type="submit" name="disable" value="<?php echo $this->_tpl_vars['LANG']['domainreglockdisable']; ?>
" class="buttonwarn button1 color2" />
</p>

<?php elseif ($this->_tpl_vars['update'] == 'contactinfo'): ?>

		<div class="bigheader">
			<h2><?php echo $this->_tpl_vars['LANG']['domaincontactinfoedit']; ?>
</h2>
		</div><!-- .bigheader -->

<?php if ($this->_tpl_vars['save']): ?>
    <?php if ($this->_tpl_vars['errors']): ?>
    
    <?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']):
?>
    
        <div class="notice notice-error">
				<div class="inside">
           		 <?php echo $this->_tpl_vars['error']; ?>

            	</div>
        	</div>    
    
    <?php endforeach; endif; unset($_from); ?>
        
    <?php else: ?>
    
        <div class="notice notice-success">
				<div class="inside">
           		 <?php echo $this->_tpl_vars['LANG']['changessavedsuccessfully']; ?>

            	</div>
        	</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>

<ul class="checklist">
<?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']):
?>
<li><?php echo $this->_tpl_vars['domain']; ?>
</li>
<?php endforeach; endif; unset($_from); ?>
</ul>

<?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="notice notice-error">
				<div class="inside">
           		 <?php echo $this->_tpl_vars['LANG']['domainbulkmanagementnotpossible']; ?>

            	</div>
        	</div>   

<?php endif; unset($_from); ?>

<p class="center"><input type="submit" value="<?php echo $this->_tpl_vars['LANG']['clientareasavechanges']; ?>
" class="buttonwarn button1 color1" /></p>

<?php endif; ?>

</form>