function content_55e98f66ed8ab2_01955754($_smarty_tpl)
    {
        echo '<script';
        ?>
 type="text/javascript" src="templates/orderforms/<?php 
        echo $_smarty_tpl->tpl_vars['carttpl']->value;
        ?>
/js/main.js"><?php 
        echo '</script';
        ?>
>
<link rel="stylesheet" type="text/css" href="templates/orderforms/<?php 
        echo $_smarty_tpl->tpl_vars['carttpl']->value;
        ?>
/style.css" />

<div id="order-slider">

<h1><?php 
        echo $_smarty_tpl->tpl_vars['LANG']->value['cartproductselection'];
        ?>
: <?php 
        echo $_smarty_tpl->tpl_vars['productinfo']->value['groupname'];
        ?>
 - <?php 
        echo $_smarty_tpl->tpl_vars['productinfo']->value['name'];
        ?>
</h1>

<p><?php 
        echo $_smarty_tpl->tpl_vars['LANG']->value['cartmakedomainselection'];
        ?>
</p>

<form onsubmit="checkdomain();return false">

<div class="domainoptions">
<?php 
        if ($_smarty_tpl->tpl_vars['incartdomains']->value) {
            ?>
<div class="option">
<label><input type="radio" name="domainoption" value="incart" /><?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['cartproductdomainuseincart'];
            ?>
</label>
<div class="domainreginput" id="domainincart">
<select id="incartsld">
<?php 
            $_smarty_tpl->tpl_vars['incartdomain'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['incartdomain']->_loop = false;
            $_smarty_tpl->tpl_vars['num'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['incartdomains']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['incartdomain']->key => $_smarty_tpl->tpl_vars['incartdomain']->value) {
                $_smarty_tpl->tpl_vars['incartdomain']->_loop = true;
                $_smarty_tpl->tpl_vars['num']->value = $_smarty_tpl->tpl_vars['incartdomain']->key;
                ?>
<option value="<?php 
                echo $_smarty_tpl->tpl_vars['incartdomain']->value;
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['incartdomain']->value;
                ?>
</option>
<?php 
            }
            ?>
</select> <input type="submit" value="<?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['ordercontinuebutton'];
            ?>
" />
</div>
</div>
<?php 
        }
        if ($_smarty_tpl->tpl_vars['registerdomainenabled']->value) {
            ?>
<div class="option">
<label><input type="radio" name="domainoption" value="register" /><?php 
            echo WHMCS\Smarty::sprintf2Modifier($_smarty_tpl->tpl_vars['LANG']->value['cartregisterdomainchoice'], $_smarty_tpl->tpl_vars['companyname']->value);
            ?>
</label>
<div class="domainreginput" id="domainregister">
www. <input type="text" id="registersld" size="30" value="<?php 
            echo $_smarty_tpl->tpl_vars['sld']->value;
            ?>
" /> <select id="registertld">
<?php 
            $_smarty_tpl->tpl_vars['listtld'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['listtld']->_loop = false;
            $_smarty_tpl->tpl_vars['num'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['registertlds']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['listtld']->key => $_smarty_tpl->tpl_vars['listtld']->value) {
                $_smarty_tpl->tpl_vars['listtld']->_loop = true;
                $_smarty_tpl->tpl_vars['num']->value = $_smarty_tpl->tpl_vars['listtld']->key;
                ?>
<option value="<?php 
                echo $_smarty_tpl->tpl_vars['listtld']->value;
                ?>
"<?php 
                if ($_smarty_tpl->tpl_vars['listtld']->value == $_smarty_tpl->tpl_vars['tld']->value) {
                    ?>
 selected="selected"<?php 
                }
                ?>
><?php 
                echo $_smarty_tpl->tpl_vars['listtld']->value;
                ?>
</option>
<?php 
            }
            ?>
</select> <input type="submit" value="<?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['checkavailability'];
            ?>
" />
</div>
</div>
<?php 
        }
        if ($_smarty_tpl->tpl_vars['transferdomainenabled']->value) {
            ?>
<div class="option">
<label><input type="radio" name="domainoption" value="transfer" /><?php 
            echo WHMCS\Smarty::sprintf2Modifier($_smarty_tpl->tpl_vars['LANG']->value['carttransferdomainchoice'], $_smarty_tpl->tpl_vars['companyname']->value);
            ?>
</label>
<div class="domainreginput" id="domaintransfer">
www. <input type="text" id="transfersld" size="30" value="<?php 
            echo $_smarty_tpl->tpl_vars['sld']->value;
            ?>
" /> <select id="transfertld">
<?php 
            $_smarty_tpl->tpl_vars['listtld'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['listtld']->_loop = false;
            $_smarty_tpl->tpl_vars['num'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['transfertlds']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['listtld']->key => $_smarty_tpl->tpl_vars['listtld']->value) {
                $_smarty_tpl->tpl_vars['listtld']->_loop = true;
                $_smarty_tpl->tpl_vars['num']->value = $_smarty_tpl->tpl_vars['listtld']->key;
                ?>
<option value="<?php 
                echo $_smarty_tpl->tpl_vars['listtld']->value;
                ?>
"<?php 
                if ($_smarty_tpl->tpl_vars['listtld']->value == $_smarty_tpl->tpl_vars['tld']->value) {
                    ?>
 selected="selected"<?php 
                }
                ?>
><?php 
                echo $_smarty_tpl->tpl_vars['listtld']->value;
                ?>
</option>
<?php 
            }
            ?>
</select> <input type="submit" value="<?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['checkavailability'];
            ?>
" />
</div>
</div>
<?php 
        }
        if ($_smarty_tpl->tpl_vars['owndomainenabled']->value) {
            ?>
<div class="option">
<label><input type="radio" name="domainoption" value="owndomain" /><?php 
            echo WHMCS\Smarty::sprintf2Modifier($_smarty_tpl->tpl_vars['LANG']->value['cartexistingdomainchoice'], $_smarty_tpl->tpl_vars['companyname']->value);
            ?>
</label>
<div class="domainreginput" id="domainowndomain">
www. <input type="text" id="owndomainsld" size="30" value="<?php 
            echo $_smarty_tpl->tpl_vars['sld']->value;
            ?>
" /> . <input type="text" id="owndomaintld" size="5" value="<?php 
            echo substr($_smarty_tpl->tpl_vars['tld']->value, 1);
            ?>
" /> <input type="submit" value="<?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['ordercontinuebutton'];
            ?>
" />
</div>
</div>
<?php 
        }
        if ($_smarty_tpl->tpl_vars['subdomains']->value) {
            ?>
<div class="option">
<label><input type="radio" name="domainoption" value="subdomain" /><?php 
            echo WHMCS\Smarty::sprintf2Modifier($_smarty_tpl->tpl_vars['LANG']->value['cartsubdomainchoice'], $_smarty_tpl->tpl_vars['companyname']->value);
            ?>
</label>
<div class="domainreginput" id="domainsubdomain">
http:// <input type="text" id="subdomainsld" size="30" value="<?php 
            echo $_smarty_tpl->tpl_vars['sld']->value;
            ?>
" /> <select id="subdomaintld"><?php 
            $_smarty_tpl->tpl_vars['subdomain'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['subdomain']->_loop = false;
            $_smarty_tpl->tpl_vars['subid'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['subdomains']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['subdomain']->key => $_smarty_tpl->tpl_vars['subdomain']->value) {
                $_smarty_tpl->tpl_vars['subdomain']->_loop = true;
                $_smarty_tpl->tpl_vars['subid']->value = $_smarty_tpl->tpl_vars['subdomain']->key;
                ?>
<option value="<?php 
                echo $_smarty_tpl->tpl_vars['subid']->value;
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['subdomain']->value;
                ?>
</option><?php 
            }
            ?>
</select> <input type="submit" value="<?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['ordercontinuebutton'];
            ?>
" />
</div>
</div>
<?php 
        }
        ?>
</div>

<?php 
        if ($_smarty_tpl->tpl_vars['freedomaintlds']->value) {
            ?>
<p>* <em><?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['orderfreedomainregistration'];
            ?>
 <?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['orderfreedomainappliesto'];
            ?>
: <?php 
            echo $_smarty_tpl->tpl_vars['freedomaintlds']->value;
            ?>
</em></p><?php 
        }
        ?>

</form>

<div id="greyout"></div>
<div id="domainpopupcontainer">
<form id="domainfrm" onsubmit="completedomain();return false">
<div class="domainresults" id="domainresults"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['BASE_PATH_IMG']->value;
        ?>
/loading.gif" border="0" alt="Loading..." /></div>
</form>
</div>

<div id="prodconfigcontainer"></div>

</div>


<?php 
        echo '<script';
        ?>
 language="javascript">
jQuery(".domainreginput").hide();
jQuery(".domainoptions input:first").attr('checked','checked');
jQuery(".domainoptions input:first").parent().parent().addClass('optionselected');
jQuery("#domain"+jQuery(".domainoptions input:first").val()).show();
jQuery(document).ready(function(){
    jQuery(".domainoptions input:radio").click(function(){
        jQuery(".domainoptions .option").removeClass('optionselected');
        jQuery(this).parent().parent().addClass('optionselected');
        jQuery("#domainresults").slideUp();
        jQuery(".domainreginput").hide();
        jQuery("#domain"+jQuery(this).val()).show();
    });
});
function checkdomain() {
    jQuery("#greyout").fadeIn();
    jQuery("#domainpopupcontainer").slideDown();
    var domainoption = jQuery(".domainoptions input:checked").val();
    var sld = jQuery("#"+domainoption+"sld").val();
    var tld = '';
    if (domainoption=='incart') var sld = jQuery("#"+domainoption+"sld option:selected").text();
    if (domainoption=='subdomain') var tld = jQuery("#"+domainoption+"tld option:selected").text();
    else var tld = jQuery("#"+domainoption+"tld").val();
    jQuery.post("cart.php", { ajax: 1, a: "domainoptions", sld: sld, tld: tld, checktype: domainoption },
    function(data){
        jQuery("#domainresults").html(data);
    });
}
function cancelcheck() {
    jQuery("#domainpopupcontainer").slideUp('slow',function() {
        jQuery("#greyout").fadeOut();
        jQuery("#domainresults").html('<img src="{$BASE_PATH_IMG}/loading.gif" border="0" alt="Loading..." />');
    });
}
function completedomain() {
    jQuery("#domainresults").append('<img src="{$BASE_PATH_IMG}/loading.gif" border="0" alt="Loading..." />');
    jQuery.post("cart.php", 'ajax=1&a=add&pid=<?php 
        echo $_smarty_tpl->tpl_vars['pid']->value;
        ?>
&domainselect=1&'+jQuery("#domainfrm").serialize(),
    function(data){
        if (data=='') {
            window.location='cart.php?a=view';
        } else if (data=='nodomains') {
            jQuery("#domainpopupcontainer").slideUp('slow',function() {
                jQuery("#greyout").fadeOut();
            });
        } else {
            jQuery("#prodconfigcontainer").replaceWith(data);
            jQuery("#domainpopupcontainer").slideUp('slow',function() {
                jQuery("#greyout").fadeOut();
            });
            jQuery("#prodconfigcontainer").slideDown();
        }
    });
}
<?php 
        echo '</script';
        ?>
>

<?php 
    }
    function content_55eb1472ca2c00_40595081($_smarty_tpl)
    {
        ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="<?php 
        echo $_smarty_tpl->tpl_vars['charset']->value;
        ?>
" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title><?php 
        if ($_smarty_tpl->tpl_vars['kbarticle']->value['title']) {
            echo $_smarty_tpl->tpl_vars['kbarticle']->value['title'];
            ?>
 - <?php 
        }
        echo $_smarty_tpl->tpl_vars['pagetitle']->value;
        ?>
 - <?php 
        echo $_smarty_tpl->tpl_vars['companyname']->value;
        ?>
</title>

    <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['template']->value . "/includes/head.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>


    <?php 
        echo $_smarty_tpl->tpl_vars['headoutput']->value;
        ?>


</head>
<body>

<?php 
        echo $_smarty_tpl->tpl_vars['headeroutput']->value;
        ?>


<section id="header">
    <div class="container">

        <!-- Top Bar -->
        <div id="top-nav">
            <!-- Language -->
            <?php 
        if ($_smarty_tpl->tpl_vars['languagechangeenabled']->value && count($_smarty_tpl->tpl_vars['locales']->value) > 1) {
            ?>
                <div class="pull-right nav">
                    <a href="#" class="quick-nav" data-toggle="popover" id="languageChooser"><i class="fa fa-language"></i> <?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['chooselanguage'];
            ?>
 <span class="caret"></span></a>
                    <div id="languageChooserContent" class="hidden">
                        <ul>
                            <?php 
            $_smarty_tpl->tpl_vars['locale'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['locale']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['locales']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['locale']->key => $_smarty_tpl->tpl_vars['locale']->value) {
                $_smarty_tpl->tpl_vars['locale']->_loop = true;
                ?>
                                <li><a href="<?php 
                echo $_smarty_tpl->tpl_vars['currentpagelinkback']->value;
                ?>
language=<?php 
                echo $_smarty_tpl->tpl_vars['locale']->value['language'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['locale']->value['localisedName'];
                ?>
</a></li>
                            <?php 
            }
            ?>
                        </ul>
                    </div>
                </div>
            <?php 
        }
        ?>
            <!-- Login/Account Notifications -->
            <?php 
        if ($_smarty_tpl->tpl_vars['loggedin']->value) {
            ?>
                <div class="pull-right nav">
                    <a href="#" class="quick-nav" data-toggle="popover" id="accountNotifications" data-placement="bottom" title="<?php 
            echo WHMCS\Smarty::langFunction(array('key' => "notifications"), $_smarty_tpl);
            ?>
"><i class="fa fa-info"></i> <?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['notifications'];
            ?>
 (<?php 
            echo count($_smarty_tpl->tpl_vars['clientAlerts']->value);
            ?>
)</a>
                    <div id="accountNotificationsContent" class="hidden">
                        <?php 
            $_smarty_tpl->tpl_vars['alert'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['alert']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['clientAlerts']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['alert']->key => $_smarty_tpl->tpl_vars['alert']->value) {
                $_smarty_tpl->tpl_vars['alert']->_loop = true;
                ?>
                            <div class="clientalert text-<?php 
                echo $_smarty_tpl->tpl_vars['alert']->value->getSeverity();
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['alert']->value->getMessage();
                if ($_smarty_tpl->tpl_vars['alert']->value->getLinkText()) {
                    ?>
 <a href="<?php 
                    echo $_smarty_tpl->tpl_vars['alert']->value->getLink();
                    ?>
" class="btn btn-xs btn-<?php 
                    echo $_smarty_tpl->tpl_vars['alert']->value->getSeverity();
                    ?>
"><?php 
                    echo $_smarty_tpl->tpl_vars['alert']->value->getLinkText();
                    ?>
</a><?php 
                }
                ?>
</div>
                        <?php 
            }
            if (!$_smarty_tpl->tpl_vars['alert']->_loop) {
                ?>
                            <div class="clientalert text-success"><i class="fa fa-check-square-o"></i> <?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['notificationsnone'];
                ?>
</div>
                        <?php 
            }
            ?>
                    </div>
                </div>
            <?php 
        } else {
            ?>
                <div class="pull-right nav">
                    <a href="#" class="quick-nav" data-toggle="popover" id="loginOrRegister" data-placement="bottom"><i class="fa fa-user"></i> <?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['login'];
            ?>
</a>
                    <div id="loginOrRegisterContent" class="hidden">
                        <form action="dologin.php" method="post" role="form">
                            <div class="form-group">
                                <input type="email" name="username" class="form-control" placeholder="<?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['clientareaemail'];
            ?>
" required />
                            </div>
                            <div class="form-group">
                                <div class="input-group">
                                    <input type="password" name="password" class="form-control" placeholder="<?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['loginpassword'];
            ?>
" required />
                                    <span class="input-group-btn">
                                        <input type="submit" class="btn btn-primary" value="<?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['login'];
            ?>
" />
                                    </span>
                                </div>
                            </div>
                            <label class="checkbox-inline">
                                <input type="checkbox" name="rememberme" /> <?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['loginrememberme'];
            ?>
 &bull; <a href="pwreset.php"><?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['forgotpw'];
            ?>
</a>
                            </label>
                        </form>
                        <?php 
            if ($_smarty_tpl->tpl_vars['condlinks']->value['allowClientRegistration']) {
                ?>
                            <hr />
                            <?php 
                echo WHMCS\Smarty::sprintf2Modifier($_smarty_tpl->tpl_vars['LANG']->value['newcustomersignup'], '<a href="register.php">', '</a>');
                ?>

                        <?php 
            }
            ?>
                    </div>
                </div>
            <?php 
        }
        ?>
            <!-- Shopping Cart -->
            <div class="pull-right nav">
                <a href="cart.php?a=view" class="quick-nav"><i class="fa fa-shopping-cart"></i> <span class="hidden-xs"><?php 
        echo $_smarty_tpl->tpl_vars['LANG']->value['viewcart'];
        ?>
 (</span><span id="cartItemCount"><?php 
        echo $_smarty_tpl->tpl_vars['cartitemcount']->value;
        ?>
</span><span class="hidden-xs">)</span></a>
            </div>

            <?php 
        if ($_smarty_tpl->tpl_vars['adminMasqueradingAsClient']->value) {
            ?>
                <!-- Return to admin link -->
                <div class="alert alert-danger admin-masquerade-notice">
                    <?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['adminmasqueradingasclient'];
            ?>
<br />
                    <a href="logout.php?returntoadmin=1" class="alert-link"><?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['logoutandreturntoadminarea'];
            ?>
</a>
                </div>
            <?php 
        } elseif ($_smarty_tpl->tpl_vars['adminLoggedIn']->value) {
            ?>
                <!-- Return to admin link -->
                <div class="alert alert-danger admin-masquerade-notice">
                    <?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['adminloggedin'];
            ?>
<br />
                    <a href="logout.php?returntoadmin=1" class="alert-link"><?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['returntoadminarea'];
            ?>
</a>
                </div>
            <?php 
        }
        ?>

        </div>

        <a href="index.php"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['WEB_ROOT']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['template']->value;
        ?>
/img/logo.png" alt="<?php 
        echo $_smarty_tpl->tpl_vars['companyname']->value;
        ?>
" /></a>

    </div>
</section>

<section id="main-menu">

    <nav id="nav" class="navbar navbar-default navbar-main" role="navigation">
        <div class="container">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">

                <ul class="nav navbar-nav">

                    <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['template']->value . "/includes/navbar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('navbar' => $_smarty_tpl->tpl_vars['primaryNavbar']->value), 0);
        ?>


                </ul>

                <ul class="nav navbar-nav navbar-right">

                    <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['template']->value . "/includes/navbar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('navbar' => $_smarty_tpl->tpl_vars['secondaryNavbar']->value), 0);
        ?>


                </ul>

            </div><!-- /.navbar-collapse -->
        </div>
    </nav>

</section>

<?php 
        if ($_smarty_tpl->tpl_vars['templatefile']->value == 'homepage') {
            ?>
    <section id="home-banner">
        <div class="container text-center">
            <?php 
            if ($_smarty_tpl->tpl_vars['registerdomainenabled']->value || $_smarty_tpl->tpl_vars['transferdomainenabled']->value) {
                ?>
                <h2><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['homebegin'];
                ?>
</h2>
                <form method="post" action="domainchecker.php">
                    <div class="row">
                        <div class="col-md-8 col-md-offset-2 col-sm-10 col-sm-offset-1">
                            <div class="input-group input-group-lg">
                                <input type="text" class="form-control" name="domain" placeholder="<?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['exampledomain'];
                ?>
" />
                                <span class="input-group-btn">
                                    <?php 
                if ($_smarty_tpl->tpl_vars['registerdomainenabled']->value) {
                    ?>
                                        <input type="submit" class="btn btn-warning" value="Search" />
                                    <?php 
                }
                ?>
                                    <?php 
                if ($_smarty_tpl->tpl_vars['transferdomainenabled']->value) {
                    ?>
                                        <input type="submit" name="transfer" class="btn btn-info" value="Transfer" />
                                    <?php 
                }
                ?>
                                </span>
                            </div>
                        </div>
                    </div>

                    <?php 
                echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['template']->value . "/includes/captcha.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                ?>

                </form>
            <?php 
            } else {
                ?>
                <h2>
                    <?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['doToday'];
                ?>
<br>
                    <span class="resaltar">¡A un precio increible!</span>
                </h2>
                <a class="btn btn-default saber-mas" role="button" data-toggle="collapse" href="#collapseExample" aria-expanded="false" aria-controls="collapseExample">¿Quieres Saber Más?</a>
            <?php 
            }
            ?>
        </div>
    </section>
    <div class="saber-section collapse" id="collapseExample">
        <div class="container">
            <div class="row">
                <h3>
                    En Webty.co desarrollamos la web que te mereces:
                </h3>
            </div>
            <div class="row">
                <div class="col-xs-6">
                    <ul>
                        <li>Con diseño adaptable a múltiples dispositivos.</li>
                        <li>Código optimizado a SEO.</li>
                        <li>Te Enseñamos a Usar Tu Web.</li>
                    </ul>
                </div>
                <div class="col-xs-6">
                    <ul>
                        <li>Con diseño adaptable a múltiples dispositivos.</li>
                        <li>Código optimizado a SEO.</li>
                        <li>Te Enseñamos a Usar Tu Web.</li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <!--<div class="home-shortcuts">
        <div class="container">
            <div class="row">
                <div class="col-md-4 hidden-sm hidden-xs text-center">
                    <p class="lead">
                        <?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['howcanwehelp'];
            ?>

                    </p>
                </div>
                <div class="col-sm-12 col-md-8">
                    <ul>
                        <?php 
            if ($_smarty_tpl->tpl_vars['registerdomainenabled']->value || $_smarty_tpl->tpl_vars['transferdomainenabled']->value) {
                ?>
                            <li>
                                <a id="btnBuyADomain" href="domainchecker.php">
                                    <i class="fa fa-globe"></i>
                                    <p>
                                        <?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['buyadomain'];
                ?>
 <span>&raquo;</span>
                                    </p>
                                </a>
                            </li>
                        <?php 
            }
            ?>
                        <li>
                            <a id="btnOrderHosting" href="cart.php">
                                <i class="fa fa-hdd-o"></i>
                                <p>
                                    <?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['orderhosting'];
            ?>
 <span>&raquo;</span>
                                </p>
                            </a>
                        </li>
                        <li>
                            <a id="btnMakePayment" href="clientarea.php">
                                <i class="fa fa-credit-card"></i>
                                <p>
                                    <?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['makepayment'];
            ?>
 <span>&raquo;</span>
                                </p>
                            </a>
                        </li>
                        <li>
                            <a id="btnGetSupport" href="submitticket.php">
                                <i class="fa fa-envelope-o"></i>
                                <p>
                                    <?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['getsupport'];
            ?>
 <span>&raquo;</span>
                                </p>
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>-->
<?php 
        }
        ?>

<section id="main-body">

    <div>
        <?php 
        if ($_smarty_tpl->tpl_vars['primarySidebar']->value->hasChildren() || $_smarty_tpl->tpl_vars['secondarySidebar']->value->hasChildren()) {
            ?>
            <?php 
            if ($_smarty_tpl->tpl_vars['primarySidebar']->value->hasChildren()) {
                ?>
                <div class="col-md-9 pull-md-right">
                    <?php 
                echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['template']->value . "/includes/pageheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => $_smarty_tpl->tpl_vars['displayTitle']->value, 'desc' => $_smarty_tpl->tpl_vars['tagline']->value, 'showbreadcrumb' => true), 0);
                ?>

                </div>
            <?php 
            }
            ?>
            <div class="col-md-3 pull-md-left sidebar">
                <?php 
            echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['template']->value . "/includes/sidebar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('sidebar' => $_smarty_tpl->tpl_vars['primarySidebar']->value), 0);
            ?>

            </div>
        <?php 
        }
        ?>
        <!-- Container for main page display content -->
        <div class="<?php 
        if ($_smarty_tpl->tpl_vars['primarySidebar']->value->hasChildren() || $_smarty_tpl->tpl_vars['secondarySidebar']->value->hasChildren()) {
            ?>
col-md-9 pull-md-right<?php 
        } else {
        }
        ?>
 main-content">
            <?php 
        if (!$_smarty_tpl->tpl_vars['primarySidebar']->value->hasChildren() && !$_smarty_tpl->tpl_vars['showingLoginPage']->value && $_smarty_tpl->tpl_vars['templatefile']->value != 'homepage') {
            ?>
                <?php 
            echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['template']->value . "/includes/pageheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => $_smarty_tpl->tpl_vars['displayTitle']->value, 'desc' => $_smarty_tpl->tpl_vars['tagline']->value, 'showbreadcrumb' => true), 0);
            ?>

            <?php 
        }
    }
    function content_55eda47b8be5e2_78571787($_smarty_tpl)
    {
        if ($_smarty_tpl->tpl_vars['captcha']->value) {
            ?>
    <?php 
            if ($_smarty_tpl->tpl_vars['filename']->value == 'domainchecker' || $_smarty_tpl->tpl_vars['filename']->value == 'index') {
                ?>
        <div class="row">
            <?php 
                if ($_smarty_tpl->tpl_vars['filename']->value == 'index') {
                    ?>
                <div class="domainchecker-homepage-captcha">
            <?php 
                }
                ?>

            <?php 
                if ($_smarty_tpl->tpl_vars['captcha']->value == "recaptcha") {
                    ?>
                <?php 
                    echo '<script';
                    ?>
 src="https://www.google.com/recaptcha/api.js" async defer><?php 
                    echo '</script';
                    ?>
>
                <div id="google-recaptcha-domainchecker" class="g-recaptcha center-block" data-sitekey="<?php 
                    echo $_smarty_tpl->tpl_vars['reCaptchaPublicKey']->value;
                    ?>
"></div>
            <?php 
                } else {
                    ?>
                <div class="col-md-8 col-md-offset-2 col-xs-10 col-xs-offset-1">
                    <div id="default-captcha-domainchecker" class="<?php 
                    if ($_smarty_tpl->tpl_vars['filename']->value == 'domainchecker') {
                        ?>
input-group input-group-box <?php 
                    }
                    ?>
text-center">
                        <p><?php 
                    echo WHMCS\Smarty::langFunction(array('key' => "captchaverify"), $_smarty_tpl);
                    ?>
</p>

                        <div class="col-xs-6 captchaimage">
                            <img id="inputCaptchaImage" src="includes/verifyimage.php" align="middle" />
                        </div>

                        <div class="col-xs-6">
                            <input id="inputCaptcha" type="text" name="code" maxlength="5" class="form-control" />
                        </div>
                    </div>
                </div>
            <?php 
                }
                ?>

            <?php 
                if ($_smarty_tpl->tpl_vars['filename']->value == 'index') {
                    ?>
                </div>
            <?php 
                }
                ?>
        </div>
    <?php 
            } else {
                ?>
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title"><?php 
                echo WHMCS\Smarty::langFunction(array('key' => "captchatitle"), $_smarty_tpl);
                ?>
</h3>
            </div>
            <div class="panel-body">
                <p><?php 
                echo WHMCS\Smarty::langFunction(array('key' => "captchaverify"), $_smarty_tpl);
                ?>
</p>
                <?php 
                if ($_smarty_tpl->tpl_vars['captcha']->value == "recaptcha") {
                    ?>
                    <?php 
                    echo $_smarty_tpl->tpl_vars['recaptchahtml']->value;
                    ?>

                <?php 
                } else {
                    ?>
                    <div class="text-center">
                        <div class="col-md-5 col-sm-5 col-xs-5 captchaimage">
                            <img src="includes/verifyimage.php" align="middle" />
                        </div>
                        <div class="col-md-3 col-sm-3 col-xs-5">
                            <input id="inputCaptcha" type="text" name="code" maxlength="5" class="form-control" />
                        </div>
                    </div>
                <?php 
                }
                ?>
            </div>
        </div>
    <?php 
            }
        }
    }
    function content_55e992f61e2019_58961133($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_replace')) {
            include '/home/content/75/12056575/html/webty/cliente/vendor/smarty/smarty/libs/plugins/modifier.replace.php';
        }
        ?>
<link rel="stylesheet" type="text/css" href="templates/orderforms/<?php 
        echo $_smarty_tpl->tpl_vars['carttpl']->value;
        ?>
/style.css" />
<?php 
        echo '<script';
        ?>
 language="javascript">
    // Define state tab index value
    var statesTab = 10;
<?php 
        if (in_array('state', $_smarty_tpl->tpl_vars['clientsProfileOptionalFields']->value)) {
            ?>
    // Do not enforce state input client side
    var stateNotRequired = true;
<?php 
        }
        echo '</script';
        ?>
>
<?php 
        echo '<script';
        ?>
 type="text/javascript" src="templates/orderforms/<?php 
        echo $_smarty_tpl->tpl_vars['carttpl']->value;
        ?>
/js/main.js"><?php 
        echo '</script';
        ?>
>
<?php 
        echo '<script';
        ?>
 type="text/javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['BASE_PATH_JS']->value;
        ?>
/StatesDropdown.js"><?php 
        echo '</script';
        ?>
>
<?php 
        echo '<script';
        ?>
 type="text/javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['BASE_PATH_JS']->value;
        ?>
/PasswordStrength.js"><?php 
        echo '</script';
        ?>
>
<?php 
        echo '<script';
        ?>
 type="text/javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['BASE_PATH_JS']->value;
        ?>
/CreditCardValidation.js"><?php 
        echo '</script';
        ?>
>

<?php 
        echo '<script';
        ?>
 language="javascript">
function removeItem(type,num) {
    var response = confirm("<?php 
        echo $_smarty_tpl->tpl_vars['LANG']->value['cartremoveitemconfirm'];
        ?>
");
    if (response) {
        window.location = 'cart.php?a=remove&r='+type+'&i='+num;
    }
}
function emptyCart(type,num) {
    var response = confirm("<?php 
        echo $_smarty_tpl->tpl_vars['LANG']->value['cartemptyconfirm'];
        ?>
");
    if (response) {
        window.location = 'cart.php?a=empty';
    }
}
<?php 
        echo '</script';
        ?>
>
<?php 
        echo '<script';
        ?>
>
window.langPasswordStrength = "<?php 
        echo $_smarty_tpl->tpl_vars['LANG']->value['pwstrength'];
        ?>
";
window.langPasswordWeak = "<?php 
        echo $_smarty_tpl->tpl_vars['LANG']->value['pwstrengthweak'];
        ?>
";
window.langPasswordModerate = "<?php 
        echo $_smarty_tpl->tpl_vars['LANG']->value['pwstrengthmoderate'];
        ?>
";
window.langPasswordStrong = "<?php 
        echo $_smarty_tpl->tpl_vars['LANG']->value['pwstrengthstrong'];
        ?>
";
<?php 
        echo '</script';
        ?>
>

<div id="order-modern">

    <div class="text-center">
        <h1><?php 
        echo $_smarty_tpl->tpl_vars['LANG']->value['cartreviewcheckout'];
        ?>
</h1>
    </div>

    <?php 
        if ($_smarty_tpl->tpl_vars['errormessage']->value) {
            ?>
        <div class="errorbox" style="display:block;">
            <?php 
            echo smarty_modifier_replace($_smarty_tpl->tpl_vars['errormessage']->value, '<li>', ' &nbsp;#&nbsp; ');
            ?>
 &nbsp;#&nbsp;
        </div>
    <?php 
        } elseif ($_smarty_tpl->tpl_vars['promotioncode']->value && $_smarty_tpl->tpl_vars['rawdiscount']->value == "0.00") {
            ?>
        <div class="errorbox" style="display:block;">
            <?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['promoappliedbutnodiscount'];
            ?>

        </div>
    <?php 
        }
        ?>

    <?php 
        if ($_smarty_tpl->tpl_vars['bundlewarnings']->value) {
            ?>
        <div class="cartwarningbox">
            <strong><?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['bundlereqsnotmet'];
            ?>
</strong><br />
            <?php 
            $_smarty_tpl->tpl_vars['warning'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['warning']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['bundlewarnings']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['warning']->key => $_smarty_tpl->tpl_vars['warning']->value) {
                $_smarty_tpl->tpl_vars['warning']->_loop = true;
                ?>
                <?php 
                echo $_smarty_tpl->tpl_vars['warning']->value;
                ?>
<br />
            <?php 
            }
            ?>
        </div>
    <?php 
        }
        ?>

    <?php 
        if (!$_smarty_tpl->tpl_vars['loggedin']->value && $_smarty_tpl->tpl_vars['currencies']->value) {
            ?>
        <div class="currencychooser">
            <div class="btn-group" role="group">
                <?php 
            $_smarty_tpl->tpl_vars['curr'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['curr']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['currencies']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['curr']->key => $_smarty_tpl->tpl_vars['curr']->value) {
                $_smarty_tpl->tpl_vars['curr']->_loop = true;
                ?>
                    <a href="cart.php?a=view&currency=<?php 
                echo $_smarty_tpl->tpl_vars['curr']->value['id'];
                ?>
" class="btn btn-default<?php 
                if ($_smarty_tpl->tpl_vars['currency']->value['id'] == $_smarty_tpl->tpl_vars['curr']->value['id']) {
                    ?>
 active<?php 
                }
                ?>
">
                        <img src="<?php 
                echo $_smarty_tpl->tpl_vars['BASE_PATH_IMG']->value;
                ?>
/flags/<?php 
                if ($_smarty_tpl->tpl_vars['curr']->value['code'] == "AUD") {
                    ?>
au<?php 
                } elseif ($_smarty_tpl->tpl_vars['curr']->value['code'] == "CAD") {
                    ?>
ca<?php 
                } elseif ($_smarty_tpl->tpl_vars['curr']->value['code'] == "EUR") {
                    ?>
eu<?php 
                } elseif ($_smarty_tpl->tpl_vars['curr']->value['code'] == "GBP") {
                    ?>
gb<?php 
                } elseif ($_smarty_tpl->tpl_vars['curr']->value['code'] == "INR") {
                    ?>
in<?php 
                } elseif ($_smarty_tpl->tpl_vars['curr']->value['code'] == "JPY") {
                    ?>
jp<?php 
                } elseif ($_smarty_tpl->tpl_vars['curr']->value['code'] == "USD") {
                    ?>
us<?php 
                } elseif ($_smarty_tpl->tpl_vars['curr']->value['code'] == "ZAR") {
                    ?>
za<?php 
                } else {
                    ?>
na<?php 
                }
                ?>
.png" border="0" alt="" />
                        <?php 
                echo $_smarty_tpl->tpl_vars['curr']->value['code'];
                ?>

                    </a>
                <?php 
            }
            ?>
            </div>
        </div>
    <?php 
        }
        ?>

    <form method="post" action="<?php 
        echo $_SERVER['PHP_SELF'];
        ?>
?a=view">

        <table class="cart" cellspacing="1">
            <tr>
                <th width="60%"><?php 
        echo $_smarty_tpl->tpl_vars['LANG']->value['orderdesc'];
        ?>
</th>
                <th width="40%"><?php 
        echo $_smarty_tpl->tpl_vars['LANG']->value['orderprice'];
        ?>
</th>
            </tr>

            <?php 
        $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['product']->_loop = false;
        $_smarty_tpl->tpl_vars['num'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['products']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value) {
            $_smarty_tpl->tpl_vars['product']->_loop = true;
            $_smarty_tpl->tpl_vars['num']->value = $_smarty_tpl->tpl_vars['product']->key;
            ?>
                <tr class="carttableproduct">
                    <td>
                        <strong><em><?php 
            echo $_smarty_tpl->tpl_vars['product']->value['productinfo']['groupname'];
            ?>
</em> - <?php 
            echo $_smarty_tpl->tpl_vars['product']->value['productinfo']['name'];
            ?>
</strong><?php 
            if ($_smarty_tpl->tpl_vars['product']->value['domain']) {
                ?>
 (<?php 
                echo $_smarty_tpl->tpl_vars['product']->value['domain'];
                ?>
)<?php 
            }
            ?>
<br />
                        <?php 
            if ($_smarty_tpl->tpl_vars['product']->value['configoptions']) {
                ?>
                            <?php 
                $_smarty_tpl->tpl_vars['configoption'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['configoption']->_loop = false;
                $_smarty_tpl->tpl_vars['confnum'] = new Smarty_Variable();
                $_from = $_smarty_tpl->tpl_vars['product']->value['configoptions'];
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['configoption']->key => $_smarty_tpl->tpl_vars['configoption']->value) {
                    $_smarty_tpl->tpl_vars['configoption']->_loop = true;
                    $_smarty_tpl->tpl_vars['confnum']->value = $_smarty_tpl->tpl_vars['configoption']->key;
                    ?>
                                &nbsp;&raquo; <?php 
                    echo $_smarty_tpl->tpl_vars['configoption']->value['name'];
                    ?>
: <?php 
                    if ($_smarty_tpl->tpl_vars['configoption']->value['type'] == 1 || $_smarty_tpl->tpl_vars['configoption']->value['type'] == 2) {
                        echo $_smarty_tpl->tpl_vars['configoption']->value['option'];
                    } elseif ($_smarty_tpl->tpl_vars['configoption']->value['type'] == 3) {
                        if ($_smarty_tpl->tpl_vars['configoption']->value['qty']) {
                            echo $_smarty_tpl->tpl_vars['LANG']->value['yes'];
                        } else {
                            echo $_smarty_tpl->tpl_vars['LANG']->value['no'];
                        }
                    } elseif ($_smarty_tpl->tpl_vars['configoption']->value['type'] == 4) {
                        echo $_smarty_tpl->tpl_vars['configoption']->value['qty'];
                        ?>
 x <?php 
                        echo $_smarty_tpl->tpl_vars['configoption']->value['option'];
                    }
                    ?>
<br />
                            <?php 
                }
                ?>
                        <?php 
            }
            ?>
                        <a href="<?php 
            echo $_SERVER['PHP_SELF'];
            ?>
?a=confproduct&i=<?php 
            echo $_smarty_tpl->tpl_vars['num']->value;
            ?>
" class="cartedit">[<?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['carteditproductconfig'];
            ?>
]</a>
                        <a href="#" onclick="removeItem('p','<?php 
            echo $_smarty_tpl->tpl_vars['num']->value;
            ?>
');return false" class="cartremove">[<?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['cartremove'];
            ?>
]</a>
                        <?php 
            if ($_smarty_tpl->tpl_vars['product']->value['allowqty']) {
                ?>
                        <br /><br />
                        <div align="right"><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['cartqtyenterquantity'];
                ?>
 <input type="text" name="qty[<?php 
                echo $_smarty_tpl->tpl_vars['num']->value;
                ?>
]" size="3" value="<?php 
                echo $_smarty_tpl->tpl_vars['product']->value['qty'];
                ?>
" /> <input type="submit" value="<?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['cartqtyupdate'];
                ?>
" class="btn btn-default btn-sm" /></div>
                        <?php 
            }
            ?>
                    </td>
                    <td class="text-center">
                        <strong><?php 
            echo $_smarty_tpl->tpl_vars['product']->value['pricingtext'];
            if ($_smarty_tpl->tpl_vars['product']->value['proratadate']) {
                ?>
<br />(<?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['orderprorata'];
                ?>
 <?php 
                echo $_smarty_tpl->tpl_vars['product']->value['proratadate'];
                ?>
)<?php 
            }
            ?>
</strong>
                    </td>
                </tr>
                <?php 
            $_smarty_tpl->tpl_vars['addon'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['addon']->_loop = false;
            $_smarty_tpl->tpl_vars['addonnum'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['product']->value['addons'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['addon']->key => $_smarty_tpl->tpl_vars['addon']->value) {
                $_smarty_tpl->tpl_vars['addon']->_loop = true;
                $_smarty_tpl->tpl_vars['addonnum']->value = $_smarty_tpl->tpl_vars['addon']->key;
                ?>
                    <tr class="carttableproduct">
                        <td><strong><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['orderaddon'];
                ?>
</strong> - <?php 
                echo $_smarty_tpl->tpl_vars['addon']->value['name'];
                ?>
</td>
                        <td class="text-center"><strong><?php 
                echo $_smarty_tpl->tpl_vars['addon']->value['pricingtext'];
                ?>
</strong></td>
                    </tr>
                <?php 
            }
            ?>
            <?php 
        }
        ?>

            <?php 
        $_smarty_tpl->tpl_vars['addon'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['addon']->_loop = false;
        $_smarty_tpl->tpl_vars['num'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['addons']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['addon']->key => $_smarty_tpl->tpl_vars['addon']->value) {
            $_smarty_tpl->tpl_vars['addon']->_loop = true;
            $_smarty_tpl->tpl_vars['num']->value = $_smarty_tpl->tpl_vars['addon']->key;
            ?>
                <tr class="carttableproduct">
                    <td>
                        <strong><?php 
            echo $_smarty_tpl->tpl_vars['addon']->value['name'];
            ?>
</strong><br />
                        <?php 
            echo $_smarty_tpl->tpl_vars['addon']->value['productname'];
            if ($_smarty_tpl->tpl_vars['addon']->value['domainname']) {
                ?>
 - <?php 
                echo $_smarty_tpl->tpl_vars['addon']->value['domainname'];
                ?>
<br /><?php 
            }
            ?>
                        <a href="#" onclick="removeItem('a','<?php 
            echo $_smarty_tpl->tpl_vars['num']->value;
            ?>
');return false" class="cartremove">[<?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['cartremove'];
            ?>
]</a>
                    </td>
                    <td class="text-center"><strong><?php 
            echo $_smarty_tpl->tpl_vars['addon']->value['pricingtext'];
            ?>
</strong></td>
                </tr>
            <?php 
        }
        ?>

            <?php 
        $_smarty_tpl->tpl_vars['domain'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['domain']->_loop = false;
        $_smarty_tpl->tpl_vars['num'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['domains']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['domain']->key => $_smarty_tpl->tpl_vars['domain']->value) {
            $_smarty_tpl->tpl_vars['domain']->_loop = true;
            $_smarty_tpl->tpl_vars['num']->value = $_smarty_tpl->tpl_vars['domain']->key;
            ?>
                <tr class="carttableproduct">
                    <td>
                        <strong><?php 
            if ($_smarty_tpl->tpl_vars['domain']->value['type'] == "register") {
                echo $_smarty_tpl->tpl_vars['LANG']->value['orderdomainregistration'];
            } else {
                echo $_smarty_tpl->tpl_vars['LANG']->value['orderdomaintransfer'];
            }
            ?>
</strong> - <?php 
            echo $_smarty_tpl->tpl_vars['domain']->value['domain'];
            ?>
 - <?php 
            echo $_smarty_tpl->tpl_vars['domain']->value['regperiod'];
            ?>
 <?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['orderyears'];
            ?>
<br />
                        <?php 
            if ($_smarty_tpl->tpl_vars['domain']->value['dnsmanagement']) {
                ?>
&nbsp;&raquo; <?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['domaindnsmanagement'];
                ?>
<br /><?php 
            }
            ?>
                        <?php 
            if ($_smarty_tpl->tpl_vars['domain']->value['emailforwarding']) {
                ?>
&nbsp;&raquo; <?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['domainemailforwarding'];
                ?>
<br /><?php 
            }
            ?>
                        <?php 
            if ($_smarty_tpl->tpl_vars['domain']->value['idprotection']) {
                ?>
&nbsp;&raquo; <?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['domainidprotection'];
                ?>
<br /><?php 
            }
            ?>
                        <a href="<?php 
            echo $_SERVER['PHP_SELF'];
            ?>
?a=confdomains" class="cartedit">[<?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['cartconfigdomainextras'];
            ?>
]</a>
                        <a href="#" onclick="removeItem('d','<?php 
            echo $_smarty_tpl->tpl_vars['num']->value;
            ?>
');return false" class="cartremove">[<?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['cartremove'];
            ?>
]</a>
                    </td>
                    <td class="text-center">
                        <strong><?php 
            echo $_smarty_tpl->tpl_vars['domain']->value['price'];
            ?>
</strong>
                    </td>
                </tr>
            <?php 
        }
        ?>

            <?php 
        $_smarty_tpl->tpl_vars['domain'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['domain']->_loop = false;
        $_smarty_tpl->tpl_vars['num'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['renewals']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['domain']->key => $_smarty_tpl->tpl_vars['domain']->value) {
            $_smarty_tpl->tpl_vars['domain']->_loop = true;
            $_smarty_tpl->tpl_vars['num']->value = $_smarty_tpl->tpl_vars['domain']->key;
            ?>
                <tr class="carttableproduct">
                    <td>
                        <strong><?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['domainrenewal'];
            ?>
</strong> - <?php 
            echo $_smarty_tpl->tpl_vars['domain']->value['domain'];
            ?>
 - <?php 
            echo $_smarty_tpl->tpl_vars['domain']->value['regperiod'];
            ?>
 <?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['orderyears'];
            ?>
<br />
                        <?php 
            if ($_smarty_tpl->tpl_vars['domain']->value['dnsmanagement']) {
                ?>
&nbsp;&raquo; <?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['domaindnsmanagement'];
                ?>
<br /><?php 
            }
            ?>
                        <?php 
            if ($_smarty_tpl->tpl_vars['domain']->value['emailforwarding']) {
                ?>
&nbsp;&raquo; <?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['domainemailforwarding'];
                ?>
<br /><?php 
            }
            ?>
                        <?php 
            if ($_smarty_tpl->tpl_vars['domain']->value['idprotection']) {
                ?>
&nbsp;&raquo; <?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['domainidprotection'];
                ?>
<br /><?php 
            }
            ?>
                        <a href="#" onclick="removeItem('r','<?php 
            echo $_smarty_tpl->tpl_vars['num']->value;
            ?>
');return false" class="cartremove">[<?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['cartremove'];
            ?>
]</a>
                    </td>
                    <td class="text-center">
                        <strong><?php 
            echo $_smarty_tpl->tpl_vars['domain']->value['price'];
            ?>
</strong>
                    </td>
                </tr>
            <?php 
        }
        ?>

            <?php 
        if ($_smarty_tpl->tpl_vars['cartitems']->value == 0) {
            ?>
                <tr class="clientareatableactive">
                    <td colspan="2" class="text-center">
                        <br />
                        <?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['cartempty'];
            ?>

                        <br /><br />
                    </td>
                </tr>
            <?php 
        }
        ?>

            <tr class="subtotal">
                <td class="text-right"><?php 
        echo $_smarty_tpl->tpl_vars['LANG']->value['ordersubtotal'];
        ?>
: &nbsp;</td>
                <td class="text-center"><?php 
        echo $_smarty_tpl->tpl_vars['subtotal']->value;
        ?>
</td>
            </tr>
            <?php 
        if ($_smarty_tpl->tpl_vars['promotioncode']->value) {
            ?>
                <tr class="promotion">
                    <td class="text-right"><?php 
            echo $_smarty_tpl->tpl_vars['promotiondescription']->value;
            ?>
: &nbsp;</td>
                    <td class="text-center"><?php 
            echo $_smarty_tpl->tpl_vars['discount']->value;
            ?>
</td>
                </tr>
            <?php 
        }
        ?>
            <?php 
        if ($_smarty_tpl->tpl_vars['taxrate']->value) {
            ?>
                <tr class="subtotal">
                    <td class="text-right"><?php 
            echo $_smarty_tpl->tpl_vars['taxname']->value;
            ?>
 @ <?php 
            echo $_smarty_tpl->tpl_vars['taxrate']->value;
            ?>
%: &nbsp;</td>
                    <td class="text-center"><?php 
            echo $_smarty_tpl->tpl_vars['taxtotal']->value;
            ?>
</td>
                </tr>
            <?php 
        }
        ?>
            <?php 
        if ($_smarty_tpl->tpl_vars['taxrate2']->value) {
            ?>
                <tr class="subtotal">
                    <td class="text-right"><?php 
            echo $_smarty_tpl->tpl_vars['taxname2']->value;
            ?>
 @ <?php 
            echo $_smarty_tpl->tpl_vars['taxrate2']->value;
            ?>
%: &nbsp;</td>
                    <td class="text-center"><?php 
            echo $_smarty_tpl->tpl_vars['taxtotal2']->value;
            ?>
</td>
                </tr>
            <?php 
        }
        ?>
            <tr class="total">
                <td class="text-right"><?php 
        echo $_smarty_tpl->tpl_vars['LANG']->value['ordertotalduetoday'];
        ?>
: &nbsp;</td>
                <td class="text-center"><?php 
        echo $_smarty_tpl->tpl_vars['total']->value;
        ?>
</td>
            </tr>
            <?php 
        if ($_smarty_tpl->tpl_vars['totalrecurringmonthly']->value || $_smarty_tpl->tpl_vars['totalrecurringquarterly']->value || $_smarty_tpl->tpl_vars['totalrecurringsemiannually']->value || $_smarty_tpl->tpl_vars['totalrecurringannually']->value || $_smarty_tpl->tpl_vars['totalrecurringbiennially']->value || $_smarty_tpl->tpl_vars['totalrecurringtriennially']->value) {
            ?>
                <tr class="recurring">
                    <td class="text-right"><?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['ordertotalrecurring'];
            ?>
: &nbsp;</td>
                    <td class="text-center">
                        <?php 
            if ($_smarty_tpl->tpl_vars['totalrecurringmonthly']->value) {
                echo $_smarty_tpl->tpl_vars['totalrecurringmonthly']->value;
                ?>
 <?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['orderpaymenttermmonthly'];
                ?>
<br /><?php 
            }
            ?>
                        <?php 
            if ($_smarty_tpl->tpl_vars['totalrecurringquarterly']->value) {
                echo $_smarty_tpl->tpl_vars['totalrecurringquarterly']->value;
                ?>
 <?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['orderpaymenttermquarterly'];
                ?>
<br /><?php 
            }
            ?>
                        <?php 
            if ($_smarty_tpl->tpl_vars['totalrecurringsemiannually']->value) {
                echo $_smarty_tpl->tpl_vars['totalrecurringsemiannually']->value;
                ?>
 <?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['orderpaymenttermsemiannually'];
                ?>
<br /><?php 
            }
            ?>
                        <?php 
            if ($_smarty_tpl->tpl_vars['totalrecurringannually']->value) {
                echo $_smarty_tpl->tpl_vars['totalrecurringannually']->value;
                ?>
 <?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['orderpaymenttermannually'];
                ?>
<br /><?php 
            }
            ?>
                        <?php 
            if ($_smarty_tpl->tpl_vars['totalrecurringbiennially']->value) {
                echo $_smarty_tpl->tpl_vars['totalrecurringbiennially']->value;
                ?>
 <?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['orderpaymenttermbiennially'];
                ?>
<br /><?php 
            }
            ?>
                        <?php 
            if ($_smarty_tpl->tpl_vars['totalrecurringtriennially']->value) {
                echo $_smarty_tpl->tpl_vars['totalrecurringtriennially']->value;
                ?>
 <?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['orderpaymenttermtriennially'];
                ?>
<br /><?php 
            }
            ?>
                    </td>
                </tr>
            <?php 
        }
        ?>
        </table>

    </form>

    <div class="cartbuttons">
        <button type="button" class="btn btn-danger btn-sm" onclick="emptyCart();return false"><i class="fa fa-trash"></i> <?php 
        echo $_smarty_tpl->tpl_vars['LANG']->value['emptycart'];
        ?>
</button>
        <a href="cart.php" class="btn btn-default btn-sm"><i class="fa fa-shopping-cart"></i> <?php 
        echo $_smarty_tpl->tpl_vars['LANG']->value['continueshopping'];
        ?>
</a>
    </div>

    <?php 
        $_smarty_tpl->tpl_vars['gatewayoutput'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['gatewayoutput']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['gatewaysoutput']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['gatewayoutput']->key => $_smarty_tpl->tpl_vars['gatewayoutput']->value) {
            $_smarty_tpl->tpl_vars['gatewayoutput']->_loop = true;
            ?>
        <div class="clear"></div>
        <div class="cartbuttons">
            <?php 
            echo $_smarty_tpl->tpl_vars['gatewayoutput']->value;
            ?>

        </div>
    <?php 
        }
        ?>

    <?php 
        if ($_smarty_tpl->tpl_vars['cartitems']->value != 0) {
            ?>

        <form method="post" action="<?php 
            echo $_SERVER['PHP_SELF'];
            ?>
?a=checkout" id="mainfrm">
            <input type="hidden" name="submit" value="true" />
            <input type="hidden" name="custtype" id="custtype" value="<?php 
            echo $_smarty_tpl->tpl_vars['custtype']->value;
            ?>
" />

            <br /><br />

            <h2><?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['yourdetails'];
            ?>
</h2>

            <div style="float:left;width:20px;">&nbsp;</div><div class="signuptype<?php 
            if (!$_smarty_tpl->tpl_vars['loggedin']->value && $_smarty_tpl->tpl_vars['custtype']->value != "existing") {
                ?>
 active<?php 
            }
            ?>
"<?php 
            if (!$_smarty_tpl->tpl_vars['loggedin']->value) {
                ?>
 id="newcust"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['newcustomer'];
            ?>
</div><div class="signuptype<?php 
            if ($_smarty_tpl->tpl_vars['custtype']->value == "existing" && !$_smarty_tpl->tpl_vars['loggedin']->value || $_smarty_tpl->tpl_vars['loggedin']->value) {
                ?>
 active<?php 
            }
            ?>
" id="existingcust"><?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['existingcustomer'];
            ?>
</div>
            <div class="clear"></div>

            <div class="signupfields signupfields-existing<?php 
            if ($_smarty_tpl->tpl_vars['custtype']->value == "existing" && !$_smarty_tpl->tpl_vars['loggedin']->value) {
            } else {
                ?>
 hidden<?php 
            }
            ?>
" id="loginfrm">

                <div class="col-sm-6 col-sm-offset-3">

                    <div class="form-group">
                        <label for="inputEmail"><?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['clientareaemail'];
            ?>
</label>
                        <input type="email" name="loginemail" class="form-control" id="inputEmail" placeholder="<?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['enteremail'];
            ?>
"<?php 
            if ($_smarty_tpl->tpl_vars['loggedin']->value) {
                ?>
 disabled<?php 
            }
            ?>
 />
                    </div>
                    <div class="form-group">
                        <label for="inputPassword"><?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['clientareapassword'];
            ?>
</label>
                        <input type="password" name="loginpw" class="form-control" id="inputPassword" placeholder="<?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['clientareapassword'];
            ?>
"<?php 
            if ($_smarty_tpl->tpl_vars['loggedin']->value) {
                ?>
 disabled<?php 
            }
            ?>
 />
                    </div>

                </div>

                <div class="clearfix"></div>

            </div>
            <div class="signupfields<?php 
            if ($_smarty_tpl->tpl_vars['custtype']->value == "existing" && !$_smarty_tpl->tpl_vars['loggedin']->value) {
                ?>
 hidden<?php 
            }
            ?>
" id="signupfrm">
                <div class="row">
                    <div class="col-md-6">
                        <div class="form-group">
                            <?php 
            if ($_smarty_tpl->tpl_vars['loggedin']->value) {
                ?>
                                <div class="row">
                                    <label class="col-sm-4 text-right">
                                        <?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientareafirstname'];
                ?>

                                    </label>
                                    <div class="col-sm-8">
                                        <?php 
                echo $_smarty_tpl->tpl_vars['clientsdetails']->value['firstname'];
                ?>

                                    </div>
                                </div>
                            <?php 
            } else {
                ?>
                                <label for="firstname" class="control-label"><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientareafirstname'];
                ?>
</label>
                                <input type="text" name="firstname" id="firstname" value="<?php 
                echo $_smarty_tpl->tpl_vars['clientsdetails']->value['firstname'];
                ?>
" class="form-control"<?php 
                if (!in_array('firstname', $_smarty_tpl->tpl_vars['clientsProfileOptionalFields']->value)) {
                    ?>
 required<?php 
                }
                ?>
 />
                            <?php 
            }
            ?>
                        </div>
                        <div class="form-group">
                            <?php 
            if ($_smarty_tpl->tpl_vars['loggedin']->value) {
                ?>
                                <div class="row">
                                    <label class="col-sm-4 text-right">
                                        <?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientarealastname'];
                ?>

                                    </label>
                                    <div class="col-sm-8">
                                        <?php 
                echo $_smarty_tpl->tpl_vars['clientsdetails']->value['lastname'];
                ?>

                                    </div>
                                </div>
                            <?php 
            } else {
                ?>
                                <label for="lastname" class="control-label"><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientarealastname'];
                ?>
</label>
                                <input type="text" name="lastname" id="lastname" value="<?php 
                echo $_smarty_tpl->tpl_vars['clientsdetails']->value['lastname'];
                ?>
" class="form-control"<?php 
                if (!in_array('lastname', $_smarty_tpl->tpl_vars['clientsProfileOptionalFields']->value)) {
                    ?>
 required<?php 
                }
                ?>
  />
                            <?php 
            }
            ?>
                        </div>
                        <div class="form-group">
                            <?php 
            if ($_smarty_tpl->tpl_vars['loggedin']->value) {
                ?>
                                <div class="row">
                                    <label class="col-sm-4 text-right">
                                        <?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientareacompanyname'];
                ?>

                                    </label>
                                    <div class="col-sm-8">
                                        <?php 
                echo $_smarty_tpl->tpl_vars['clientsdetails']->value['companyname'];
                ?>

                                    </div>
                                </div>
                            <?php 
            } else {
                ?>
                                <label for="companyname" class="control-label"><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientareacompanyname'];
                ?>
</label>
                                <input type="text" name="companyname" id="companyname" value="<?php 
                echo $_smarty_tpl->tpl_vars['clientsdetails']->value['companyname'];
                ?>
" class="form-control" />
                            <?php 
            }
            ?>
                        </div>
                        <div class="form-group">
                            <?php 
            if ($_smarty_tpl->tpl_vars['loggedin']->value) {
                ?>
                                <div class="row">
                                    <label class="col-sm-4 text-right">
                                        <?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientareaemail'];
                ?>

                                    </label>
                                    <div class="col-sm-8">
                                        <?php 
                echo $_smarty_tpl->tpl_vars['clientsdetails']->value['email'];
                ?>

                                    </div>
                                </div>
                            <?php 
            } else {
                ?>
                                <label for="email" class="control-label"><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientareaemail'];
                ?>
</label>
                                <input type="email" name="email" id="email" value="<?php 
                echo $_smarty_tpl->tpl_vars['clientsdetails']->value['email'];
                ?>
" class="form-control" required/>
                            <?php 
            }
            ?>
                        </div>
                        <?php 
            if (!$_smarty_tpl->tpl_vars['loggedin']->value) {
                ?>
                            <div id="newPassword1" class="form-group has-feedback">
                                <label for="inputNewPassword1" class="control-label"><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientareapassword'];
                ?>
</label>
                                <input type="password" class="form-control" id="inputNewPassword1" name="password" value="<?php 
                echo $_smarty_tpl->tpl_vars['password']->value;
                ?>
" required/>
                                <span class="form-control-feedback glyphicon glyphicon-password"></span>
                                <?php 
                echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['template']->value . "/includes/pwstrength.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                ?>

                            </div>
                            <div id="newPassword2" class="form-group has-feedback">
                                <label for="inputNewPassword2" class="control-label"><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientareaconfirmpassword'];
                ?>
</label>
                                <input type="password" class="form-control" id="inputNewPassword2" name="password2" value="<?php 
                echo $_smarty_tpl->tpl_vars['password2']->value;
                ?>
" required/>
                                <span class="form-control-feedback glyphicon glyphicon-password"></span>
                                <div id="inputNewPassword2Msg">
                                </div>
                            </div>
                        <?php 
            }
            ?>
                    </div>
                    <div class="col-md-6">
                        <div class="form-group">
                            <?php 
            if ($_smarty_tpl->tpl_vars['loggedin']->value) {
                ?>
                                <div class="row">
                                    <label class="col-sm-4 text-right">
                                        <?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientareaaddress1'];
                ?>

                                    </label>
                                    <div class="col-sm-8">
                                        <?php 
                echo $_smarty_tpl->tpl_vars['clientsdetails']->value['address1'];
                ?>

                                    </div>
                                </div>
                            <?php 
            } else {
                ?>
                                <label for="address1" class="control-label"><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientareaaddress1'];
                ?>
</label>
                                <input type="text" name="address1" id="address1" value="<?php 
                echo $_smarty_tpl->tpl_vars['clientsdetails']->value['address1'];
                ?>
" class="form-control"<?php 
                if (!in_array('address1', $_smarty_tpl->tpl_vars['clientsProfileOptionalFields']->value)) {
                    ?>
 required<?php 
                }
                ?>
 />
                            <?php 
            }
            ?>
                        </div>
                        <div class="form-group">
                            <?php 
            if ($_smarty_tpl->tpl_vars['loggedin']->value) {
                ?>
                                <div class="row">
                                    <label class="col-sm-4 text-right">
                                        <?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientareaaddress2'];
                ?>

                                    </label>
                                    <div class="col-sm-8">
                                        <?php 
                echo $_smarty_tpl->tpl_vars['clientsdetails']->value['address2'];
                ?>

                                    </div>
                                </div>
                            <?php 
            } else {
                ?>
                                <label for="address2" class="control-label"><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientareaaddress2'];
                ?>
</label>
                                <input type="text" name="address2" id="address2" value="<?php 
                echo $_smarty_tpl->tpl_vars['clientsdetails']->value['address2'];
                ?>
" class="form-control" />
                            <?php 
            }
            ?>
                        </div>
                        <div class="form-group">
                            <?php 
            if ($_smarty_tpl->tpl_vars['loggedin']->value) {
                ?>
                                <div class="row">
                                    <label class="col-sm-4 text-right">
                                        <?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientareacity'];
                ?>

                                    </label>
                                    <div class="col-sm-8">
                                        <?php 
                echo $_smarty_tpl->tpl_vars['clientsdetails']->value['city'];
                ?>

                                    </div>
                                </div>
                            <?php 
            } else {
                ?>
                                <label for="city" class="control-label"><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientareacity'];
                ?>
</label>
                                <input type="text" name="city" id="city" value="<?php 
                echo $_smarty_tpl->tpl_vars['clientsdetails']->value['city'];
                ?>
" class="form-control"<?php 
                if (!in_array('city', $_smarty_tpl->tpl_vars['clientsProfileOptionalFields']->value)) {
                    ?>
 required<?php 
                }
                ?>
 />
                            <?php 
            }
            ?>
                        </div>
                        <div class="form-group">
                            <?php 
            if ($_smarty_tpl->tpl_vars['loggedin']->value) {
                ?>
                                <div class="row">
                                    <label class="col-sm-4 text-right">
                                        <?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientareastate'];
                ?>

                                    </label>
                                    <div class="col-sm-8">
                                        <?php 
                echo $_smarty_tpl->tpl_vars['clientsdetails']->value['state'];
                ?>

                                    </div>
                                </div>
                            <?php 
            } else {
                ?>
                                <label for="state" class="control-label"><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientareastate'];
                ?>
</label>
                                <input type="text" name="state" id="state" value="<?php 
                echo $_smarty_tpl->tpl_vars['clientsdetails']->value['state'];
                ?>
" class="form-control"<?php 
                if (!in_array('state', $_smarty_tpl->tpl_vars['clientsProfileOptionalFields']->value)) {
                    ?>
 required<?php 
                }
                ?>
 />
                            <?php 
            }
            ?>
                        </div>
                        <div class="form-group">
                            <?php 
            if ($_smarty_tpl->tpl_vars['loggedin']->value) {
                ?>
                                <div class="row">
                                    <label class="col-sm-4 text-right">
                                        <?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientareapostcode'];
                ?>

                                    </label>
                                    <div class="col-sm-8">
                                        <?php 
                echo $_smarty_tpl->tpl_vars['clientsdetails']->value['postcode'];
                ?>

                                    </div>
                                </div>
                            <?php 
            } else {
                ?>
                                <label for="postcode" class="control-label"><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientareapostcode'];
                ?>
</label>
                                <input type="text" name="postcode" id="postcode" value="<?php 
                echo $_smarty_tpl->tpl_vars['clientsdetails']->value['postcode'];
                ?>
" class="form-control"<?php 
                if (!in_array('postcode', $_smarty_tpl->tpl_vars['clientsProfileOptionalFields']->value)) {
                    ?>
 required<?php 
                }
                ?>
 />
                            <?php 
            }
            ?>
                        </div>
                        <div class="form-group">
                            <?php 
            if ($_smarty_tpl->tpl_vars['loggedin']->value) {
                ?>
                                <div class="row">
                                    <label class="col-sm-4 text-right">
                                        <?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientareacountry'];
                ?>

                                    </label>
                                    <div class="col-sm-8">
                                        <?php 
                echo $_smarty_tpl->tpl_vars['clientsdetails']->value['country'];
                ?>

                                    </div>
                                </div>
                            <?php 
            } else {
                ?>
                                <label for="country" class="control-label"><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientareacountry'];
                ?>
</label>
                                <select id="country" name="country" class="form-control">
                                    <?php 
                $_smarty_tpl->tpl_vars['thisCountryName'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['thisCountryName']->_loop = false;
                $_smarty_tpl->tpl_vars['thisCountryCode'] = new Smarty_Variable();
                $_from = $_smarty_tpl->tpl_vars['countries']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['thisCountryName']->key => $_smarty_tpl->tpl_vars['thisCountryName']->value) {
                    $_smarty_tpl->tpl_vars['thisCountryName']->_loop = true;
                    $_smarty_tpl->tpl_vars['thisCountryCode']->value = $_smarty_tpl->tpl_vars['thisCountryName']->key;
                    ?>
                                        <option value="<?php 
                    echo $_smarty_tpl->tpl_vars['thisCountryCode']->value;
                    ?>
" <?php 
                    if ($_smarty_tpl->tpl_vars['thisCountryCode']->value == $_smarty_tpl->tpl_vars['clientsdetails']->value['country']) {
                        ?>
selected="selected"<?php 
                    }
                    ?>
><?php 
                    echo $_smarty_tpl->tpl_vars['thisCountryName']->value;
                    ?>
</option>
                                    <?php 
                }
                ?>
                                </select>
                            <?php 
            }
            ?>
                        </div>
                        <div class="form-group">
                            <?php 
            if ($_smarty_tpl->tpl_vars['loggedin']->value) {
                ?>
                                <div class="row">
                                    <label class="col-sm-4 text-right">
                                        <?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientareaphonenumber'];
                ?>

                                    </label>
                                    <div class="col-sm-8">
                                        <?php 
                echo $_smarty_tpl->tpl_vars['clientsdetails']->value['phonenumber'];
                ?>

                                    </div>
                                </div>
                            <?php 
            } else {
                ?>
                                <label for="phonenumber" class="control-label"><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientareaphonenumber'];
                ?>
</label>
                                <input type="text" name="phonenumber" id="phonenumber" value="<?php 
                echo $_smarty_tpl->tpl_vars['clientsdetails']->value['phonenumber'];
                ?>
" class="form-control"<?php 
                if (!in_array('phonenumber', $_smarty_tpl->tpl_vars['clientsProfileOptionalFields']->value)) {
                    ?>
 required<?php 
                }
                ?>
 />
                            <?php 
            }
            ?>
                        </div>
                        <?php 
            if ($_smarty_tpl->tpl_vars['customfields']->value) {
                ?>
                            <?php 
                $_smarty_tpl->tpl_vars['customfield'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['customfield']->_loop = false;
                $_smarty_tpl->tpl_vars['num'] = new Smarty_Variable();
                $_from = $_smarty_tpl->tpl_vars['customfields']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['customfield']->key => $_smarty_tpl->tpl_vars['customfield']->value) {
                    $_smarty_tpl->tpl_vars['customfield']->_loop = true;
                    $_smarty_tpl->tpl_vars['num']->value = $_smarty_tpl->tpl_vars['customfield']->key;
                    ?>
                                <div class="form-group">
                                    <label class="control-label" for="customfield<?php 
                    echo $_smarty_tpl->tpl_vars['customfield']->value['id'];
                    ?>
"><?php 
                    echo $_smarty_tpl->tpl_vars['customfield']->value['name'];
                    ?>
</label>
                                    <div class="control">
                                        <?php 
                    echo $_smarty_tpl->tpl_vars['customfield']->value['input'];
                    ?>
 <?php 
                    echo $_smarty_tpl->tpl_vars['customfield']->value['description'];
                    ?>

                                    </div>
                                </div>
                            <?php 
                }
                ?>
                        <?php 
            }
            ?>
                    </div>
                </div>
            </div>

            <?php 
            if ($_smarty_tpl->tpl_vars['securityquestions']->value && !$_smarty_tpl->tpl_vars['loggedin']->value) {
                ?>
                <div class="panel panel-default" id="securityQuestion">
                    <div class="panel-heading">
                        <h3 class="panel-title"><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientareasecurityquestion'];
                ?>
:</h3>
                    </div>
                    <div class="panel-body">
                        <div class="form-group col-sm-12">
                            <select name="securityqid" id="securityqid" class="form-control">
                                <?php 
                $_smarty_tpl->tpl_vars['question'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['question']->_loop = false;
                $_smarty_tpl->tpl_vars['num'] = new Smarty_Variable();
                $_from = $_smarty_tpl->tpl_vars['securityquestions']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['question']->key => $_smarty_tpl->tpl_vars['question']->value) {
                    $_smarty_tpl->tpl_vars['question']->_loop = true;
                    $_smarty_tpl->tpl_vars['num']->value = $_smarty_tpl->tpl_vars['question']->key;
                    ?>
                                    <option value=<?php 
                    echo $_smarty_tpl->tpl_vars['question']->value['id'];
                    ?>
><?php 
                    echo $_smarty_tpl->tpl_vars['question']->value['question'];
                    ?>
</option>
                                <?php 
                }
                ?>
                            </select>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-4 control-label" for="securityqans"><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientareasecurityanswer'];
                ?>
</label>
                            <div class="col-sm-6">
                                <input type="password" name="securityqans" id="securityqans" class="form-control"/>
                            </div>
                        </div>
                    </div>
                </div>
            <?php 
            }
            ?>

            <?php 
            if ($_smarty_tpl->tpl_vars['taxenabled']->value && !$_smarty_tpl->tpl_vars['loggedin']->value) {
                ?>
                <div class="carttaxwarning">
                    <?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['carttaxupdateselections'];
                ?>

                    <input type="submit" value="<?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['carttaxupdateselectionsupdate'];
                ?>
" name="updateonly" class="btn btn-info btn-sm" />
                </div>
            <?php 
            }
            ?>

            <?php 
            if ($_smarty_tpl->tpl_vars['domainsinorder']->value) {
                ?>
                <h2><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['domainregistrantinfo'];
                ?>
</h2>
                <select name="contact" id="inputDomainContact" class="form-control">
                    <option value=""><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['usedefaultcontact'];
                ?>
</option>
                    <?php 
                $_smarty_tpl->tpl_vars['domcontact'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['domcontact']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['domaincontacts']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['domcontact']->key => $_smarty_tpl->tpl_vars['domcontact']->value) {
                    $_smarty_tpl->tpl_vars['domcontact']->_loop = true;
                    ?>
                        <option value="<?php 
                    echo $_smarty_tpl->tpl_vars['domcontact']->value['id'];
                    ?>
"<?php 
                    if ($_smarty_tpl->tpl_vars['contact']->value == $_smarty_tpl->tpl_vars['domcontact']->value['id']) {
                        ?>
 selected<?php 
                    }
                    ?>
><?php 
                    echo $_smarty_tpl->tpl_vars['domcontact']->value['name'];
                    ?>
</option>
                    <?php 
                }
                ?>
                    <option value="addingnew"<?php 
                if ($_smarty_tpl->tpl_vars['contact']->value == "addingnew") {
                    ?>
 selected<?php 
                }
                ?>
><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientareanavaddcontact'];
                ?>
...</option>
                </select>
                <br />
                <div class="signupfields<?php 
                if ($_smarty_tpl->tpl_vars['contact']->value != "addingnew") {
                    ?>
 hidden<?php 
                }
                ?>
" id="domaincontactfields">
                    <div class="row">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label for="domaincontactfirstname" class="control-label"><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientareafirstname'];
                ?>
</label>
                                <input type="text" name="domaincontactfirstname" id="domaincontactfirstname" value="<?php 
                echo $_smarty_tpl->tpl_vars['domaincontact']->value['firstname'];
                ?>
" class="form-control" />
                            </div>
                            <div class="form-group">
                                <label for="domaincontactlastname" class="control-label"><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientarealastname'];
                ?>
</label>
                                <input type="text" name="domaincontactlastname" id="domaincontactlastname" value="<?php 
                echo $_smarty_tpl->tpl_vars['domaincontact']->value['lastname'];
                ?>
" class="form-control" />
                            </div>
                            <div class="form-group">
                                <label for="domaincontactcompanyname" class="control-label"><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientareacompanyname'];
                ?>
</label>
                                <input type="text" name="domaincontactcompanyname" id="domaincontactcompanyname" value="<?php 
                echo $_smarty_tpl->tpl_vars['domaincontact']->value['companyname'];
                ?>
" class="form-control" />
                            </div>
                            <div class="form-group">
                                <label for="domaincontactemail" class="control-label"><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientareaemail'];
                ?>
</label>
                                <input type="email" name="domaincontactemail" id="domaincontactemail" value="<?php 
                echo $_smarty_tpl->tpl_vars['domaincontact']->value['email'];
                ?>
" class="form-control" />
                            </div>
                            <div class="form-group">
                                <label for="domaincontactphonenumber" class="control-label"><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientareaphonenumber'];
                ?>
</label>
                                <input type="text" name="domaincontactphonenumber" id="domaincontactphonenumber" value="<?php 
                echo $_smarty_tpl->tpl_vars['domaincontact']->value['phonenumber'];
                ?>
" class="form-control" />
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <label for="domaincontactaddress1" class="control-label"><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientareaaddress1'];
                ?>
</label>
                                <input type="text" name="domaincontactaddress1" id="domaincontactaddress1" value="<?php 
                echo $_smarty_tpl->tpl_vars['domaincontact']->value['address1'];
                ?>
" class="form-control" />
                            </div>
                            <div class="form-group">
                                <label for="domaincontactaddress2" class="control-label"><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientareaaddress2'];
                ?>
</label>
                                <input type="text" name="domaincontactaddress2" id="domaincontactaddress2" value="<?php 
                echo $_smarty_tpl->tpl_vars['domaincontact']->value['address2'];
                ?>
" class="form-control" />
                            </div>
                            <div class="form-group">
                                <label for="domaincontactcity" class="control-label"><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientareacity'];
                ?>
</label>
                                <input type="text" name="domaincontactcity" id="domaincontactcity" value="<?php 
                echo $_smarty_tpl->tpl_vars['domaincontact']->value['city'];
                ?>
" class="form-control" />
                            </div>
                            <div class="form-group">
                                <label for="domaincontactstate" class="control-label"><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientareastate'];
                ?>
</label>
                                <input type="text" name="domaincontactstate" id="domaincontactstate" value="<?php 
                echo $_smarty_tpl->tpl_vars['domaincontact']->value['state'];
                ?>
" class="form-control" />
                            </div>
                            <div class="form-group">
                                <label for="domaincontactpostcode" class="control-label"><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientareapostcode'];
                ?>
</label>
                                <input type="text" name="domaincontactpostcode" id="domaincontactpostcode" value="<?php 
                echo $_smarty_tpl->tpl_vars['domaincontact']->value['postcode'];
                ?>
" class="form-control" />
                            </div>
                            <div class="form-group">
                                <label for="domaincontactcountry" class="control-label"><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientareacountry'];
                ?>
</label>
                                <select id="domaincontactcountry" name="domaincontactcountry" class="form-control">
                                    <?php 
                $_smarty_tpl->tpl_vars['thisCountryName'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['thisCountryName']->_loop = false;
                $_smarty_tpl->tpl_vars['thisCountryCode'] = new Smarty_Variable();
                $_from = $_smarty_tpl->tpl_vars['countries']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['thisCountryName']->key => $_smarty_tpl->tpl_vars['thisCountryName']->value) {
                    $_smarty_tpl->tpl_vars['thisCountryName']->_loop = true;
                    $_smarty_tpl->tpl_vars['thisCountryCode']->value = $_smarty_tpl->tpl_vars['thisCountryName']->key;
                    ?>
                                        <option value="<?php 
                    echo $_smarty_tpl->tpl_vars['thisCountryCode']->value;
                    ?>
" <?php 
                    if ($_smarty_tpl->tpl_vars['domaincontact']->value['country'] && $_smarty_tpl->tpl_vars['thisCountryCode']->value == $_smarty_tpl->tpl_vars['domaincontact']->value['country'] || $_smarty_tpl->tpl_vars['thisCountryCode']->value == $_smarty_tpl->tpl_vars['clientsdetails']->value['country']) {
                        ?>
selected="selected"<?php 
                    }
                    ?>
><?php 
                    echo $_smarty_tpl->tpl_vars['thisCountryName']->value;
                    ?>
</option>
                                    <?php 
                }
                ?>
                                </select>
                            </div>
                        </div>
                    </div>
                </div>
            <?php 
            }
            ?>

            <div class="row">
                <div class="col-md-6">

                    <div class="signupfields padded">
                        <h2><?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['orderpromotioncode'];
            ?>
</h2>
                        <?php 
            if ($_smarty_tpl->tpl_vars['promotioncode']->value) {
                ?>
                            <?php 
                echo $_smarty_tpl->tpl_vars['promotioncode']->value;
                ?>
 - <?php 
                echo $_smarty_tpl->tpl_vars['promotiondescription']->value;
                ?>
<br />
                            <a href="<?php 
                echo $_SERVER['PHP_SELF'];
                ?>
?a=removepromo"><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['orderdontusepromo'];
                ?>
</a>
                        <?php 
            } else {
                ?>
                            <div class="col-xs-10 col-xs-offset-1">
                                <div class="input-group">
                                    <input type="text" name="promocode" id="inputPromoCode" class="form-control" placeholder="<?php 
                echo WHMCS\Smarty::langFunction(array('key' => "orderPromoCodePlaceholder"), $_smarty_tpl);
                ?>
">
                                    <span class="input-group-btn">
                                        <button type="submit" name="validatepromo" formnovalidate class="btn btn-warning" value="<?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['orderpromovalidatebutton'];
                ?>
">
                                            <?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['orderpromovalidatebutton'];
                ?>

                                        </button>
                                    </span>
                                </div>
                            </div>
                            <div class="clearfix"></div>
                        <?php 
            }
            ?>
                    </div>

                    <?php 
            if ($_smarty_tpl->tpl_vars['shownotesfield']->value) {
                ?>
                        <div class="signupfields padded">
                            <h2><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['ordernotes'];
                ?>
</h2>
                            <textarea name="notes" rows="3" class="form-control" placeholder="<?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['ordernotesdescription'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['notes']->value;
                ?>
</textarea>
                        </div>
                    <?php 
            }
            ?>

                </div>
                <div class="col-md-6">

                    <div class="signupfields padded">
                        <h2><?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['orderpaymentmethod'];
            ?>
</h2>
                        <?php 
            $_smarty_tpl->tpl_vars['gateway'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['gateway']->_loop = false;
            $_smarty_tpl->tpl_vars['num'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['gateways']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['gateway']->key => $_smarty_tpl->tpl_vars['gateway']->value) {
                $_smarty_tpl->tpl_vars['gateway']->_loop = true;
                $_smarty_tpl->tpl_vars['num']->value = $_smarty_tpl->tpl_vars['gateway']->key;
                ?>
                            <label class="radio-inline">
                                <input type="radio" name="paymentmethod" value="<?php 
                echo $_smarty_tpl->tpl_vars['gateway']->value['sysname'];
                ?>
" id="pgbtn<?php 
                echo $_smarty_tpl->tpl_vars['num']->value;
                ?>
" onclick="<?php 
                if ($_smarty_tpl->tpl_vars['gateway']->value['type'] == "CC") {
                    ?>
showCCForm()<?php 
                } else {
                    ?>
hideCCForm()<?php 
                }
                ?>
"<?php 
                if ($_smarty_tpl->tpl_vars['selectedgateway']->value == $_smarty_tpl->tpl_vars['gateway']->value['sysname']) {
                    ?>
 checked<?php 
                }
                ?>
 />
                                <?php 
                echo $_smarty_tpl->tpl_vars['gateway']->value['name'];
                ?>

                            </label>
                        <?php 
            }
            ?>

                        <br /><br />

                        <div id="ccinputform" class="signupfields<?php 
            if ($_smarty_tpl->tpl_vars['selectedgatewaytype']->value != "CC") {
                ?>
 hidden<?php 
            }
            ?>
">
                            <table width="100%" cellspacing="0" cellpadding="0" class="configtable textleft">
                                <?php 
            if ($_smarty_tpl->tpl_vars['clientsdetails']->value['cclastfour']) {
                ?>
                                    <tr>
                                        <td class="fieldlabel"></td>
                                        <td class="fieldarea">
                                            <label class="radio-inline">
                                                <input type="radio" name="ccinfo" value="useexisting" id="useexisting" onclick="useExistingCC()"<?php 
                if ($_smarty_tpl->tpl_vars['clientsdetails']->value['cclastfour']) {
                    ?>
 checked<?php 
                } else {
                    ?>
 disabled<?php 
                }
                ?>
 />
                                                <?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['creditcarduseexisting'];
                ?>

                                                <?php 
                if ($_smarty_tpl->tpl_vars['clientsdetails']->value['cclastfour']) {
                    ?>
                                                    (<?php 
                    echo $_smarty_tpl->tpl_vars['clientsdetails']->value['cclastfour'];
                    ?>
)
                                                <?php 
                }
                ?>
                                            </label><br />
                                            <label class="radio-inline">
                                                <input type="radio" name="ccinfo" value="new" id="new" onclick="enterNewCC()"<?php 
                if (!$_smarty_tpl->tpl_vars['clientsdetails']->value['cclastfour'] || $_smarty_tpl->tpl_vars['ccinfo']->value == "new") {
                    ?>
 checked<?php 
                }
                ?>
 />
                                                <?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['creditcardenternewcard'];
                ?>

                                            </label>
                                        </td>
                                    </tr>
                                <?php 
            } else {
                ?>
                                    <input type="hidden" name="ccinfo" value="new" />
                                <?php 
            }
            ?>
                                <tr class="newccinfo"<?php 
            if ($_smarty_tpl->tpl_vars['clientsdetails']->value['cclastfour'] && $_smarty_tpl->tpl_vars['ccinfo']->value != "new") {
                ?>
 style="display:none;"<?php 
            }
            ?>
>
                                    <td class="fieldlabel"><?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['creditcardcardtype'];
            ?>
</td>
                                    <td class="fieldarea">
                                        <select name="cctype" id="cctype">
                                            <?php 
            $_smarty_tpl->tpl_vars['cardtype'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['cardtype']->_loop = false;
            $_smarty_tpl->tpl_vars['num'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['acceptedcctypes']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['cardtype']->key => $_smarty_tpl->tpl_vars['cardtype']->value) {
                $_smarty_tpl->tpl_vars['cardtype']->_loop = true;
                $_smarty_tpl->tpl_vars['num']->value = $_smarty_tpl->tpl_vars['cardtype']->key;
                ?>
                                                <option<?php 
                if ($_smarty_tpl->tpl_vars['cctype']->value == $_smarty_tpl->tpl_vars['cardtype']->value) {
                    ?>
 selected<?php 
                }
                ?>
><?php 
                echo $_smarty_tpl->tpl_vars['cardtype']->value;
                ?>
</option>
                                            <?php 
            }
            ?>
                                        </select>
                                    </td>
                                </tr>
                                <tr class="newccinfo"<?php 
            if ($_smarty_tpl->tpl_vars['clientsdetails']->value['cclastfour'] && $_smarty_tpl->tpl_vars['ccinfo']->value != "new") {
                ?>
 style="display:none;"<?php 
            }
            ?>
>
                                    <td class="fieldlabel"><?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['creditcardcardnumber'];
            ?>
</td>
                                    <td class="fieldarea">
                                        <input type="text" name="ccnumber" size="30" value="<?php 
            echo $_smarty_tpl->tpl_vars['ccnumber']->value;
            ?>
" autocomplete="off" />
                                    </td>
                                </tr>
                                <tr class="newccinfo"<?php 
            if ($_smarty_tpl->tpl_vars['clientsdetails']->value['cclastfour'] && $_smarty_tpl->tpl_vars['ccinfo']->value != "new") {
                ?>
 style="display:none;"<?php 
            }
            ?>
>
                                    <td class="fieldlabel"><?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['creditcardcardexpires'];
            ?>
</td>
                                    <td class="fieldarea">
                                        <select name="ccexpirymonth" id="ccexpirymonth" class="newccinfo">
                                            <?php 
            $_smarty_tpl->tpl_vars['month'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['month']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['months']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['month']->key => $_smarty_tpl->tpl_vars['month']->value) {
                $_smarty_tpl->tpl_vars['month']->_loop = true;
                ?>
                                                <option<?php 
                if ($_smarty_tpl->tpl_vars['ccexpirymonth']->value == $_smarty_tpl->tpl_vars['month']->value) {
                    ?>
 selected<?php 
                }
                ?>
><?php 
                echo $_smarty_tpl->tpl_vars['month']->value;
                ?>
</option>
                                            <?php 
            }
            ?>
                                        </select>
                                        /
                                        <select name="ccexpiryyear" class="newccinfo">
                                            <?php 
            $_smarty_tpl->tpl_vars['year'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['year']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['expiryyears']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['year']->key => $_smarty_tpl->tpl_vars['year']->value) {
                $_smarty_tpl->tpl_vars['year']->_loop = true;
                ?>
                                                <option<?php 
                if ($_smarty_tpl->tpl_vars['ccexpiryyear']->value == $_smarty_tpl->tpl_vars['year']->value) {
                    ?>
 selected<?php 
                }
                ?>
><?php 
                echo $_smarty_tpl->tpl_vars['year']->value;
                ?>
</option>
                                            <?php 
            }
            ?>
                                        </select>
                                    </td>
                                </tr>
                                <?php 
            if ($_smarty_tpl->tpl_vars['showccissuestart']->value) {
                ?>
                                    <tr class="newccinfo"<?php 
                if ($_smarty_tpl->tpl_vars['clientsdetails']->value['cclastfour'] && $_smarty_tpl->tpl_vars['ccinfo']->value != "new") {
                    ?>
 style="display:none;"<?php 
                }
                ?>
>
                                        <td class="fieldlabel"><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['creditcardcardstart'];
                ?>
</td>
                                        <td class="fieldarea">
                                            <select name="ccstartmonth" id="ccstartmonth" class="newccinfo">
                                                <?php 
                $_smarty_tpl->tpl_vars['month'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['month']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['months']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['month']->key => $_smarty_tpl->tpl_vars['month']->value) {
                    $_smarty_tpl->tpl_vars['month']->_loop = true;
                    ?>
                                                    <option<?php 
                    if ($_smarty_tpl->tpl_vars['ccstartmonth']->value == $_smarty_tpl->tpl_vars['month']->value) {
                        ?>
 selected<?php 
                    }
                    ?>
><?php 
                    echo $_smarty_tpl->tpl_vars['month']->value;
                    ?>
</option>
                                                <?php 
                }
                ?>
                                            </select>
                                            /
                                            <select name="ccstartyear" class="newccinfo">
                                                <?php 
                $_smarty_tpl->tpl_vars['year'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['year']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['startyears']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['year']->key => $_smarty_tpl->tpl_vars['year']->value) {
                    $_smarty_tpl->tpl_vars['year']->_loop = true;
                    ?>
                                                    <option<?php 
                    if ($_smarty_tpl->tpl_vars['ccstartyear']->value == $_smarty_tpl->tpl_vars['year']->value) {
                        ?>
 selected<?php 
                    }
                    ?>
><?php 
                    echo $_smarty_tpl->tpl_vars['year']->value;
                    ?>
</option>
                                                <?php 
                }
                ?>
                                            </select>
                                        </td>
                                    </tr>
                                    <tr class="newccinfo"<?php 
                if ($_smarty_tpl->tpl_vars['clientsdetails']->value['cclastfour'] && $_smarty_tpl->tpl_vars['ccinfo']->value != "new") {
                    ?>
 style="display:none;"<?php 
                }
                ?>
>
                                        <td class="fieldlabel"><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['creditcardcardissuenum'];
                ?>
</td>
                                        <td class="fieldarea">
                                            <input type="text" name="ccissuenum" value="<?php 
                echo $_smarty_tpl->tpl_vars['ccissuenum']->value;
                ?>
" size="5" maxlength="3" />
                                        </td>
                                    </tr>
                                <?php 
            }
            ?>
                                <tr>
                                    <td class="fieldlabel"><?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['creditcardcvvnumber'];
            ?>
</td>
                                    <td class="fieldarea">
                                        <input type="text" name="cccvv" id="cccvv" value="<?php 
            echo $_smarty_tpl->tpl_vars['cccvv']->value;
            ?>
" size="5" autocomplete="off" />
                                        <a href="#" onclick="window.open('images/ccv.gif','','width=280,height=200,scrollbars=no,top=100,left=100');return false"><?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['creditcardcvvwhere'];
            ?>
</a>
                                    </td>
                                </tr>
                                <?php 
            if ($_smarty_tpl->tpl_vars['shownostore']->value) {
                ?>
                                    <tr>
                                        <td></td>
                                        <td class="fieldarea">
                                            <label class="checkbox-inline" for="nostore">
                                                <input type="checkbox" name="nostore" />
                                                <?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['creditcardnostore'];
                ?>

                                            </label>
                                        </td>
                                    </tr>
                                <?php 
            }
            ?>
                            </table>
                        </div>

                    </div>

                </div>
            </div>
            <div class="clearfix"></div>

            <?php 
            if ($_smarty_tpl->tpl_vars['accepttos']->value) {
                ?>
                <div align="center">
                    <label class="checkbox-inline">
                        <input type="checkbox" name="accepttos" id="accepttos" />
                        <?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['ordertosagreement'];
                ?>

                        <a href="<?php 
                echo $_smarty_tpl->tpl_vars['tosurl']->value;
                ?>
" target="_blank"><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['ordertos'];
                ?>
</a>
                    </label>
                </div>
                <br />
            <?php 
            }
            ?>

            <div align="center">
                <button type="submit" id="btnCompleteOrder"<?php 
            if ($_smarty_tpl->tpl_vars['cartitems']->value == 0) {
                ?>
 disabled<?php 
            }
            ?>
 onclick="this.value='<?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['pleasewait'];
            ?>
'" class="btn btn-primary btn-lg" <?php 
            if ($_smarty_tpl->tpl_vars['custtype']->value == "existing" && !$_smarty_tpl->tpl_vars['loggedin']->value) {
                ?>
formnovalidate<?php 
            }
            ?>
>
                    <?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['checkout'];
            ?>

                    &nbsp;<i class="fa fa-arrow-circle-right"></i>
                </button>
            </div>

        </form>

    <?php 
        } else {
            ?>

        <br /><br />

    <?php 
        }
        ?>

    <div class="cartwarningbox">
        <img src="assets/img/padlock.gif" align="absmiddle" border="0" alt="Secure Transaction" />
        &nbsp;<?php 
        echo $_smarty_tpl->tpl_vars['LANG']->value['ordersecure'];
        ?>
 (<strong><?php 
        echo $_smarty_tpl->tpl_vars['ipaddress']->value;
        ?>
</strong>) <?php 
        echo $_smarty_tpl->tpl_vars['LANG']->value['ordersecure2'];
        ?>

    </div>

</div>
<?php 
    }
    function content_55e98f74087695_88472652($_smarty_tpl)
    {
        if ($_smarty_tpl->tpl_vars['invalid']->value) {
            ?>
    <div class="domaininvalid"><?php 
            if ($_smarty_tpl->tpl_vars['reason']->value) {
                echo $_smarty_tpl->tpl_vars['reason']->value;
            } else {
                echo $_smarty_tpl->tpl_vars['LANG']->value['cartdomaininvalid'];
            }
            ?>
</div>
    <p align="center"><a href="#" onclick="cancelcheck();return false"><?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['carttryanotherdomain'];
            ?>
</a></p>
<?php 
        } elseif ($_smarty_tpl->tpl_vars['alreadyindb']->value) {
            ?>
    <div class="domaininvalid"><?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['cartdomainexists'];
            ?>
</div>
    <p align="center"><a href="#" onclick="cancelcheck();return false"><?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['carttryanotherdomain'];
            ?>
</a></p>
<?php 
        } else {
            ?>

<?php 
            if ($_smarty_tpl->tpl_vars['checktype']->value == "register" && $_smarty_tpl->tpl_vars['regenabled']->value) {
                ?>

<input type="hidden" name="domainoption" value="register" />

<?php 
                if ($_smarty_tpl->tpl_vars['status']->value == "available" || $_smarty_tpl->tpl_vars['status']->value == "error") {
                    ?>

<div class="domainavailable"><?php 
                    echo WHMCS\Smarty::sprintf2Modifier($_smarty_tpl->tpl_vars['LANG']->value['cartcongratsdomainavailable'], $_smarty_tpl->tpl_vars['domain']->value);
                    ?>
</div>
<input type="hidden" name="domains[]" value="<?php 
                    echo $_smarty_tpl->tpl_vars['domain']->value;
                    ?>
" />
<div class="domainregperiod"><?php 
                    echo $_smarty_tpl->tpl_vars['LANG']->value['cartregisterhowlong'];
                    ?>
 <select name="domainsregperiod[<?php 
                    echo $_smarty_tpl->tpl_vars['domain']->value;
                    ?>
]" id="regperiod"><?php 
                    $_smarty_tpl->tpl_vars['regoption'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['regoption']->_loop = false;
                    $_smarty_tpl->tpl_vars['period'] = new Smarty_Variable();
                    $_from = $_smarty_tpl->tpl_vars['regoptions']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['regoption']->key => $_smarty_tpl->tpl_vars['regoption']->value) {
                        $_smarty_tpl->tpl_vars['regoption']->_loop = true;
                        $_smarty_tpl->tpl_vars['period']->value = $_smarty_tpl->tpl_vars['regoption']->key;
                        if ($_smarty_tpl->tpl_vars['regoption']->value['register']) {
                            ?>
<option value="<?php 
                            echo $_smarty_tpl->tpl_vars['period']->value;
                            ?>
"><?php 
                            echo $_smarty_tpl->tpl_vars['period']->value;
                            ?>
 <?php 
                            echo $_smarty_tpl->tpl_vars['LANG']->value['orderyears'];
                            ?>
 @ <?php 
                            echo $_smarty_tpl->tpl_vars['regoption']->value['register'];
                            ?>
</option><?php 
                        }
                    }
                    ?>
</select></div>

<?php 
                    if (isset($_smarty_tpl->tpl_vars['continueok'])) {
                        $_smarty_tpl->tpl_vars['continueok'] = clone $_smarty_tpl->tpl_vars['continueok'];
                        $_smarty_tpl->tpl_vars['continueok']->value = true;
                        $_smarty_tpl->tpl_vars['continueok']->nocache = null;
                        $_smarty_tpl->tpl_vars['continueok']->scope = 0;
                    } else {
                        $_smarty_tpl->tpl_vars['continueok'] = new Smarty_variable(true, null, 0);
                    }
                    ?>

<?php 
                } elseif ($_smarty_tpl->tpl_vars['status']->value == "unavailable") {
                    ?>

<div class="domainunavailable"><?php 
                    echo WHMCS\Smarty::sprintf2Modifier($_smarty_tpl->tpl_vars['LANG']->value['cartdomaintaken'], $_smarty_tpl->tpl_vars['domain']->value);
                    ?>
</div>
<p align="center"><a href="#" onclick="cancelcheck();return false"><?php 
                    echo $_smarty_tpl->tpl_vars['LANG']->value['carttryanotherdomain'];
                    ?>
</a></p>

<?php 
                }
                ?>

<?php 
            } elseif ($_smarty_tpl->tpl_vars['checktype']->value == "transfer" && $_smarty_tpl->tpl_vars['transferenabled']->value) {
                ?>

<input type="hidden" name="domainoption" value="transfer" />

<?php 
                if ($_smarty_tpl->tpl_vars['status']->value == "available") {
                    ?>

<div class="domainunavailable"><?php 
                    echo WHMCS\Smarty::sprintf2Modifier($_smarty_tpl->tpl_vars['LANG']->value['carttransfernotregistered'], $_smarty_tpl->tpl_vars['domain']->value);
                    ?>
</div>
<p align="center"><a href="#" onclick="cancelcheck();return false"><?php 
                    echo $_smarty_tpl->tpl_vars['LANG']->value['carttryanotherdomain'];
                    ?>
</a></p>

<?php 
                } elseif ($_smarty_tpl->tpl_vars['status']->value == "unavailable" || $_smarty_tpl->tpl_vars['status']->value == "error") {
                    ?>

<div class="domainavailable"><?php 
                    echo WHMCS\Smarty::sprintf2Modifier($_smarty_tpl->tpl_vars['LANG']->value['carttransferpossible'], $_smarty_tpl->tpl_vars['domain']->value, $_smarty_tpl->tpl_vars['transferprice']->value);
                    ?>
</div>
<input type="hidden" name="domains[]" value="<?php 
                    echo $_smarty_tpl->tpl_vars['domain']->value;
                    ?>
" />
<input type="hidden" name="domainsregperiod[<?php 
                    echo $_smarty_tpl->tpl_vars['domain']->value;
                    ?>
]" value="<?php 
                    echo $_smarty_tpl->tpl_vars['transferterm']->value;
                    ?>
" />

<?php 
                    if (isset($_smarty_tpl->tpl_vars['continueok'])) {
                        $_smarty_tpl->tpl_vars['continueok'] = clone $_smarty_tpl->tpl_vars['continueok'];
                        $_smarty_tpl->tpl_vars['continueok']->value = true;
                        $_smarty_tpl->tpl_vars['continueok']->nocache = null;
                        $_smarty_tpl->tpl_vars['continueok']->scope = 0;
                    } else {
                        $_smarty_tpl->tpl_vars['continueok'] = new Smarty_variable(true, null, 0);
                    }
                    ?>

<?php 
                }
                ?>

<?php 
            } elseif ($_smarty_tpl->tpl_vars['checktype']->value == "owndomain" || $_smarty_tpl->tpl_vars['checktype']->value == "subdomain") {
                ?>

<input type="hidden" name="domainoption" value="<?php 
                echo $_smarty_tpl->tpl_vars['checktype']->value;
                ?>
" />
<input type="hidden" name="sld" value="<?php 
                echo $_smarty_tpl->tpl_vars['sld']->value;
                ?>
" />
<input type="hidden" name="tld" value="<?php 
                echo $_smarty_tpl->tpl_vars['tld']->value;
                ?>
" />
<?php 
                echo '<script';
                ?>
 language="javascript">
completedomain();
<?php 
                echo '</script';
                ?>
>

<?php 
            }
            ?>

<?php 
            if ($_smarty_tpl->tpl_vars['othersuggestions']->value) {
                ?>

<div class="domainsuggestions"><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['cartotherdomainsuggestions'];
                ?>
</div>

<table align="center" cellspacing="1" class="domainsuggestions">
<tr><th width="50"></th><th><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['domainname'];
                ?>
</th><th><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientarearegistrationperiod'];
                ?>
</th></tr>
<?php 
                $_smarty_tpl->tpl_vars['other'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['other']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['othersuggestions']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['other']->key => $_smarty_tpl->tpl_vars['other']->value) {
                    $_smarty_tpl->tpl_vars['other']->_loop = true;
                    ?>
<tr><td><input type="checkbox" name="domains[]" value="<?php 
                    echo $_smarty_tpl->tpl_vars['other']->value['domain'];
                    ?>
" /></td><td><?php 
                    echo $_smarty_tpl->tpl_vars['other']->value['domain'];
                    ?>
</td><td><select name="domainsregperiod[<?php 
                    echo $_smarty_tpl->tpl_vars['other']->value['domain'];
                    ?>
]"><?php 
                    $_smarty_tpl->tpl_vars['regoption'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['regoption']->_loop = false;
                    $_smarty_tpl->tpl_vars['period'] = new Smarty_Variable();
                    $_from = $_smarty_tpl->tpl_vars['other']->value['regoptions'];
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['regoption']->key => $_smarty_tpl->tpl_vars['regoption']->value) {
                        $_smarty_tpl->tpl_vars['regoption']->_loop = true;
                        $_smarty_tpl->tpl_vars['period']->value = $_smarty_tpl->tpl_vars['regoption']->key;
                        if ($_smarty_tpl->tpl_vars['regoption']->value['register']) {
                            ?>
<option value="<?php 
                            echo $_smarty_tpl->tpl_vars['period']->value;
                            ?>
"><?php 
                            echo $_smarty_tpl->tpl_vars['period']->value;
                            ?>
 <?php 
                            echo $_smarty_tpl->tpl_vars['LANG']->value['orderyears'];
                            ?>
 @ <?php 
                            echo $_smarty_tpl->tpl_vars['regoption']->value['register'];
                            ?>
</option><?php 
                        }
                    }
                    ?>
</select></td></tr>
<?php 
                }
                ?>
</table>

<?php 
                if (isset($_smarty_tpl->tpl_vars['continueok'])) {
                    $_smarty_tpl->tpl_vars['continueok'] = clone $_smarty_tpl->tpl_vars['continueok'];
                    $_smarty_tpl->tpl_vars['continueok']->value = true;
                    $_smarty_tpl->tpl_vars['continueok']->nocache = null;
                    $_smarty_tpl->tpl_vars['continueok']->scope = 0;
                } else {
                    $_smarty_tpl->tpl_vars['continueok'] = new Smarty_variable(true, null, 0);
                }
                ?>

<?php 
            }
            ?>

<?php 
            if ($_smarty_tpl->tpl_vars['continueok']->value) {
                ?>
<p align="center"><input type="submit" value="<?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['ordercontinuebutton'];
                ?>
" /></p><?php 
            }
            ?>

<?php 
        }
    }