<?php /* Smarty version 2.6.28, created on 2017-04-01 23:39:50
         compiled from /home/solusito/public_html/modules/servers/gogetssl/templates/manage_validation.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'replace', '/home/solusito/public_html/modules/servers/gogetssl/templates/manage_validation.tpl', 48, false),array('modifier', 'explode', '/home/solusito/public_html/modules/servers/gogetssl/templates/manage_validation.tpl', 53, false),)), $this); ?>
<h2>
	<?php echo $this->_tpl_vars['LANG']['gogetssl_manage_validation_for']; ?>
 <?php echo $this->_tpl_vars['goget_order']['domain']; ?>

</h2>
<form action="" method="POST">
	<?php if ($this->_tpl_vars['goget_product']['product_brand'] == 'comodo'): ?>
	<div class="row-fluid">
		<div class="span3">
			<input type="radio" name="validation_method" id="validation_email" value="email" <?php if ($this->_tpl_vars['goget_order']['dcv_method'] == 'email'): ?>checked<?php endif; ?>>
			<label for="validation_email"><?php echo $this->_tpl_vars['LANG']['gogetssl_email_validation']; ?>
</label>
		</div>
		<div class="span3">
			<input type="radio" name="validation_method" id="validation_dns" value="dns" <?php if ($this->_tpl_vars['goget_order']['dcv_method'] == 'dns'): ?>checked<?php endif; ?>>
			<label for="validation_dns"><?php echo $this->_tpl_vars['LANG']['gogetssl_dns_validation']; ?>
</label>
		</div>
        <div class="span3">
            <input type="radio" name="validation_method" id="validation_http" value="http" <?php if ($this->_tpl_vars['goget_order']['dcv_method'] == 'http'): ?>checked<?php endif; ?>>
            <label for="validation_http"><?php echo $this->_tpl_vars['LANG']['gogetssl_http_validation']; ?>
</label>
        </div>
        <div class="span3">
            <input type="radio" name="validation_method" id="validation_https" value="https" <?php if ($this->_tpl_vars['goget_order']['dcv_method'] == 'https'): ?>checked<?php endif; ?>>
            <label for="validation_https"><?php echo $this->_tpl_vars['LANG']['gogetssl_https_validation']; ?>
</label>
        </div>
	</div>
	<br/>
	<?php endif; ?>
	
	<fieldset class="onecol"<?php if ($this->_tpl_vars['goget_product']['product_brand'] == 'comodo'): ?> id="validation_email_fields" style="display: none;"<?php endif; ?>>
	
		<div class="control-group">
			<label class="control-label" for="approver_email"><?php echo $this->_tpl_vars['LANG']['gogetssl_approver_email']; ?>
</label>
			<div class="controls">
				<select name="approver_email" id="approver_email">
				<option value="" selected disabled><?php echo $this->_tpl_vars['LANG']['pleasechooseone']; ?>
</option>
					<?php $_from = $this->_tpl_vars['goget_approver_emails']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['email_id'] => $this->_tpl_vars['email_value']):
?><option value="<?php echo $this->_tpl_vars['email_value']; ?>
"<?php if ($this->_tpl_vars['goget_order']['approver_email'] == $this->_tpl_vars['email_value']): ?> selected<?php endif; ?>><?php echo $this->_tpl_vars['email_value']; ?>
</option><?php endforeach; endif; unset($_from); ?>
				</select>
			</div>
		</div>

	</fieldset>
	
	<?php if ($this->_tpl_vars['goget_product']['product_brand'] == 'comodo'): ?>
	<fieldset class="onecol" id="validation_dns_fields" style="display: none;">
		
		<?php if ($this->_tpl_vars['goget_order']['dcv_method'] == 'dns'): ?>	
			<div class="control-group">
				<label class="control-label"><?php if ($this->_tpl_vars['goget_order']['domains'] != ''): ?><?php echo $this->_tpl_vars['LANG']['gogetssl_dns_record_for']; ?>
 <?php echo $this->_tpl_vars['goget_order']['domain']; ?>
<?php else: ?><?php echo $this->_tpl_vars['LANG']['gogetssl_dns_record']; ?>
<?php endif; ?></label>
				<div class="controls">
					<input type="text" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['goget_order']['approver_method']['dns']['record'])) ? $this->_run_mod_handler('replace', true, $_tmp, 'itriga.com', $this->_tpl_vars['goget_order']['domain']) : smarty_modifier_replace($_tmp, 'itriga.com', $this->_tpl_vars['goget_order']['domain'])); ?>
" />
				</div>
			</div>
			
			<?php if ($this->_tpl_vars['goget_order']['domains'] != ''): ?>
				<?php $this->assign('domains', ((is_array($_tmp=',')) ? $this->_run_mod_handler('explode', true, $_tmp, $this->_tpl_vars['goget_order']['domains']) : explode($_tmp, $this->_tpl_vars['goget_order']['domains']))); ?>
				
				<?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']):
?>
					<div class="control-group">
						<label class="control-label"><?php echo $this->_tpl_vars['LANG']['gogetssl_dns_record_for']; ?>
 <?php echo $this->_tpl_vars['domain']; ?>
</label>
						<div class="controls">
							<input type="text" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['goget_order']['approver_method']['dns']['record'])) ? $this->_run_mod_handler('replace', true, $_tmp, 'itriga.com', $this->_tpl_vars['domain']) : smarty_modifier_replace($_tmp, 'itriga.com', $this->_tpl_vars['domain'])); ?>
" />
						</div>
					</div>
				<?php endforeach; endif; unset($_from); ?>
			<?php endif; ?>
		<?php else: ?>
			<center><?php echo $this->_tpl_vars['LANG']['gogetssl_click_continue']; ?>
</center><br/>
		<?php endif; ?>
		
	</fieldset>

	<fieldset class="onecol" id="validation_http_fields" style="display: none;">

		<?php if ($this->_tpl_vars['goget_order']['dcv_method'] == 'http'): ?>
			<?php if ($this->_tpl_vars['goget_order']['domains'] != ''): ?>
				<center><strong><?php echo $this->_tpl_vars['LANG']['gogetssl_file_details_for']; ?>
 <?php echo $this->_tpl_vars['goget_order']['domain']; ?>
</strong></center><br/>
			<?php endif; ?>

			<div class="control-group">
				<label class="control-label"><?php echo $this->_tpl_vars['LANG']['gogetssl_file_url']; ?>
</label>
				<div class="controls">
					<input type="text" value="http://<?php echo $this->_tpl_vars['goget_order']['domain']; ?>
/<?php echo ((is_array($_tmp=$this->_tpl_vars['goget_order']['approver_method']['http']['link'])) ? $this->_run_mod_handler('replace', true, $_tmp, 'http://itriga.com/', '') : smarty_modifier_replace($_tmp, 'http://itriga.com/', '')); ?>
" />
				</div>
			</div>
			<div class="control-group">
				<label class="control-label"><?php echo $this->_tpl_vars['LANG']['gogetssl_file_name']; ?>
</label>
				<div class="controls">
					<input type="text" value="<?php echo $this->_tpl_vars['goget_order']['approver_method']['http']['filename']; ?>
" />
				</div>
			</div>
			<div class="control-group">
				<label class="control-label"><?php echo $this->_tpl_vars['LANG']['gogetssl_file_content']; ?>
</label>
				<div class="controls">
					<textarea style="width: 300px; height: 36px;"><?php echo $this->_tpl_vars['goget_order']['approver_method']['http']['content']; ?>
</textarea>
				</div>
			</div>

			<?php if ($this->_tpl_vars['goget_order']['domains'] != ''): ?>
				<?php $this->assign('domains', ((is_array($_tmp=',')) ? $this->_run_mod_handler('explode', true, $_tmp, $this->_tpl_vars['goget_order']['domains']) : explode($_tmp, $this->_tpl_vars['goget_order']['domains']))); ?>

				<?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']):
?>
					<br/><center><strong><?php echo $this->_tpl_vars['LANG']['gogetssl_file_details_for']; ?>
 <?php echo $this->_tpl_vars['domain']; ?>
</strong></center><br/>

					<div class="control-group">
						<label class="control-label"><?php echo $this->_tpl_vars['LANG']['gogetssl_file_url']; ?>
</label>
						<div class="controls">
							<input type="text" value="http://<?php echo $this->_tpl_vars['domain']; ?>
/<?php echo ((is_array($_tmp=$this->_tpl_vars['goget_order']['approver_method']['http']['link'])) ? $this->_run_mod_handler('replace', true, $_tmp, 'http://itriga.com/', '') : smarty_modifier_replace($_tmp, 'http://itriga.com/', '')); ?>
" />
						</div>
					</div>
					<div class="control-group">
						<label class="control-label"><?php echo $this->_tpl_vars['LANG']['gogetssl_file_name']; ?>
</label>
						<div class="controls">
							<input type="text" value="<?php echo $this->_tpl_vars['goget_order']['approver_method']['http']['filename']; ?>
" />
						</div>
					</div>
					<div class="control-group">
						<label class="control-label"><?php echo $this->_tpl_vars['LANG']['gogetssl_file_content']; ?>
</label>
						<div class="controls">
							<textarea style="width: 300px; height: 36px;"><?php echo $this->_tpl_vars['goget_order']['approver_method']['http']['content']; ?>
</textarea>
						</div>
					</div>

				<?php endforeach; endif; unset($_from); ?>
			<?php endif; ?>
		<?php else: ?>
			<center><?php echo $this->_tpl_vars['LANG']['gogetssl_click_continue']; ?>
</center><br/>
		<?php endif; ?>

	</fieldset>

    <fieldset class="onecol" id="validation_https_fields" style="display: none;">

        <?php if ($this->_tpl_vars['goget_order']['dcv_method'] == 'https'): ?>
            <?php if ($this->_tpl_vars['goget_order']['domains'] != ''): ?>
                <center><strong><?php echo $this->_tpl_vars['LANG']['gogetssl_file_details_for']; ?>
 <?php echo $this->_tpl_vars['goget_order']['domain']; ?>
</strong></center><br/>
            <?php endif; ?>

            <div class="control-group">
                <label class="control-label"><?php echo $this->_tpl_vars['LANG']['gogetssl_file_url']; ?>
</label>
                <div class="controls">
                    <input type="text" value="https://<?php echo $this->_tpl_vars['goget_order']['domain']; ?>
/<?php echo ((is_array($_tmp=$this->_tpl_vars['goget_order']['approver_method']['https']['link'])) ? $this->_run_mod_handler('replace', true, $_tmp, 'https://itriga.com/', '') : smarty_modifier_replace($_tmp, 'https://itriga.com/', '')); ?>
" />
                </div>
            </div>
            <div class="control-group">
                <label class="control-label"><?php echo $this->_tpl_vars['LANG']['gogetssl_file_name']; ?>
</label>
                <div class="controls">
                    <input type="text" value="<?php echo $this->_tpl_vars['goget_order']['approver_method']['https']['filename']; ?>
" />
                </div>
            </div>
            <div class="control-group">
                <label class="control-label"><?php echo $this->_tpl_vars['LANG']['gogetssl_file_content']; ?>
</label>
                <div class="controls">
                    <textarea style="width: 300px; height: 36px;"><?php echo $this->_tpl_vars['goget_order']['approver_method']['https']['content']; ?>
</textarea>
                </div>
            </div>

            <?php if ($this->_tpl_vars['goget_order']['domains'] != ''): ?>
                <?php $this->assign('domains', ((is_array($_tmp=',')) ? $this->_run_mod_handler('explode', true, $_tmp, $this->_tpl_vars['goget_order']['domains']) : explode($_tmp, $this->_tpl_vars['goget_order']['domains']))); ?>

                <?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']):
?>
                    <br/><center><strong><?php echo $this->_tpl_vars['LANG']['gogetssl_file_details_for']; ?>
 <?php echo $this->_tpl_vars['domain']; ?>
</strong></center><br/>

                    <div class="control-group">
                        <label class="control-label"><?php echo $this->_tpl_vars['LANG']['gogetssl_file_url']; ?>
</label>
                        <div class="controls">
                            <input type="text" value="https://<?php echo $this->_tpl_vars['domain']; ?>
/<?php echo ((is_array($_tmp=$this->_tpl_vars['goget_order']['approver_method']['https']['link'])) ? $this->_run_mod_handler('replace', true, $_tmp, 'https://itriga.com/', '') : smarty_modifier_replace($_tmp, 'https://itriga.com/', '')); ?>
" />
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label"><?php echo $this->_tpl_vars['LANG']['gogetssl_file_name']; ?>
</label>
                        <div class="controls">
                            <input type="text" value="<?php echo $this->_tpl_vars['goget_order']['approver_method']['https']['filename']; ?>
" />
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label"><?php echo $this->_tpl_vars['LANG']['gogetssl_file_content']; ?>
</label>
                        <div class="controls">
                            <textarea style="width: 300px; height: 36px;"><?php echo $this->_tpl_vars['goget_order']['approver_method']['https']['content']; ?>
</textarea>
                        </div>
                    </div>

                <?php endforeach; endif; unset($_from); ?>
            <?php endif; ?>
        <?php else: ?>
            <center><?php echo $this->_tpl_vars['LANG']['gogetssl_click_continue']; ?>
</center><br/>
        <?php endif; ?>

    </fieldset>
	<?php endif; ?>
	
	<p align="center"><a class="btn" href="clientarea.php?action=productdetails&id=<?php echo $_GET['id']; ?>
"> <?php echo $this->_tpl_vars['LANG']['gogetssl_go_back']; ?>
</a>&nbsp;<input type="submit" name="submit" value="<?php echo $this->_tpl_vars['LANG']['ordercontinuebutton']; ?>
" class="btn btn-primary" /></p>
</form>

<?php if ($this->_tpl_vars['goget_product']['product_brand'] == 'comodo'): ?>
<?php echo '
<script>
$(function() {
    $(\'input[name=validation_method]\').change(function() {
		$(\'.onecol\').hide();
		$(\'#\' + $(this).attr(\'id\') + \'_fields\').show();
    });
		
	$(\'#\' + $(\'input[name=validation_method]:checked\').attr(\'id\') + \'_fields\').show();
});
</script>
'; ?>

<?php endif; ?>