<?php /* Smarty version 2.6.28, created on 2017-04-01 18:33:15
         compiled from /home/solusito/public_html/templates/eco-net-v3-5/configuressl-stepone.tpl */ ?>
<?php if (! $this->_tpl_vars['status']): ?>

    <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template'])."/includes/alert.tpl", 'smarty_include_vars' => array('type' => 'warning','msg' => $this->_tpl_vars['LANG']['sslinvalidlink'],'textcenter' => true)));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

    <p class="text-center"><input type="button" value="<?php echo $this->_tpl_vars['LANG']['clientareabacklink']; ?>
" onclick="history.go(-1)" class="btn btn-primary" /></p>

<?php else: ?>

    <?php if ($this->_tpl_vars['errormessage']): ?>
        <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template'])."/includes/alert.tpl", 'smarty_include_vars' => array('type' => 'error','errorshtml' => $this->_tpl_vars['errormessage'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
    <?php endif; ?>

    <?php if ($this->_tpl_vars['status'] == 'Awaiting Configuration'): ?>

        <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>
?cert=<?php echo $this->_tpl_vars['cert']; ?>
&step=2">

            <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template'])."/includes/subheader.tpl", 'smarty_include_vars' => array('title' => $this->_tpl_vars['LANG']['sslserverinfo'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

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

            <?php if (! $this->_tpl_vars['gogetssl_reissue']): ?>
                <div class="form-group">
                    <label for="orderType">Order Type</label>                     <div class="controls">
                        <select name="orderType" id="orderType" class="form-control">
                            <option value="new" selected>New order</option>
                                                    </select>
                    </div>
                </div>
            <?php endif; ?>

            <div class="form-group">
                <label for="hashing">Hashing Algorythm</label>                 <div class="controls">
                    <select name="hashing" id="hashing" class="form-control">
                        <option value="SHA2" selected>SHA2</option>
                    </select>
                </div>
            </div>

            <div class="form-group">
                <label for="ServerType"><?php echo $this->_tpl_vars['LANG']['sslservertype']; ?>
</label>
                 <label class="control-label" for="servertype"><?php echo $this->_tpl_vars['LANG']['sslservertype']; ?>
</label>
                    <div class="controls">
                        <select name="servertype" id="servertype">
                            <option value="" selected><?php echo $this->_tpl_vars['LANG']['pleasechooseone']; ?>
</option>
                            <?php $_from = $this->_tpl_vars['webservertypes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['webservertypeid'] => $this->_tpl_vars['webservertype']):
?><option value="<?php echo $this->_tpl_vars['webservertypeid']; ?>
"<?php if ($this->_tpl_vars['servertype'] == $this->_tpl_vars['webservertypeid']): ?> selected<?php endif; ?>><?php echo $this->_tpl_vars['webservertype']; ?>
</option><?php endforeach; endif; unset($_from); ?>
                        </select>
                    </div>
            </div>

            <div class="form-group">
                <label for="inputCsr"><?php echo $this->_tpl_vars['LANG']['sslcsr']; ?>
</label>
                <textarea name="csr" id="inputCsr" rows="7" class="form-control"><?php if ($this->_tpl_vars['csr']): ?><?php echo $this->_tpl_vars['csr']; ?>
<?php else: ?>-----BEGIN CERTIFICATE REQUEST-----
-----END CERTIFICATE REQUEST-----<?php endif; ?></textarea>
            </div>

            <?php $_from = $this->_tpl_vars['additionalfields']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['heading'] => $this->_tpl_vars['fields']):
?>
                <p><strong><?php echo $this->_tpl_vars['heading']; ?>
</strong></p>
                <fieldset class="form-horizontal additional-fields">
                    <?php $_from = $this->_tpl_vars['fields']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['vals']):
?>
                        <div class="form-group">
                            <label class="col-md-4 control-label" for="inputAdditionalField"><?php echo $this->_tpl_vars['vals']['name']; ?>
</label>
                            <div class="col-md-8">
                                <?php echo $this->_tpl_vars['vals']['input']; ?>
 <?php echo $this->_tpl_vars['vals']['description']; ?>

                            </div>
                        </div>
                    <?php endforeach; endif; unset($_from); ?>
                </fieldset>
            <?php endforeach; endif; unset($_from); ?>

            <script>
                // Because WHMCS fails in styling. Oh wait, everything.
                $('.additional-fields input').addClass('form-control');
            </script>

            <div <?php if ($this->_tpl_vars['gogetssl_reissue']): ?>style="display: none;"<?php endif; ?>>
                <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template'])."/includes/subheader.tpl", 'smarty_include_vars' => array('title' => $this->_tpl_vars['LANG']['ssladmininfo'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

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

                <fieldset class="form-horizontal">
                    <div class="form-group">
                        <label class="col-sm-4 control-label" for="inputFirstName"><?php echo $this->_tpl_vars['LANG']['clientareafirstname']; ?>
</label>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" name="firstname" id="inputFirstName" value="<?php if ($this->_tpl_vars['gogetssl_reissue']): ?>reissue<?php else: ?><?php echo $this->_tpl_vars['firstname']; ?>
<?php endif; ?>" />
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-4 control-label" for="inputLastName"><?php echo $this->_tpl_vars['LANG']['clientarealastname']; ?>
</label>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" name="lastname" id="inputLastName" value="<?php if ($this->_tpl_vars['gogetssl_reissue']): ?>reissue<?php else: ?><?php echo $this->_tpl_vars['lastname']; ?>
<?php endif; ?>" />
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-4 control-label" for="inputOrgName"><?php echo $this->_tpl_vars['LANG']['organizationname']; ?>
</label>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" name="orgname" id="inputOrgName" value="<?php if ($this->_tpl_vars['gogetssl_reissue']): ?>reissue<?php else: ?><?php echo $this->_tpl_vars['orgname']; ?>
<?php endif; ?>" />
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-4 control-label" for="inputJobTitle"><?php echo $this->_tpl_vars['LANG']['jobtitle']; ?>
</label>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" name="jobtitle" id="inputJobTitle" value="<?php if ($this->_tpl_vars['gogetssl_reissue']): ?>reissue<?php else: ?><?php echo $this->_tpl_vars['jobtitle']; ?>
<?php endif; ?>" />
                            <p class="help-block"><?php echo $this->_tpl_vars['LANG']['jobtitlereqforcompany']; ?>
</p>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-4 control-label" for="inputEmail"><?php echo $this->_tpl_vars['LANG']['clientareaemail']; ?>
</label>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" name="email" id="inputEmail" value="<?php if ($this->_tpl_vars['gogetssl_reissue']): ?>reissue<?php else: ?><?php echo $this->_tpl_vars['email']; ?>
<?php endif; ?>" />
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-4 control-label" for="inputAddress1"><?php echo $this->_tpl_vars['LANG']['clientareaaddress1']; ?>
</label>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" name="address1" id="inputAddress1" value="<?php if ($this->_tpl_vars['gogetssl_reissue']): ?>reissue<?php else: ?><?php echo $this->_tpl_vars['address1']; ?>
<?php endif; ?>" />
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-4 control-label" for="inputAddress2"><?php echo $this->_tpl_vars['LANG']['clientareaaddress2']; ?>
</label>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" name="address2" id="inputAddress2" value="<?php if ($this->_tpl_vars['gogetssl_reissue']): ?>reissue<?php else: ?><?php echo $this->_tpl_vars['address2']; ?>
<?php endif; ?>" />
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-4 control-label" for="inputCity"><?php echo $this->_tpl_vars['LANG']['clientareacity']; ?>
</label>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" name="city" id="inputCity" value="<?php if ($this->_tpl_vars['gogetssl_reissue']): ?>reissue<?php else: ?><?php echo $this->_tpl_vars['city']; ?>
<?php endif; ?>" />
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-4 control-label" for="inputState"><?php echo $this->_tpl_vars['LANG']['clientareastate']; ?>
</label>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" name="state" id="inputState" value="<?php if ($this->_tpl_vars['gogetssl_reissue']): ?>reissue<?php else: ?><?php echo $this->_tpl_vars['state']; ?>
<?php endif; ?>" />
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-4 control-label" for="inputPostcode"><?php echo $this->_tpl_vars['LANG']['clientareapostcode']; ?>
</label>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" name="postcode" id="inputPostcode" value="<?php if ($this->_tpl_vars['gogetssl_reissue']): ?>reissue<?php else: ?><?php echo $this->_tpl_vars['postcode']; ?>
<?php endif; ?>" />
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label" for="country"><?php echo $this->_tpl_vars['LANG']['clientareacountry']; ?>
</label>
                    <div class="controls">
                        <?php echo $this->_tpl_vars['countriesdropdown']; ?>

                    </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-4 control-label" for="inputPhoneNumber"><?php echo $this->_tpl_vars['LANG']['clientareaphonenumber']; ?>
</label>
                        <div class="col-sm-8">
                            <input type="tel" class="form-control" name="phonenumber" id="inputPhoneNumber" value="<?php if ($this->_tpl_vars['gogetssl_reissue']): ?>reissue<?php else: ?><?php echo $this->_tpl_vars['phonenumber']; ?>
<?php endif; ?>" />
                        </div>
                    </div>

                </fieldset>
            </div>

            <p class="text-center">
                <input type="submit" value="<?php echo $this->_tpl_vars['LANG']['ordercontinuebutton']; ?>
" class="btn btn-primary" />
            </p>

        </form>

    <?php else: ?>

        <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template'])."/includes/alert.tpl", 'smarty_include_vars' => array('type' => 'info','msg' => $this->_tpl_vars['LANG']['sslnoconfigurationpossible'],'textcenter' => true)));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

        <form method="post" action="clientarea.php?action=productdetails">
            <input type="hidden" name="id" value="<?php echo $this->_tpl_vars['serviceid']; ?>
" />
            <p>
                <input type="submit" value="<?php echo $this->_tpl_vars['LANG']['invoicesbacktoclientarea']; ?>
" class="btn btn-default" /></p>
        </form>

    <?php endif; ?>

<?php endif; ?>